Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 499483

Summary: Properties File Editor wrong highlighting with a preceding backslash character
Product: [Eclipse Project] JDT Reporter: Shinji Kashihara <kashihara>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard: stalebug

Description Shinji Kashihara CLA 2016-08-10 02:38:56 EDT
# Correct highlighting (Unicode escape)
foo\u0020bar=barefoot

- foo\u0020bar => black
- barefoot => blue

# Incorrect highlighting (Preceding backslash)
foo\ bar=barefoot

- foo => black
- bar=barefoot => blue


Java Properties Specification
https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html

The key contains all of the characters in the line starting with the first non-white space character and up to, but not including, the first unescaped '=', ':', or white space character other than a line terminator. All of these key termination characters may be included in the key by escaping them with a preceding backslash character; for example,

\:\=
Comment 1 Eclipse Genie CLA 2020-05-07 09:44:31 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.