summaryrefslogtreecommitdiff
path: root/src/testdir/test64.in
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/test64.in
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/test64.in')
-rw-r--r--src/testdir/test64.in7
1 files changed, 7 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
:"