ressurect bracket escape support

This commit is contained in:
Kyryl Melekhin
2021-09-12 18:35:18 +00:00
parent 529ec9c722
commit e4e5c3aa97

1
pike.c
View File

@@ -227,6 +227,7 @@ static int _compilecode(const char **re_loc, rcode *prog, int sizecode)
PC++; // Skip "# of pairs" byte PC++; // Skip "# of pairs" byte
prog->len++; prog->len++;
for (cnt = 0; *re != ']'; cnt++) { for (cnt = 0; *re != ']'; cnt++) {
if (*re == '\\') re++;
if (!*re) goto syntax_error; if (!*re) goto syntax_error;
uc_code(c, re) EMIT(PC++, c); uc_code(c, re) EMIT(PC++, c);
uc_len(c, re) uc_len(c, re)