summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-05-25 20:19:50 +0200
committerBram Moolenaar <Bram@vim.org>2013-05-25 20:19:50 +0200
commit4b41706477bccb6f0b3f5154f09af30e9fc4f452 (patch)
treee77da44ff02c08064f5b0d073c6a77ab3cc0adc1 /src/testdir
parentf47ca63dbcc547fa7d16ff4a0e8729ba9c3c508a (diff)
downloadvim-git-4b41706477bccb6f0b3f5154f09af30e9fc4f452.tar.gz
updated for version 7.3.1017v7.3.1017
Problem: Zero width match changes length of match. Solution: For a zero width match put new states in the current position in the state list.
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test64.in7
-rw-r--r--src/testdir/test64.ok4
2 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test64.in b/src/testdir/test64.in
index 9799647da..6faf2dbe2 100644
--- a/src/testdir/test64.in
+++ b/src/testdir/test64.in
@@ -270,6 +270,7 @@ STARTTEST
:call add(tl, ['aa \zsax', ' ax']) " must match before \zs
:call add(tl, ['abc \zsmatch\ze abc', 'abc abc abc match abc abc', 'match'])
:call add(tl, ['\v(a \zsif .*){2}', 'a if then a if last', 'if last', 'a if last'])
+:call add(tl, ['\>\zs.', 'aword. ', '.'])
:"""" Tests for \@ features
:call add(tl, ['abc\@=', 'abc', 'ab'])
@@ -299,6 +300,12 @@ STARTTEST
:call add(tl, ['\%u0020', 'yes no', ' '])
:call add(tl, ['\%U00000020', 'yes no', ' '])
+:"""" Alternatives, must use first longest match
+:call add(tl, ['goo\|go', 'google', 'goo'])
+:call add(tl, ['\<goo\|\<go', 'google', 'goo'])
+:call add(tl, ['\<goo\|go', 'google', 'goo'])
+
+
:"""" Run the tests
:"
diff --git a/src/testdir/test64.ok b/src/testdir/test64.ok
index d31f1efff..3fb8268e4 100644
--- a/src/testdir/test64.ok
+++ b/src/testdir/test64.ok
@@ -209,6 +209,7 @@ OK - abc\zsdd
OK - aa \zsax
OK - abc \zsmatch\ze abc
OK - \v(a \zsif .*){2}
+OK - \>\zs.
OK - abc\@=
OK - abc\@=cd
OK - abc\@=
@@ -231,4 +232,7 @@ OK - \%o40
OK - \%x20
OK - \%u0020
OK - \%U00000020
+OK - goo\|go
+OK - \<goo\|\<go
+OK - \<goo\|go
192.168.0.1