handle {n,} repetition without blowing up codesize

This commit is contained in:
Kyryl Melekhin
2021-10-08 12:04:24 +00:00
parent 3bb28cd1f8
commit 541d881b4f
3 changed files with 23 additions and 10 deletions

View File

@@ -123,6 +123,7 @@ aaaaa(aa)aa(aa(a)a)?aa
(\\\\$\\\\([a-zA-Z0-9_]+\\\\))|(([A-Za-z_%.]+):)
.{5}
.{10,15}
(a(abc)+){3,}
"
input="\
abcdef
@@ -247,6 +248,7 @@ https://kyryl.tk/404
OBJ = \$(SRC:.c=.o)
рврыр
рврырdhsjhh
aabcabcaabcaabc
"
expect="\
(0,3)
@@ -371,6 +373,7 @@ expect="\
(8,12)(?,?)(8,12)(8,11)
(0,10)
(0,16)
(0,15)(11,15)(12,15)
(0,0)
"