diff options
author | Tassilo Horn <tsdh@gnu.org> | 2013-04-15 09:55:05 +0200 |
---|---|---|
committer | Tassilo Horn <tsdh@gnu.org> | 2013-04-15 09:55:05 +0200 |
commit | 4d9a0979f6930ef23ef0b05996cc737002b25e06 (patch) | |
tree | f4bab59c898d591955ff686a80b06a2b07606472 /lisp/textmodes/reftex.el | |
parent | 5fbcd237859a2f7979e2cff3bf6f3ac56f2bfa24 (diff) | |
download | emacs-4d9a0979f6930ef23ef0b05996cc737002b25e06.tar.gz |
* textmodes/reftex-vars.el (reftex-label-regexps): New defcustom.
* textmodes/reftex.el (reftex-compile-variables): Use it.
Diffstat (limited to 'lisp/textmodes/reftex.el')
-rw-r--r-- | lisp/textmodes/reftex.el | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el index d5bb0170cd9..21083fd188a 100644 --- a/lisp/textmodes/reftex.el +++ b/lisp/textmodes/reftex.el @@ -1081,13 +1081,7 @@ This enforces rescanning the buffer on next use." (wbol "\\(^\\)[ \t]*") ; Need to keep the empty group because ; match numbers are hard coded (label-re (concat "\\(?:" - ;; Normal \label{...} - "\\\\label{\\([^}]*\\)}" - "\\|" - ;; keyvals [..., label = {foo}, ...] - ;; forms used by ctable, listings, - ;; minted, ... - "\\[[^]]*label[[:space:]]*=[[:space:]]*{?\\(?1:[^],}]+\\)}?" + (mapconcat 'identity reftex-label-regexps "\\|") "\\)")) (include-re (concat wbol "\\\\\\(" |