Fix lexing Java string literals containing a broken unicode escape (IDEA-293903)

GitOrigin-RevId: 3d2e29f7123b34b9f4837e008390636a01372802
This commit is contained in:
Bas Leijdekkers
2022-05-12 16:27:58 +02:00
committed by intellij-monorepo-bot
parent 4572d95998
commit f64ade1d8f
4 changed files with 97 additions and 61 deletions

View File

@@ -28,7 +28,7 @@ public class a {
};
String s1 = <error descr="Illegal escape character in string literal">"\xd"</error>;
String s11= <error descr="Illegal line end in string literal">"\udX";</error><EOLError descr="';' expected"></EOLError>
String s11= <error descr="Illegal escape character in string literal">"\udX"</error>;
String s12= <error descr="Illegal escape character in string literal">"c:\TEMP\test.jar"</error>;
String s3 = "";
String s4 = "\u0000";