mechatroner / sublime_rainbow_csv

🌈Rainbow CSV - Sublime Text Package: Highlight columns in CSV and TSV files and run queeries in SQL-like language
MIT License
119 stars 7 forks source link

Plugin breaks when line is > 16383 characters long #21

Open nleo575 opened 4 years ago

nleo575 commented 4 years ago

I am working with large JSON dumps and noticed that plugin doesn't work when a line has greater than 16383 characters. The whole line just shows up as a the default text color (white in my case). If I truncate the line, the coloring works again as it should.

This behavior is line-by-line, so it ends up making a striped effect because of lines that are too long being white and lines that are less than the threshold having the correct coloring scheme.

mechatroner commented 4 years ago

Hi @nleo575, 16383 is the hard-coded limit in Sublime syntax engine. AFAIK there is no way to reconfigure this value, see https://github.com/sublimehq/sublime_text/issues/513