syntax: css: differentiate pseudo-classes (now cyan) from comments (blue)
Also, add comments, remove a duplicated ":link", and add ":checked".master
parent
c561b4280f
commit
9517766aab
|
@ -3,9 +3,18 @@
|
||||||
syntax css "\.css$"
|
syntax css "\.css$"
|
||||||
comment "/*|*/"
|
comment "/*|*/"
|
||||||
|
|
||||||
|
# First make everything red:
|
||||||
color brightred "."
|
color brightred "."
|
||||||
|
# Then everything between braces yellow:
|
||||||
color brightyellow start="\{" end="\}"
|
color brightyellow start="\{" end="\}"
|
||||||
color brightwhite start=":" end="([;^\{]|$)"
|
# Then everything after a colon white:
|
||||||
color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before"
|
color brightwhite start=":" end="([;^{]|$)"
|
||||||
|
|
||||||
|
# Pseudo-classes:
|
||||||
|
color brightcyan ":(active|checked|focus|hover|link|visited|after|before)\>"
|
||||||
|
|
||||||
|
# Comments:
|
||||||
color brightblue start="/\*" end="\*/"
|
color brightblue start="/\*" end="\*/"
|
||||||
|
|
||||||
|
# Syntactic characters:
|
||||||
color green ";|:|\{|\}"
|
color green ";|:|\{|\}"
|
||||||
|
|
Loading…
Reference in New Issue