mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 02:39:37 +07:00
Greedy unclosed code blocks
This commit is contained in:
@@ -3,4 +3,5 @@ PsiJavaFile:BlockIncomplete0.java
|
||||
PsiJavaToken:LBRACE('{')
|
||||
PsiErrorElement:'}' expected
|
||||
<empty list>
|
||||
PsiWhiteSpace(' ')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiComment(C_STYLE_COMMENT)('/*}')
|
||||
@@ -34,7 +34,7 @@ public class ClassParsingTest extends JavaParsingTestCase {
|
||||
public void testLongClass() { doTest(false); }
|
||||
public void testIncompleteAnnotation() { doTest(true); }
|
||||
|
||||
public void testExtraOpeningBraceInMethod() { doTestDefaultParser(true); } // todo: fix
|
||||
public void testExtraOpeningBraceInMethod() { doTest(true); }
|
||||
public void testExtraClosingBraceInMethod() { doTest(true); }
|
||||
|
||||
public void testErrors0() { doTest(true); }
|
||||
|
||||
@@ -33,7 +33,7 @@ public class StatementParserTest extends JavaParsingTestCase {
|
||||
public void testBlockSimple() { doParserTest("{ {} }"); }
|
||||
public void testBlockEmpty() { doParserTest("{ ; }"); }
|
||||
public void testAnonymousInSmartCompletion() { doParserTest("{ new Foo(hash\n#) {};\n new Foo(hash\n#, bar) {};\n new Foo(hash\n#x) {}; }"); }
|
||||
public void testBlockIncomplete0() { doParserTest("{ "); }
|
||||
public void testBlockIncomplete0() { doParserTest("{ /*}"); }
|
||||
public void testBlockIncomplete1() { doParserTest("{ { }"); }
|
||||
public void testBlockIncomplete2() { doParserTest("{ else; catch; finally; }"); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user