mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-12 05:54:00 +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>
26 lines
604 B
Plaintext
26 lines
604 B
Plaintext
## Here is an example for Guile Scheme.
|
|
|
|
syntax "guile" "\.scm$"
|
|
header "^#!.*guile"
|
|
magic "guile"
|
|
comment ";"
|
|
|
|
# Basic scheme functions
|
|
color green "\<(do|if|lambda|let(rec)?|map|unless|when)\>"
|
|
# Defining things
|
|
color brightcyan "\<define(-macro|-module|-public|-syntax)?\>"
|
|
# Quoted symbols
|
|
color brightyellow "'\<(\w|-)+\>"
|
|
# Chars
|
|
color brightmagenta "#\\."
|
|
color brightmagenta "#\\\w+\>"
|
|
# Booleans
|
|
color brightred "(#t|#f)\>"
|
|
# Keywords
|
|
color blue "#?:(\w|[?-])+"
|
|
# Strings
|
|
color yellow start="^[[:blank:]]+\"" end="[^\]\""
|
|
color yellow ""(\\.|[^"])*""
|
|
# Comments
|
|
color cyan "(^|[[:space:]]);.*$"
|