2020-04-20 20:15:43 +03:00
|
|
|
## This is an example of a default syntax. The default syntax is used for
|
2017-05-19 20:57:45 +03:00
|
|
|
## files that do not match any other syntax.
|
2014-05-18 14:34:18 +04:00
|
|
|
|
2018-02-07 13:25:46 +03:00
|
|
|
syntax default
|
2016-05-25 23:13:50 +03:00
|
|
|
comment "#"
|
2014-05-18 14:34:18 +04:00
|
|
|
|
2017-05-19 20:57:45 +03:00
|
|
|
# Comments.
|
2021-04-27 12:18:41 +03:00
|
|
|
color cyan "^[[:blank:]]*#.*"
|
2017-05-19 20:57:45 +03:00
|
|
|
|
2014-05-18 14:34:18 +04:00
|
|
|
# Spaces in front of tabs.
|
|
|
|
color ,red " + +"
|
|
|
|
|
2014-05-29 08:38:16 +04:00
|
|
|
# Nano's name, including version.
|
2020-07-30 10:25:56 +03:00
|
|
|
color brightred "(GNU )?[Nn]ano [1-5]\.[0-9][-.[:alnum:]]*\>"
|
2017-05-19 20:57:45 +03:00
|
|
|
|
|
|
|
# Email addresses.
|
2017-10-26 20:40:51 +03:00
|
|
|
color magenta "<[[:alnum:].%_+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,}>"
|
2019-08-14 10:18:51 +03:00
|
|
|
|
|
|
|
# Bracketed captions in certain config files.
|
2019-10-25 13:21:35 +03:00
|
|
|
color brightgreen "^\[[^][]+\]$"
|
2020-06-20 14:47:32 +03:00
|
|
|
|
|
|
|
# Control codes.
|
|
|
|
color latte "[[:cntrl:]]"
|