Closed brookback closed 6 years ago
Unfortunately Atom imposes a maximum limit of 100 tokens an a single line for any grammar. This was done to increase performance. See here. It looks like your line has hit that limit and the grammar will stop looking for any more. I could add code to fix thus issue but have decided not to (see next para for reason). Another package allows this limit to be overridden for all grammars so you could TRY IT.
I believe that Max Brunsfeld's (Github/Atom dev) tree-sitter package will ship soon in Atom. It uses a true AST incremental parser that should solve all these TextMate issues ( poor performance, lack of look ahead, limited tokens, etc) plus providing some very neat extras. I'm sure there will be a blog post for it when it ships.
Gotcha, thanks for highlighting (lol) that. No biggie at all, let's chill for the tree sitter package!
Hi! I'm using this package to syntax highlight .js files. I stumbled upon this today:
This long regex breaks highlighting kinda mid way. See that the last
/* comment */
is highlighted in orange as well.Version: 2.81.0 Atom version: 1.23.0
Keep it up!