mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 21:01:24 +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.
25 lines
588 B
Plaintext
25 lines
588 B
Plaintext
## Here is an example for Guile Scheme.
|
|
|
|
syntax guile "\.scm$"
|
|
header "^#!.*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:]]);.*$"
|