aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTassilo Horn2015-12-14 18:46:47 +0100
committerTassilo Horn2015-12-14 18:46:47 +0100
commitecaaf900e84233d142a656250767544ff34d010a (patch)
treefa30351c73a4e9d184bb669c01a0b6492fb11873
parentfe27e037663d36be3e5741c2ce86ab4ee8017db1 (diff)
downloademacs-ecaaf900e84233d142a656250767544ff34d010a.tar.gz
emacs-ecaaf900e84233d142a656250767544ff34d010a.zip
Revert "Fix rx matcher overflow without limiting"
This reverts commit fe27e037663d36be3e5741c2ce86ab4ee8017db1.
-rw-r--r--lisp/textmodes/reftex-vars.el12
1 files changed, 1 insertions, 11 deletions
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index 9bc1d2d3af8..fcab1367f7d 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -877,17 +877,7 @@ DOWNCASE t: Downcase words before using them."
877 "\\\\label{\\(?1:[^}]*\\)}" 877 "\\\\label{\\(?1:[^}]*\\)}"
878 ;; keyvals [..., label = {foo}, ...] forms used by ctable, 878 ;; keyvals [..., label = {foo}, ...] forms used by ctable,
879 ;; listings, minted, ... 879 ;; listings, minted, ...
880 ;; 880 "\\[[^][]\\{0,2000\\}\\<label[[:space:]]*=[[:space:]]*{?\\(?1:[^],}]+\\)}?")
881 ;; If you think the first shy group is a bit strange, it is like
882 ;; that in order not to overflow the regexp matcher stack in the
883 ;; presence of unbalanced brackets, i.e., a [ and then no
884 ;; closing bracket anymore. In "[^[],]*,", the "*" repetition
885 ;; will be done without any need to record state for eventual
886 ;; backtracking because the "," is mutually exclusive with the
887 ;; "[^][,]", and the regexp matcher includes a special
888 ;; optimization for that case since it's common and very
889 ;; useful). (Hint by Stefan Monnier)
890 "\\[\\(?:[^][,]*,\\)*[ \t]*\\<label[[:space:]]*=[[:space:]]*{?\\(?1:[^],}]+\\)}?")
891 "List of regexps matching \\label definitions. 881 "List of regexps matching \\label definitions.
892The default value matches usual \\label{...} definitions and 882The default value matches usual \\label{...} definitions and
893keyval style [..., label = {...}, ...] label definitions. It is 883keyval style [..., label = {...}, ...] label definitions. It is