Closed Bug 725586 Opened 12 years ago Closed 10 years ago

Source Editor does not preserve syntax highlighting over line continuations

Categories

(DevTools :: Source Editor, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cedricv, Assigned: anton)

References

Details

(Whiteboard: [sourceeditor][orion])

Example:

1 body {
2   background-image: url('data:image/png;base64, \
3 iVBORw0KGgoAAAANSUhEUgAAACoAAAAwCAMAAABQUBiUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ \
4 bWFnZVJlYWR5ccllPAAAAJxQTFRFAAAA=');
5 }

The color at the end of line 2 isn't preserved for lines 3 and 4 as expected.
Is that allowed in CSS?
Yes it is.
The same problem happens with line continuations in JavaScript mode too :

var foo = "foo\
bar");
Thanks then!

I'll ping the upstream team about this.
Whiteboard: [sourceeditor][orion]
Version: unspecified → Trunk
Not even Vim handles line continuations in JS strings... but newlines are allowed in CSS strings.
Reported the bug upstream:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=381685

Thanks for your report!
This is now fixed upstream. We should take this fix in the next Orion update.
Depends on: 759351
Moving to Source Editor component.

Filter on CHELICERAE.
Component: Developer Tools → Developer Tools: Source Editor
Assigning to me to see if this is still an issue with CM.
Assignee: nobody → anton
This is not an issue with CM: http://cl.ly/image/2u1T2N1U3o3B
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.