Skip to content

Commit

Permalink
Restrict fix to where we really need it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzmaddock committed Nov 4, 2024
1 parent be12f75 commit 3a50c68
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/boost/regex/v5/perl_matcher_non_recursive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1204,8 +1204,10 @@ bool perl_matcher<BidiIterator, Allocator, traits>::skip_until_paren(int index,
else if(pstate->type == syntax_element_startmark)
{
int idx = static_cast<const re_brace*>(pstate)->index;
match_startmark();
pstate = pstate->next.p;
if(idx > 0)
match_startmark();
else
pstate = pstate->next.p;
skip_until_paren(idx, false);
continue;
}
Expand Down

0 comments on commit 3a50c68

Please sign in to comment.