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 <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
88bbdb04c2
commit
01a4fb104d
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user