nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit d653aeab93541b1a7c09c6ffaa61680cf2c60e53
parent 491e02f532647e7c4dace19c6e975097d6418af0
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri, 19 May 2017 19:57:45 +0200

syntax: default: color also hash comments and email addresses

Diffstat:
Msyntax/default.nanorc | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/syntax/default.nanorc b/syntax/default.nanorc @@ -1,11 +1,17 @@ -## A default syntax, which is used -## for files that do not match any other syntax. +## 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 "^#.*" + # 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 yellow "<[[:alnum:].%_+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,}>"