2020-04-20 17:15:43 +00:00
|
|
|
## Syntax highlighting for CSS files.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2018-02-07 10:25:46 +00:00
|
|
|
syntax css "\.css$"
|
2016-05-25 20:13:50 +00:00
|
|
|
comment "/*|*/"
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2020-07-30 07:21:43 +00:00
|
|
|
# First make everything red:
|
2008-05-31 21:55:21 +00:00
|
|
|
color brightred "."
|
2020-07-30 07:21:43 +00:00
|
|
|
# Then everything between braces yellow:
|
2008-05-31 21:55:21 +00:00
|
|
|
color brightyellow start="\{" end="\}"
|
2020-07-30 07:21:43 +00:00
|
|
|
# Then everything after a colon white:
|
|
|
|
color brightwhite start=":" end="([;^{]|$)"
|
|
|
|
|
|
|
|
# Pseudo-classes:
|
|
|
|
color brightcyan ":(active|checked|focus|hover|link|visited|after|before)\>"
|
|
|
|
|
|
|
|
# Comments:
|
2020-07-26 17:54:02 +00:00
|
|
|
color brightblue start="/\*" end="\*/"
|
2020-07-30 07:21:43 +00:00
|
|
|
|
|
|
|
# Syntactic characters:
|
2008-05-31 21:55:21 +00:00
|
|
|
color green ";|:|\{|\}"
|