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