Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 549994 - [13] Syntax highlighting for text block doesn't work when \""" escaping is used
Summary: [13] Syntax highlighting for text block doesn't work when \""" escaping is used
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.12   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: BETA J13   Edit
Assignee: Kalyan Prasad Tatavarthi CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 548096
  Show dependency tree
 
Reported: 2019-08-13 04:07 EDT by Jay Arthanareeswaran CLA
Modified: 2019-08-14 06:09 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Arthanareeswaran CLA 2019-08-13 04:07:49 EDT
From JEP 355:

... sequences of three " characters require the escaping of at least one " to avoid mimicking the closing delimiter:

String code = 
    """
    String text = \"""
        A text block inside a text block
    \""";
    """;

But looks like the editor doesn't recognize this escaping and marks the text block as closed once \""" is encountered.
Comment 1 Eclipse Genie CLA 2019-08-14 02:20:12 EDT
New Gerrit change created: https://git.eclipse.org/r/147671