org-element: Fix test failure
* lisp/org-element.el (org-element--current-element): Fix regexp.
This commit is contained in:
parent
ec0e3cf70b
commit
d0959d410b
|
@ -3890,7 +3890,7 @@ element it has to parse."
|
||||||
(goto-char (car affiliated))
|
(goto-char (car affiliated))
|
||||||
(org-element-keyword-parser limit nil))
|
(org-element-keyword-parser limit nil))
|
||||||
;; LaTeX Environment.
|
;; 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))
|
(org-element-latex-environment-parser limit affiliated))
|
||||||
;; Drawer and Property Drawer.
|
;; Drawer and Property Drawer.
|
||||||
((looking-at org-drawer-regexp)
|
((looking-at org-drawer-regexp)
|
||||||
|
|
Loading…
Reference in New Issue