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

Bug 349383

Summary: Semantic Highlighting on boundaries does not update properly
Product: [WebTools] WTP Source Editing Reporter: Nick Sandonato <nsand.dev>
Component: wst.sseAssignee: Nick Sandonato <nsand.dev>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 Flags: thatnitind: review+
Version: 3.2.4   
Target Milestone: 3.2.5   
Hardware: All   
OS: All   
Whiteboard: WI72702
Attachments:
Description Flags
patch none

Description Nick Sandonato CLA 2011-06-14 18:34:42 EDT
When a document event occurs on boundaries of other semantic highlighting positions, no highlighting is applied at all.

say you have
foo:bar

where 'foo', ':', and 'bar' are highlighted by different highlighters. changing 'foo' to 'food' will cause the 'd' to not be highlighted at all. The proposed solution is for when the document event occurs on the boundary, if the previous position overlaps with the next position due to the event, update the position as if the event preceded it.
Comment 1 Nick Sandonato CLA 2011-06-14 18:35:58 EDT
Created attachment 197987 [details]
patch
Comment 2 Nick Sandonato CLA 2011-06-21 11:03:55 EDT
Code released to 3_2_maintenance and checked into HEAD.