org-element: Fix regexp matching LaTeX environments
* lisp/org-element.el (org-element--current-element): Fix regexp matching latex environments. Discrepancy with regexp used in `org-element-latex-environment-parser' introduced matching errors.
This commit is contained in:
parent
79873390ed
commit
ec0e3cf70b
|
@ -3890,8 +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*]+}\\(\\[.*?\\]\\|{.*?}\\)*[ \t]*$")
|
||||
((looking-at "[ \t]*\\\\begin{\\([A-Za-z0-9]+\\*?\\)}")
|
||||
(org-element-latex-environment-parser limit affiliated))
|
||||
;; Drawer and Property Drawer.
|
||||
((looking-at org-drawer-regexp)
|
||||
|
|
Loading…
Reference in New Issue