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

Bug 435986

Summary: JS regex literal highlighted incorrectly after typing
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: grant_gayed
Version: 5.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2014-05-27 16:56:18 EDT
1. Create a .js file containing this single regex literal:
 /hi there/

2. Insert a slash as shown. This will terminate the regex literal after "hi":
 /hi/ there/

3. Now put a backslash in front of the slash, which escapes it:
 /hi\/ there/

4. I expected this to highlight the entire line as a literal again, but it does not -- the literal highlighting stops at the escaped slash. This is wrong.

If you reload the editor after step 3, the highlighting is correct. So I think this is a bug in the text styler's damage handling.
Comment 1 John Arthorne CLA 2015-05-05 14:43:23 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html