ob: allow inline src blocks to start at bol

* lisp/ob.el (org-babel-inline-src-block-regexp): Allow regexp to
  start at bol.
This commit is contained in:
Nicolas Goaziou 2011-08-29 23:13:40 +02:00 committed by Eric Schulte
parent 1421887cde
commit 2ff74fc5b6
1 changed files with 1 additions and 1 deletions

View File

@ -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