summaryrefslogtreecommitdiffstats
path: root/after/syntax/haml.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/syntax/haml.vim')
-rw-r--r--after/syntax/haml.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/after/syntax/haml.vim b/after/syntax/haml.vim
new file mode 100644
index 00000000..4c517ebb
--- /dev/null
+++ b/after/syntax/haml.vim
@@ -0,0 +1,13 @@
+" Language: CoffeeScript
+" Maintainer: Sven Felix Oberquelle <Svelix.Github@gmail.com>
+" URL: http://github.com/kchmck/vim-coffee-script
+" License: WTFPL
+
+" Inherit coffee from html so coffeeComment isn't redefined and given higher
+" priority than hamlInterpolation.
+syn cluster hamlCoffeescript contains=@htmlCoffeeScript
+syn region hamlCoffeescriptFilter matchgroup=hamlFilter
+\ start="^\z(\s*\):coffee\z(script\)\?\s*$"
+\ end="^\%(\z1 \| *$\)\@!"
+\ contains=@hamlCoffeeScript,hamlInterpolation
+\ keepend