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 with switch/regex/+ #1565

Open
zolomatok opened this issue Nov 3, 2024 · 2 comments
Open

Syntax highlighting breaks with switch/regex/+ #1565

zolomatok opened this issue Nov 3, 2024 · 2 comments

Comments

@zolomatok
Copy link
Contributor

The syntax highlighting breaks while pattern matching with switch and regex while having a + in a string in the same line.

Removing the + or not having the pattern as a regex fixes the highlighting.
Passing the offending string into a function constrains the issue to that line.

highlighting.mov

The code runs correctly, it's just the LSP that gets confused.
VSC extension 0.3.25

@edemaine
Copy link
Collaborator

edemaine commented Nov 3, 2024

There are lots of syntax highlighting bugs (it hasn't been updated in years). But thanks for the report! If we start picking away at the major ones, we will eventually get to a better place...

@edemaine edemaine changed the title LSP - syntax highlighting breaks with switch/regex/+ Syntax highlighting breaks with switch/regex/+ Nov 3, 2024
@zolomatok
Copy link
Contributor Author

There are lots of syntax highlighting bugs (it hasn't been updated in years). But thanks for the report! If we start picking away at the major ones, we will eventually get to a better place...

🙏🌈

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

No branches or pull requests

2 participants