mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-29 16:13:27 +03:00
9517766aab
Also, add comments, remove a duplicated ":link", and add ":checked".
21 lines
505 B
Plaintext
21 lines
505 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 ";|:|\{|\}"
|