0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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:
Aliaksei Budavei
2024-06-23 10:03:33 +02:00
committed by Christian Brabandt
parent 88bbdb04c2
commit 01a4fb104d
112 changed files with 2099 additions and 86 deletions

View File

@@ -84,9 +84,21 @@ abstract class Indent4MethodsTests
enum E4
{
@SuppressWarnings("bespoke") A("a"),
B("b"),
C("c"), D("d"),
E("e"), F("f"), G("g"), H("h");
B("b"
/*\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\*/),
C("c", new Thread(
() -> {
})), D("d", (java.util.function.BooleanSupplier) () -> true),
E("e", new char[] { 'a', 'b', 'c', 'd' }), F("f", new Object() {
transient String name = "";
@Override public String toString() { return this.name; }
}), //\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//
G("g"), @Deprecated H("h");
final String s;
private E4(String s) { this.s = s; }
private <δ> E4(String s, δ dummy) { this(s); }
@Override public String toString() { return name().toUpperCase(); }
}