]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/outline.el (outline-font-lock-keywords): Replace ‘.+’ with ‘.*’.
authorJuri Linkov <juri@linkov.net>
Wed, 24 Nov 2021 18:46:53 +0000 (20:46 +0200)
committerJuri Linkov <juri@linkov.net>
Wed, 24 Nov 2021 18:47:48 +0000 (20:47 +0200)
Make the regexp less restrictive and don't require the outline heading
to have more text after outline-regexp until the end of the heading line
(bug#51016).

lisp/outline.el

index a4d2a3b7d741081fc5a56eaa7f0bde1ac8d1e3a0..2ede4e23eac85ae8235f03ba87601d098bd86ee8 100644 (file)
@@ -221,7 +221,7 @@ in the file it applies to.")
 (defvar outline-font-lock-keywords
   '(
     ;; Highlight headings according to the level.
-    (eval . (list (concat "^\\(?:" outline-regexp "\\).+")
+    (eval . (list (concat "^\\(?:" outline-regexp "\\).*")
                   0 '(if outline-minor-mode
                          (if outline-minor-mode-cycle
                              (if outline-minor-mode-highlight