diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-02 16:07:10 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-02 16:07:10 +0200 |
commit | b122e9798e058645ab3936eb12e02bd61403ac33 (patch) | |
tree | fc2d16eb4a5eda6dc2e045362c1eb77ff87c307e /src/testdir/test64.in | |
parent | 69afb7bf0aef4e9b39acbdb7849dd9c44b1345c5 (diff) |
updated for version 7.3.1093v7.3.1093
Problem: New regexp engine: When a sub expression is empty \1 skips a
character.
Solution: Make \1 try the current position when the match is emtpy.
Diffstat (limited to 'src/testdir/test64.in')
-rw-r--r-- | src/testdir/test64.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test64.in b/src/testdir/test64.in index 78909246f7..4d892af7c7 100644 --- a/src/testdir/test64.in +++ b/src/testdir/test64.in @@ -361,6 +361,7 @@ STARTTEST :call add(tl, [2, '\(\i\+\) \1', ' abc abc', 'abc abc', 'abc']) :call add(tl, [2, '\(\i\+\) \1', 'xgoo goox', 'goo goo', 'goo']) :call add(tl, [2, '\(a\)\(b\)\(c\)\(dd\)\(e\)\(f\)\(g\)\(h\)\(i\)\1\2\3\4\5\6\7\8\9', 'xabcddefghiabcddefghix', 'abcddefghiabcddefghi', 'a', 'b', 'c', 'dd', 'e', 'f', 'g', 'h', 'i']) +:call add(tl, [2, '\(\d*\)a \1b', ' a b ', 'a b', '']) :" :"""" Look-behind with limit :call add(tl, [2, '<\@<=span.', 'xxspanxx<spanyyy', 'spany']) |