mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
2000-02-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f82a67fd0
commit
bf70582cf3
19 changed files with 130 additions and 23 deletions
3
regex.c
3
regex.c
|
@ -4194,9 +4194,10 @@ re_match(bufp, string_arg, size, pos, regs)
|
|||
case jump:
|
||||
p1++;
|
||||
EXTRACT_NUMBER_AND_INCR (mcnt, p1);
|
||||
|
||||
if (mcnt >= 0) break; /* should be backward jump */
|
||||
p1 += mcnt;
|
||||
|
||||
if (p1 >= pend) break;
|
||||
if (( is_a_jump_n && (enum regexpcode)*p1 == succeed_n) ||
|
||||
(!is_a_jump_n && (enum regexpcode)*p1 == on_failure_jump)) {
|
||||
if (failed_paren) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue