Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/textBlocks/TextBlocks.java
Bas Leijdekkers 304a1c2df5 Highlight incorrect escape instead of entire string literal
GitOrigin-RevId: 5455c5b43f8b19161dfa23643c197c8136cbbeff
2022-07-18 23:37:59 +00:00

25 lines
785 B
Java

class C {
String empty = """
""";
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 s9 = "\s";
String s10 = " <error descr="Illegal escape character in string literal">\ </error>";
String valid1 = """
\s
""";
String valid2 = """
\
""";
String valid3 = """\u000Ahello""";
String valid4 = """\u0020\u0020\u0020\u000Dhello""";
String valid5 = \u0022\u0022\u0022\u0020\u0020\u0020\u000Ahello""";
String backSlash1 = """
\u005c\""";
}