Skip to content

Commit

Permalink
Update function and method definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
zeekay committed Mar 3, 2017
1 parent 860352f commit cfa1e34
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions syntax/coffee.vim
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,11 @@ syn match coffeeObjAssign /@\?\%(\I\|\$\)\%(\i\|\$\)*\s*\ze::\@!/ contains=@coff
hi def link coffeeObjAssign Identifier

" A function definition
syn match coffeeFunction /@\?\I.*\w\+\ze\s*=\s*\(=>\|->\|(\)/ contains=@coffeeIdentifier display
syn match coffeeFunction /@\?\I.*\w\+\ze\s*=\s*\((.\{-})\)\=\s*\(=>\|->\)/ display
hi def link coffeeFunction coffeeStatement

" A method definition
syn match coffeeMethod /@\?\I.*\w\+\s*:\s*\(=>\|->\|(\)/ contains=@coffeeIdentifier display
syn match coffeeFunction /@\?\I.*\w\+\ze\s*=\s*\(=>\|->\|(\)/ contains=@coffeeIdentifier display
hi def link coffeeFunction coffeeStatement

" A method definition
syn match coffeeMethod /@\?\I.*\w\+\s*:\s*\(=>\|->\|(\)/ contains=@coffeeIdentifier display
syn match coffeeMethod /@\?\I.*\w\+\ze\s*:\s*\((.\{-})\)\=\s*\(=>\|->\)/ display
hi def link coffeeMethod coffeeObjAssign

syn keyword coffeeTodo TODO FIXME XXX contained
Expand Down

0 comments on commit cfa1e34

Please sign in to comment.