]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix syntax highlighting of easy-menu-define docstrings
authorStefan Kangas <stefan@marxist.se>
Fri, 26 Feb 2021 14:59:56 +0000 (15:59 +0100)
committerStefan Kangas <stefan@marxist.se>
Fri, 26 Feb 2021 14:59:56 +0000 (15:59 +0100)
* lisp/emacs-lisp/easymenu.el (easy-menu-define): Add doc-string
declaration for correct syntax highlighting.

lisp/emacs-lisp/easymenu.el

index b49d886ede18849fef1b841edcecfe60269323f9..8ddfb9e78ef2645f7f9e8fcd54752cf0b9c31ff6 100644 (file)
@@ -143,7 +143,7 @@ solely of dashes is displayed as a menu separator.
 
 Alternatively, a menu item can be a list with the same format as
 MENU.  This is a submenu."
-  (declare (indent defun) (debug (symbolp body)))
+  (declare (indent defun) (debug (symbolp body)) (doc-string 3))
   `(progn
      ,(if symbol `(defvar ,symbol nil ,doc))
      (easy-menu-do-define (quote ,symbol) ,maps ,doc ,menu)))