purescript-contrib/atom-language-purescript

String length > 94 chars leads to incorrect highlighting for the follow-on text

Bellarmine-Head opened this issue · 1 comments

Exhibit A...

94_char_string

Here we see correct highlighting.

But now we add one extra character to the string...

95_char_string

It's definitely related to string length and not line length. In the case depicted by the second screenshot, I can reduce uri1 to u1 and it doesn't affect the outcome.

I can go on adding chars to the string, and the syntax highlighting remains wrong.

Of course the example string is hypothetical, but I have genuine URIs that are way longer.

I'm using Atom.io 1.14.3 ia32 on Windows 7. language-purescript package = 0.8.2

This is an unfortunate atom restriction atom/atom#1667 , see also #18

You should be able to get around this by splitting strings across lines or possibly adding a close quote in a comment :/