doddoreul / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

CSS Syntax-Highlighting won't recognize all keywords #216

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The CSS rules for this code won't be highlighted equally:

    .first_rule {
       font-size: 12px;
    }
    .second_rule:hover {
       font-size: 12px;
    }

`.first_rule` will have a plain black color, but `.second_rule` will be 
highlighted in blue because it is interpreted a keyword. It seems as if 
`.first_rule` would also become a keyword, as soon as I append a pseudo class 
(or anything else beginning with a  colon) to it. This lets the user assume 
that there is a difference between the two kinds of identifiers, but indeed 
there isn't.

Please have a look here to see this in action: 
http://meta.stackoverflow.com/questions/132758/syntax-highlighting-wont-recogniz
e-all-css-keywords

Original issue reported on code.google.com by twiligh7sparkle on 16 May 2012 at 11:29