mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
JavaHighlightingLexer: support two new escape sequences in string literals (IDEA-231527)
GitOrigin-RevId: ca884a706c6ae4056c6534c9d5e84aeb8bef5b71
This commit is contained in:
committed by
intellij-monorepo-bot
parent
608c3b5e0b
commit
a8e1ee46c9
@@ -4,11 +4,15 @@ class C {
|
||||
String invalid1 = <error descr="Illegal text block start: missing new line after opening quotes">""""""</error>;
|
||||
String invalid2 = <error descr="Illegal text block start: missing new line after opening quotes">""" """</error>;
|
||||
String invalid3 = <error descr="Illegal text block start: missing new line after opening quotes">"""\\n """</error>;
|
||||
String invalid4 = """
|
||||
invalid escape <error descr="Illegal escape character in string literal">\</error>
|
||||
continue;
|
||||
""";
|
||||
String invalid5 = """
|
||||
\n\n\n\n<error descr="Illegal escape character in string literal">\</error>
|
||||
""";
|
||||
|
||||
String s9 = "\s";
|
||||
String s10 = <error descr="Illegal escape character in string literal">" \ "</error>;
|
||||
|
||||
String valid1 = """
|
||||
\s
|
||||
""";
|
||||
|
||||
String valid2 = """
|
||||
\
|
||||
""";
|
||||
}
|
||||
Reference in New Issue
Block a user