Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPedro Rodrigues <pedro@onimail.net>2012-02-15 00:46:56 +0400
committerPedro Rodrigues <pedro@onimail.net>2012-02-15 00:46:56 +0400
commita9fc97db468df2f1ae539c0b54f3c0b8852d7336 (patch)
treeadd65c26ca1ab91ea95aa94c04090b7aca1411ed /lib
parentc062e56b4cc8d0397bb709e4f5e3aa251b63aa90 (diff)
Add syntax highlighting for D and Haskell
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/utils.rb b/lib/utils.rb
index 677322c98d4..82463f9ec0c 100644
--- a/lib/utils.rb
+++ b/lib/utils.rb
@@ -34,6 +34,10 @@ module Utils
:c
when /(\.cpp|\.hpp|\.c++|\.h++|\.cc|\.hh|\.cxx|\.hxx)$/
:cpp
+ when /(\.d|\.di)$/
+ :d
+ when /(\.hs|\.lhs)$/
+ :haskell
when /(\.rb|\.ru|\.rake|Rakefile|\.gemspec|\.rbx|Gemfile)$/
:ruby
when /(\.py|\.pyw|\.sc|SConstruct|SConscript|\.tac)$/