aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after')
-rwxr-xr-xvim/after/syntax/haml.vim9
-rwxr-xr-xvim/after/syntax/html.vim10
2 files changed, 19 insertions, 0 deletions
diff --git a/vim/after/syntax/haml.vim b/vim/after/syntax/haml.vim
new file mode 100755
index 0000000..d82fbea
--- /dev/null
+++ b/vim/after/syntax/haml.vim
@@ -0,0 +1,9 @@
+" 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*\):coffeescript\s*$" end="^\%(\z1 \| *$\)\@!" contains=@hamlCoffeeScript,hamlInterpolation keepend
diff --git a/vim/after/syntax/html.vim b/vim/after/syntax/html.vim
new file mode 100755
index 0000000..63ebaec
--- /dev/null
+++ b/vim/after/syntax/html.vim
@@ -0,0 +1,10 @@
+" Language: CoffeeScript
+" Maintainer: Mick Koch <kchmck@gmail.com>
+" URL: http://github.com/kchmck/vim-coffee-script
+" License: WTFPL
+
+" Syntax highlighting for text/coffeescript script tags
+syn include @htmlCoffeeScript syntax/coffee.vim
+syn region coffeeScript start=+<script [^>]*type *=[^>]*text/coffeescript[^>]*>+
+\ end=+</script>+me=s-1 keepend
+\ contains=@htmlCoffeeScript,htmlScriptTag,@htmlPreproc