Browse Source

org-element: Update regexps

* lisp/org-element.el (org-element--cache-sensitive-re): Update
  regexps.
Nicolas Goaziou 10 years ago
parent
commit
ef3c574715
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/org-element.el

+ 2 - 2
lisp/org-element.el

@@ -5379,9 +5379,9 @@ the process stopped before finding the expected result."
    ;; Blocks
    "#\\+\\(?:BEGIN[:_]\\|END\\(?:_\\|:?[ \t]*$\\)\\)" "\\|"
    ;; LaTeX environments.
-   "\\\\\\(?:begin{[A-Za-z0-9]+\\*?}\\|end{[A-Za-z0-9]+\\*?}[ \t]*$\\)" "\\|"
+   "\\\\\\(?:begin{[A-Za-z0-9*]+}\\|end{[A-Za-z0-9*]+}[ \t]*$\\)" "\\|"
    ;; Drawers.
-   ":\\S-+:[ \t]*$"
+   ":\\(?:\\w\\|[-_]\\)+:[ \t]*$"
    "\\)")
   "Regexp matching a sensitive line, structure wise.
 A sensitive line is a headline, inlinetask, block, drawer, or