]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix sieve-mode font lock
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Sat, 29 Sep 2018 23:31:25 +0000 (08:31 +0900)
committerEli Zaretskii <eliz@gnu.org>
Sat, 13 Oct 2018 09:14:52 +0000 (12:14 +0300)
* lisp/net/sieve-mode.el (sieve-font-lock-keywords): Fix the
definition of font-lock faces.  (Bug#32881)

lisp/net/sieve-mode.el

index 34a4cb611eafff9631c6ed0cd2e397ce1ddfcee4..b9f424fda8c97c21ef573d7edbb42bbfbb213f9f 100644 (file)
 
 (defconst sieve-font-lock-keywords
   (eval-when-compile
-    (list
-     ;; control commands
-     (cons (regexp-opt '("require" "if" "else" "elsif" "stop")
-                       'words)
-          'sieve-control-commands)
-     ;; action commands
-     (cons (regexp-opt '("fileinto" "redirect" "reject" "keep" "discard")
-                       'words)
-          'sieve-action-commands)
-     ;; test commands
-     (cons (regexp-opt '("address" "allof" "anyof" "exists" "false"
-                        "true" "header" "not" "size" "envelope"
-                         "body")
-                       'words)
-          'sieve-test-commands)
-     (cons "\\Sw+:\\sw+"
-          'sieve-tagged-arguments))))
+    `(
+      ;; control commands
+      (,(regexp-opt '("require" "if" "else" "elsif" "stop") 'words)
+       . 'sieve-control-commands)
+      ;; action commands
+      (,(regexp-opt '("fileinto" "redirect" "reject" "keep" "discard") 'words)
+       . 'sieve-action-commands)
+      ;; test commands
+      (,(regexp-opt '("address" "allof" "anyof" "exists" "false"
+                     "true" "header" "not" "size" "envelope"
+                      "body")
+                    'words)
+       . 'sieve-test-commands)
+      ("\\Sw+:\\sw+" . 'sieve-tagged-arguments))))
 
 ;; Syntax table