aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorMatt Singleton <matt@datadoghq.com>2011-12-15 12:37:21 -0500
committerMatt Singleton <matt@datadoghq.com>2011-12-15 12:37:21 -0500
commit02c7d9e3fe9647c72d36ea7cb49e885072e3fcbd (patch)
tree9b669556982e3f964cf7722794de508948a3fd9b /vim/after
parentfead075335c4a799a057d311b39c9969fb0be2be (diff)
adding coffescript vim support
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