syntax: default: color also hash comments and email addresses
parent
491e02f532
commit
d653aeab93
|
@ -1,11 +1,17 @@
|
||||||
## A default syntax, which is used
|
## An example of a default syntax. The default syntax is used for
|
||||||
## for files that do not match any other syntax.
|
## files that do not match any other syntax.
|
||||||
|
|
||||||
syntax "default"
|
syntax "default"
|
||||||
comment "#"
|
comment "#"
|
||||||
|
|
||||||
|
# Comments.
|
||||||
|
color cyan "^#.*"
|
||||||
|
|
||||||
# Spaces in front of tabs.
|
# Spaces in front of tabs.
|
||||||
color ,red " + +"
|
color ,red " + +"
|
||||||
|
|
||||||
# Nano's name, including version.
|
# Nano's name, including version.
|
||||||
color brightred "(GNU )?nano [1-9]\.[0-9]\.[^[:space:][:punct:]]+"
|
color brightred "(GNU )?nano [1-9]\.[0-9]\.[^[:space:][:punct:]]+"
|
||||||
|
|
||||||
|
# Email addresses.
|
||||||
|
color yellow "<[[:alnum:].%_+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,}>"
|
||||||
|
|
Loading…
Reference in New Issue