forked from mirrors/org-mode
org-element: Fix regexp
* lisp/org-element.el (org-element--cache-sensitive-re): Fix regexp.
This commit is contained in:
parent
12a63035e9
commit
789ddf155a
|
@ -5360,12 +5360,10 @@ the process stopped before finding the expected result."
|
||||||
(defconst org-element--cache-sensitive-re
|
(defconst org-element--cache-sensitive-re
|
||||||
(concat
|
(concat
|
||||||
org-outline-regexp-bol "\\|"
|
org-outline-regexp-bol "\\|"
|
||||||
|
"\\\\end{[A-Za-z0-9*]+}[ \t]*$" "\\|"
|
||||||
"^[ \t]*\\(?:"
|
"^[ \t]*\\(?:"
|
||||||
;; Blocks
|
|
||||||
"#\\+\\(?:BEGIN[:_]\\|END\\(?:_\\|:?[ \t]*$\\)\\)" "\\|"
|
"#\\+\\(?:BEGIN[:_]\\|END\\(?:_\\|:?[ \t]*$\\)\\)" "\\|"
|
||||||
;; LaTeX environments.
|
"\\\\begin{[A-Za-z0-9*]+}" "\\|"
|
||||||
"\\\\\\(?:begin{[A-Za-z0-9*]+}\\|end{[A-Za-z0-9*]+}[ \t]*$\\)" "\\|"
|
|
||||||
;; Drawers.
|
|
||||||
":\\(?:\\w\\|[-_]\\)+:[ \t]*$"
|
":\\(?:\\w\\|[-_]\\)+:[ \t]*$"
|
||||||
"\\)")
|
"\\)")
|
||||||
"Regexp matching a sensitive line, structure wise.
|
"Regexp matching a sensitive line, structure wise.
|
||||||
|
|
Loading…
Reference in a new issue