File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 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
119119hi def link coffeeObjAssign Identifier
120120
121121" 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
123123hi def link coffeeFunction coffeeStatement
124124
125125" 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
132127hi def link coffeeMethod coffeeObjAssign
133128
134129syn keyword coffeeTodo TODO FIXME XXX contained
You can’t perform that action at this time.
0 commit comments