ressurect bracket escape support
This commit is contained in:
1 parent
529ec9c722
commit
e4e5c3aa97
1 file changed
+1
@@ -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