[Parser] Fix parsing of unfinished dot access in string template
Problem appeared in cases like this: "{someVar.}"
#KT-34440 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
8999fd88b1
commit
329066a4f3
@@ -105,7 +105,7 @@ import static org.jetbrains.kotlin.lexer.KtTokens.*;
|
||||
IElementType tt = tt();
|
||||
if (recoverySet == null ||
|
||||
recoverySet.contains(tt) ||
|
||||
tt == LBRACE || tt == RBRACE ||
|
||||
tt == LBRACE || tt == RBRACE || tt == LONG_TEMPLATE_ENTRY_END ||
|
||||
(recoverySet.contains(EOL_OR_SEMICOLON) && (eof() || tt == SEMICOLON || myBuilder.newlineBeforeCurrentToken()))) {
|
||||
error(message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user