-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Syntax highlighting issue ("templates/**/*") #15091
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
Comments
Does it look fine if you use |
Which theme is that? Can you also show your extension list? |
The theme is GitHub Dark (but any will do). Extension list:
The error will be triggered by just this: let foo = "/**"; If I disable all extensions, it works correctly. If I enable only rust analyzer, it fails |
|
No, it's not |
Oh sorry I didn't check the later replies. Might be doc comment markdown injection messing up somehow? |
I can reproduce this: but only right after load. If I wait a little, I see: This is because my test project has I also thought it was the Markdown PR or the |
So this is either semantic highlighting causing this (which I doubt it is) or the markdown injection is doing wrong things (which I am more inclined to believe). |
Or we fail the first highlighting request for some reason, and Code doesn't update its display. |
I have a similar issue where comments like /******/ cause anything that follows to have broken syntax highlighting. This started happening today: Removing this bit from
In my case i had to remove it from containers |
That one is expected, as doc comments are now treated as markdown, parens, braces and bracktes will benefit from the rainbow bracket highlighting |
@Veykril How can it be expected if the code below the comment isn't part of that comment? The comment in the screenshot both starts and terminates in line 10. The lines 11 to 30+ shouldn't be affected. |
Oh apologies, I didn't see the closing |
rust-analyzer version: rust-analyzer version: 0.3.1557-standalone (cd3bf9f 2023-06-18)
rustc version: rustc 1.70.0 (90c541806 2023-05-31)
Hi,
I'm running into an issue where syntax highlighting is not correctly working for
"templates/**/*"
. Somehow the editor thinks this is a comment and makes everything greyed out (because of/**
).This is inside a string so it shouldn't be considered a comment.
Some screenshots:
The text was updated successfully, but these errors were encountered: