lisp-mode: add docstring recognition for more common lisp symbols

* lisp/emacs-lisp/lisp-mode.el (define-compiler-macro)
(define-setf-expander, deftype): Add the 'doc-string-elt'
property for proper docstring highlighting in Common Lisp.
This commit is contained in:
Nicolas Martyanoff 2023-02-09 11:39:14 +01:00 committed by Eli Zaretskii
parent 417a8ed8b0
commit 67c6ec2559

View file

@ -181,8 +181,11 @@ to a package-local <package>-loaddefs.el file.")
(put 'define-category 'doc-string-elt 2) (put 'define-category 'doc-string-elt 2)
;; CL ;; CL
(put 'defconstant 'doc-string-elt 3) (put 'defconstant 'doc-string-elt 3)
(put 'define-compiler-macro 'doc-string-elt 3)
(put 'define-setf-expander 'doc-string-elt 3)
(put 'defparameter 'doc-string-elt 3) (put 'defparameter 'doc-string-elt 3)
(put 'defstruct 'doc-string-elt 2) (put 'defstruct 'doc-string-elt 2)
(put 'deftype 'doc-string-elt 3)
(defvar lisp-doc-string-elt-property 'doc-string-elt (defvar lisp-doc-string-elt-property 'doc-string-elt
"The symbol property that holds the docstring position info.") "The symbol property that holds the docstring position info.")