Aliaksei Budavei
159d392427
runtime(java): Complement the recognition of type parameter sections
...
In addition to matching type parameter sections of generic
classes and records and interfaces, match such sections of
generic methods and constructors. As before, opt for it by
defining "g:java_highlight_generics"; the diamond form still
does not qualify for this kind of recognition.
And make section patterns agree with one another in syntax
items.
References:
https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.5
https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.4.4
https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.8.4
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com >
Signed-off-by: Christian Brabandt <cb@256bit.org >
2025-06-23 20:02:14 +02:00
Aliaksei Budavei
5e95c8f637
runtime(java): Highlight javaConceptKind modifiers with StorageClass
...
Stop assigning by default the NonText highlighting group for
javaConceptKind modifiers since its colour is hardly
distinguishable from a background colour for a range of
colour schemes.
fixes #15237
related #15238
closes : #15664
Co-authored-by: Dexter Gaon-Shatford <dexter@gaonshatford.ca >
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com >
Signed-off-by: Christian Brabandt <cb@256bit.org >
2024-09-15 19:53:50 +02:00
Aliaksei Budavei
e73e5b889b
runtime(java): Optionally highlight the :: token for method references
...
This token will be highlighted, similar to the arrow of
lambda expressions, whenever "g:java_highlight_functions" is
defined.
Also:
- Improve the recognition of _switch-case_ labels
(D-Cysteine).
- Remove insignificant empty statements in syntax test
files.
closes : #15322
References:
https://docs.oracle.com/javase/specs/jls/se21/html/jls-15.html#jls-15.13
https://github.com/fleiner/vim/pull/1
Co-authored-by: D-Cysteine <54219287+D-Cysteine@users.noreply.github.com >
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com >
Signed-off-by: Christian Brabandt <cb@256bit.org >
2024-07-24 20:17:43 +02:00