CVSROOT: /sources/auctex Module name: reftex Changes by: Tassilo Horn <tsdh> 12/07/30 08:07:45
Index: lisp/reftex-base.el =================================================================== RCS file: /sources/auctex/reftex/lisp/reftex-base.el,v retrieving revision 1.21 retrieving revision 1.22 diff -u -b -r1.21 -r1.22 --- lisp/reftex-base.el 30 Jan 2010 16:25:51 -0000 1.21 +++ lisp/reftex-base.el 30 Jul 2012 08:07:44 -0000 1.22 @@ -1091,7 +1091,15 @@ ; (wbol "\\(\\`\\|[\n\r]\\)[ \t]*") (wbol "\\(^\\)[ \t]*") ; Need to keep the empty group because ; because match numbers are hard coded - (label-re "\\\\label{\\([^}]*\\)}") + (label-re (concat "\\(?:" + ;; Normal \label{...} + "\\\\label{\\([^}]*\\)}" + "\\|" + ;; keyvals [..., label = {foo}, ...] + ;; forms used by ctable, listings, + ;; minted, ... + "\\[[^]]*label[[:space:]]*=[[:space:]]*{?\\(?1:[^],}]+\\)}?[^[]*\\]" + "\\)")) (include-re (concat wbol "\\\\\\(" (mapconcat 'identity @@ -1125,6 +1133,8 @@ "\\)\\([[{][^]}]*[]}]\\)*[[{]\\(%s\\)[]}]")) (find-label-re-format (concat "\\(" + "label[[:space:]]*=[[:space:]]*" + "\\|" (mapconcat 'regexp-quote (append '("\\label") macros-with-labels) "\\|") "\\)\\([[{][^]}]*[]}]\\)*[[{]\\(%s\\)[]}]")) _______________________________________________ auctex-diffs mailing list auctex-di...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-diffs