]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp-mode: add docstring recognition for more common lisp symbols
authorNicolas Martyanoff <nicolas@n16f.net>
Thu, 9 Feb 2023 10:39:14 +0000 (11:39 +0100)
committerEli Zaretskii <eliz@gnu.org>
Thu, 9 Feb 2023 14:09:28 +0000 (16:09 +0200)
* 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.

lisp/emacs-lisp/lisp-mode.el

index 367f59e878592aae82d974a62e66d297c29fae5c..d44c9d6e23dae142561bdfb24a42958ba0bb97e4 100644 (file)
@@ -181,8 +181,11 @@ to a package-local <package>-loaddefs.el file.")
 (put 'define-category 'doc-string-elt 2)
 ;; CL
 (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 'defstruct 'doc-string-elt 2)
+(put 'deftype 'doc-string-elt 3)
 
 (defvar lisp-doc-string-elt-property 'doc-string-elt
   "The symbol property that holds the docstring position info.")