Allow configuring of MAX_CAPTURE_GROUPS for n > 10

This commit is contained in:
Feoramund
2024-07-24 16:27:08 -04:00
parent 16b644ad79
commit c52a8a5f86
2 changed files with 65 additions and 7 deletions
+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))