Files
Bas Leijdekkers 0aebe230e8 Java: add missing newline error on text block fragment (IJ-CR-113878)
GitOrigin-RevId: a62cddecc6b6974ffedbcfcd179fe675aa74112e
2023-08-31 15:17:13 +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">"""</error>\\n """;
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\""";
}