]> granicus.if.org Git - onig/commit
Fix illegal capture after recursive call
authorK.Takata <kentkt@csc.jp>
Tue, 13 Dec 2016 13:19:53 +0000 (22:19 +0900)
committerK.Takata <kentkt@csc.jp>
Tue, 13 Dec 2016 13:19:53 +0000 (22:19 +0900)
commitd304e2a7c19e9edea13ee3731275ad53cc555312
tree4a8f19a8602e83992b96100b644030cf2dfff586
parentdacfaba1082a00abea5d564931458f8d659bf3f2
Fix illegal capture after recursive call

After matching `/(\(((?:[^(]|\g<1>)*)\))/ =~ "(abc)(abc)"`,
`\2` captures wrong position.
A capture group inside another capture group should be also handled as
if it is called, when the outer group is called.
src/regcomp.c