Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting breaks (permanently?) after editing long strings #171

Open
AvariciousImp opened this issue Nov 28, 2024 · 0 comments
Open

Comments

@AvariciousImp
Copy link

AvariciousImp commented Nov 28, 2024

When editing long strings on a single line (several thousand characters, as I didn't know I could use \ for things other than making " not end the string), the syntax highlighting starts to struggle as expected, but after saving the document as text, the highlighting stopped registering \ as a valid escape character for strings, and later, the highlighting simply stopped working entirely for all Twee languages, seemingly permanently and for all documents, not just the offending one.

Expected behavior:
The syntax highlighting for all languages stops working after hitting VS Code's max tokenization limit for the line, then resumes functioning once the offending line is removed.

What actually happened:
Syntax highlighting worked until after saving, at which point it malfunctioned, showing the wrong colors and ignoring escape characters. Some amount of time later, it stopped highlighting text completely, but only for Twee3 languages. Other languages remain unaffected.

Steps to reproduce:
Make a several thousand character long string on a single line (maybe some Lorem Ipsum or something), and save it as a text file.

Fixes attempted:
Disabling/re-enabling the extension - no effect.
Uninstalling/reinstalling the extension - no effect.
Uninstalling/reinstalling VS Code - no effect.

An example of the highlighting not functioning for anything besides brackets.
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant