-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Consider using a new Java grammar: Text block(JEP 378) breaks Java syntax highlighting #167913
Comments
The current syntax highlighter doesn't support java |
Given that https://github.com/atom/language-java will be archived, I'm repurposing this issue for considering a new Java grammar. |
Possibly a good candidate grammar: https://github.com/georgewfraser/java-language-server |
@alexr00 but that repo doesn't have textmate syntax highlighting?? |
They do have a grammar though: https://github.com/georgewfraser/java-language-server/blob/master/lib/java.tmLanguage.json I haven't checked whether it would be an improvement. |
The grammar from https://github.com/georgewfraser/java-language-server doesn't highlight as much, so it's not a good option: |
New grammar was adopted with #188361 |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
Create a Java file with a text block that contains double quotes.
Current Result
Notice the codes after text block are fully orange.
Expected Result
Syntax highlighting is correct.
Workaround
Add an escape character in each double quote.
The text was updated successfully, but these errors were encountered: