nano

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

commit fed31f2a79b5bc3cd92629c182cfb450b21c0937
parent 5d496b31527f5ab0c527de531614c6d24167d664
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 16 Feb 2025 09:42:23 +0100

syntax: po: colorize also Python's "%(name)x" format specifiers

Diffstat:
Msyntax/po.nanorc | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/syntax/po.nanorc b/syntax/po.nanorc @@ -23,6 +23,7 @@ color red " fuzzy(,|$)" color yellow " (no-)?[-[:alpha:]]+-format(,|$)" # Format specifiers. color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[1-9](\.[0-9]?)?)?(hh|ll|[hlLjzt])?[diouxXeEfFgGaAcspnmr]|%%" +color rosy "%\([[:alpha:]][[:alnum:]_]*\)([1-9](\.[0-9])?)?[#0 +-]?[diouxXeEfFgGcrs]" # Quotes and escaped characters. color yellow """ color cyan "\\([abcefnrtv"\]|x[[:xdigit:]]{2}|[0-7]{3})"