Allow configuring of MAX_CAPTURE_GROUPS for n > 10

This commit is contained in:
Feoramund committed 2024-07-24 16:27:08 -04:00
1 parent 16b644ad79
commit c52a8a5f86
2 files changed
+65 -7

No files matched your search

+1 -1
View File
@@ -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))