From eef9027cd24c72e5cea84d6fd8f842b6f2074c46 Mon Sep 17 00:00:00 2001 From: TEC Date: Wed, 31 Mar 2021 23:47:58 +0800 Subject: [PATCH] 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 a4fa58300..d6f38754d 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