summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-05 18:52:40 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-05 18:52:40 +0200
commit8795374bd31a98e488e1ce293604f17eec33067b (patch)
tree6752dba4356911f1611a24098798d14380b4b0ed /src/testdir
parent67604aed755c71f51114c0125eb49ba7bcfcf8c7 (diff)
downloadvim-git-8795374bd31a98e488e1ce293604f17eec33067b.tar.gz
updated for version 7.3.1122v7.3.1122
Problem: New regexp engine: \%> not supported. Solution: Implement \%>.
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test64.in8
-rw-r--r--src/testdir/test64.ok8
2 files changed, 15 insertions, 1 deletions
diff --git a/src/testdir/test64.in b/src/testdir/test64.in
index 062d9baa8..0ba833fed 100644
--- a/src/testdir/test64.in
+++ b/src/testdir/test64.in
@@ -385,6 +385,12 @@ STARTTEST
:call add(tl, [2, '\(<<\)\@2<=span.', 'xxspanxxxx<spanxx<<spanyyy', 'spany', '<<'])
:call add(tl, [2, '\(foo\)\@<!bar.', 'xx foobar1 xbar2 xx', 'bar2'])
:"
+:""""" \@>
+:call add(tl, [2, '\(a*\)\@>a', 'aaaa'])
+:call add(tl, [2, '\(a*\)\@>b', 'aaab', 'aaab', 'aaa'])
+:" TODO: BT engine does not restore submatch after failure
+:call add(tl, [1, '\(a*\)\@>a\|a\+', 'aaaa', 'aaaa'])
+:"
:"""" "\_" prepended negated collection matches EOL
:call add(tl, [2, '\_[^8-9]\+', "asfi\n9888", "asfi\n"])
:call add(tl, [2, '\_[^a]\+', "asfi\n9888", "sfi\n9888"])
@@ -401,7 +407,7 @@ STARTTEST
: let text = t[2]
: let matchidx = 3
: for engine in [0, 1, 2]
-: if engine == 2 && !re
+: if engine == 2 && re == 0 || engine == 1 && re ==1
: continue
: endif
: let &regexpengine = engine
diff --git a/src/testdir/test64.ok b/src/testdir/test64.ok
index 49ecac631..49a570ae2 100644
--- a/src/testdir/test64.ok
+++ b/src/testdir/test64.ok
@@ -872,6 +872,14 @@ OK 2 - \(<<\)\@2<=span.
OK 0 - \(foo\)\@<!bar.
OK 1 - \(foo\)\@<!bar.
OK 2 - \(foo\)\@<!bar.
+OK 0 - \(a*\)\@>a
+OK 1 - \(a*\)\@>a
+OK 2 - \(a*\)\@>a
+OK 0 - \(a*\)\@>b
+OK 1 - \(a*\)\@>b
+OK 2 - \(a*\)\@>b
+OK 0 - \(a*\)\@>a\|a\+
+OK 2 - \(a*\)\@>a\|a\+
OK 0 - \_[^8-9]\+
OK 1 - \_[^8-9]\+
OK 2 - \_[^8-9]\+