Commit cfa1e34 zeekay
committed
1 parent 860352f commit cfa1e34 Copy full SHA for cfa1e34
File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -119,16 +119,11 @@ syn match coffeeObjAssign /@\?\%(\I\|\$\)\%(\i\|\$\)*\s*\ze::\@!/ contains=@coff
119
119
hi def link coffeeObjAssign Identifier
120
120
121
121
" A function definition
122
- syn match coffeeFunction / @\?\I .*\w\+\z e\s *=\s *\( = >\| ->\| ( \) / contains = @coffeeIdentifier display
122
+ syn match coffeeFunction / @\?\I .*\w\+\z e\s *=\s *\( (. \{ -}) \)\=\s * \( = >\| ->\) / display
123
123
hi def link coffeeFunction coffeeStatement
124
124
125
125
" A method definition
126
- syn match coffeeMethod / @\?\I .*\w\+\s *:\s *\( =>\| ->\| (\) / contains =@coffeeIdentifier display
127
- syn match coffeeFunction / @\?\I .*\w\+\z e\s *=\s *\( =>\| ->\| (\) / contains =@coffeeIdentifier display
128
- hi def link coffeeFunction coffeeStatement
129
-
130
- " A method definition
131
- syn match coffeeMethod / @\?\I .*\w\+\s *:\s *\( =>\| ->\| (\) / contains =@coffeeIdentifier display
126
+ syn match coffeeMethod / @\?\I .*\w\+\z e\s *:\s *\( (.\{ -})\)\=\s *\( =>\| ->\) / display
132
127
hi def link coffeeMethod coffeeObjAssign
133
128
134
129
syn keyword coffeeTodo TODO FIXME XXX contained
You can’t perform that action at this time.
0 commit comments