diff --git a/Java/tests/syntax_test_java.java b/Java/tests/syntax_test_java.java index a19dda3bb0..60f00ffd05 100644 --- a/Java/tests/syntax_test_java.java +++ b/Java/tests/syntax_test_java.java @@ -4671,6 +4671,22 @@ void declarePrimitiveTypes() { // ^^^^^ constant.other.java // ^ punctuation.terminator.java + int.foo bar +// ^^^^^^^^ meta.declaration.type.java +// ^^^ meta.declaration.identifier.java +// ^^^ storage.type.primitive.java +// ^ invalid.illegal.unexpected-accessor.java +// ^^^ invalid.illegal.unexpected-member.java +// ^^^ variable.other.java + + int.class foo +// ^^^^^^^^^^ meta.declaration.type.java +// ^^^ meta.declaration.identifier.java +// ^^^ storage.type.primitive.java +// ^ invalid.illegal.unexpected-accessor.java +// ^^^^^ invalid.illegal.unexpected-member.java +// ^^^ variable.other.java + int[] // ^^^^^^ - meta.declaration // ^^^ storage.type.primitive.java @@ -4688,6 +4704,24 @@ void declarePrimitiveTypes() { // ^^ storage.modifier.array.java // ^^^ variable.other.java + int[].foo bar +// ^^^^^^^^^^ meta.declaration.type.java +// ^^^ meta.declaration.identifier.java +// ^^^ storage.type.primitive.java +// ^^ storage.modifier.array.java +// ^ invalid.illegal.unexpected-accessor.java +// ^^^ invalid.illegal.unexpected-member.java +// ^^^ variable.other.java + + int[].class foo +// ^^^^^^^^^^^^ meta.declaration.type.java +// ^^^ meta.declaration.identifier.java +// ^^^ storage.type.primitive.java +// ^^ storage.modifier.array.java +// ^ invalid.illegal.unexpected-accessor.java +// ^^^^^ invalid.illegal.unexpected-member.java +// ^^^ variable.other.java + int foo[], [] ; // ^^^^ meta.declaration.type.java // ^^^^^ meta.declaration.identifier.java