annotate src/testdir/test53.in @ 11549:f5add45f9848 v8.0.0657

patch 8.0.0657: cannot get and set quickfix list items commit https://github.com/vim/vim/commit/6a8958db259d4444da6e6956e54a6513c1af8860 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 22 21:33:20 2017 +0200 patch 8.0.0657: cannot get and set quickfix list items Problem: Cannot get and set quickfix list items. Solution: Add the "items" argument to getqflist() and setqflist(). (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Thu, 22 Jun 2017 21:45:03 +0200
parents 847518911c0b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
853
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
1 Tests for string and html text objects. vim: set ft=vim :
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
2
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
3 Note that the end-of-line moves the cursor to the next test line.
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
4
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
5 Also test match() and matchstr()
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
6
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
7 STARTTEST
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
8 :so small.vim
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
9 /^start:/
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
10 da"
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
11 0va'a'rx
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
12 02f`da`
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
13 0fXdi"
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
14 03f'vi'ry
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
15 :set quoteescape=+*-
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
16 di`
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
17 $F"va"oha"i"rz
853
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
18 :"
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
19 /^<begin
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
20 jfXdit
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
21 0fXdit
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
22 fXdat
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
23 0fXdat
6661
950e24f26ef8 updated for version 7.4.655
Bram Moolenaar <bram@vim.org>
parents: 6443
diff changeset
24 dit
853
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
25 :"
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
26 :put =matchstr(\"abcd\", \".\", 0, 2) " b
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
27 :put =matchstr(\"abcd\", \"..\", 0, 2) " bc
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
28 :put =matchstr(\"abcd\", \".\", 2, 0) " c (zero and negative -> first match)
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
29 :put =matchstr(\"abcd\", \".\", 0, -1) " a
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
30 :put =match(\"abcd\", \".\", 0, 5) " -1
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
31 :put =match(\"abcd\", \".\", 0, -1) " 0
5676
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
32 :put =match('abc', '.', 0, 1) " 0
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
33 :put =match('abc', '.', 0, 2) " 1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
34 :put =match('abc', '.', 0, 3) " 2
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
35 :put =match('abc', '.', 0, 4) " -1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
36 :put =match('abc', '.', 1, 1) " 1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
37 :put =match('abc', '.', 2, 1) " 2
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
38 :put =match('abc', '.', 3, 1) " -1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
39 :put =match('abc', '$', 0, 1) " 3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
40 :put =match('abc', '$', 0, 2) " -1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
41 :put =match('abc', '$', 1, 1) " 3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
42 :put =match('abc', '$', 2, 1) " 3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
43 :put =match('abc', '$', 3, 1) " 3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
44 :put =match('abc', '$', 4, 1) " -1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
45 :put =match('abc', '\zs', 0, 1) " 0
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
46 :put =match('abc', '\zs', 0, 2) " 1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
47 :put =match('abc', '\zs', 0, 3) " 2
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
48 :put =match('abc', '\zs', 0, 4) " 3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
49 :put =match('abc', '\zs', 0, 5) " -1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
50 :put =match('abc', '\zs', 1, 1) " 1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
51 :put =match('abc', '\zs', 2, 1) " 2
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
52 :put =match('abc', '\zs', 3, 1) " 3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
53 :put =match('abc', '\zs', 4, 1) " -1
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
54 :/^start:/,/^end:/wq! test.out
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
55 ENDTEST
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
56
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
57 start: "wo\"rd\\" foo
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
58 'foo' 'bar' 'piep'
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
59 bla bla `quote` blah
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
60 out " in "noXno"
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
61 "'" 'blah' rep 'buh'
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
62 bla `s*`d-`+++`l**` b`la
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
63 voo "nah" sdf " asdf" sdf " sdf" sd
853
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
64
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
65 <begin>
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
66 -<b>asdf<i>Xasdf</i>asdf</b>-
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
67 -<b>asdX<i>a<i />sdf</i>asdf</b>-
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
68 -<b>asdf<i>Xasdf</i>asdf</b>-
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
69 -<b>asdX<i>as<b />df</i>asdf</b>-
6661
950e24f26ef8 updated for version 7.4.655
Bram Moolenaar <bram@vim.org>
parents: 6443
diff changeset
70 -<b>
950e24f26ef8 updated for version 7.4.655
Bram Moolenaar <bram@vim.org>
parents: 6443
diff changeset
71 innertext object
950e24f26ef8 updated for version 7.4.655
Bram Moolenaar <bram@vim.org>
parents: 6443
diff changeset
72 </b>
853
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
73 </begin>
3701
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
74 SEARCH:
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
75 end: