Add function and method definition syntax highlighting #129

Open
wants to merge 2 commits into
from

Conversation

Projects
None yet
3 participants
@zeekay

zeekay commented May 6, 2013

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).

@brentburg

This comment has been minimized.

Show comment Hide comment
@brentburg

brentburg Jan 20, 2014

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

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

@poupougnac

This comment has been minimized.

Show comment Hide comment
@poupougnac

poupougnac Nov 24, 2014

I'm also waiting for this one !

I'm also waiting for this one !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment