forked from mirrors/org-mode
org-element: Fix parsing of src-block switches when there is more than one
* contrib/lisp/org-element.el (org-element-src-block-parser): Previous regexp would only get the last switch if more than one were provided.
This commit is contained in:
parent
e401ec09ec
commit
5a24ffe004
|
@ -1215,7 +1215,7 @@ and `:post-blank' keywords."
|
|||
(re-search-backward
|
||||
(concat "^[ \t]*#\\+begin_src"
|
||||
"\\(?: +\\(\\S-+\\)\\)?" ; language
|
||||
"\\(?:\\( +[-+][A-Za-z]\\)+\\)?" ; switches
|
||||
"\\(\\(?: +[-+][A-Za-z]\\)*\\)" ; switches
|
||||
"\\(.*\\)[ \t]*$") ; arguments
|
||||
nil t))
|
||||
;; Get language as a string.
|
||||
|
|
Loading…
Reference in a new issue