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

Bug 423269

Summary: multi-line comment does not initially extend beyond a contained multi-line string
Product: [ECD] Orion Reporter: Grant Gayed <grant_gayed>
Component: ClientAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 5.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Grant Gayed CLA 2013-12-04 22:22:46 EST
- I20131202-2230
- also happens with the old styler

- start with .js file:

//    /* */    /* 
100

- initially highlights fine
- delete character 2, causes line 2 to appear commented (good)
- undelete this character and note that line 2 does not return to its non-commented colour
- press any key and now line 2 is re-coloured correctly
Comment 1 Grant Gayed CLA 2013-12-04 23:19:40 EST
Another case, hopefully the same issue (also happens in the old and new stylers):

function clone(obj) {
	/* comment */
	if (obj instanceof Array) {
		return obj.slice(0);
	}
	var z = "hjlkhjl\
		fghjfgj\
		nbvc";
	return obj;
}

- on line 2 remove the last '/' and note that the block comment is extended down through the second-last line (but does not include the last line)
- press another key and note that this now extends the block comment to include the last line
Comment 2 Grant Gayed CLA 2014-02-10 12:54:41 EST
The comment 0 case is now working, but the comment 1 case is not, so these did not actually have the same cause.  Renaming report to describe the comment 1 problem.
Comment 3 Grant Gayed CLA 2014-05-06 14:16:43 EDT
This has been fixed a side effect of other changes, closing report.