-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Java Syntax Higlighting broken #2090
Comments
Hi @itshorty. Thanks for reporting the issue! We use Textmate's Java bundle to perform the syntax highlighting. Would you mind reporting the bug there? There is more information in our docs on fixing syntax highlighting issues. |
Personally I think it would be wise to consider Textmate's Java bundle as an abandoned project and perhaps look for alternatives. There are many open issue affecting modern Java syntax which have remained unaddressed for many years. https://github.com/textmate/java.tmbundle/issues As Java syntax evolves, and people start using matcher syntax, string templates, virtual threads etc. this issue will only get worse and the output from Linguist will start becoming effectively unusable for many situations. |
GitHub doesn't use the TextMate grammar. It uses the tree-sitter grammar (see here) which is actively maintained. If you are seeing problems on GitHub, report them to the grammar maintainers and it'll eventually be pulled into GitHub. Linguist continues to ship the TextMate grammar so other grammars that may rely on it don't break. |
Hi,
the Java highlighter has a problem formating block-comments containing '<'
For an example see here: https://github.com/itshorty/libsybos/blob/master/src/main/java/at/ffesternberg/sybos/SybosClient.java#L220
greetings Florian
The text was updated successfully, but these errors were encountered: