vim-coffee-script icon indicating copy to clipboard operation
vim-coffee-script copied to clipboard

Add function and method definition syntax highlighting

Open zeekay opened this issue 12 years ago • 2 comments

This adds coffeeFunction and coffeeMethod syntax elements which are linked to coffeeStatement and coffeeObjAssign, respectively. This ensures that existing themes will continue to behave as they have, but makes it possible to highlight functions and methods separately à la Sublime Text. For instance one might want to use their theme's function and method highlight colors:

hi link coffeeFunction Function
hi link coffeeMethod Method

Syntax highlighting similar to Sublime Text is achievable with the following:

hi link coffeeFunction Function
hi link coffeeMethod Function
hi link coffeeObjAssign Statement

Based on the efforts of @seanhess, and addressing the issue raised by @bergman with #102 (function calls incorrectly being captured).

zeekay avatar May 06 '13 20:05 zeekay

What is the status of this? I was considering doing a similar pull request until I found this one.

brentropy avatar Jan 20 '14 17:01 brentropy

I'm also waiting for this one !

pmaoui avatar Nov 24 '14 00:11 pmaoui