mirror of
https://github.com/vim/vim.git
synced 2025-11-13 22:54:27 -05:00
updated for version 7.3.1191
Problem: Backreference to previous line doesn't work. (Lech Lorens) Solution: Implement looking in another line.
This commit is contained in:
@@ -486,6 +486,12 @@ y$Gop:"
|
||||
:.yank
|
||||
Gop:"
|
||||
:"
|
||||
:" Check using a backref matching in a previous line
|
||||
/^Backref:
|
||||
/\v.*\/(.*)\n.*\/\1$
|
||||
:.yank
|
||||
Gop:"
|
||||
:"
|
||||
:" Check a pattern with a look beind crossing a line boundary
|
||||
/^Behind:
|
||||
/\(<\_[xy]\+\)\@3<=start
|
||||
@@ -566,6 +572,13 @@ a
|
||||
b
|
||||
c
|
||||
|
||||
Backref:
|
||||
./Dir1/Dir2/zyxwvuts.txt
|
||||
./Dir1/Dir2/abcdefgh.bat
|
||||
|
||||
./Dir1/Dir2/file1.txt
|
||||
./OtherDir1/OtherDir2/file1.txt
|
||||
|
||||
Behind:
|
||||
asdfasd<yyy
|
||||
xxstart1
|
||||
|
||||
@@ -920,6 +920,8 @@ ghi
|
||||
|
||||
c
|
||||
|
||||
./Dir1/Dir2/file1.txt
|
||||
|
||||
xxstart3
|
||||
|
||||
thexE thE thExethe
|
||||
|
||||
Reference in New Issue
Block a user