javascript string interpolation highlighting breaks if > 2 interpolations

Hey all! I think I've found a bug in the JS syntax highlighting that causes it to break when using string interpolation with more than 2 insertions:

broken => `a: ${a}, b: ${b}, c: ${c}`
                                   ^ this character doesnt close opening pair

This causes all of the code after that brace to be highlighted red. Interestingly if you put a second brace after the one that fails to close the pair, that fixes the syntax highlighting problem but of course gives an erroneous character in the output.

Comments (0)
No comments yet.