]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
po-mode: Better C format string highlighting
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 21 Jan 2015 07:47:14 +0000 (16:47 +0900)
committerDaiki Ueno <ueno@gnu.org>
Wed, 21 Jan 2015 07:49:33 +0000 (16:49 +0900)
* po-mode.el (po-font-lock-keywords): Support all possible length
modifiers in C89/C99 format strings.

gettext-tools/misc/ChangeLog
gettext-tools/misc/po-mode.el

index 7ce35795006145901c9613f5f58e2e00750846d3..f288e9594b705f3cefb81f90043fcfd6b11ae44a 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-21  Peter Eisentraut  <peter@eisentraut.org>  (tiny change)
+
+       * po-mode.el (po-font-lock-keywords): Support all possible length
+       modifiers in C89/C99 format strings.
+
 2014-12-24  Daiki Ueno  <ueno@gnu.org>
 
        * gettext 0.19.4 released.
index 11ce7b1e8981ea89173387c4c29d518b9c9423cd..1afba635f1f8bd0ce101fae8a7925b95be83c69a 100644 (file)
@@ -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.