summaryrefslogtreecommitdiff
path: root/src/testdir/test64.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-05-31 22:14:52 +0200
committerBram Moolenaar <Bram@vim.org>2013-05-31 22:14:52 +0200
commit4b78063368eca61c8c8991d3c9afc18d5a474b82 (patch)
tree43b7195c65e86e80fd5b6627a9b7a4ba99e2868e /src/testdir/test64.in
parent14f55c6f67b55b693d0689beb66af90f53589a77 (diff)
downloadvim-git-4b78063368eca61c8c8991d3c9afc18d5a474b82.tar.gz
updated for version 7.3.1083v7.3.1083
Problem: New regexp engine: Does not support \%^ and \%$. Solution: Support matching start and end of file.
Diffstat (limited to 'src/testdir/test64.in')
-rw-r--r--src/testdir/test64.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/testdir/test64.in b/src/testdir/test64.in
index 45a71d261..dffcf52b3 100644
--- a/src/testdir/test64.in
+++ b/src/testdir/test64.in
@@ -267,6 +267,15 @@ STARTTEST
:call add(tl, [2, '\_f', " \na ", "\n"])
:call add(tl, [2, '\_f\+', " \na ", "\na"])
:"
+:"""" Test start/end of line, start/end of file
+:call add(tl, [2, '^a.', "a_\nb ", "a_"])
+:call add(tl, [2, '^a.', "b a \na_"])
+:call add(tl, [2, '.a$', " a\n "])
+:call add(tl, [2, '.a$', " a b\n_a", "_a"])
+:call add(tl, [2, '\%^a.', "a a\na", "a "])
+:call add(tl, [2, '\%^a', " a \na "])
+:call add(tl, [2, '.a\%$', " a\n "])
+:call add(tl, [2, '.a\%$', " a\n_a", "_a"])
:"
:"""" Test recognition of some character classes
:call add(tl, [2, '[0-9]', '8', '8'])
@@ -466,6 +475,15 @@ o-2-:set re=2
:call Postest()
:put
:"
+:" start and end of buffer
+/\%^
+yeGop:"
+50%/\%^..
+yeGopA END:"
+50%/\%$
+"ayb20gg/..\%$
+"bybGo"apo"bp:"
+:"
:/\%#=1^Results/,$wq! test.out
ENDTEST