master 5e706878229: sieve-font-lock-keywords: Support RFC 5232

Sean Whitton <[email protected]>
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: master
commit 5e706878229fc7a3b57be0930ad28210733a30a3
Author: Stéphane Blondon <[email protected]>
Commit: Sean Whitton <[email protected]>

    sieve-font-lock-keywords: Support RFC 5232
    
    * lisp/net/sieve-mode.el (sieve-font-lock-keywords): Support RFC
    5532 (bug#81644).
    
    Copyright-paperwork-exempt: yes
---
 lisp/net/sieve-mode.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/net/sieve-mode.el b/lisp/net/sieve-mode.el
index 54bccc179aa..908452b3f76 100644
--- a/lisp/net/sieve-mode.el
+++ b/lisp/net/sieve-mode.el
@@ -85,12 +85,14 @@
       (,(regexp-opt '("require" "if" "else" "elsif" "stop") 'words)
        . 'sieve-control-commands)
       ;; action commands
-      (,(regexp-opt '("fileinto" "redirect" "reject" "keep" "discard") 'words)
+      (,(regexp-opt '("fileinto" "redirect" "reject" "keep" "discard"
+         "setflag" "addflag" "removeflag")
+         'words)
        . 'sieve-action-commands)
       ;; test commands
       (,(regexp-opt '("address" "allof" "anyof" "exists" "false"
 		      "true" "header" "not" "size" "envelope"
-                      "body")
+                      "body" "hasflag")
                     'words)
        . 'sieve-test-commands)
       ("\\Sw+:\\sw+" . 'sieve-tagged-arguments))))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.