master 0919a727dea: lisp/emacs-lisp/generator.el: Remove redundant font-lock rule

Stefan Monnier via Mailing list for Emacs changes <[email protected]>
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: master
commit 0919a727dea5d55c3c81ddcf99cbb8781aee2d0b
Author: Stefan Monnier <[email protected]>
Commit: Stefan Monnier <[email protected]>

    lisp/emacs-lisp/generator.el: Remove redundant font-lock rule
    
    Macro calls are automatically highlighted as keywords, nowadays.
---
 lisp/emacs-lisp/generator.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lisp/emacs-lisp/generator.el b/lisp/emacs-lisp/generator.el
index b31a0954ff0..cf7b6000684 100644
--- a/lisp/emacs-lisp/generator.el
+++ b/lisp/emacs-lisp/generator.el
@@ -792,10 +792,11 @@ Return the value with which ITERATOR finished iteration."
     (font-lock-add-keywords
      'emacs-lisp-mode
      '(("(\\(iter-defun\\)\\_>\\s *\\(\\(?:\\sw\\|\\s_\\)+\\)?"
-        (1 font-lock-keyword-face nil t)
-        (2 font-lock-function-name-face nil t))
-       ("(\\(iter-\\(?:next\\|lambda\\|yield\\|yield-from\\)\\)\\_>"
-        (1 font-lock-keyword-face nil t))))))
+        ;; (1 'font-lock-keyword-face nil t)
+        (2 'font-lock-function-name-face nil t))
+       ;; ("(\\(iter-\\(?:next\\|lambda\\|yield\\|yield-from\\)\\)\\_>"
+       ;;  (1 'font-lock-keyword-face nil t))
+       ))))
 
 (provide 'generator)
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.