]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix font-locking of (defun foo (function ...))
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 20 May 2022 01:46:35 +0000 (03:46 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 20 May 2022 01:46:35 +0000 (03:46 +0200)
* lisp/emacs-lisp/lisp-mode.el (lisp--el-funcall-position-p):
Don't colorize the `function' in (defun foo (function ...)) as a
special form (bug#37074).

lisp/emacs-lisp/lisp-mode.el

index 5dd2f5162ed90af9b12bc8953dab022a52312c2d..5b93f145e899993acd4768cbe378535e83bb49b5 100644 (file)
               ('let
                 (forward-sexp 1)
                 (>= pos (point)))
+              ((or 'defun 'defmacro 'cl-defmethod 'cl-defun)
+                (forward-sexp 2)
+                (>= pos (point)))
               ('condition-case
                   ;; If (cdr paren-posns), then we're in the BODY
                   ;; of HANDLERS.