nano

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

commit 63a7be115a729190fdf612fd5b821ac015f2421e
parent fed31f2a79b5bc3cd92629c182cfb450b21c0937
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 20 Feb 2025 11:17:27 +0100

syntax: po: colorize also a 'msgctxt' line, and the 'c++-format' flag

Diffstat:
Msyntax/po.nanorc | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/syntax/po.nanorc b/syntax/po.nanorc @@ -16,17 +16,19 @@ color cyan "\<(POT-Creation-Date|PO-Revision-Date|MIME-Version|Content-Type|Cont # Encodings and numbers. color yellow "\<(UTF|ISO|Windows|Mac|IBM)-[0-9]+" color yellow "\<((pre|rc)?[0-9]+|[0-9]bit)\>" -# Msgids. +# Main keywords. color brightblue "^(msgid|msgid_plural|msgstr)\>" -# Tags. +# Flags. color red " fuzzy(,|$)" -color yellow " (no-)?[-[:alpha:]]+-format(,|$)" +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]|%%" 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})" +# Context. +color slate "^msgctxt.*" # Reminders. color brightwhite,yellow "\<(FIXME|TODO|XXX)\>" # Obsolete strings.