2020-04-20 17:15:43 +00:00
|
|
|
## This is an example of a default syntax. The default syntax is used for
|
2017-05-19 17:57:45 +00:00
|
|
|
## files that do not match any other syntax.
|
2014-05-18 10:34:18 +00:00
|
|
|
|
2018-02-07 10:25:46 +00:00
|
|
|
syntax default
|
2016-05-25 20:13:50 +00:00
|
|
|
comment "#"
|
2014-05-18 10:34:18 +00:00
|
|
|
|
2017-05-19 17:57:45 +00:00
|
|
|
# Comments.
|
2021-04-27 09:18:41 +00:00
|
|
|
color cyan "^[[:blank:]]*#.*"
|
2017-05-19 17:57:45 +00:00
|
|
|
|
2014-05-18 10:34:18 +00:00
|
|
|
# Spaces in front of tabs.
|
|
|
|
color ,red " + +"
|
|
|
|
|
2021-11-30 09:24:15 +00:00
|
|
|
# Nano's release motto, then name plus version.
|
|
|
|
color italic,lime "\<[Nn]ano [1-6]\.[0-9][-.[:alnum:]]* "[^"]+""
|
|
|
|
color brightred "\<(GNU )?[Nn]ano [1-6]\.[0-9][-.[:alnum:]]*\>"
|
|
|
|
|
|
|
|
# Dates
|
|
|
|
color latte "\<[12][0-9]{3}\.(0[1-9]|1[012])\.(0[1-9]|[12][0-9]|3[01])\>"
|
2017-05-19 17:57:45 +00:00
|
|
|
|
|
|
|
# Email addresses.
|
2017-10-26 17:40:51 +00:00
|
|
|
color magenta "<[[:alnum:].%_+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,}>"
|
2019-08-14 07:18:51 +00:00
|
|
|
|
2021-11-30 09:24:15 +00:00
|
|
|
# URLs.
|
|
|
|
color lightblue "\<https?://\S+\.\S+[^[:space:],.)]"
|
|
|
|
|
2019-08-14 07:18:51 +00:00
|
|
|
# Bracketed captions in certain config files.
|
2019-10-25 10:21:35 +00:00
|
|
|
color brightgreen "^\[[^][]+\]$"
|
2020-06-20 11:47:32 +00:00
|
|
|
|
|
|
|
# Control codes.
|
2021-11-30 09:24:15 +00:00
|
|
|
color orange "[[:cntrl:]]"
|