Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/textBlocks/TextBlocks.java
Artemiy Sartakov a8e1ee46c9 JavaHighlightingLexer: support two new escape sequences in string literals (IDEA-231527)
GitOrigin-RevId: ca884a706c6ae4056c6534c9d5e84aeb8bef5b71
2020-01-28 05:42:24 +00:00

18 lines
579 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 = """
\
""";
}