mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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>
This commit is contained in:
committed by
Christian Brabandt
parent
1be5b375c4
commit
159d392427
@@ -183,4 +183,10 @@ class MethodReferencesTests
|
||||
return T::toString; /* "e" */
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
((Supplier<Class<?>>)((Supplier<C2.C21>)()->new
|
||||
<Object>C2().new <Object> C21(new<Object>
|
||||
C1< Object >((C1<?>)null)))::getClass).get();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user