summaryrefslogtreecommitdiffstats
path: root/gettext-tools/misc
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2013-03-05 16:04:45 +0900
committerDaiki Ueno <ueno@gnu.org>2013-03-05 16:04:45 +0900
commit34d5181d899e1b1691b046eb51f50ea213911fdb (patch)
tree53b6ac974cac99fc2e2d42d2ea77deef12817eed /gettext-tools/misc
parent72147b5f4e3a71c1fee03c4bd59af78517f6b15a (diff)
downloadexternal_gettext-34d5181d899e1b1691b046eb51f50ea213911fdb.zip
external_gettext-34d5181d899e1b1691b046eb51f50ea213911fdb.tar.gz
external_gettext-34d5181d899e1b1691b046eb51f50ea213911fdb.tar.bz2
po-mode: Properly highlight C format strings with parameter positions
Diffstat (limited to 'gettext-tools/misc')
-rw-r--r--gettext-tools/misc/ChangeLog7
-rw-r--r--gettext-tools/misc/po-mode.el2
2 files changed, 8 insertions, 1 deletions
diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog
index a9b3c30..5704341 100644
--- a/gettext-tools/misc/ChangeLog
+++ b/gettext-tools/misc/ChangeLog
@@ -1,3 +1,10 @@
+2013-03-05 Daiki Ueno <ueno@gnu.org>
+
+ * po-mode.el (po-font-lock-keywords): Properly highlight C format
+ strings with parameter positions.
+ Reported at
+ <https://savannah.gnu.org/bugs/index.php?33552>.
+
2013-03-05 Ævar Arnfjörð Bjarmason <avarab@gmail.com> (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 94ddb07..dac3d11 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.