]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve fontifying of #| ... |# in `lisp-mode'
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 29 Jan 2021 06:40:06 +0000 (07:40 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 29 Jan 2021 06:40:06 +0000 (07:40 +0100)
* lisp/emacs-lisp/lisp-mode.el (lisp-mode): Fontify the end
delimiter in #| ... |# correctly (bug#39820).

lisp/emacs-lisp/lisp-mode.el

index c96d849d4425fbf5b46c6b91ce63baffdd0f66b7..3918fa01b2a90dff64448fcac62d25b2ba0b542b 100644 (file)
@@ -775,6 +775,7 @@ or to switch back to an existing one."
   (setq-local find-tag-default-function 'lisp-find-tag-default)
   (setq-local comment-start-skip
              "\\(\\(^\\|[^\\\n]\\)\\(\\\\\\\\\\)*\\)\\(;+\\|#|\\) *")
+  (setq-local comment-end "|#")
   (setq imenu-case-fold-search t))
 
 (defun lisp-find-tag-default ()