Do not try to lazy parse a block without opening bracket

It can consume the whole file in such case
which will result PsiBuilder going crazy

#KT-36191 fixed
This commit is contained in:
Ilya Kirillov
2020-04-15 20:00:32 +03:00
parent 4f9364f997
commit 1535873c07
6 changed files with 96 additions and 5 deletions
@@ -2742,6 +2742,16 @@ public class ParsingTestGenerated extends AbstractParsingTest {
public void testRawStringsWithManyQuotes() throws Exception {
runTest("compiler/testData/psi/stringTemplates/RawStringsWithManyQuotes.kt");
}
@TestMetadata("StringTemplateWithTryWithoutBlockInLongEntry.kt")
public void testStringTemplateWithTryWithoutBlockInLongEntry() throws Exception {
runTest("compiler/testData/psi/stringTemplates/StringTemplateWithTryWithoutBlockInLongEntry.kt");
}
@TestMetadata("StringTemplateWithTryWithoutBlockInShortEntry.kt")
public void testStringTemplateWithTryWithoutBlockInShortEntry() throws Exception {
runTest("compiler/testData/psi/stringTemplates/StringTemplateWithTryWithoutBlockInShortEntry.kt");
}
}
}