syntax: po: colorize also format specifiers like "%.6f"
This commit is contained in:
parent
7905ba80ea
commit
334604a591
@ -22,8 +22,8 @@ color brightblue "^(msgid|msgid_plural|msgstr)\>"
|
|||||||
color red " fuzzy(,|$)"
|
color red " fuzzy(,|$)"
|
||||||
color yellow " (no-)?([a-z-]+|c\+\+)-format(,|$)"
|
color yellow " (no-)?([a-z-]+|c\+\+)-format(,|$)"
|
||||||
# Format specifiers.
|
# Format specifiers.
|
||||||
color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[1-9](\.[0-9]?)?)?(hh|ll|[hlLjzt])?[diouxXeEfFgGaAcspnmr]|%<PRI[diouxX](32|64)>|%%"
|
color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[0-9]\.?|[0-9]?\.[0-9])?(hh|ll|[hlLjzt])?([diouxXeEfFgGaAcspnmr]|<PRI[diouxX](32|64)>)|%%"
|
||||||
color rosy "%\([[:alpha:]][[:alnum:]_]*\)([1-9](\.[0-9])?)?[#0 +-]?[diouxXeEfFgGcrs]"
|
color rosy "%\([[:alpha:]][[:alnum:]_]*\)([0-9]\.?|[0-9]?\.[0-9])?[#0 +-]?[diouxXeEfFgGcrs]"
|
||||||
# Quotes and escaped characters.
|
# Quotes and escaped characters.
|
||||||
color yellow """
|
color yellow """
|
||||||
color cyan "\\([abcefnrtv"\]|x[[:xdigit:]]{2}|[0-7]{3})"
|
color cyan "\\([abcefnrtv"\]|x[[:xdigit:]]{2}|[0-7]{3})"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user