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