Hello,
For now inline src blocks cannot start at bol. In the following example,
only the first inline block is recognized.
This src_emacs-lisp{(1+ 1)} is ok.
src_emacs-lisp{"This"} isn't.
The small following patch should fix that.
Regards,
--
Nicolas Goaziou
>From 98ec0a9d86f1b4f35be0530e2d8afb97861a91c0 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <[email protected]>
Date: Mon, 29 Aug 2011 23:13:40 +0200
Subject: [PATCH] ob: allow inline src blocks to start at bol
* lisp/ob.el (org-babel-inline-src-block-regexp): Allow regexp to
start at bol.
---
lisp/ob.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lisp/ob.el b/lisp/ob.el
index 5d91ac3..9d80056 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -143,7 +143,7 @@ remove code block execution from the C-c C-c keybinding."
(defvar org-babel-inline-src-block-regexp
(concat
;; (1) replacement target (2) lang
- "[^-[:alnum:]]\\(src_\\([^ \f\t\n\r\v]+\\)"
+ "\\(?:^\\|[^-[:alnum:]]\\)\\(src_\\([^ \f\t\n\r\v]+\\)"
;; (3,4) (unused, headers)
"\\(\\|\\[\\(.*?\\)\\]\\)"
;; (5) body
--
1.7.6.1