diff options
author | Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com> | 2024-05-10 15:49:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 14:49:06 +0200 |
commit | 06bdac158072b90560915f8e664ee6d9bdab2f9b (patch) | |
tree | d97b5335109a89f164364755a9e0daf3ee079df7 /runtime/syntax/testdir/input/java_methods_indent2.java | |
parent | 67797191e039196128c69ba1538ccaf2a4711323 (diff) |
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>
Diffstat (limited to 'runtime/syntax/testdir/input/java_methods_indent2.java')
-rw-r--r-- | runtime/syntax/testdir/input/java_methods_indent2.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/runtime/syntax/testdir/input/java_methods_indent2.java b/runtime/syntax/testdir/input/java_methods_indent2.java index 63b65b7407..7e6d62c60b 100644 --- a/runtime/syntax/testdir/input/java_methods_indent2.java +++ b/runtime/syntax/testdir/input/java_methods_indent2.java @@ -1,5 +1,5 @@ // VIM_TEST_SETUP let g:java_highlight_functions = 'indent2' - +// VIM_TEST_SETUP set encoding=utf-8 termencoding=utf-8 import java.lang.annotation.ElementType; import java.lang.annotation.Target; @@ -9,12 +9,12 @@ abstract class Indent2MethodsTests // TYPES. record Τʬ<α>(α a) { } - enum 𝓔 + enum E { - A("𝕬"), B("𝕭"), C("𝕮"), D("𝕯"), - E("𝕰"), F("𝕱"), G("𝕲"), H("𝕳"); - final String 𝐬; - private 𝓔(String 𝐬) { this.𝐬 = 𝐬; } + 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}) @@ -50,7 +50,7 @@ abstract class Indent2MethodsTests @Tɐggablɘ @Tɐggablɘ abstract void ascii$0_(//////////////// ); @Tɐggablɘ @Tɐggablɘ abstract <α, β> Τʬ<α> μʭʭ$0_( - /* TODO: @SuppressWarnings("bespoke")*/ β 𝛽); + /* TODO: @SuppressWarnings("bespoke")*/ β b); @Tɐggablɘ private native void ascii$1_(/*////////////*/); @Tɐggablɘ private native <α, β> Τʬ<α>[] μʭʭ$1_( @@ -81,12 +81,12 @@ abstract class Indent2MethodsTests public String toString() { return (String) "Indent2MethodsTests"; } } -enum 𝓔 +enum E2 { - @SuppressWarnings("bespoke") A("𝗔"), - B("𝗕"), - C("𝗖"), D("𝗗"), - E("𝗘"), F("𝗙"), G("𝗚"), H("𝗛"); - final String 𝐬; - private 𝓔(String 𝐬) { this.𝐬 = 𝐬; } + @SuppressWarnings("bespoke") A("a"), + B("b"), + C("c"), D("d"), + E("e"), F("f"), G("g"), H("h"); + final String s; + private E2(String s) { this.s = s; } } |