Преглед на файлове

babel: fixed bug resulting from two inline src blocks on the same line

* contrib/babel/lisp/org-babel.el (org-babel-set-interpreters): less
  greedy regexp for inline source blocks ensures that there is no
  confusion when two inline blocks are on the same line.
Eric Schulte преди 15 години
родител
ревизия
08d8331307
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      contrib/babel/lisp/org-babel.el

+ 2 - 2
contrib/babel/lisp/org-babel.el

@@ -164,8 +164,8 @@ can not be resolved.")
 		"\\("                                 ;; (2)   lang
 		(mapconcat 'regexp-quote value "\\|")
 		"\\)"
-                "\\(\\|\\[\\(.*\\)\\]\\)"             ;; (3,4) (unused, headers)
-                "{\\([^\f\n\r\v]+\\)}"                ;; (5)   body
+                "\\(\\|\\[\\(.*?\\)\\]\\)"            ;; (3,4) (unused, headers)
+                "{\\([^\f\n\r\v]+?\\)}"               ;; (5)   body
 		"\\)")))
 
 (defun org-babel-add-interpreter (interpreter)