-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
VSCode: JSX {} dynamic operator isn't higlighted #7
Comments
@RafidMuhymin can you provide an example of how this is highlighted in JSX but is not being highlighted in Astro? In my theme there is no special color provided to either of these. If there's a theme you use where that's not the case please let me know so I can check it out. |
@matthewp Astro: |
Minimal repro: ---
// Please view the code in VSCode. Highlighting in GitHub is different from VSCode
---
<!DOCTYPE html>
<html>
<body>
<!-- The JSX {} operator isn't highlighted property in the following lines -->
<h1>Hello {src}!</h1>
<img {src} />
<!-- The inner JSX {} operator in the following line is highlighted properly -->
{(<img src={src} />)}
</body>
</html> |
This was fixed, however something to note is that you very rarely see native highlighting for brackets these days due to VS Code's bracket colorization. So to see the updated colors, you'd have to disable that |
What package manager are you using?
yarn
What operating system are you using?
Windows
Describe the Bug
The JSX {} dynamic operator isn't higlighted
Steps to Reproduce
The JSX {} dynamic operator should be higlighted
Link to Minimal Reproducible Example (Optional)
No response
The text was updated successfully, but these errors were encountered: