File: css.nanorc

package info (click to toggle)
nano 8.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,632 kB
  • sloc: ansic: 78,234; sh: 4,960; makefile: 219; sed: 16
file content (22 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Syntax highlighting for CSS files.

## Original author:  Simon Rupf

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 ";|:|\{|\}"