0
0
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:
Bram Moolenaar
2013-06-14 20:31:28 +02:00
parent 6e70736cbc
commit 580abea48a
5 changed files with 113 additions and 71 deletions

View File

@@ -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

View File

@@ -920,6 +920,8 @@ ghi
c
./Dir1/Dir2/file1.txt
xxstart3
thexE thE thExethe