[Parser] Fix OOM in parsing of incorrect string literals

^KT-46455 Fixed
KT-34410
KT-46564
This commit is contained in:
Dmitriy Novozhilov
2021-05-10 12:20:26 +03:00
committed by TeamCityServer
parent c284eab2dd
commit 3532ce7fbc
5 changed files with 79 additions and 2 deletions
@@ -2787,6 +2787,11 @@ public class ParsingTestGenerated extends AbstractParsingTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/psi/stringTemplates"), Pattern.compile("^(.*)\\.kts?$"), null, true);
}
@TestMetadata("kt46455.kt")
public void testKt46455() throws Exception {
runTest("compiler/testData/psi/stringTemplates/kt46455.kt");
}
@TestMetadata("RawStringsWithManyQuotes.kt")
public void testRawStringsWithManyQuotes() throws Exception {
runTest("compiler/testData/psi/stringTemplates/RawStringsWithManyQuotes.kt");