Commit 15e18c2e5e686276d663efb8d6729a54a7d83d11
Exists in
master
and in
4 other branches
Merge pull request #406 from pdfr/syntax
Add syntax highlighting for D and Haskell
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
lib/utils.rb
| @@ -34,6 +34,10 @@ module Utils | @@ -34,6 +34,10 @@ module Utils | ||
| 34 | :c | 34 | :c |
| 35 | when /(\.cpp|\.hpp|\.c++|\.h++|\.cc|\.hh|\.cxx|\.hxx)$/ | 35 | when /(\.cpp|\.hpp|\.c++|\.h++|\.cc|\.hh|\.cxx|\.hxx)$/ |
| 36 | :cpp | 36 | :cpp |
| 37 | + when /(\.d|\.di)$/ | ||
| 38 | + :d | ||
| 39 | + when /(\.hs|\.lhs)$/ | ||
| 40 | + :haskell | ||
| 37 | when /(\.rb|\.ru|\.rake|Rakefile|\.gemspec|\.rbx|Gemfile)$/ | 41 | when /(\.rb|\.ru|\.rake|Rakefile|\.gemspec|\.rbx|Gemfile)$/ |
| 38 | :ruby | 42 | :ruby |
| 39 | when /(\.py|\.pyw|\.sc|SConstruct|SConscript|\.tac)$/ | 43 | when /(\.py|\.pyw|\.sc|SConstruct|SConscript|\.tac)$/ |