forked from aniani/vim
updated for version 7.0-144
This commit is contained in:
parent
5fc1a8b5d7
commit
640009dca3
34
src/regexp.c
34
src/regexp.c
@ -3777,8 +3777,8 @@ regmatch(scan)
|
|||||||
|
|
||||||
op = OP(scan);
|
op = OP(scan);
|
||||||
/* Check for character class with NL added. */
|
/* Check for character class with NL added. */
|
||||||
if (!reg_line_lbr && WITH_NL(op) && *reginput == NUL
|
if (!reg_line_lbr && WITH_NL(op) && REG_MULTI
|
||||||
&& reglnum <= reg_maxline)
|
&& *reginput == NUL && reglnum <= reg_maxline)
|
||||||
{
|
{
|
||||||
reg_nextline();
|
reg_nextline();
|
||||||
}
|
}
|
||||||
@ -4855,8 +4855,8 @@ regmatch(scan)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case NEWL:
|
case NEWL:
|
||||||
if ((c != NUL || reglnum > reg_maxline || reg_line_lbr)
|
if ((c != NUL || !REG_MULTI || reglnum > reg_maxline
|
||||||
&& (c != '\n' || !reg_line_lbr))
|
|| reg_line_lbr) && (c != '\n' || !reg_line_lbr))
|
||||||
status = RA_NOMATCH;
|
status = RA_NOMATCH;
|
||||||
else if (reg_line_lbr)
|
else if (reg_line_lbr)
|
||||||
ADVANCE_REGINPUT();
|
ADVANCE_REGINPUT();
|
||||||
@ -5316,8 +5316,8 @@ regrepeat(p, maxcount)
|
|||||||
++count;
|
++count;
|
||||||
mb_ptr_adv(scan);
|
mb_ptr_adv(scan);
|
||||||
}
|
}
|
||||||
if (!WITH_NL(OP(p)) || reglnum > reg_maxline || reg_line_lbr
|
if (!REG_MULTI || !WITH_NL(OP(p)) || reglnum > reg_maxline
|
||||||
|| count == maxcount)
|
|| reg_line_lbr || count == maxcount)
|
||||||
break;
|
break;
|
||||||
++count; /* count the line-break */
|
++count; /* count the line-break */
|
||||||
reg_nextline();
|
reg_nextline();
|
||||||
@ -5341,7 +5341,8 @@ regrepeat(p, maxcount)
|
|||||||
}
|
}
|
||||||
else if (*scan == NUL)
|
else if (*scan == NUL)
|
||||||
{
|
{
|
||||||
if (!WITH_NL(OP(p)) || reglnum > reg_maxline || reg_line_lbr)
|
if (!REG_MULTI || !WITH_NL(OP(p)) || reglnum > reg_maxline
|
||||||
|
|| reg_line_lbr)
|
||||||
break;
|
break;
|
||||||
reg_nextline();
|
reg_nextline();
|
||||||
scan = reginput;
|
scan = reginput;
|
||||||
@ -5370,7 +5371,8 @@ regrepeat(p, maxcount)
|
|||||||
}
|
}
|
||||||
else if (*scan == NUL)
|
else if (*scan == NUL)
|
||||||
{
|
{
|
||||||
if (!WITH_NL(OP(p)) || reglnum > reg_maxline || reg_line_lbr)
|
if (!REG_MULTI || !WITH_NL(OP(p)) || reglnum > reg_maxline
|
||||||
|
|| reg_line_lbr)
|
||||||
break;
|
break;
|
||||||
reg_nextline();
|
reg_nextline();
|
||||||
scan = reginput;
|
scan = reginput;
|
||||||
@ -5399,7 +5401,8 @@ regrepeat(p, maxcount)
|
|||||||
}
|
}
|
||||||
else if (*scan == NUL)
|
else if (*scan == NUL)
|
||||||
{
|
{
|
||||||
if (!WITH_NL(OP(p)) || reglnum > reg_maxline || reg_line_lbr)
|
if (!REG_MULTI || !WITH_NL(OP(p)) || reglnum > reg_maxline
|
||||||
|
|| reg_line_lbr)
|
||||||
break;
|
break;
|
||||||
reg_nextline();
|
reg_nextline();
|
||||||
scan = reginput;
|
scan = reginput;
|
||||||
@ -5424,7 +5427,8 @@ regrepeat(p, maxcount)
|
|||||||
{
|
{
|
||||||
if (*scan == NUL)
|
if (*scan == NUL)
|
||||||
{
|
{
|
||||||
if (!WITH_NL(OP(p)) || reglnum > reg_maxline || reg_line_lbr)
|
if (!REG_MULTI || !WITH_NL(OP(p)) || reglnum > reg_maxline
|
||||||
|
|| reg_line_lbr)
|
||||||
break;
|
break;
|
||||||
reg_nextline();
|
reg_nextline();
|
||||||
scan = reginput;
|
scan = reginput;
|
||||||
@ -5454,7 +5458,8 @@ do_class:
|
|||||||
#endif
|
#endif
|
||||||
if (*scan == NUL)
|
if (*scan == NUL)
|
||||||
{
|
{
|
||||||
if (!WITH_NL(OP(p)) || reglnum > reg_maxline || reg_line_lbr)
|
if (!REG_MULTI || !WITH_NL(OP(p)) || reglnum > reg_maxline
|
||||||
|
|| reg_line_lbr)
|
||||||
break;
|
break;
|
||||||
reg_nextline();
|
reg_nextline();
|
||||||
scan = reginput;
|
scan = reginput;
|
||||||
@ -5617,7 +5622,8 @@ do_class:
|
|||||||
#endif
|
#endif
|
||||||
if (*scan == NUL)
|
if (*scan == NUL)
|
||||||
{
|
{
|
||||||
if (!WITH_NL(OP(p)) || reglnum > reg_maxline || reg_line_lbr)
|
if (!REG_MULTI || !WITH_NL(OP(p)) || reglnum > reg_maxline
|
||||||
|
|| reg_line_lbr)
|
||||||
break;
|
break;
|
||||||
reg_nextline();
|
reg_nextline();
|
||||||
scan = reginput;
|
scan = reginput;
|
||||||
@ -5646,8 +5652,8 @@ do_class:
|
|||||||
|
|
||||||
case NEWL:
|
case NEWL:
|
||||||
while (count < maxcount
|
while (count < maxcount
|
||||||
&& ((*scan == NUL && reglnum <= reg_maxline && !reg_line_lbr)
|
&& ((*scan == NUL && reglnum <= reg_maxline && !reg_line_lbr
|
||||||
|| (*scan == '\n' && reg_line_lbr)))
|
&& REG_MULTI) || (*scan == '\n' && reg_line_lbr)))
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
if (reg_line_lbr)
|
if (reg_line_lbr)
|
||||||
|
@ -666,6 +666,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
144,
|
||||||
/**/
|
/**/
|
||||||
143,
|
143,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user