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

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

[elpa] externals/org eef9027 2/6: org: Add font-lock rule for inline exp


From: ELPA Syncer
Subject: [elpa] externals/org eef9027 2/6: org: Add font-lock rule for inline export snippets
Date: Sat, 1 May 2021 06:57:15 -0400 (EDT)

branch: externals/org
commit eef9027cd24c72e5cea84d6fd8f842b6f2074c46
Author: TEC <tec@tecosaur.com>
Commit: Bastien Guerry <bzg@gnu.org>

    org: Add font-lock rule for inline export snippets
    
    * lisp/org.el (org-set-font-lock-defaults): Add font-lock rule for
    inline export snippets.
---
 lisp/org.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lisp/org.el b/lisp/org.el
index a4fa583..d6f3875 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5704,6 +5704,11 @@ needs to be inserted at a specific position in the 
font-lock sequence.")
           ;; Description list items
           '("^[ \t]*[-+*][ \t]+\\(.*?[ \t]+::\\)\\([ \t]+\\|$\\)"
             1 'org-list-dt prepend)
+           ;; Inline export snippets
+           '("\\(@@\\)\\([a-z-]+:\\).*?\\(@@\\)"
+             (1 'font-lock-comment-face t)
+             (2 'org-tag t)
+             (3 'font-lock-comment-face t))
           ;; ARCHIVEd headings
           (list (concat
                  org-outline-regexp-bol



reply via email to

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