aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Burago <igor@igorburago.com>2022-10-14 20:28:06 +0800
committerDan Cross <crossd@gmail.com>2023-03-31 11:50:53 -0400
commitcc4571fec67407652b03d6603ada6580de2194dc (patch)
treeb2a031ed91ec4232cde2cf9f475a085ba040c72b
parent727ce0e1235dec1fec65ab2b95469d5a276d006e (diff)
libregexp: allow up to 127 captured subexpressions in one regexp
128 counting with the entire expression match ($0).
-rw-r--r--src/libregexp/regcomp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libregexp/regcomp.h b/src/libregexp/regcomp.h
index 4b9a483b..0e03caa6 100644
--- a/src/libregexp/regcomp.h
+++ b/src/libregexp/regcomp.h
@@ -5,7 +5,7 @@
typedef unsigned char uchar;
#define nelem(x) (sizeof(x)/sizeof((x)[0]))
-#define NSUBEXP 32
+#define NSUBEXP 128
typedef struct Resublist Resublist;
struct Resublist
{