syntax: po: improve the coloring of format specifiers
This now handles most of the things listed in 'man 3 printf'.master
parent
6823831c06
commit
6b7c661fb7
|
@ -22,7 +22,7 @@ color brightblue "^(msgid|msgid_plural|msgstr)\>"
|
|||
color red " fuzzy(,|$)"
|
||||
color yellow " (no-)?[-[:alpha:]]+-format(,|$)"
|
||||
# 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.
|
||||
color yellow """
|
||||
color cyan "\\([abcefnrtv"\]|x[0-9abcdefABCDEF]{2}|[0-7]{3})"
|
||||
|
|
Loading…
Reference in New Issue