Closed ephphatha closed 10 years ago
Thanks for the detailed report! :zap:
I believe this is a duplicate of atom/atom#1667 where the issue is that the line is too long and colorization stops/breaks at a certain token limit (currently, 100). Please subscribe to atom/atom#1667 for updates about this.
It seems if you have more than 24 quoted items (using single quotes, double quotes, or a mix of each) on a single line the parser breaks and starts inverting the matched quotes (ie, it then thinks everything from an ending quote to the next starting quote is actually quoted).
For example: At the end of line 224 the bracket and semicolon terminating the list/line are highlighted as if they were quoted, despite the last element being properly quoted. The artifact also shows up on line 225 near the end as well, between elements '24' and '25'
If we then get rid of the last element to bring the number of quoted elements on the line down to 24; The beginning of line 225 is highlighted properly, but the commas seperating elements '24' and beyond are now highlighted as if they are quoted, and the following lines are inverted. (Please note that while I commented out the end of the lists it works fine if you add linebreaks as well.)
Reduce the number of quoted elements on line 225 to 24: And the rest of the document is highlighted as expected.
This is using the following software versions: Atom 0.131.0 Language Perl 0.9.0 Windows 7