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

Bug 380305

Summary: CSS color values not styled properly
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bochenekgeorge, Mike_Wilson, Silenio_Quarti
Version: 0.5Flags: bochenekgeorge: review?
Target Milestone: 1.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2012-05-22 13:41:25 EDT
1. Create a .css file
2. Add a rule like this:

 .foo {
    color: #26abcd;
 }

3. Note that the '26' is highlighted differently from the rest of the color value.

It is probably trying to be parsed as a JS-style number literal.
Comment 1 George Bochenek CLA 2012-07-05 22:03:32 EDT
Disabled number parsing for CSS pages:

fork url: git://github.com/gbochenek/orion.client.git
branch: master
commit id: 0170c0e73bf1ffe54789382784c5ad1f9cb7dfb8
Comment 2 Silenio Quarti CLA 2012-07-09 16:56:29 EDT
We should add support to properly highlight literal numbers and colors in CSS files.  Until that is done, it is reasonable to disable number syntax highlighting for CSS.

Pushed
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=3ea2e917b813095d6a7e71e8e11e08fe4b272ac6