neovim/runtime
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
..
autoload vim-patch:52f2ff0: runtime(zip): revert unintended change to zip#Write() 2024-06-16 05:52:13 +08:00
colors vim-patch:9.1.0476: Cannot see matched text in popup menu 2024-06-15 04:47:23 +08:00
compiler vim-patch:0ddab58: runtime(java): Add a config variable for commonly used compiler options 2024-06-16 23:24:55 +02:00
doc vim-patch:beb02ed: runtime(java): Optionally highlight parameterised types 2024-06-21 11:03:47 +02:00
ftplugin vim-patch:6ccf6da: runtime(gomod): add gomod filetype plugin (#29433) 2024-06-21 12:36:57 +08:00
indent vim-patch:79da22d: runtime(kdl): fix KdlIndent and kdlComment in indent script (vim/vim#15019) 2024-06-16 12:00:58 +02:00
keymap vim-patch:79a14c0: runtime(keymap): include Georgian keymap 2024-06-14 23:58:27 +02:00
lua fix(treesitter): don't open fold when o/O adds a line below #28709 2024-06-20 06:37:09 -07:00
macros
pack/dist/opt Merge pull request #29413 from jiangyinzuo/vim-patch-9.1.0497 2024-06-20 12:29:47 +08:00
plugin
queries
spell
syntax vim-patch:beb02ed: runtime(java): Optionally highlight parameterised types 2024-06-21 11:03:47 +02:00
tools
tutor
CMakeLists.txt
delmenu.vim
filetype.lua
ftoff.vim
ftplugin.vim
ftplugof.vim
indent.vim
indoff.vim
macmap.vim
makemenu.vim
menu.vim
mswin.vim
neovim.ico
nvim.appdata.xml
nvim.desktop
nvim.png
optwin.vim
synmenu.vim