]> git.eshelyaron.com Git - emacs.git/commitdiff
Consider outline-heading-end-regexp in outline-font-lock-keywords
authorGabriel do Nascimento Ribeiro <gabriel376@hotmail.com>
Sat, 23 Sep 2023 07:32:02 +0000 (04:32 -0300)
committerJuri Linkov <juri@linkov.net>
Thu, 11 Jan 2024 07:11:18 +0000 (09:11 +0200)
* lisp/outline.el (outline-font-lock-keywords): Add
outline-heading-end-regexp to regexp (bug#66166).

lisp/outline.el

index 96e0d0df205d540ad6305c7d2b0accaeff75153f..b50708c1a7b5c95622daf3a08875c92e38a75c9a 100644 (file)
@@ -260,7 +260,7 @@ non-nil and point is located on the heading line.")
   '(
     ;; Highlight headings according to the level.
     (eval . (list (or outline-search-function
-                      (concat "^\\(?:" outline-regexp "\\).*"))
+                      (concat "^\\(?:" outline-regexp "\\).*" outline-heading-end-regexp))
                   0 '(if outline-minor-mode
                          (if outline-minor-mode-highlight
                              (list 'face (outline-font-lock-face)))