nano

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

commit 334604a5917f7b828ad3dd3dbe0a2f1b9050b0fe
parent 7905ba80ea6bc31c3a100aac9905e01537d5b12e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 17 Mar 2025 12:48:04 +0100

syntax: po: colorize also format specifiers like "%.6f"

Diffstat:
Msyntax/po.nanorc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/syntax/po.nanorc b/syntax/po.nanorc @@ -22,8 +22,8 @@ color brightblue "^(msgid|msgid_plural|msgstr)\>" color red " fuzzy(,|$)" color yellow " (no-)?([a-z-]+|c\+\+)-format(,|$)" # Format specifiers. -color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[1-9](\.[0-9]?)?)?(hh|ll|[hlLjzt])?[diouxXeEfFgGaAcspnmr]|%<PRI[diouxX](32|64)>|%%" -color rosy "%\([[:alpha:]][[:alnum:]_]*\)([1-9](\.[0-9])?)?[#0 +-]?[diouxXeEfFgGcrs]" +color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[0-9]\.?|[0-9]?\.[0-9])?(hh|ll|[hlLjzt])?([diouxXeEfFgGaAcspnmr]|<PRI[diouxX](32|64)>)|%%" +color rosy "%\([[:alpha:]][[:alnum:]_]*\)([0-9]\.?|[0-9]?\.[0-9])?[#0 +-]?[diouxXeEfFgGcrs]" # Quotes and escaped characters. color yellow """ color cyan "\\([abcefnrtv"\]|x[[:xdigit:]]{2}|[0-7]{3})"