-
Notifications
You must be signed in to change notification settings - Fork 117
Shouldn't highlight inside comments #4
Comments
Good catch, thank you for the screenshot. I haven't found a solution for the highlighting inside comments yet. Currently the plugin looks for matching regexes in the whole file, with |
See also: microsoft/vscode#2793 |
Running into this really badly in my project 😢 Super annoying bug! |
In my project I wrote: |
Fix from @alpyre explained in styled-components#4 (comment)
@alpyre is there any place where all of these possible values for injectionSelector are documented? I've tried searching, but come up empty. I need something similar for my project (graphql-for-vscode). |
OK, after some digging, I found a few documents which highlight what all those textmate scopenames mean. Linking it here for anyone else stumbling on the problem: kumarharsh/graphql-for-vscode#7 (comment) |
Fix from @alpyre explained in styled-components/vscode-styled-components#4 (comment)
The
injectionSelector
is set toL:source
, which makes it apply inside comments and breaks highlighting for the rest of the file.The text was updated successfully, but these errors were encountered: