commit 1a150bf544e9fdd5577991da9c5382111c2dc837
parent 98bab0db0738cdbff82b97dfce04711c43c1ceba
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 4 Feb 2025 16:49:02 +0100
syntax: po: colorize also the %llu and %hhi format specifiers
And colorize %% only by itself, not combined with anything.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syntax/po.nanorc b/syntax/po.nanorc
@@ -22,7 +22,7 @@ color brightblue "^(msgid|msgid_plural|msgstr)\>"
color red " fuzzy(,|$)"
color yellow " (no-)?[-[:alpha:]]+-format(,|$)"
# Format specifiers.
-color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[1-9](\.[0-9]?)?)?[hlLjzt]?[diouxXeEfFgGaAcspnm%]"
+color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[1-9](\.[0-9]?)?)?(hh|ll|[hlLjzt])?[diouxXeEfFgGaAcspnm]|%%"
# Quotes and escaped characters.
color yellow """
color cyan "\\([abcefnrtv"\]|x[[:xdigit:]]{2}|[0-7]{3})"