Skip to content

Add text blocks to Java #232

Description

@JackRabbit156

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'
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions