2020-04-20 20:15:43 +03:00
|
|
|
## Syntax highlighting for CSS files.
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2024-06-08 12:28:06 +03:00
|
|
|
## Original author: Simon Rupf
|
|
|
|
|
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:
|
2021-10-27 12:06:40 +03:00
|
|
|
color brightred "."
|
2020-07-30 10:21:43 +03:00
|
|
|
# Then everything between braces yellow:
|
2021-10-27 12:06:40 +03:00
|
|
|
color brightyellow start="\{" end="\}"
|
2020-07-30 10:21:43 +03:00
|
|
|
# Then everything after a colon white:
|
2021-10-27 12:06:40 +03:00
|
|
|
color brightwhite start=":" end="([;^{]|$)"
|
2020-07-30 10:21:43 +03:00
|
|
|
|
|
|
|
# Pseudo-classes:
|
2021-10-27 12:06:40 +03:00
|
|
|
color brightcyan ":(active|checked|focus|hover|link|visited|after|before)\>"
|
2020-07-30 10:21:43 +03:00
|
|
|
|
|
|
|
# Comments:
|
2021-10-27 12:06:40 +03:00
|
|
|
color brightblue start="/\*" end="\*/"
|
2020-07-30 10:21:43 +03:00
|
|
|
|
|
|
|
# Syntactic characters:
|
2021-10-27 12:06:40 +03:00
|
|
|
color green ";|:|\{|\}"
|