Added Function Highlighting #102

Open
wants to merge 2 commits into
from
View
4 syntax/coffee.vim
@@ -117,6 +117,10 @@ endif
syn match coffeeObjAssign /@\?\I\i*\s*\ze::\@!/ contains=@coffeeIdentifier display
hi def link coffeeObjAssign Identifier
+syn match coffeeFunction /@\?\I.*\w\+\ze\s*=\s*.*\->/ contains=@coffeeIdentifier display
+"syn match coffeeFunction /.*\w\+\ze\s*=\s*\((.*\->|\->\)/ contains=@coffeeIdentifier display
+hi def link coffeeFunction Function
+
syn keyword coffeeTodo TODO FIXME XXX contained
hi def link coffeeTodo Todo