Fix regex matching keyval labels

* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Fix regexp
matching keyval labels.
This commit is contained in:
Tassilo Horn 2015-12-13 17:35:40 +01:00
parent 536f6fc826
commit 93b1067949

View file

@ -877,7 +877,7 @@ DOWNCASE t: Downcase words before using them."
"\\\\label{\\(?1:[^}]*\\)}"
;; keyvals [..., label = {foo}, ...] forms used by ctable,
;; listings, minted, ...
"\\[[^[]]*\\<label[[:space:]]*=[[:space:]]*{?\\(?1:[^],}]+\\)}?")
"\\[[^][]*\\<label[[:space:]]*=[[:space:]]*{?\\(?1:[^],}]+\\)}?")
"List of regexps matching \\label definitions.
The default value matches usual \\label{...} definitions and
keyval style [..., label = {...}, ...] label definitions. It is