2015-07-18 17:05:45 -04:00
|
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
|
|
|
|
|
Add support for basic languages
coffee, cucumbeer, eruby, haml, haskell, javascript,
json, less, nginx, ocaml, ruby, sass, scss, slim,
stylus, textile, tmux
2013-09-12 10:17:03 -04:00
|
|
|
" Language: CoffeeScript
|
|
|
|
" Maintainer: Sven Felix Oberquelle <Svelix.Github@gmail.com>
|
|
|
|
" URL: http://github.com/kchmck/vim-coffee-script
|
|
|
|
" License: WTFPL
|
|
|
|
|
2016-09-11 07:24:17 -04:00
|
|
|
|
|
|
|
if exists('b:current_syntax')
|
|
|
|
let s:current_syntax_save = b:current_syntax
|
|
|
|
endif
|
|
|
|
|
Add support for basic languages
coffee, cucumbeer, eruby, haml, haskell, javascript,
json, less, nginx, ocaml, ruby, sass, scss, slim,
stylus, textile, tmux
2013-09-12 10:17:03 -04:00
|
|
|
" 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
|
2015-07-18 17:05:45 -04:00
|
|
|
|
2016-09-11 07:24:17 -04:00
|
|
|
if exists('s:current_syntax_save')
|
|
|
|
let b:current_syntax = s:current_syntax_save
|
|
|
|
unlet s:current_syntax_save
|
|
|
|
endif
|
|
|
|
|
2015-07-18 17:05:45 -04:00
|
|
|
endif
|