2012-08-17 03:41:25 +00:00
|
|
|
" Language: CoffeeScript
|
2014-10-14 13:30:33 +00:00
|
|
|
" Maintainer: Mick Koch <mick@kochm.co>
|
2012-08-17 03:41:25 +00:00
|
|
|
" URL: http://github.com/kchmck/vim-coffee-script
|
|
|
|
" License: WTFPL
|
|
|
|
|
2016-08-20 11:23:52 +00:00
|
|
|
if exists('b:current_syntax')
|
|
|
|
let s:current_syntax_save = b:current_syntax
|
|
|
|
endif
|
|
|
|
|
2012-08-17 03:41:25 +00:00
|
|
|
" Syntax highlighting for text/coffeescript script tags
|
|
|
|
syn include @htmlCoffeeScript syntax/coffee.vim
|
2017-02-11 13:01:38 +00:00
|
|
|
syn region coffeeScript start=#<script [^>]*type=['"]\?text/coffeescript['"]\?[^>]*>#
|
2013-11-16 19:45:48 +00:00
|
|
|
\ end=#</script>#me=s-1 keepend
|
2012-08-17 03:41:25 +00:00
|
|
|
\ contains=@htmlCoffeeScript,htmlScriptTag,@htmlPreproc
|
|
|
|
\ containedin=htmlHead
|
2016-08-20 11:23:52 +00:00
|
|
|
|
|
|
|
if exists('s:current_syntax_save')
|
|
|
|
let b:current_syntax = s:current_syntax_save
|
|
|
|
unlet s:current_syntax_save
|
|
|
|
endif
|