atom / language-coffee-script

CoffeeScript support in Atom
Other
59 stars 56 forks source link

String interpolation with ternary expression breaks highlighting #158

Closed mjbvz closed 7 years ago

mjbvz commented 7 years ago

From https://github.com/Microsoft/vscode/issues/36422

Bug

For the code:

"a b c 1 2 3 #{if true is true then "uid" else (alert 'Uid') + " as uid"} a b c 1 2 3"

The interpolated string expression breaks highlighting for the rest of the document:

screen shot 2017-10-17 at 11 35 16 am

Note that the a b c 1 2 3 after the expression is not highlighted as a string but instead as an expression

Versions

0.49

winstliu commented 7 years ago

coffee-ternary Cannot reproduce on 8873cbc.