Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349383 - Semantic Highlighting on boundaries does not update properly
Summary: Semantic Highlighting on boundaries does not update properly
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.sse (show other bugs)
Version: 3.2.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.2.5   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard: WI72702
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 18:34 EDT by Nick Sandonato CLA
Modified: 2011-06-21 11:03 EDT (History)
0 users

See Also:
thatnitind: review+


Attachments
patch (1.38 KB, patch)
2011-06-14 18:35 EDT, Nick Sandonato CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.