Skip to content

Add function and method definition syntax highlighting - #129

Open
zeekay wants to merge 595 commits into
kchmck:masterfrom
zeekay:master
Open

Add function and method definition syntax highlighting#129
zeekay wants to merge 595 commits into
kchmck:masterfrom
zeekay:master

Conversation

@zeekay

@zeekay zeekay commented May 6, 2013

Copy link
Copy Markdown

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

kchmck and others added 30 commits July 7, 2011 15:52
Now every buffer switch updates the saved state
Terminal vim covers the bottom of the quickfix window with leftover output from
coffee.

Thanks levicole for telling me
It's no longer needed by coffeeDot
The html file from 632ef57 already includes coffee, and including it twice
breaks highlighting
It was overwriting existing `foldmethod` settings (kchmck#43). Instead, mention fold
by indentation in the readme.
These things were too hairy and buggy for me to maintain
So and= and or= are highlighted as operators
@pmaoui

pmaoui commented Nov 24, 2014

Copy link
Copy Markdown

I'm also waiting for this one !

tur-nr and others added 17 commits February 26, 2015 21:23
Coffeescript exponential numbers can only be prefixed with a lower-case `e`; upper case `E` does not work:

> [stdin]:8:67: error: exponential notation in '9E50' must be indicated with a lowercase 'e'
reduced possible exponential prefixes to just 'e'
Preserve b:current_syntax while loading syntax as subtype
The html standard
[allows](http://www.w3.org/TR/html-markup/syntax.html#attribute)
unquoted, single-quoted and double-quoted attribute values, this
patch accepts all three behaviours.
html tag attribute values may also be un- or singlequoted.
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.