* lisp/outline.el (outline-font-lock-keywords): Replace ‘.+’ with ‘.*’.

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).
This commit is contained in:
Juri Linkov 2021-11-24 20:46:53 +02:00
parent fde9363a57
commit 388b4a12f5

View 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