Cap for amount of array items?


#1

Long story short, I need to have an array that has a lot of prime numbers. I copy and pasted the ones I want and after a while the numbers stopped turning orange and stayed white. Is this because the array was too long? Or did I mess up my syntax?


#2

Your syntax isn’t the issue (although you probably want a comma between 137 and 139). The lack of highlighting is not a commentary on your code. It is a hard-coded limit to prevent Atom from taking forever on long lines. After a certain amount of counts, Atom stops counting new bits of syntax. Every white comma is a count and every colored number is a count, so you can see how that adds up. It’s slightly more complicated than that, but thinking of it as a counter is a good approximation.