From: Daiki Ueno Date: Tue, 5 Mar 2013 07:04:45 +0000 (+0900) Subject: po-mode: Properly highlight C format strings with parameter positions X-Git-Tag: v0.18.3~75^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34d5181d899e1b1691b046eb51f50ea213911fdb;p=thirdparty%2Fgettext.git po-mode: Properly highlight C format strings with parameter positions --- diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog index a9b3c30d1..5704341c6 100644 --- a/gettext-tools/misc/ChangeLog +++ b/gettext-tools/misc/ChangeLog @@ -1,3 +1,10 @@ +2013-03-05 Daiki Ueno + + * po-mode.el (po-font-lock-keywords): Properly highlight C format + strings with parameter positions. + Reported at + . + 2013-03-05 Ævar Arnfjörð Bjarmason (tiny change) * po-mode.el (po-auto-update-file-header): New user option. diff --git a/gettext-tools/misc/po-mode.el b/gettext-tools/misc/po-mode.el index 94ddb07bd..dac3d115c 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-9ul]*[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.