emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org-modern 0da8a79c64 2/2: Fix regexps


From: ELPA Syncer
Subject: [elpa] externals/org-modern 0da8a79c64 2/2: Fix regexps
Date: Fri, 3 Jun 2022 14:57:47 -0400 (EDT)

branch: externals/org-modern
commit 0da8a79c64d8b9e1e7b9ad7de455d7a7013989e4
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Fix regexps
---
 org-modern.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/org-modern.el b/org-modern.el
index ffb3e6b4f0..80332f5a06 100644
--- a/org-modern.el
+++ b/org-modern.el
@@ -530,7 +530,7 @@ You can specify a font `:family'. The font families 
`Iosevka', `Hack' and
       (when org-modern-todo
         `((,(format "^\\*+ +%s " (regexp-opt org-todo-keywords-1 t)) (0 
(org-modern--todo)))))
       (when org-modern-keyword
-        `(("^[ \t]*\\(#\\+\\)\\([^: \t]+\\):"
+        `(("^[ \t]*\\(#\\+\\)\\([^: \t\n]+\\):"
            ,@(pcase org-modern-keyword
                ('t '(1 '(face nil invisible t)))
                ((pred stringp) `(1 '(face nil display ,org-modern-keyword)))
@@ -549,10 +549,10 @@ You can specify a font `:family'. The font families 
`Iosevka', `Hack' and
         '(("^[ \t]*\\(|.*|\\)[ \t]*$" (0 (org-modern--table)))))
       (when org-modern-block
         '(("^[ \t]*#\\+\\(?:begin\\|BEGIN\\)_\\S-" (0 
(org-modern--block-fringe)))
-          ("^\\([ \t]*#\\+\\(?:begin\\|BEGIN\\)_\\)\\(\\S-+\\).*"
+          ("^\\([ \t]*#\\+\\(?:begin\\|BEGIN\\)_\\)\\(\\S-+\\)"
            (1 '(face nil display (space :width (3))))
            (2 'org-modern-block-keyword append))
-          ("^\\([ \t]*#\\+\\(?:end\\|END\\)_\\)\\(\\S-+\\).*"
+          ("^\\([ \t]*#\\+\\(?:end\\|END\\)_\\)\\(\\S-+\\)"
            (1 '(face nil display (space :width (3))))
            (2 'org-modern-block-keyword append))))
       (when org-modern-tag



reply via email to

[Prev in Thread] Current Thread [Next in Thread]