summaryrefslogtreecommitdiffstats
path: root/src/testdir/test64.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-05-29 21:14:42 +0200
committerBram Moolenaar <Bram@vim.org>2013-05-29 21:14:42 +0200
commit423532e10d7335750afbace57ba65c0b6f138756 (patch)
tree2192ae232cc2e3abd065d26bb8a8d7a4436e7e58 /src/testdir/test64.in
parent28c21919499319d26077aec1d40e54f5b8fbd367 (diff)
updated for version 7.3.1039v7.3.1039
Problem: New regexp engine does not support \%23c, \%<23c and the like. Solution: Implement them. (partly by Yasuhiro Matsumoto)
Diffstat (limited to 'src/testdir/test64.in')
-rw-r--r--src/testdir/test64.in29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/testdir/test64.in b/src/testdir/test64.in
index 667e194e16..192d456725 100644
--- a/src/testdir/test64.in
+++ b/src/testdir/test64.in
@@ -413,13 +413,40 @@ Gop:"
:.yank
y$Gop:"
:"
-:"
:" Check a pattern with a look beind crossing a line boundary
/^Behind:
/\(<\_[xy]\+\)\@3<=start
:.yank
Gop:"
:"
+:" Check patterns matching cursor position.
+:func! Postest()
+ new
+ call setline(1, ['ffooooo', 'boboooo', 'zoooooo', 'koooooo', 'moooooo', "\t\t\tfoo", 'abababababababfoo', 'bababababababafoo', '********_'])
+ call setpos('.', [0, 1, 0, 0])
+ s/\%>3c.//g
+ call setpos('.', [0, 2, 4, 0])
+ s/\%#.*$//g
+ call setpos('.', [0, 3, 0, 0])
+ s/\%<3c./_/g
+ %s/\%4l\%>5c./_/g
+ %s/\%6l\%>25v./_/g
+ %s/\%>6l\%3c./!/g
+ %s/\%>7l\%12c./?/g
+ %s/\%>7l\%<9l\%>5v\%<8v./#/g
+ 1,$yank
+ quit!
+endfunc
+Go-0-:set re=0
+:call Postest()
+:put
+o-1-:set re=1
+:call Postest()
+:put
+o-2-:set re=2
+:call Postest()
+:put
+:"
:/\%#=1^Results/,$wq! test.out
ENDTEST