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

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

[elpa] externals-release/org 4c76962 2/2: lisp/org.el: Don't fontify hea


From: ELPA Syncer
Subject: [elpa] externals-release/org 4c76962 2/2: lisp/org.el: Don't fontify headlines with "::" as description items
Date: Sun, 2 May 2021 13:57:11 -0400 (EDT)

branch: externals-release/org
commit 4c76962814251b084bf8421112617b56694f860f
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Bastien <bzg@gnu.org>

    lisp/org.el: Don't fontify headlines with "::" as description items
    
    * lisp/org.el (org-set-font-lock-defaults): Avoid fontifying headlines
    with "::" as description list items.
    
    Lists can start with "*", but "*" must not be at the beginning of
    line.  Old regexp did not require whitespace before "*" in description
    list items.
    
    Reported-by: Ypo <ypuntot@gmail.com>
    Link: 
https://orgmode.org/list/5adcfcda-35de-8281-a1ff-18d1c95bbde6@gmail.com/
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 49eaccb..4a6aa1d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5698,7 +5698,7 @@ needs to be inserted at a specific position in the 
font-lock sequence.")
             '("\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]"
               (0 (org-get-checkbox-statistics-face) t)))
           ;; Description list items
-          '("^[ \t]*[-+*][ \t]+\\(.*?[ \t]+::\\)\\([ \t]+\\|$\\)"
+           '("\\(?:^[ \t]*[-+]\\|^[ \t]+[*]\\)[ \t]+\\(.*?[ \t]+::\\)\\([ 
\t]+\\|$\\)"
             1 'org-list-dt prepend)
           ;; ARCHIVEd headings
           (list (concat



reply via email to

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