aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authoroni-link <knil.ino@gmail.com>2014-05-22 12:25:46 +0200
committerJustin M. Keyes <justinkz@gmail.com>2014-06-05 18:42:15 -0400
commit2085acf478725cda653219d2898190df233a15b8 (patch)
tree2781d3d3bfb0cc282a91de95b534ed64415bd0b1 /src/nvim/testdir
parent8638578bf3513dac4bdc1a07a2bc8ee3846d716e (diff)
downloadrneovim-2085acf478725cda653219d2898190df233a15b8.tar.gz
rneovim-2085acf478725cda653219d2898190df233a15b8.tar.bz2
rneovim-2085acf478725cda653219d2898190df233a15b8.zip
vim-patch:7.4.289 #752
Problem: Pattern with repeated backreference does not match with new regexp engine. (Urtica Dioica) Solution: Also check the end of a submatch when deciding to put a state in the state list. https://code.google.com/p/vim/source/detail?r=99374096a76b96d1128f5e6aa1fa92b4ba70fee9
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test64.in1
-rw-r--r--src/nvim/testdir/test64.ok3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test64.in b/src/nvim/testdir/test64.in
index 29bf0b902b..e3f5d82a4d 100644
--- a/src/nvim/testdir/test64.in
+++ b/src/nvim/testdir/test64.in
@@ -407,6 +407,7 @@ STARTTEST
:call add(tl, [2, '^.*\.\(.*\)/.\+\(\1\)\@<=$', 'foo.bat/foo.bat', 'foo.bat/foo.bat', 'bat', 'bat'])
:call add(tl, [2, '\\\@<!\${\(\d\+\%(:.\{-}\)\?\\\@<!\)}', '2013-06-27${0}', '${0}', '0'])
:call add(tl, [2, '^\(a*\)\1$', 'aaaaaaaa', 'aaaaaaaa', 'aaaa'])
+:call add(tl, [2, '^\(a\{-2,}\)\1\+$', 'aaaaaaaaa', 'aaaaaaaaa', 'aaa'])
:"
:"""" Look-behind with limit
:call add(tl, [2, '<\@<=span.', 'xxspanxx<spanyyy', 'spany'])
diff --git a/src/nvim/testdir/test64.ok b/src/nvim/testdir/test64.ok
index a1498ea5d6..9fb6c60b9d 100644
--- a/src/nvim/testdir/test64.ok
+++ b/src/nvim/testdir/test64.ok
@@ -947,6 +947,9 @@ OK 2 - \\\@<!\${\(\d\+\%(:.\{-}\)\?\\\@<!\)}
OK 0 - ^\(a*\)\1$
OK 1 - ^\(a*\)\1$
OK 2 - ^\(a*\)\1$
+OK 0 - ^\(a\{-2,}\)\1\+$
+OK 1 - ^\(a\{-2,}\)\1\+$
+OK 2 - ^\(a\{-2,}\)\1\+$
OK 0 - <\@<=span.
OK 1 - <\@<=span.
OK 2 - <\@<=span.