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
Add the ability to highlight java primitives separately from keywords. #860
Conversation
@dyadix does this look it will be merged eventually? |
@akozlova please assist. |
Why do you want primitives to be highlighted differently from other keywords? The place under "classes and interfaces" is unexpected and I doubt that the highlighting would be used by many users. Moreover, how would you highlight |
Personally I wanted Primitives are the keywords that are actual type names, whereas |
I believe that Frankly saying I don't want to add a feature for the sake of adding a feature. I think, it's a good candidate to be implemented as a plugin, e.g. see how soft keywords are processed |
The implementation slots in very cleanly in a few lines of configuration here, I imagine as a plugin it takes substantially more code and maintenance to implement. I view this in the same vein as being able to highlight class/anonymous class/interface all separately if one chooses, just a little bit more customization. I don't mean anything pedantic by type-keyword, just that |
I would be happy to accept the PR with the new API which would make writing the plugin to highlight different keywords easy. |
I'm not interested in making a plugin to avoid making a 7 line change. |
) * Consider navigation element in PSI equality checks This seems to solve issues related to psi becoming outdated. Extension of comment by ajchun: mplushnikov/lombok-intellij-plugin#840 (comment) Covers issues: #821, #827, #829, #840, #842, #844, #846, #850, #853, #854, #855, #857 * Remove debug logging related to equality of PsiElements GitOrigin-RevId: e9ad9801b15dc91b872b14add012a9261033fbc7
Add the ability to highlight java primitives separately from keywords. This leaves the default highlighting unchanged (ie. the same as keywords).
The README.md doesn't cover running tests, so lmk if there's anything else I should do.
(CLA should be good from intellij-rust contributions)