syntax: po: improve the coloring of format specifiers

This now handles most of the things listed in 'man 3 printf'.
master
Benno Schulenberg 2021-04-25 17:21:08 +02:00
parent 6823831c06
commit 6b7c661fb7
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ color brightblue "^(msgid|msgid_plural|msgstr)\>"
color red " fuzzy(,|$)" color red " fuzzy(,|$)"
color yellow " (no-)?[-[:alpha:]]+-format(,|$)" color yellow " (no-)?[-[:alpha:]]+-format(,|$)"
# Format specifiers. # Format specifiers.
color brightmagenta "%([1-9]\$)?[a-z]*" color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[1-9](\.[0-9]?)?)?[hlLjzt]?[diouxXeEfFgGaAcspnm%]"
# Quotes and escaped characters. # Quotes and escaped characters.
color yellow """ color yellow """
color cyan "\\([abcefnrtv"\]|x[0-9abcdefABCDEF]{2}|[0-7]{3})" color cyan "\\([abcefnrtv"\]|x[0-9abcdefABCDEF]{2}|[0-7]{3})"