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:
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user