0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 20:37:51 +00:00

org-element: Fix test failure

* lisp/org-element.el (org-element--current-element): Fix regexp.
This commit is contained in:
Nicolas Goaziou 2014-07-23 10:07:55 +02:00
parent ec0e3cf70b
commit d0959d410b

View file

@ -3890,7 +3890,7 @@ element it has to parse."
(goto-char (car affiliated))
(org-element-keyword-parser limit nil))
;; LaTeX Environment.
((looking-at "[ \t]*\\\\begin{\\([A-Za-z0-9]+\\*?\\)}")
((looking-at "[ \t]*\\\\begin{\\([A-Za-z0-9]+\\*?\\)}\\(\\[.*?\\]\\|{.*?}\\)*[ \t]*$")
(org-element-latex-environment-parser limit affiliated))
;; Drawer and Property Drawer.
((looking-at org-drawer-regexp)