3 ms·
> For instance, the following 161K file freezes completely Atom, to the point that you just have to close it: I just downloaded it and you are correct, it lock
by crucialfelix 11y ago
> For instance, the following 161K file freezes completely Atom, to the point that you just have to close it:
I just downloaded it and you are correct, it locks up. Its the really long line here: https://github.com/espadrine/aulx/blob/master/html/tokenizer.js#L63 https://github.com/espadrine/aulx/blob/master/html/tokenizer...
If I open it in Sublime 3 I see that they don't bother to syntax highlight long lines. They just skip it.
Issue filed:
https://github.com/atom/atom/issues/7444 https://github.com/atom/atom/issues/7444
- lorenzhs 11y ago> If I open it in Sublime 3 I see that they don't bother to syntax highlight long lines. They just skip it. It appears that Sublime Text 3's threshold is 16384 (2^14) characters. Longer lines are not highlighted. Works quite well to be honest.
- oneeyedpigeon 11y agoI think you meant line 634, not 63. Also, pro-tip, always link to a specific file version when you're referencing a line because master will change: https://github.com/espadrine/aulx/blob/b745723680f541353ad5090da16f4f18bc6ecbc0/html/tokenizer.js#L634 https://github.com/espadrine/aulx/blob/b745723680f541353ad50...
- crucialfelix 11y agothanks, it got accidentally chopped