summaryrefslogtreecommitdiffstats
path: root/runtime/doc
diff options
context:
space:
mode:
authorAliaksei Budavei <0x000c70@gmail.com>2024-06-23 10:03:33 +0200
committerChristian Brabandt <cb@256bit.org>2024-06-23 10:03:33 +0200
commit01a4fb104dbee6a8b7ef20394a2a7c5b49cf49ca (patch)
treeb2df9c63ab2428805a55879bec9ec6effb8fa710 /runtime/doc
parent88bbdb04c2776ba69b8e5da58051fd94f8842b03 (diff)
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>
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/syntax.txt9
1 files changed, 8 insertions, 1 deletions
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.