nano

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

commit 4f9bebddec5cccb3a0664ef088a59eb587d17315
parent edf2d8d68f20134a7881c979a25a2d5916f8baa9
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 10 Apr 2020 12:56:41 +0200

syntax: email: rename file and syntax, away from the mistaken 'mutt'

Also, colorize lines that are multiply quoted, and email addresses,
and URLs.

Diffstat:
Msyntax/Makefile.am | 2+-
Asyntax/email.nanorc | 17+++++++++++++++++
Dsyntax/mutt.nanorc | 9---------
3 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/syntax/Makefile.am b/syntax/Makefile.am @@ -8,6 +8,7 @@ pkgdata_DATA = asm.nanorc \ debian.nanorc \ default.nanorc \ elisp.nanorc \ + email.nanorc \ fortran.nanorc \ gentoo.nanorc \ go.nanorc \ @@ -21,7 +22,6 @@ pkgdata_DATA = asm.nanorc \ makefile.nanorc \ man.nanorc \ mgp.nanorc \ - mutt.nanorc \ nanohelp.nanorc \ nanorc.nanorc \ nftables.nanorc \ diff --git a/syntax/email.nanorc b/syntax/email.nanorc @@ -0,0 +1,17 @@ +## Syntax highlighting for emails. + +syntax email "\.eml$" + +# Quoted lines. +color green "^>.*" +color cyan "^> ?>.*" +color yellow "^> ?> ?>.*" + +# Email addresses. +color brightmagenta "<[^@]+@[^@]+>" + +# URLs. +color brightblue "(https?|ftp)://\S+\.\S+[^\s.)]" + +# Signatures, even quoted ones. +color yellow start="^>* ?-- $" end="^>* ?$" diff --git a/syntax/mutt.nanorc b/syntax/mutt.nanorc @@ -1,9 +0,0 @@ -## Here is an example for quoted emails (under e.g. mutt). - -syntax mutt - -# Quoted lines. -color green "^>.*" - -# Signatures, even quoted ones. -color yellow start="^>* ?-- $" end="^>* ?$"