Open Alexey-T opened 2 years ago
I can't reproduce it with your given text.
Then take my file https www.yahoo.com.zip
and scroll to position from my picture.
Line 82, which contains 150k chars, is super long and ST just gives up. I don't think there is anything we can do in this repo here.
The closing </style>
tag is located in line 80 at column 151885 and hence ignored by both syntax highlighting and the escape
command, which is responsible to finalize the embedded CSS context.
As a result all the following content up to the next matching </style>
tag at line 211 is parsed as CSS.
To resolve this issue at least ST's escape
command would need to ignore the line length limit, to ensure an embedded syntax can be escaped from under all circumstances, even though subsequent highlighting fails.
What happened?
big file - copy of yahoo webpage. red hilite.
text is