-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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 for JSX not working for React-Native (when JavaScript Atom Grammar is installed) #35532
Comments
P.S. I also really want word highlighting to work in the minimap when I double click words (ie: highlight all instances of that word). Please increase the tally by 1 for that feature. This extension works amazing, but I want this to carry into the minimap also: https://marketplace.visualstudio.com/items?itemName=rsbondi.highlight-words I know others are requesting it also, and I see you are the syntax wizard mjbvz. :) Please relay our concerns to the mothership. |
I updated the grammar to the latest and made the repo public. The problem is that javascript and javascript react both use |
Thanks @aeschli! Yes we should be able to do that since we already have separate scopes for ts and tsx. I'll look into it for this month |
Thanks @mjbvz! In order to keep JavaScript specific rules in themes working, 'source.js.jsx' might be a good choice. |
Nice forensic work, thanks |
…when overriding plain old javascript grammar Fixes #35532
Steps to Reproduce:
Reproduces without extensions: No
I just ran
code --disable-extensions
and my colours came back. I found the extension that was causing it: JavaScript Atom Grammar: https://marketplace.visualstudio.com/items?itemName=ms-vscode.js-atom-grammarHere is a screenshot of a few minutes ago before it was working; only the primitive works.
Therefore, this issue is now simply an alert to let you know that this is real and probably happens to others. I am happy to send any other specs as requested.
Here are my user settings:
I'm pretty sure that extension was sprinkling syntax highlighting issues elsewhere in my experience also. I highly recommend taking a look at it with respect to its propensity to create such issues. Thanks!
The text was updated successfully, but these errors were encountered: