Merged from the latest developing branch.
[MacVim.git] / src / testdir / test53.in
blobc2023e97b86c02b37e6b79039a578e142def6421
1 Tests for string and html text objects. vim: set ft=vim :
3 Note that the end-of-line moves the cursor to the next test line.
5 Also test match() and matchstr()
7 STARTTEST
8 :so small.vim
9 /^start:/
10 da"
11 0va'a'rx
12 02f`da`
13 0fXdi"
14 03f'vi'ry
15 :set quoteescape=+*-
16 di`
17 $F"va"oha"i"rz
19 /^<begin
20 jfXdit
21 0fXdit
22 fXdat
23 0fXdat
25 :put =matchstr(\"abcd\", \".\", 0, 2) " b
26 :put =matchstr(\"abcd\", \"..\", 0, 2) " bc
27 :put =matchstr(\"abcd\", \".\", 2, 0) " c (zero and negative -> first match)
28 :put =matchstr(\"abcd\", \".\", 0, -1) " a
29 :put =match(\"abcd\", \".\", 0, 5) " -1
30 :put =match(\"abcd\", \".\", 0, -1) " 0
31 :/^start:/,/^end:/wq! test.out
32 ENDTEST
34 start: "wo\"rd\\" foo
35 'foo' 'bar' 'piep'
36 bla bla `quote` blah
37 out " in "noXno"
38 "'" 'blah' rep 'buh'
39 bla `s*`d-`+++`l**` b`la
40 voo "nah" sdf " asdf" sdf " sdf" sd
42 <begin>
43 -<b>asdf<i>Xasdf</i>asdf</b>-
44 -<b>asdX<i>a<i />sdf</i>asdf</b>-
45 -<b>asdf<i>Xasdf</i>asdf</b>-
46 -<b>asdX<i>as<b />df</i>asdf</b>-
47 </begin>
48 end: