aboutsummaryrefslogtreecommitdiff
path: root/core/text/regex/common
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-07-24 15:59:59 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-07-24 16:27:08 -0400
commitc52a8a5f86707eeb71bcb44e2f691c67c9383500 (patch)
tree347731501d635b3a0bb9c755aad09a83857c8e74 /core/text/regex/common
parent16b644ad79ca80227c67c4a7a2234dcd47800161 (diff)
Allow configuring of `MAX_CAPTURE_GROUPS` for `n` > 10
Diffstat (limited to 'core/text/regex/common')
-rw-r--r--core/text/regex/common/common.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/text/regex/common/common.odin b/core/text/regex/common/common.odin
index f53f043a1..f401658cb 100644
--- a/core/text/regex/common/common.odin
+++ b/core/text/regex/common/common.odin
@@ -2,7 +2,7 @@
package regex_common
// VM limitations
-MAX_CAPTURE_GROUPS :: 10
+MAX_CAPTURE_GROUPS :: max(#config(ODIN_REGEX_MAX_CAPTURE_GROUPS, 10), 10)
MAX_PROGRAM_SIZE :: int(max(i16))
MAX_CLASSES :: int(max(u8))