From 8e358f2cef3d43afcbd81c6bd0ff4f9f89087d75 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 9 Oct 2011 09:34:47 +0200 Subject: [PATCH] Allow subscripts and superscripts to start at bol * lisp/org.el (org-match-substring-regexp, org-match-substring-with-braces-regexp): Allow subscripts and superscripts to start at beginning of line. --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 00cc7e0d9..b26e1a31c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5020,7 +5020,7 @@ stacked delimiters is N. Escaping delimiters is not possible." (defvar org-match-substring-regexp (concat - "\\([^\\]\\)\\([_^]\\)\\(" + "\\([^\\]\\|^\\)\\([_^]\\)\\(" "\\(" (org-create-multibrace-regexp "{" "}" org-match-sexp-depth) "\\)" "\\|" "\\(" (org-create-multibrace-regexp "(" ")" org-match-sexp-depth) "\\)" @@ -5030,7 +5030,7 @@ stacked delimiters is N. Escaping delimiters is not possible." (defvar org-match-substring-with-braces-regexp (concat - "\\([^\\]\\)\\([_^]\\)\\(" + "\\([^\\]\\|^\\)\\([_^]\\)\\(" "\\(" (org-create-multibrace-regexp "{" "}" org-match-sexp-depth) "\\)" "\\)") "The regular expression matching a sub- or superscript, forcing braces.")