nano

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

commit b68d74effc294be6b80430450380005a33cba30f
parent 88309f981af05e7374364f7a721f160b61b698aa
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue,  8 Jul 2025 16:05:25 +0200

syntax: po: colorize also the %b and %B format specifiers

Glibc's printf() recognizes these specifiers since version 2.35:
  https://sourceware.org/pipermail/libc-announce/2022/000033.html

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-)?([[:lower:]-]+|c\+\+)-format(,|$)" # Format specifiers. -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]" +color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[0-9]\.?|[0-9]?\.[0-9])?(hh|ll|[hlLjzt])?([diouxXbBeEfFgGaAcspnmr]|<PRI[diouxX](32|64)>)|%%" +color rosy "%\([[:alpha:]][[:alnum:]_]*\)([0-9]\.?|[0-9]?\.[0-9])?[#0 +-]?[diouxXbBeEfFgGcrs]" # Quotes and escaped characters. color yellow """ color cyan "\\([abcefnrtv"\]|x[[:xdigit:]]{2}|[0-7]{3})"