commit 5d496b31527f5ab0c527de531614c6d24167d664 parent f5a2b8983dd6f4b0541c02e7f8bb5331c597728a Author: Benno Schulenberg <bensberg@telfort.nl> Date: Sun, 16 Feb 2025 09:39:18 +0100 syntax: po: colorize also the Python-specific conversion specifier "%r" Diffstat:
M | syntax/po.nanorc | | | 2 | +- |
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]?)?)?(hh|ll|[hlLjzt])?[diouxXeEfFgGaAcspnm]|%%" +color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[1-9](\.[0-9]?)?)?(hh|ll|[hlLjzt])?[diouxXeEfFgGaAcspnmr]|%%" # Quotes and escaped characters. color yellow """ color cyan "\\([abcefnrtv"\]|x[[:xdigit:]]{2}|[0-7]{3})"