Test for EA-41250 - E: _JetLexer.zzScanError - Could not match input
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
fun foo() {
|
||||||
|
"\
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
JetFile: BackslashInString.kt
|
||||||
|
PACKAGE_DIRECTIVE
|
||||||
|
<empty list>
|
||||||
|
FUN
|
||||||
|
PsiElement(fun)('fun')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
PsiElement(IDENTIFIER)('foo')
|
||||||
|
VALUE_PARAMETER_LIST
|
||||||
|
PsiElement(LPAR)('(')
|
||||||
|
PsiElement(RPAR)(')')
|
||||||
|
PsiWhiteSpace(' ')
|
||||||
|
BLOCK
|
||||||
|
PsiElement(LBRACE)('{')
|
||||||
|
PsiWhiteSpace('\n ')
|
||||||
|
STRING_TEMPLATE
|
||||||
|
PsiElement(OPEN_QUOTE)('"')
|
||||||
|
PsiErrorElement:Unexpected token in a string template
|
||||||
|
PsiElement(BAD_CHARACTER)('\')
|
||||||
|
PsiErrorElement:Expecting '"'
|
||||||
|
<empty list>
|
||||||
|
PsiWhiteSpace('\n')
|
||||||
|
PsiElement(RBRACE)('}')
|
||||||
@@ -84,6 +84,11 @@ public class JetParsingTestGenerated extends AbstractJetParsingTest {
|
|||||||
doParsingTest("compiler/testData/psi/BabySteps_ERR.kt");
|
doParsingTest("compiler/testData/psi/BabySteps_ERR.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("BackslashInString.kt")
|
||||||
|
public void testBackslashInString() throws Exception {
|
||||||
|
doParsingTest("compiler/testData/psi/BackslashInString.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("BlockCommentAtBeginningOfFile1.kt")
|
@TestMetadata("BlockCommentAtBeginningOfFile1.kt")
|
||||||
public void testBlockCommentAtBeginningOfFile1() throws Exception {
|
public void testBlockCommentAtBeginningOfFile1() throws Exception {
|
||||||
doParsingTest("compiler/testData/psi/BlockCommentAtBeginningOfFile1.kt");
|
doParsingTest("compiler/testData/psi/BlockCommentAtBeginningOfFile1.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user