Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function and method definition syntax highlighting #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zeekay
Copy link

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

@brentropy
Copy link

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

@pmaoui
Copy link

pmaoui commented Nov 24, 2014

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants