Skip to content

Commit

Permalink
set PE_FLAG_HAS_ABSENT_STOPPER flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kkos committed Dec 17, 2022
1 parent c76f3df commit 8532e4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/regparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -7810,6 +7810,7 @@ prs_bag(Node** np, PToken* tok, int term, UChar** src, UChar* end,
PINC;
r = make_range_clear(np, env);
if (r != 0) return r;
env->flags |= PE_FLAG_HAS_ABSENT_STOPPER;
goto end;
}
}
Expand All @@ -7831,7 +7832,7 @@ prs_bag(Node** np, PToken* tok, int term, UChar** src, UChar* end,
if (ND_TYPE(top) != ND_ALT || IS_NULL(ND_CDR(top))) {
expr = NULL_NODE;
is_range_cutter = 1;
/* return ONIGERR_INVALID_ABSENT_GROUP_GENERATOR_PATTERN; */
env->flags |= PE_FLAG_HAS_ABSENT_STOPPER;
}
else {
absent = ND_CAR(top);
Expand Down

0 comments on commit 8532e4d

Please sign in to comment.