nano

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

commit 0694c616a2897fa1ab227663da2a7add2de05231
parent 8e456bab9f0cf79f55682a5ee29f8d2f205dbe4f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 14 Feb 2025 16:39:25 +0100

syntax: man: highlight some escapes, like \& and \(em, specially

This helps prevent reading things like \e and \(em as text.

Diffstat:
Msyntax/man.nanorc | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/syntax/man.nanorc b/syntax/man.nanorc @@ -14,8 +14,9 @@ color brightred "^\.(B[IR]?|I[BR]?|RB|RI|SB|SM|SY|OP) .*" color brightblue "^\.((B[IR]?|I[BR]?|RB|RI|SB|SM|SY|OP) |YS$)" # Inline type faces. color magenta "\\f[BIPR]" +# Some escapes: +color purple "\\([%&:e~]|\(e[mn])" # Hyphenation control. -color purple "\\[%:]" color yellow "^\.(hc|hla|hlm|hw|hy)" # Relative margins, hyperlinks, and various other stuff. color yellow "^\.(RS|RE|UR|UE|MT|ME|EX|EE|PD|DT)"