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

Fix ANSI highlighting of strings within multiline strings #457

Merged
merged 1 commit into from
May 14, 2024

Conversation

marvinborner
Copy link
Member

If you write strings within multiline strings, the ANSI highlighting (e.g. in errors) gets escaped and rendered as if not a string at all. This annoyed me while trying to break unicode support :)

An example which induces an arbitrary error to generate wrong highlighting:

image

Not sure about the fix. Quotes shouldn't appear in normal strings after parsing anyway, so I believe we can just ignore them completely.

Other fixes wouldn't be straightforward since multiline strings are generally handled the same as normal strings.

@b-studios b-studios merged commit f48bf36 into master May 14, 2024
1 check passed
@b-studios b-studios deleted the fix/string_prettyprinting branch May 14, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants