Description
In Java you can use multiline Strings with text blocks since 2020.
Please add highlighting for text blocks to Java.
At the moment their highlighting looks broken, because of the default double quoted String highlighting.
Example Code
String test = """
line 1
line 2
line 3""";
Suggested Rule
{
regex: /"""[\s\S]*?"""/g,
type: 's0'
}
or a possible alternative:
{
regex: /"""(?:(?!""")[\s\S])*"""/g,
type: 's0'
}
Description
In Java you can use multiline Strings with text blocks since 2020.
Please add highlighting for text blocks to Java.
At the moment their highlighting looks broken, because of the default double quoted String highlighting.
Example Code
Suggested Rule
or a possible alternative: