Add EOL to EXPRESSION_FOLLOW recovery set

This change is used in further commits, but it's extracted
to emphasize that testData modifications are caused by this.
This commit is contained in:
Denis Zharkov
2016-07-13 11:37:14 +03:00
parent e224041760
commit fcb870a303
2 changed files with 16 additions and 7 deletions
@@ -128,7 +128,7 @@ public class KotlinExpressionParsing extends AbstractKotlinParsing {
TokenSet.create(EOL_OR_SEMICOLON));
/*package*/ static final TokenSet EXPRESSION_FOLLOW = TokenSet.create(
SEMICOLON, ARROW, COMMA, RBRACE, RPAR, RBRACKET
EOL_OR_SEMICOLON, ARROW, COMMA, RBRACE, RPAR, RBRACKET
);
@SuppressWarnings({"UnusedDeclaration"})
+15 -6
View File
@@ -28,10 +28,19 @@ JetFile: ShebangIncorrect.kts
PsiElement(DIV)('/')
OPERATION_REFERENCE
PsiElement(IDENTIFIER)('usr')
PsiWhiteSpace('\n\n')
PsiErrorElement:Expecting an element
PsiElement(HASH)('#')
PsiErrorElement:Unexpected tokens (use ';' to separate expressions on the same line)
PsiElement(EXCL)('!')
PsiElement(DIV)('/')
PsiElement(IDENTIFIER)('hi')
<empty list>
PsiWhiteSpace('\n\n')
PsiErrorElement:Expecting an element
PsiElement(HASH)('#')
SCRIPT_INITIALIZER
BINARY_EXPRESSION
PREFIX_EXPRESSION
OPERATION_REFERENCE
PsiElement(EXCL)('!')
PsiErrorElement:Expecting an element
PsiElement(DIV)('/')
OPERATION_REFERENCE
PsiElement(IDENTIFIER)('hi')
PsiErrorElement:Expecting an element
<empty list>