From: kosako Date: Mon, 4 Jul 2016 09:07:46 +0000 (+0900) Subject: fix case of enclosed option in look-behind X-Git-Tag: v6.1.0~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b68cd58d8aed4c2866fa8fcf19181c1a55fd310a;p=onig fix case of enclosed option in look-behind --- diff --git a/src/regcomp.c b/src/regcomp.c index d6a8786..2fac412 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -3859,8 +3859,8 @@ setup_tree(Node* node, regex_t* reg, int state, ScanEnv* env) ( BIT_NT_LIST | BIT_NT_ALT | BIT_NT_STR | BIT_NT_CCLASS | BIT_NT_CTYPE | \ BIT_NT_CANY | BIT_NT_ANCHOR | BIT_NT_ENCLOSE | BIT_NT_QTFR | BIT_NT_CALL ) -#define ALLOWED_ENCLOSE_IN_LB ( ENCLOSE_MEMORY ) -#define ALLOWED_ENCLOSE_IN_LB_NOT 0 +#define ALLOWED_ENCLOSE_IN_LB ( ENCLOSE_MEMORY | ENCLOSE_OPTION ) +#define ALLOWED_ENCLOSE_IN_LB_NOT ENCLOSE_OPTION #define ALLOWED_ANCHOR_IN_LB \ ( ANCHOR_LOOK_BEHIND | ANCHOR_BEGIN_LINE | ANCHOR_END_LINE | ANCHOR_BEGIN_BUF | ANCHOR_BEGIN_POSITION )