summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Siram <aditya siram at gmail dot com>2013-09-13 09:57:25 -0500
committerEric Schulte <schulte.eric@gmail.com>2013-09-14 09:25:05 -0600
commitbbe8518118646a28faaedd08f403036c2e2f9939 (patch)
treedd8160718f631585c7abdcd7aec732b07cd06ee2
parentbb331aee96144f75516005ccbbd3b7ccb0675701 (diff)
downloadorg-mode-bbe8518118646a28faaedd08f403036c2e2f9939.tar.gz
Given a block with an empty body org-babel-src-block-regexp gobbled up everything until the ending delimiter of the next code block. Fixed this by making the body regexp non-greedy.
-rw-r--r--lisp/ob-core.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index d57806b..e8f16a0 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -188,7 +188,7 @@ This string must include a \"%s\" which will be replaced by the results."
;; (4) header arguments
"\\([^\n]*\\)\n"
;; (5) body
- "\\([^\000]*?\n\\)?[ \t]*#\\+end_src")
+ "\\([^\000]*?\n\\)??[ \t]*#\\+end_src")
"Regexp used to identify code blocks.")
(defvar org-babel-inline-src-block-regexp