mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.1185
Problem: New regexp engine: no match with ^ after \n. (SungHyun Nam) Solution: Fix it, add a test.
This commit is contained in:
parent
484d241a4a
commit
b62bcd1e05
@ -3936,9 +3936,10 @@ addstate(l, state, subs, pim, off)
|
|||||||
case NFA_BOL:
|
case NFA_BOL:
|
||||||
case NFA_BOF:
|
case NFA_BOF:
|
||||||
/* "^" won't match past end-of-line, don't bother trying.
|
/* "^" won't match past end-of-line, don't bother trying.
|
||||||
* Except when we are going to the next line for a look-behind
|
* Except when at the end of the line, or when we are going to the
|
||||||
* match. */
|
* next line for a look-behind match. */
|
||||||
if (reginput > regline
|
if (reginput > regline
|
||||||
|
&& *reginput != NUL
|
||||||
&& (nfa_endp == NULL
|
&& (nfa_endp == NULL
|
||||||
|| !REG_MULTI
|
|| !REG_MULTI
|
||||||
|| reglnum == nfa_endp->se_u.pos.lnum))
|
|| reglnum == nfa_endp->se_u.pos.lnum))
|
||||||
|
@ -480,6 +480,12 @@ Gop:"
|
|||||||
:.yank
|
:.yank
|
||||||
y$Gop:"
|
y$Gop:"
|
||||||
:"
|
:"
|
||||||
|
:" Check a pattern with a line break and ^ and $
|
||||||
|
/^Abc:
|
||||||
|
/a\n^b$\n^c/e
|
||||||
|
:.yank
|
||||||
|
Gop:"
|
||||||
|
:"
|
||||||
:" Check a pattern with a look beind crossing a line boundary
|
:" Check a pattern with a look beind crossing a line boundary
|
||||||
/^Behind:
|
/^Behind:
|
||||||
/\(<\_[xy]\+\)\@3<=start
|
/\(<\_[xy]\+\)\@3<=start
|
||||||
@ -555,6 +561,11 @@ ghi
|
|||||||
xjk
|
xjk
|
||||||
lmn
|
lmn
|
||||||
|
|
||||||
|
Abc:
|
||||||
|
a
|
||||||
|
b
|
||||||
|
c
|
||||||
|
|
||||||
Behind:
|
Behind:
|
||||||
asdfasd<yyy
|
asdfasd<yyy
|
||||||
xxstart1
|
xxstart1
|
||||||
|
@ -918,6 +918,8 @@ OK 2 - [0-9a-zA-Z]\{8}-\([0-9a-zA-Z]\{4}-\)\{3}[0-9a-zA-Z]\{12}
|
|||||||
<T="7">Ac 7</Title>
|
<T="7">Ac 7</Title>
|
||||||
ghi
|
ghi
|
||||||
|
|
||||||
|
c
|
||||||
|
|
||||||
xxstart3
|
xxstart3
|
||||||
|
|
||||||
thexE thE thExethe
|
thexE thE thExethe
|
||||||
|
@ -728,6 +728,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 */
|
||||||
|
/**/
|
||||||
|
1185,
|
||||||
/**/
|
/**/
|
||||||
1184,
|
1184,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user