add more tests; allow \< escape out
This commit is contained in:
2
pike.c
2
pike.c
@@ -203,6 +203,8 @@ static int _compilecode(const char **re_loc, rcode *prog, int sizecode)
|
||||
re++;
|
||||
if (!*re) goto syntax_error; // Trailing backslash
|
||||
if (*re == '<' || *re == '>') {
|
||||
if (re - *re_loc > 2 && re[-2] == '\\')
|
||||
break;
|
||||
EMIT(PC++, *re == '<' ? WBEG : WEND);
|
||||
prog->len++;
|
||||
term = PC;
|
||||
|
||||
Reference in New Issue
Block a user