* [PATCH] Avoid spurious matches to literal "#+end_src" inside source block
@ 2011-03-25 22:23 Sean O'Halpin
0 siblings, 0 replies; only message in thread
From: Sean O'Halpin @ 2011-03-25 22:23 UTC (permalink / raw)
To: emacs-orgmode
From d5a47db19a6c263b0516c454594296da9f44c428 Mon Sep 17 00:00:00 2001
From: Sean O'Halpin <sean.ohalpin@gmail.com>
Date: Fri, 25 Mar 2011 22:16:54 +0000
Subject: [PATCH] * lisp/ob.el: Avoid spurious matches to literal
"#+end_src" inside a source block.
Added newline to org-babel-src-block-regexp.
---
lisp/ob.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lisp/ob.el b/lisp/ob.el
index 6b4a766..8938b3b 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -141,7 +141,7 @@ remove code block execution from the C-c C-c keybinding."
;; (4) header arguments
"\\([^\n]*\\)\n"
;; (5) body
- "\\([^\000]*?\n*\\)[ \t]*#\\+end_src")
+ "\\([^\000]*?\n*\\)\n[ \t]*#\\+end_src")
"Regexp used to identify code blocks.")
(defvar org-babel-inline-src-block-regexp
--
1.7.0.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-25 22:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-25 22:23 [PATCH] Avoid spurious matches to literal "#+end_src" inside source block Sean O'Halpin
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).