atom / highlights

Syntax highlighter
https://atom.github.io/highlights
MIT License
529 stars 54 forks source link

String not ended in long array declaration #8

Closed BlackWolf closed 10 years ago

BlackWolf commented 10 years ago

I just noticed this in one of my files:

screen shot 2014-06-06 at 09 47 13

The markup in the line where everything goes wrong is as you would expect, not correct:

(...)
<span class="string quoted single js">
    <span class="punctuation definition string begin js">'</span>
    garages
    <span class="punctuation definition string end js">'</span>
</span>
<span class="meta delimiter object comma js">, </span>
<span class="string quoted single js">
    <span class="punctuation definition string begin js">'</span>
    government', 'hangar',
 </span>
kevinsawicki commented 10 years ago

This library is not used by Atom, it is a standalone parser, based on your screenshot this is an Atom issue, mostly the current limitation of only parsing 100 tokens per line, which has been reported over at https://github.com/atom/language-javascript/issues/8