defunkt / coffee-mode

Emacs Major Mode for CoffeeScript
http://ozmm.org/posts/coffee_mode.html
574 stars 147 forks source link

Regexp blocks fontify strings and leak it out #302

Closed sherrman closed 9 years ago

sherrman commented 9 years ago

The presence of the square brackets makes single or double quotes font lock incorrectly with font-lock-string-face and the whole regexp block gets a default face.

/'isok/   # OK
/Brok'n/  # Broken

Looks like it's broken if there is any character before the quote mark.

screenshot 2015-03-09 10 10 05

syohex commented 9 years ago

Thanks for reporting. I have fixed this issue at #303. Screenshot is here. Please check latest version.

coffee-mode

sherrman commented 9 years ago

:+1: awesome thank you!