coffee-script-tmbundle
coffee-script-tmbundle copied to clipboard
Syntax highlighting broken for division operator; thinks a regex has started.
I don't know if this is the right place to do this. The TM2 bundle repository doesn't have an issue tracker attached to it.
From Bartłomiej Kubiak on the Textmate mailing list:
CoffeeScript bundle has broken syntax highlighting
when using division operator ("/") - badly interprets it
as start of regexp…
This might be the culprit.
The way we solve this in the ruby grammar is a look-behind that checks to see if the preceding characters are indicative of starting a regular expression match. This may be possible with Coffeescript as well but would take someone better versed in the language than I.
I have the same problem, I found that the highlighting is only broken when the /
division sign is attached to the following string without any space.
i.e. this breaks the highlighting
return multiples/quantities
this doesn't
return multiples/ quantities