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

In Java language, highlight instance variable color of local variable color #9324

Open
rodrigopim opened this issue Jan 12, 2024 · 3 comments
Labels
A-language-support Area: Support for programming/text languages C-enhancement Category: Improvements

Comments

@rodrigopim
Copy link

#419

@rodrigopim rodrigopim added the C-enhancement Category: Improvements label Jan 12, 2024
@the-mikedavis
Copy link
Member

Please explain what you're looking for.

@rodrigopim
Copy link
Author

Sorry, I guess that this is a issue in https://github.com/tree-sitter/tree-sitter-java. But if you can improve this, it will be great for java projects.

The case is that in Java syntax highlight the color of local and instance variables is the same.

Ex:

Helix
image

Netbeans
image

@gabydd
Copy link
Member

gabydd commented Jan 12, 2024

This is probably because java doesn't have a locals.scm see: https://github.com/helix-editor/helix/blob/master/runtime%2Fqueries%2Frust%2Flocals.scm and https://tree-sitter.github.io/tree-sitter/syntax-highlighting#local-variables

@kirawi kirawi added the A-language-support Area: Support for programming/text languages label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

4 participants