2020-04-20 19:15:43 +02:00
|
|
|
## Syntax highlighting for CSS files.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2018-02-07 11:25:46 +01:00
|
|
|
syntax css "\.css$"
|
2016-05-25 22:13:50 +02:00
|
|
|
comment "/*|*/"
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2020-07-30 09:21:43 +02:00
|
|
|
# First make everything red:
|
2008-05-31 21:55:21 +00:00
|
|
|
color brightred "."
|
2020-07-30 09:21:43 +02:00
|
|
|
# Then everything between braces yellow:
|
2008-05-31 21:55:21 +00:00
|
|
|
color brightyellow start="\{" end="\}"
|
2020-07-30 09:21:43 +02: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 19:54:02 +02:00
|
|
|
color brightblue start="/\*" end="\*/"
|
2020-07-30 09:21:43 +02:00
|
|
|
|
|
|
|
# Syntactic characters:
|
2008-05-31 21:55:21 +00:00
|
|
|
color green ";|:|\{|\}"
|