mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 22:29:42 +03:00
0e1d45dc36
Also, trim some whitespace and group one rule better. Also, fix a stray closing parenthesis in the JSON syntax, and add the missing slash to the possible escaped characters. (Reference: https://www.json.org/json-en.html.) Also, improve the ending of multiline strings in the Rust syntax.
21 lines
485 B
Plaintext
21 lines
485 B
Plaintext
## Syntax highlighting for CSS files.
|
|
|
|
syntax css "\.css$"
|
|
comment "/*|*/"
|
|
|
|
# First make everything red:
|
|
color brightred "."
|
|
# Then everything between braces yellow:
|
|
color brightyellow start="\{" end="\}"
|
|
# 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 ";|:|\{|\}"
|