From: Peter Eisentraut Date: Wed, 21 Jan 2015 07:47:14 +0000 (+0900) Subject: po-mode: Better C format string highlighting X-Git-Tag: v0.19.5~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f4f6a32943dedfe2988cec53a1c6b8316f3620b;p=thirdparty%2Fgettext.git po-mode: Better C format string highlighting * po-mode.el (po-font-lock-keywords): Support all possible length modifiers in C89/C99 format strings. --- diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog index 7ce357950..f288e9594 100644 --- a/gettext-tools/misc/ChangeLog +++ b/gettext-tools/misc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-21 Peter Eisentraut (tiny change) + + * po-mode.el (po-font-lock-keywords): Support all possible length + modifiers in C89/C99 format strings. + 2014-12-24 Daiki Ueno * gettext 0.19.4 released. diff --git a/gettext-tools/misc/po-mode.el b/gettext-tools/misc/po-mode.el index 11ce7b1e8..1afba635f 100644 --- a/gettext-tools/misc/po-mode.el +++ b/gettext-tools/misc/po-mode.el @@ -1064,7 +1064,7 @@ Initialize or replace current translation with the original message"))]) ;; '("msgctxt " "msgid " "msgid_plural " "msgstr " "msgstr[0] " "msgstr[1] ")) ("^\\(\\(msg\\(ctxt\\|id\\(_plural\\)?\\|str\\(\\[[0-9]\\]\\)?\\)\\) \\)?\"\\|\"$" . font-lock-keyword-face) - ("\\\\.\\|%[*$-.0-9ul]*[a-zA-Z]" . font-lock-variable-name-face) + ("\\\\.\\|%[*$-.0-9hjltuzL]*[a-zA-Z]" . font-lock-variable-name-face) ("^# .*\\|^#[:,]?" . font-lock-comment-face) ("^#:\\(.*\\)" 1 font-lock-reference-face) ;; The following line does not work, and I wonder why.