mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-04 18:32:10 +03:00
6a2032f5b0
This allows for commenting or uncommenting a line or a bunch of lines with a single keystroke (default binding: M-3). The characters used for commenting/uncommenting are specified by the active syntax file. Reviewed-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Mike Scalora <mike@scalora.org>
19 lines
463 B
Plaintext
19 lines
463 B
Plaintext
## Here is an example for manpages.
|
|
|
|
syntax "man" "\.[1-9]x?$"
|
|
magic "troff or preprocessor input text"
|
|
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:]]+$"
|