From a4f4343110a39a537949144d0e2069f00243b5e7 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 1 May 2015 13:53:47 +0200 Subject: [PATCH] ob-core: Fix regexp * lisp/ob-core.el (org-babel-named-src-block-regexp-for-name): NAME needs no be the last affiliated keyword. --- lisp/ob-core.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index fe1be82cf..c9fa5d797 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -595,7 +595,8 @@ to raise errors for all languages.") (defun org-babel-named-src-block-regexp-for-name (name) "This generates a regexp used to match a src block named NAME." (concat org-babel-src-name-regexp (regexp-quote name) - "[ \t(]*[\r\n]\\(?:^[[:space:]]*#.*[\r\n]\\)*" + "\\(?:\n[ \t]*#\\+\\S-+:.*\\)*?" + "\n" (substring org-babel-src-block-regexp 1))) (defun org-babel-named-data-regexp-for-name (name) -- 2.11.4.GIT