syntax: css: differentiate pseudo-classes (now cyan) from comments (blue)

Also, add comments, remove a duplicated ":link", and add ":checked".
master
Benno Schulenberg 2020-07-30 09:21:43 +02:00
parent c561b4280f
commit 9517766aab
1 changed files with 11 additions and 2 deletions

View File

@ -3,9 +3,18 @@
syntax css "\.css$"
comment "/*|*/"
# First make everything red:
color brightred "."
# Then everything between braces yellow:
color brightyellow start="\{" end="\}"
color brightwhite start=":" end="([;^\{]|$)"
color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before"
# Then everything after a colon white:
color brightwhite start=":" end="([;^{]|$)"
# Pseudo-classes:
color brightcyan ":(active|checked|focus|hover|link|visited|after|before)\>"
# Comments:
color brightblue start="/\*" end="\*/"
# Syntactic characters:
color green ";|:|\{|\}"