2012-08-16 23:41:25 -04:00
|
|
|
" Language: CoffeeScript
|
|
|
|
" Maintainer: Sven Felix Oberquelle <Svelix.Github@gmail.com>
|
|
|
|
" URL: http://github.com/kchmck/vim-coffee-script
|
|
|
|
" License: WTFPL
|
|
|
|
|
2016-08-20 07:23:52 -04:00
|
|
|
|
|
|
|
if exists('b:current_syntax')
|
|
|
|
let s:current_syntax_save = b:current_syntax
|
|
|
|
endif
|
|
|
|
|
2012-08-16 23:41:25 -04:00
|
|
|
" Inherit coffee from html so coffeeComment isn't redefined and given higher
|
|
|
|
" priority than hamlInterpolation.
|
|
|
|
syn cluster hamlCoffeescript contains=@htmlCoffeeScript
|
2013-11-16 14:45:48 -05:00
|
|
|
syn region hamlCoffeescriptFilter matchgroup=hamlFilter
|
|
|
|
\ start="^\z(\s*\):coffee\z(script\)\?\s*$"
|
|
|
|
\ end="^\%(\z1 \| *$\)\@!"
|
|
|
|
\ contains=@hamlCoffeeScript,hamlInterpolation
|
|
|
|
\ keepend
|
2016-08-20 07:23:52 -04:00
|
|
|
|
|
|
|
if exists('s:current_syntax_save')
|
|
|
|
let b:current_syntax = s:current_syntax_save
|
|
|
|
unlet s:current_syntax_save
|
|
|
|
endif
|