mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
3e1fc6385b
The different color will make the name stand out, as it should, instead of looking the same as all the regex strings.
19 lines
456 B
Plaintext
19 lines
456 B
Plaintext
## Here is an example for manpages.
|
|
|
|
syntax man "\.[1-9]x?$"
|
|
magic "troff or preprocessor input"
|
|
comment ".\""
|
|
|
|
color green "\.(SH|SS|TH) .*$"
|
|
color brightgreen "\.(SH|SS|TH) " "\.([HIT]P)"
|
|
color brightred "\.(B[IR]?|I[BR]?|R[BI]|S[BM]) .*$"
|
|
color brightblue "\.(B[IR]?|I[BR]?|R[BI]|S[BM]) " "\.([LP]?P)$"
|
|
color magenta "\\f[BIPR]"
|
|
color yellow "\.(br|DT|RS|RE|PD)"
|
|
|
|
# Comments.
|
|
color cyan "\.?\\\".*$"
|
|
|
|
# Trailing whitespace.
|
|
color ,green "[[:space:]]+$"
|