summaryrefslogtreecommitdiff
path: root/src/regsyntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regsyntax.c')
-rw-r--r--src/regsyntax.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/regsyntax.c b/src/regsyntax.c
index 8e1c313..d9cbfb3 100644
--- a/src/regsyntax.c
+++ b/src/regsyntax.c
@@ -49,7 +49,7 @@ OnigSyntaxType OnigSyntaxPosixBasic = {
( SYN_POSIX_COMMON_OP | ONIG_SYN_OP_ESC_LPAREN_SUBEXP |
ONIG_SYN_OP_ESC_BRACE_INTERVAL )
, 0
- , 0
+ , ( ONIG_SYN_BRE_ANCHOR_AT_EDGE_OF_SUBEXP )
, ( ONIG_OPTION_SINGLELINE | ONIG_OPTION_MULTILINE )
,
{
@@ -113,7 +113,8 @@ OnigSyntaxType OnigSyntaxGrep = {
ONIG_SYN_OP_ESC_W_WORD | ONIG_SYN_OP_ESC_B_WORD_BOUND |
ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END | ONIG_SYN_OP_DECIMAL_BACKREF )
, 0
- , ( ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC | ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC )
+ , ( ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC | ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC |
+ ONIG_SYN_BRE_ANCHOR_AT_EDGE_OF_SUBEXP )
, ONIG_OPTION_NONE
,
{