1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

adding updated coffee.vim syntax file

This commit is contained in:
Jeffery Olson 2010-02-09 05:20:23 -08:00
parent fa63288f52
commit 85e5dffad5

View file

@ -28,11 +28,14 @@ syn match coffeeSpecialCharacter "'\\.'"
syn match coffeeNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" syn match coffeeNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
syn region coffeeRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gi]\{0,2\}\s*$+ end=+/[gi]\{0,2\}\s*[;.,)\]}]+me=e-1 contains=@htmlPreproc oneline syn region coffeeRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gi]\{0,2\}\s*$+ end=+/[gi]\{0,2\}\s*[;.,)\]}]+me=e-1 contains=@htmlPreproc oneline
syn match coffeeFunctionParams "([^)]*)\s*->"
syn match coffeeBindFunctionParams "([^)]*)\s*=>"
syn match coffeePrototypeAccess "::" syn match coffeePrototypeAccess "::"
syn match coffeeBindFunction "=[1]>[1]"
syn match coffeeFunction "->" syn match coffeeFunction "->"
syn keyword coffeeExtends extends syn keyword coffeeExtends extends
syn keyword coffeeConditional if else switch then syn keyword coffeeConditional if else switch then not
syn keyword coffeeRepeat while for in of syn keyword coffeeRepeat while for in of
syn keyword coffeeBranch break continue syn keyword coffeeBranch break continue
syn keyword coffeeOperator delete instanceof typeof syn keyword coffeeOperator delete instanceof typeof
@ -81,7 +84,10 @@ if version >= 508 || !exists("did_coffee_syn_inits")
HiLink coffeeOperator Operator HiLink coffeeOperator Operator
HiLink coffeeType Type HiLink coffeeType Type
HiLink coffeeStatement Statement HiLink coffeeStatement Statement
HiLink coffeeBindFunctionParams Function
HiLink coffeeFunctionParams Function
HiLink coffeeFunction Function HiLink coffeeFunction Function
HiLink coffeeBindFunction Function
HiLink coffeeBraces Function HiLink coffeeBraces Function
HiLink coffeeError Error HiLink coffeeError Error
HiLink coffeeScrParenError coffeeError HiLink coffeeScrParenError coffeeError