New Java parser (incomplete parenthesized expression parsing fixed)

This commit is contained in:
Roman Shevchenko
2010-08-10 17:44:33 +04:00
parent 7f8ba694f2
commit d6ec09cf71
3 changed files with 12 additions and 1 deletions
@@ -0,0 +1,5 @@
PsiJavaFile:Parenth2.java
PsiParenthesizedExpression:(
PsiJavaToken:LPARENTH('(')
PsiErrorElement:Expression expected
<empty list>
@@ -49,6 +49,7 @@ public class ExpressionParserTest extends JavaParsingTestCase {
public void testParenth0() { doParserTest("(c)"); }
public void testParenth1() { doParserTest("(this).f--"); }
public void testParenth2() { doParserTest("("); }
public void testNewInExprList() { doParserTest("call(new)"); }