[java] text blocks: basic highlighting (IDEA-215312)

GitOrigin-RevId: 66780cacc839496911748c788ef8ca79a6cd0c9d
This commit is contained in:
Roman Shevchenko
2019-06-16 05:20:01 +03:00
committed by intellij-monorepo-bot
parent ec5748085c
commit 74f5d16bd7
7 changed files with 46 additions and 1 deletions
@@ -0,0 +1,7 @@
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>;
}
@@ -0,0 +1,4 @@
class C {
String unclosed = """
\""";
}<EOLError descr="Unclosed text block"></EOLError><EOLError descr="'}' expected"></EOLError><EOLError descr="';' expected"></EOLError>