mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
java highlighting tests moved to community
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
// continue outside of.../loop label
|
||||
public class a {
|
||||
|
||||
void f() {
|
||||
<error descr="Continue outside of loop">continue;</error>
|
||||
while (true) {
|
||||
continue;
|
||||
}
|
||||
do { continue; } while (true);
|
||||
switch (1) {
|
||||
case 1: <error descr="Continue outside of loop">continue;</error>
|
||||
}
|
||||
for (;;) {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
new ff() {
|
||||
void f() {
|
||||
<error descr="Continue outside of loop">continue;</error>
|
||||
}
|
||||
};
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
while (true) {
|
||||
class s {
|
||||
{
|
||||
<error descr="Continue outside of loop">continue;</error>
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
do {
|
||||
class s {
|
||||
{
|
||||
<error descr="Continue outside of loop">continue;</error>
|
||||
}
|
||||
}
|
||||
continue;
|
||||
} while (true);
|
||||
|
||||
|
||||
|
||||
a:
|
||||
if (2==4) {
|
||||
for (;;) {
|
||||
<error descr="Not a loop label: 'a'">continue a;</error>
|
||||
}
|
||||
}
|
||||
|
||||
a:
|
||||
b:
|
||||
for (;;) {
|
||||
<error descr="Not a loop label: 'a'">continue a;</error>
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class ff {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user