]> 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)
committerEshel Yaron <me@eshelyaron.com>
Thu, 11 Jan 2024 19:38:14 +0000 (20:38 +0100)
* lisp/outline.el (outline-font-lock-keywords): Add
outline-heading-end-regexp to regexp (bug#66166).

(cherry picked from commit dc1f18e9d0863a03e00134b36279101f0747fcfb)

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)))