ressurect bracket escape support
This commit is contained in:
1
pike.c
1
pike.c
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user