Java: more accurate highlighting of illegal escape sequences in strings

GitOrigin-RevId: 6461c554d2e44cf4e33278daefa924c73d0ca662
This commit is contained in:
Bas Leijdekkers
2022-07-14 14:38:46 +02:00
committed by intellij-monorepo-bot
parent f0f3f4098c
commit b31a73dd10
4 changed files with 54 additions and 24 deletions

View File

@@ -6,7 +6,7 @@ class C {
String invalid3 = <error descr="Illegal text block start: missing new line after opening quotes">"""\\n """</error>;
String s9 = "\s";
String s10 = <error descr="Illegal escape character in string literal">" \ "</error>;
String s10 = " <error descr="Illegal escape character in string literal">\ </error>";
String valid1 = """
\s