From 01a4fb104dbee6a8b7ef20394a2a7c5b49cf49ca Mon Sep 17 00:00:00 2001 From: Aliaksei Budavei <0x000c70@gmail.com> Date: Sun, 23 Jun 2024 10:03:33 +0200 Subject: runtime(java): Compose "g:java_highlight_signature" and "g:java_highlight_functions" With the variables defined, distinctly highlight parts of a method declaration header: its name and parameter list parens, from its type parameters, return type, and formal parameters; and distinctly highlight parts of a lambda expression: its parameter list parens and the arrow, from its formal parameters and identifiers. closes: #15083 Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt --- runtime/doc/syntax.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'runtime/doc') diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 1460edd449..57db7cbfee 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 9.1. Last change: 2024 Jun 19 +*syntax.txt* For Vim version 9.1. Last change: 2024 Jun 22 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2032,6 +2032,13 @@ However, if you follow the Java guidelines about how functions and classes are supposed to be named (with respect to upper- and lowercase) and there is any amount of indentation, you may want to set > :let java_highlight_functions="style" +In addition, you can combine any value of "java_highlight_functions" with > + :let java_highlight_signature=1 +to have the name of a function with its parameter list parens distinctly +highlighted from its type parameters, return type, and formal parameters; and +to have the parameter list parens of a lambda expression with its arrow +distinctly highlighted from its formal parameters or identifiers. + If neither setting does work for you, but you would still want headers of function declarations to be highlighted, modify the current syntax definitions or compose new ones. -- cgit v1.2.3