-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
Highlight JSX in plain old js2-mode #528
Comments
Sure. Except the current So I think this issue is a subset of 527. |
Highlighting of..? |
Hmm, yes. That's correct. But that's a historical thing. You can file a feature request for it to highlight more things. |
I use the color-indentifilers-mode with js-mode on emacs28 got a good syntax highlight |
@taigacute, this issue is about highlighting JSX syntax (and only that syntax) in js2-mode, in the absence of other software. It’s not seeking the shortest path to a personal solution, or any alternatives or workarounds for any other scenarios. We’re glad you found something that works for you, but this is not the place to the post it, unless it is relevant to the implementation proposed in the issue description. |
Indeed. Sorry, I also played a part in side-tracking this discussion. |
JSX highlighting is currently available only if
It would be nice if JSX was also highlighted when plain ol’ js2-mode is enabled.
As we decided in #523, the highlighting that js-mode does won’t be inherited by js2-mode, because js2-mode highlights code based on its AST, not with font-lock-keywords.
Therefore, should we ever parse JSX nodes and add them to the AST (as proposed in #527), then during that parsing, we should also record the locations where faces should be applied to JSX so that it’s highlighted as such. It should be highlighted like SGML, just like js-mode does it in Emacs 27. This issue proposes such an improvement to js2-mode.
The text was updated successfully, but these errors were encountered: