ressurect bracket escape support

This commit is contained in:
Kyryl Melekhin committed 2021-09-12 18:35:18 +00:00
1 parent 529ec9c722
commit e4e5c3aa97
1 file changed
+1
+1
View File
@@ -227,6 +227,7 @@ static int _compilecode(const char **re_loc, rcode *prog, int sizecode)
PC++; // Skip "# of pairs" byte
prog->len++;
for (cnt = 0; *re != ']'; cnt++) {
if (*re == '\\') re++;
if (!*re) goto syntax_error;
uc_code(c, re) EMIT(PC++, c);
uc_len(c, re)