-
Notifications
You must be signed in to change notification settings - Fork 14
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
Highligh code within braces in JSX attributes as javascript #10
Comments
This is only applied inside attributes and it stems from |
If there's a scope for an attribute value with braces, excluding it should be trivial I think, by just excluding that scope from the injection. Or do I think too lightly? |
I think this would be fixed by changing the themes' "Markup tag" style from using |
Although, perhaps solving this in the grammar instead of the theme would also fix typing pairs for ```... |
Since I was called out: I think the current scoping is correct, the Javascript is contained within a tag and should have the |
Currently code within braces of a JSX attribute is scoped as
meta.tag-content.jsx
. It would be nice if on these nested script parts the scope was not applied.Eg.
Now:
Desired:
The text was updated successfully, but these errors were encountered: