| Summary: | multi-line comment does not initially extend beyond a contained multi-line string | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Grant Gayed <grant_gayed> |
| Component: | Client | Assignee: | 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
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
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. This has been fixed a side effect of other changes, closing report. |