Skip to content
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

Closed
itshorty opened this issue Feb 9, 2015 · 3 comments
Closed

Java Syntax Higlighting broken #2090

itshorty opened this issue Feb 9, 2015 · 3 comments

Comments

@itshorty
Copy link

itshorty commented Feb 9, 2015

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

@bkeepers
Copy link
Contributor

bkeepers commented Feb 9, 2015

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.

@hagbard
Copy link

hagbard commented Apr 19, 2024

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.

@lildude
Copy link
Member

lildude commented Apr 20, 2024

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.

@github-linguist github-linguist locked as resolved and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants