Syntax highlighting doesn't work in Javascript arrays


Admittedly not a big problem, but distracting and odd nonetheless. In a JS array containing strings, only the first 19 values appear in normal syntax highlighting; from the 20th on, the text just appears in white. This happens in any JS file, regardless of the syntax theme, and also in safe mode. I’m using version 1.9.8, in Ubuntu 16.04, if that makes any difference.


It’s not about JavaScript, or the arrays. Atom has a hard-coded max of 100 tokens per line (and it makes tokens for multiple things, not just highlighting) for performance reasons. For arrays declared on one line, it’s pretty easy to get up to that cap.