From 85e5dffad56cfa0b46e65b7c6f37c9b28044db4d Mon Sep 17 00:00:00 2001 From: Jeffery Olson Date: Tue, 9 Feb 2010 05:20:23 -0800 Subject: [PATCH] adding updated coffee.vim syntax file --- extras/coffee.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extras/coffee.vim b/extras/coffee.vim index 5235d3cb..d65ab710 100644 --- a/extras/coffee.vim +++ b/extras/coffee.vim @@ -28,11 +28,14 @@ syn match coffeeSpecialCharacter "'\\.'" 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 match coffeeFunctionParams "([^)]*)\s*->" +syn match coffeeBindFunctionParams "([^)]*)\s*=>" syn match coffeePrototypeAccess "::" +syn match coffeeBindFunction "=[1]>[1]" syn match coffeeFunction "->" 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 coffeeBranch break continue syn keyword coffeeOperator delete instanceof typeof @@ -81,7 +84,10 @@ if version >= 508 || !exists("did_coffee_syn_inits") HiLink coffeeOperator Operator HiLink coffeeType Type HiLink coffeeStatement Statement + HiLink coffeeBindFunctionParams Function + HiLink coffeeFunctionParams Function HiLink coffeeFunction Function + HiLink coffeeBindFunction Function HiLink coffeeBraces Function HiLink coffeeError Error HiLink coffeeScrParenError coffeeError