Explorar o código

org-element: Fix regexp

* lisp/org-element.el (org-element--cache-sensitive-re): Fix regexp.
Nicolas Goaziou %!s(int64=10) %!d(string=hai) anos
pai
achega
789ddf155a
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      lisp/org-element.el

+ 2 - 4
lisp/org-element.el

@@ -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.