mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05:00
updated for version 7.3.1082
Problem: New regexp engine: Problem with \@= matching. Solution: Save and restore nfa_match.
This commit is contained in:
@@ -305,6 +305,7 @@ STARTTEST
|
||||
:call add(tl, [2, '\v(abc)@=..', 'xabcd', 'ab', 'abc'])
|
||||
:call add(tl, [2, '\(.*John\)\@=.*Bob', 'here is John, and here is B'])
|
||||
:call add(tl, [2, '\(John.*\)\@=.*Bob', 'John is Bobs friend', 'John is Bob', 'John is Bobs friend'])
|
||||
:call add(tl, [2, '\<\S\+\())\)\@=', '$((i=i+1))', 'i=i+1', '))'])
|
||||
:call add(tl, [2, '.*John\&.*Bob', 'here is John, and here is B'])
|
||||
:call add(tl, [2, '.*John\&.*Bob', 'John is Bobs friend', 'John is Bob'])
|
||||
:call add(tl, [2, '\v(test1)@=.*yep', 'this is a test1, yep it is', 'test1, yep', 'test1'])
|
||||
|
||||
@@ -669,6 +669,9 @@ OK 2 - \(.*John\)\@=.*Bob
|
||||
OK 0 - \(John.*\)\@=.*Bob
|
||||
OK 1 - \(John.*\)\@=.*Bob
|
||||
OK 2 - \(John.*\)\@=.*Bob
|
||||
OK 0 - \<\S\+\())\)\@=
|
||||
OK 1 - \<\S\+\())\)\@=
|
||||
OK 2 - \<\S\+\())\)\@=
|
||||
OK 0 - .*John\&.*Bob
|
||||
OK 1 - .*John\&.*Bob
|
||||
OK 2 - .*John\&.*Bob
|
||||
|
||||
Reference in New Issue
Block a user