Skip to content
Browse files

improvements to function regex

  • Loading branch information...
1 parent d824b79 commit 93e4da438536873dcffd797994cecd74632ba2c2 @seanhess committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 syntax/coffee.vim
View
3 syntax/coffee.vim
@@ -117,7 +117,8 @@ endif
syn match coffeeObjAssign /@\?\I\i*\s*\ze::\@!/ contains=@coffeeIdentifier display
hi def link coffeeObjAssign Identifier
-syn match coffeeFunction /\w\+\(\s*=.*\->\)\@=/ contains=@coffeeIdentifier display
+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

0 comments on commit 93e4da4

Please sign in to comment.
Something went wrong with that request. Please try again.