Skip to content

Commit

Permalink
syntax: po: colorize also format specifiers like "%<PRIu64>"
Browse files Browse the repository at this point in the history
  • Loading branch information
Benno Schulenberg committed Feb 28, 2025
1 parent 63a7be1 commit 163c569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/po.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ color brightblue "^(msgid|msgid_plural|msgstr)\>"
color red " fuzzy(,|$)"
color yellow " (no-)?([a-z-]+|c\+\+)-format(,|$)"
# Format specifiers.
color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[1-9](\.[0-9]?)?)?(hh|ll|[hlLjzt])?[diouxXeEfFgGaAcspnmr]|%%"
color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[1-9](\.[0-9]?)?)?(hh|ll|[hlLjzt])?[diouxXeEfFgGaAcspnmr]|%<PRI[diouxX](32|64)>|%%"
color rosy "%\([[:alpha:]][[:alnum:]_]*\)([1-9](\.[0-9])?)?[#0 +-]?[diouxXeEfFgGcrs]"
# Quotes and escaped characters.
color yellow """
Expand Down

0 comments on commit 163c569

Please sign in to comment.