From 02c7d9e3fe9647c72d36ea7cb49e885072e3fcbd Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Thu, 15 Dec 2011 12:37:21 -0500 Subject: adding coffescript vim support --- vim/after/syntax/haml.vim | 9 +++++++++ vim/after/syntax/html.vim | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100755 vim/after/syntax/haml.vim create mode 100755 vim/after/syntax/html.vim (limited to 'vim/after') 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 +" 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 +" 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=++me=s-1 keepend +\ contains=@htmlCoffeeScript,htmlScriptTag,@htmlPreproc -- cgit v1.2.3