org-element: Fix regexp

* lisp/org-element.el (org-element--cache-sensitive-re): Fix regexp.
This commit is contained in:
Nicolas Goaziou 2015-04-05 21:38:10 +02:00
parent 12a63035e9
commit 789ddf155a

View file

@ -5360,12 +5360,10 @@ the process stopped before finding the expected result."
(defconst org-element--cache-sensitive-re
(concat
org-outline-regexp-bol "\\|"
"\\\\end{[A-Za-z0-9*]+}[ \t]*$" "\\|"
"^[ \t]*\\(?:"
;; Blocks
"#\\+\\(?:BEGIN[:_]\\|END\\(?:_\\|:?[ \t]*$\\)\\)" "\\|"
;; LaTeX environments.
"\\\\\\(?:begin{[A-Za-z0-9*]+}\\|end{[A-Za-z0-9*]+}[ \t]*$\\)" "\\|"
;; Drawers.
"\\\\begin{[A-Za-z0-9*]+}" "\\|"
":\\(?:\\w\\|[-_]\\)+:[ \t]*$"
"\\)")
"Regexp matching a sensitive line, structure wise.