mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-30 08:33:17 +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.
18 lines
419 B
Plaintext
18 lines
419 B
Plaintext
## An example of a default syntax. The default syntax is used for
|
|
## files that do not match any other syntax.
|
|
|
|
syntax default
|
|
comment "#"
|
|
|
|
# Comments.
|
|
color cyan "^[[:space:]]*#.*"
|
|
|
|
# Spaces in front of tabs.
|
|
color ,red " + +"
|
|
|
|
# Nano's name, including version.
|
|
color brightred "(GNU )?nano [1-9]\.[0-9]\.[^[:space:][:punct:]]+"
|
|
|
|
# Email addresses.
|
|
color magenta "<[[:alnum:].%_+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,}>"
|