1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Fix font-locking of (defun foo (function ...))

* 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).
This commit is contained in:
Lars Ingebrigtsen 2022-05-20 03:46:35 +02:00
parent 871f0f0a5d
commit de9dfb1939

View file

@ -244,6 +244,9 @@
('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.