Restrict fix to where we really need it.

This commit is contained in:
jzmaddock
2024-11-04 18:12:47 +00:00
parent be12f75b22
commit 3a50c6828c

View File

@ -1204,7 +1204,9 @@ 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;
if(idx > 0)
match_startmark();
else
pstate = pstate->next.p;
skip_until_paren(idx, false);
continue;