commit dfe87540c625e62f4169b9605af3f4a22e52eb7c
parent 6c4f228f6fb73b92e90551ef988198ac59402082
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 3 May 2019 12:00:29 +0200
syntax: po: colorize also escaped hex and octal codes
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syntax/po.nanorc b/syntax/po.nanorc
@@ -22,7 +22,7 @@ color yellow " (no-)?[-[:alpha:]]+-format(,|$)"
color brightmagenta "%([1-9]\$)?[a-z]*"
# Quotes and escaped characters.
color yellow "\""
-color cyan "\\[abcefnrtv"\]"
+color cyan "\\([abcefnrtv"\]|x[0-9abcdefABCDEF]{2}|[0-7]{3})"
# Reminders.
color brightwhite,yellow "(FIXME|TODO|XXX)"
# Obsolete strings.