Mercurial > vim
comparison src/regexp_nfa.c @ 5188:fa76be660fa9 v7.4a.020
updated for version 7.4a.020
Problem: Superfluous mb_ptr_adv().
Solution: Remove the call. (Dominique Pelle)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 14 Jul 2013 12:34:56 +0200 |
parents | c6dd0c545e5c |
children | 839ebe7c1b2f |
comparison
equal
deleted
inserted
replaced
5187:b7fb98e5079d | 5188:fa76be660fa9 |
---|---|
1514 if (*regparse == '-') /* if last, '-' is just a char */ | 1514 if (*regparse == '-') /* if last, '-' is just a char */ |
1515 { | 1515 { |
1516 EMIT('-'); | 1516 EMIT('-'); |
1517 EMIT(NFA_CONCAT); | 1517 EMIT(NFA_CONCAT); |
1518 } | 1518 } |
1519 mb_ptr_adv(regparse); | |
1520 | 1519 |
1521 /* skip the trailing ] */ | 1520 /* skip the trailing ] */ |
1522 regparse = endp; | 1521 regparse = endp; |
1523 mb_ptr_adv(regparse); | 1522 mb_ptr_adv(regparse); |
1524 | 1523 |
4580 endpos.se_u.ptr = pim->end.ptr; | 4579 endpos.se_u.ptr = pim->end.ptr; |
4581 } | 4580 } |
4582 | 4581 |
4583 /* Go back the specified number of bytes, or as far as the | 4582 /* Go back the specified number of bytes, or as far as the |
4584 * start of the previous line, to try matching "\@<=" or | 4583 * start of the previous line, to try matching "\@<=" or |
4585 * not matching "\@<!". This is very ineffecient, limit the number of | 4584 * not matching "\@<!". This is very inefficient, limit the number of |
4586 * bytes if possible. */ | 4585 * bytes if possible. */ |
4587 if (state->val <= 0) | 4586 if (state->val <= 0) |
4588 { | 4587 { |
4589 if (REG_MULTI) | 4588 if (REG_MULTI) |
4590 { | 4589 { |