diff options
| author | OGAWA Hirofumi | 2018-09-30 08:31:25 +0900 |
|---|---|---|
| committer | Eli Zaretskii | 2018-10-13 12:14:52 +0300 |
| commit | f3c13bb38e4120b4b84623892c6df4ddb421d5d0 (patch) | |
| tree | 0d921b7579840942f8c5002fb3d763a7937c9a1e | |
| parent | 4824d37041a9647f761c0cad32f2c3c8e367ba96 (diff) | |
| download | emacs-f3c13bb38e4120b4b84623892c6df4ddb421d5d0.tar.gz emacs-f3c13bb38e4120b4b84623892c6df4ddb421d5d0.zip | |
Fix sieve-mode font lock
* lisp/net/sieve-mode.el (sieve-font-lock-keywords): Fix the
definition of font-lock faces. (Bug#32881)
| -rw-r--r-- | lisp/net/sieve-mode.el | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/lisp/net/sieve-mode.el b/lisp/net/sieve-mode.el index 34a4cb611ea..b9f424fda8c 100644 --- a/lisp/net/sieve-mode.el +++ b/lisp/net/sieve-mode.el | |||
| @@ -100,23 +100,20 @@ | |||
| 100 | 100 | ||
| 101 | (defconst sieve-font-lock-keywords | 101 | (defconst sieve-font-lock-keywords |
| 102 | (eval-when-compile | 102 | (eval-when-compile |
| 103 | (list | 103 | `( |
| 104 | ;; control commands | 104 | ;; control commands |
| 105 | (cons (regexp-opt '("require" "if" "else" "elsif" "stop") | 105 | (,(regexp-opt '("require" "if" "else" "elsif" "stop") 'words) |
| 106 | 'words) | 106 | . 'sieve-control-commands) |
| 107 | 'sieve-control-commands) | 107 | ;; action commands |
| 108 | ;; action commands | 108 | (,(regexp-opt '("fileinto" "redirect" "reject" "keep" "discard") 'words) |
| 109 | (cons (regexp-opt '("fileinto" "redirect" "reject" "keep" "discard") | 109 | . 'sieve-action-commands) |
| 110 | 'words) | 110 | ;; test commands |
| 111 | 'sieve-action-commands) | 111 | (,(regexp-opt '("address" "allof" "anyof" "exists" "false" |
| 112 | ;; test commands | 112 | "true" "header" "not" "size" "envelope" |
| 113 | (cons (regexp-opt '("address" "allof" "anyof" "exists" "false" | 113 | "body") |
| 114 | "true" "header" "not" "size" "envelope" | 114 | 'words) |
| 115 | "body") | 115 | . 'sieve-test-commands) |
| 116 | 'words) | 116 | ("\\Sw+:\\sw+" . 'sieve-tagged-arguments)))) |
| 117 | 'sieve-test-commands) | ||
| 118 | (cons "\\Sw+:\\sw+" | ||
| 119 | 'sieve-tagged-arguments)))) | ||
| 120 | 117 | ||
| 121 | ;; Syntax table | 118 | ;; Syntax table |
| 122 | 119 | ||