Selaa lähdekoodia

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.
TEC 4 vuotta sitten
vanhempi
commit
9af8d55f07
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      lisp/org.el

+ 5 - 0
lisp/org.el

@@ -5688,6 +5688,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