0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00
vim/runtime/syntax/testdir/input/java_methods_indent8.java
Aliaksei Budavei 06bdac1580
runtime(java): Stop handpicking syntax groups for @javaTop (#14727)
* runtime(java): Stop handpicking syntax groups for @javaTop

Also:

- Remove the obsolete comment for g:java_allow_cpp_keywords.
- Remove the commented out groups java\%[Debug\]StringError.
- Infer and set the preferred formatting Vim options from
  the modeline.

Since vim-6-0u, non-contained syntax groups can be referred
to by using the "contains=TOP..." argument.

* Set &encoding and &termencoding to "utf-8" for test files

* Limit non-ASCII charset to [§ƒɐɘʬʭΑ-Τα-μ] for test files

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-10 14:49:06 +02:00

93 lines
3.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// VIM_TEST_SETUP let g:java_highlight_functions = 'indent8'
// VIM_TEST_SETUP set encoding=utf-8 termencoding=utf-8
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
abstract class Indent8MethodsTests
{ // DO NOT retab! THIS FILE; REMEMBER ABOUT testdir/ftplugin.
// TYPES.
record Τʬ<α>(α a) { }
enum E
{
A("a"), B("b"), C("c"), D("d"),
E("e"), F("f"), G("g"), H("h");
final String s;
private E(String s) { this.s = s; }
}
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
@java.lang.annotation.Repeatable(Tɐggablɘs.class)
@interface Tɐggablɘ
{
String[] value() default "";
}
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
@interface Tɐggablɘs
{
Tɐggablɘ[] value();
}
interface Stylable<Α>
{
default void ascii$0_() { }
default Α μʭʭ$0_() { return null; }
}
// FIELDS.
private static final Class<?> CLASS_LOCK = classLock();
private final Object instanceLock = new Object();
// CONSTRUCTORS.
@Tɐggablɘ @Tɐggablɘ protected Indent8MethodsTests() { }
<T extends Comparable<T>> Indent8MethodsTests(T t, Void v) { }
private <T extends Comparable<T>> Indent8MethodsTests(T t) { }
// METHODS.
@Tɐggablɘ @Tɐggablɘ abstract void ascii$0_(////////////////
);
@Tɐggablɘ @Tɐggablɘ abstract <α, β> Τʬ<α> μʭʭ$0_(
/* TODO: @SuppressWarnings("bespoke")*/ β b);
@Tɐggablɘ private native void ascii$1_(/*////////////*/);
@Tɐggablɘ private native <α, β> Τʬ<α>[] μʭʭ$1_(
java.util.function.Function<β, Τʬ<α>[]> ƒ);
void Ascii$2_() { }
<T, U extends Stylable<T>> void Μʭʭ$2_(U u) { }
static final native synchronized void ascii$98_();
static final native synchronized <α, β> Τʬ<α>[][] μʭʭ$98_(
java.util.function.Function<β, Τʬ<α>[][]> ƒ);
@SuppressWarnings("strictfp")
protected static final synchronized strictfp void ascii$99_()
{ ascii$98_(); }
@SuppressWarnings("strictfp")
protected static final synchronized strictfp <α, β> Τʬ<α>[] μʭʭ$99_(
java.util.function.Function<β, Τʬ<α>[][]> ƒ)
{
return
Indent8MethodsTests.<α, β>μʭʭ$98_(ƒ)[0];
}
public static Class<?> classLock() { return Indent8MethodsTests.class; }
@Override @SuppressWarnings("cast")
public String toString() { return (String) "Indent8MethodsTests"; }
}
enum E8
{
@SuppressWarnings("bespoke") A("a"),
B("b"),
C("c"), D("d"),
E("e"), F("f"), G("g"), H("h");
final String s;
private E8(String s) { this.s = s; }
}