SublimeText / CoffeeScript

Syntax highlighting and checking, commands, shortcuts, snippets, watched compilation and more.
439 stars 64 forks source link

Incorret syntax highlight after regexp #215

Closed szyman closed 2 months ago

szyman commented 9 years ago
.replace(/\\/g,"/")

Below this line the rest are recognized as string. Please look at attached screenshot.

syntax bug

icflorescu commented 9 years ago

Nice catch. Until this gets fixed, you can use the CoffeeScript heregex syntax: .replace(///\\///g,"/"). Uglier, but it doesn't mess up the syntax highlighting.