From 5b9e79c8b846372c1089f662a21290a134eebec5 Mon Sep 17 00:00:00 2001 From: Aaron Ecay Date: Sun, 15 Dec 2013 23:31:47 -0500 Subject: [PATCH] org.el: use a shy regex for fontifying macros * lisp/org.el (org-set-font-lock-defaults): use a shy regex for identifying macros to fontify Before this change, the xxx in the following text would be erroneously fontified with the macro face: {{{macro1()}}} xxx {{{macro2()}}} --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index eeb0c337d..59f55a8a9 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6269,7 +6269,7 @@ needs to be inserted at a specific position in the font-lock sequence.") ;; Diary sexps. '("^&?%%(.*\\|<%%([^>\n]*?>" (0 'org-sexp-date t)) ;; Macro - '("{{{.+}}}" (0 'org-macro t)) + '("{{{.+?}}}" (0 'org-macro t)) '(org-hide-wide-columns (0 nil append)) ;; TODO keyword (list (format org-heading-keyword-regexp-format -- 2.11.4.GIT