]> git.eshelyaron.com Git - emacs.git/commitdiff
Restore autoload cookie highlighting
authorEshel Yaron <me@eshelyaron.com>
Sat, 18 Jan 2025 17:43:28 +0000 (18:43 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 18 Jan 2025 17:43:28 +0000 (18:43 +0100)
lisp/progmodes/elisp-mode.el

index fb5383af4f1ab247d4609a9d84d89027223d7b34..83f5cf6d9a0bfd5ef45a66ae0650f86a92a1e2cf 100644 (file)
@@ -543,7 +543,11 @@ This is the `font-lock-fontify-region-function' for `emacs-lisp-mode'."
         prepend))
     (lisp--match-confusable-symbol-character
      0 '(face font-lock-warning-face
-              help-echo "Confusable character")))
+              help-echo "Confusable character"))
+    ;; Emacs Lisp autoload cookies.  Supports the slightly different
+    ;; forms used by mh-e, calendar, etc.
+    (,lisp-mode-autoload-regexp (3 font-lock-warning-face prepend)
+                                (2 font-lock-function-name-face prepend t)))
   "Highlighting patterns for Emacs Lisp mode.")
 
 ;;;###autoload