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
|
|
|
|
|
|
|
# Spaces in front of tabs.
|
|
|
|
color ,red " + +"
|
|
|
|
|
2021-11-30 12:24:15 +03:00
|
|
|
# Nano's release motto, then name plus version.
|
2024-05-01 11:01:44 +03:00
|
|
|
color italic,lime "\<[Nn]ano [1-8]\.[0-9][-.[:alnum:]]* "[^"]+""
|
|
|
|
color brightred "\<(GNU )?[Nn]ano [1-8]\.[0-9][-.[:alnum:]]*\>"
|
2021-11-30 12:24:15 +03:00
|
|
|
|
|
|
|
# Dates
|
|
|
|
color latte "\<[12][0-9]{3}\.(0[1-9]|1[012])\.(0[1-9]|[12][0-9]|3[01])\>"
|
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
|
|
|
|
2021-11-30 12:24:15 +03:00
|
|
|
# URLs.
|
2022-06-07 18:19:24 +03:00
|
|
|
color lightblue "\<https?://\S+\.\S+[^])>[:space:],.]"
|
2021-11-30 12:24:15 +03:00
|
|
|
|
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
|
|
|
|
2021-12-10 14:32:17 +03:00
|
|
|
# Comments.
|
|
|
|
color cyan "^[[:blank:]]*#.*"
|
|
|
|
|
2020-06-20 14:47:32 +03:00
|
|
|
# Control codes.
|
2021-11-30 12:24:15 +03:00
|
|
|
color orange "[[:cntrl:]]"
|