Files
neovim/runtime/doc
Christian Clason 7306adaebc vim-patch:beb02ed: runtime(java): Optionally highlight parameterised types
In the presence of parameterised types whose names begin
with a capital letter and end with a less-than sign "<" that
introduces a type argument or a list of comma-separated type
arguments, followed by a greater-than sign ">", a variable
"g:java_highlight_generics" can be defined to have some
components of such types uniformly coloured (by picking
highlight groups for javaGenericsC{1,2}, javaWildcardBound).

For example,
------------------------------------------------------------
java.io.InputStream stream = java.io.InputStream.nullInputStream();
java.util.function.Function<String,
    java.util.function.BiFunction<String, String, String>> updater =
	property -> (oldValue, newValue) -> oldValue;
java.util.logging.LogManager.getLogManager()
    .updateConfiguration(stream, updater);
------------------------------------------------------------

Note that the diamond form and explicit type arguments do
not qualify for this kind of recognition.

For example,
------------------------------------------------------------
new java.util.HashSet<>().<String>toArray(new String[0]);
------------------------------------------------------------

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-15.html#jls-15.9
https://docs.oracle.com/javase/specs/jls/se21/html/jls-15.html#jls-15.12.2.1

closes: vim/vim#15050

beb02ed674

Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
2024-06-21 11:03:47 +02:00
..
2024-06-15 07:04:27 +08:00
2023-07-25 05:07:13 -07:00
2024-06-15 07:04:27 +08:00
2023-10-29 16:02:32 +08:00
2024-05-15 23:19:26 +02:00
2024-05-15 23:19:26 +02:00
2023-04-17 15:46:24 +08:00
2024-04-12 16:56:22 +08:00
2024-05-06 06:43:01 +08:00
2021-09-10 08:48:27 +02:00
2023-06-25 17:14:28 +02:00
2023-10-29 16:02:32 +08:00
2024-06-07 10:55:14 +08:00
2024-04-11 07:39:29 +08:00
2024-05-06 06:43:01 +08:00
2024-04-11 07:39:29 +08:00
2023-05-13 21:33:22 +02:00
2024-06-07 10:55:14 +08:00
2024-03-12 13:51:53 +08:00
2024-02-22 10:07:04 +01:00
2024-06-07 10:55:14 +08:00
2022-10-14 08:01:13 -07:00
2024-01-18 00:14:48 -08:00
2022-12-11 18:41:26 -08:00
2023-11-14 23:29:09 +01:00
2024-05-11 18:14:03 +08:00
2018-10-29 09:55:07 +01:00
2024-05-11 18:14:03 +08:00
2023-11-06 19:03:08 +08:00
2024-06-07 10:55:14 +08:00
2024-01-18 00:14:48 -08:00
2024-04-30 04:30:21 -07:00
2023-01-01 15:05:13 +01:00
2023-06-19 08:40:33 -07:00
2023-09-28 05:22:09 +08:00
2024-06-07 10:55:14 +08:00
2024-04-18 23:39:26 +02:00
2024-05-16 06:07:17 +08:00
2023-08-10 17:28:02 +08:00
2024-06-15 07:04:27 +08:00
2024-04-23 08:20:36 +08:00
2024-04-30 04:30:21 -07:00
2024-05-11 18:14:03 +08:00
2023-04-23 15:22:55 +02:00
2023-01-03 10:07:43 +00:00
2023-06-25 17:14:28 +02:00
2023-06-19 08:40:33 -07:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2021-05-01 22:29:03 -04:00
2023-06-25 17:14:28 +02:00
2018-10-29 10:01:44 +01:00
2021-04-29 09:27:19 -04:00
2023-06-25 17:14:28 +02:00
2024-04-30 05:54:03 +08:00
2021-04-29 20:42:16 -04:00
2023-06-26 11:29:12 +02:00
2023-07-25 05:07:13 -07:00
2021-04-27 09:21:34 -04:00
2023-06-19 08:40:33 -07:00
2023-01-03 10:07:43 +00:00
2023-06-25 17:14:28 +02:00