diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2015-05-01 13:53:47 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2015-05-01 14:03:26 +0200 |
commit | a4f4343110a39a537949144d0e2069f00243b5e7 (patch) | |
tree | 4811a3bd23866ef1a068d56c0974bb20e1cd6581 | |
parent | 0b7721322a023d99144cfb5bec092165f8e5cb00 (diff) | |
download | org-mode-a4f4343110a39a537949144d0e2069f00243b5e7.tar.gz |
ob-core: Fix regexp
* lisp/ob-core.el (org-babel-named-src-block-regexp-for-name): NAME
needs no be the last affiliated keyword.
-rw-r--r-- | lisp/ob-core.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob-core.el b/lisp/ob-core.el index fe1be82..c9fa5d7 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) |