Fix bug 50496 -- regcomp.c=~s/lastcloseparen/lastparen/g
authorYves Orton <demerphq@gmail.com>
Sun, 17 Feb 2008 16:53:27 +0000 (16:53 +0000)
committerYves Orton <demerphq@gmail.com>
Sun, 17 Feb 2008 16:53:27 +0000 (16:53 +0000)
commit250257bbff1fc2894d6e73059be5be21b4ea00a4
treec8518e0e98a33992db46ed32a99159a2fbd1d07d
parent639081d6f95c9b3121be1c0c372070f2e0ca4eaf
Fix bug 50496 -- regcomp.c=~s/lastcloseparen/lastparen/g
-- lastcloseparen is literally the index of the last paren closed
-- lastparen is index of the highest index paren that has been closed.
In nested parens, they will be completely different.
'ab'=~/(a(b))/ will have: lastparen = 2, lastcloseparen = 1
'ab'=~/(a)(b)/ will have: lastparen = lastcloseparen = 2

p4raw-id: //depot/perl@33325
regcomp.c
t/op/pat.t