0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-22 10:10:42 +00:00

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.
This commit is contained in:
Nicolas Goaziou 2011-10-09 09:34:47 +02:00
parent 4a7dd1e087
commit 8e358f2cef

View file

@ -5020,7 +5020,7 @@ stacked delimiters is N. Escaping delimiters is not possible."
(defvar org-match-substring-regexp (defvar org-match-substring-regexp
(concat (concat
"\\([^\\]\\)\\([_^]\\)\\(" "\\([^\\]\\|^\\)\\([_^]\\)\\("
"\\(" (org-create-multibrace-regexp "{" "}" org-match-sexp-depth) "\\)" "\\(" (org-create-multibrace-regexp "{" "}" org-match-sexp-depth) "\\)"
"\\|" "\\|"
"\\(" (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 (defvar org-match-substring-with-braces-regexp
(concat (concat
"\\([^\\]\\)\\([_^]\\)\\(" "\\([^\\]\\|^\\)\\([_^]\\)\\("
"\\(" (org-create-multibrace-regexp "{" "}" org-match-sexp-depth) "\\)" "\\(" (org-create-multibrace-regexp "{" "}" org-match-sexp-depth) "\\)"
"\\)") "\\)")
"The regular expression matching a sub- or superscript, forcing braces.") "The regular expression matching a sub- or superscript, forcing braces.")