annotate src/testdir/test3.in @ 11463:6fff8b86e9bd v8.0.0615

patch 8.0.0615: using % with :hardcopy wrongly escapes spaces commit https://github.com/vim/vim/commit/bf15b8d78b22661db8b19d662b62bb9a061cdd37 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 4 20:43:48 2017 +0200 patch 8.0.0615: using % with :hardcopy wrongly escapes spaces Problem: Using % with :hardcopy wrongly escapes spaces. (Alexey Muranov) Solution: Expand % differently. (Christian Brabandt, closes https://github.com/vim/vim/issues/1682)
author Christian Brabandt <cb@256bit.org>
date Sun, 04 Jun 2017 20:45:05 +0200
parents 4618af3049fe
children 91222b3123ba
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 /* vim: set cin ts=4 sw=4 : */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
11069
814126a34c9d patch 8.0.0423: changing 'cinoptions' does not always work
Christian Brabandt <cb@256bit.org>
parents: 10516
diff changeset
3 Test for 'cindent'.
814126a34c9d patch 8.0.0423: changing 'cinoptions' does not always work
Christian Brabandt <cb@256bit.org>
parents: 10516
diff changeset
4 For new tests, consider putting them in test_cindent.vim.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :so small.vim
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 829
diff changeset
8 :set nocompatible viminfo+=nviminfo modeline
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 :edit " read modeline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 /start of AUTO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 =/end of AUTO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
14 /* start of AUTO matically checked vim: set ts=4 : */
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 while (this)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 while (this)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 if (test) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 if (test) cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 for (blah)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 while (this)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 cmd3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 for (blah)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 while (this)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 cmd3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 cmd3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 /* Test for 'cindent' do/while mixed with if/else: */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 asdfasd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 while (cond);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 while (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 while (asdf);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 /* Test for 'cindent' with two ) on a continuation line */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 if (asdfasdf;asldkfj asdlkfj as;ldkfj sal;d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 aal;sdkjf ( ;asldfkja;sldfk
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 al;sdjfka ;slkdf ) sa;ldkjfsa dlk;)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 line up here;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 /* C++ tests: */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 // foo() these three lines should remain in column 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 // {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 // }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 /* Test for continuation and unterminated lines: */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 i = 99 + 14325 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 21345 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 21345 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 21345 + ( 21345 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 21345) +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 2345 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 1234;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 c = 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 testje for indent with empty line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 here */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 if (testing &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 not a joke ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 line up here)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 hay;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 if (testing &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 (not a joke || testing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 )line up here)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 hay;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 if (testing &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 (not a joke || testing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 line up here))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 hay;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 switch (c)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 case xx:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 asdfasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 while (asdf);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 asdfasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 while (cond);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 case yy:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 case xx:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 case zz:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 testing;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 if (cond) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 if (alskdfj ;alsdkfjal;skdjf (;sadlkfsa ;dlkf j;alksdfj ;alskdjf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 alsdkfj (asldk;fj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 awith cino=(0 ;lf this one goes to below the paren with ==
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 ;laksjfd ;lsakdjf ;alskdf asd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 asdfasdf;)))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 asdfasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 int
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 func(a, b)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 int c;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 if (c1 && (c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 if (c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 (c2 || c3)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 while (asd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 if (that)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 cdasd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 while (as
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 df);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 s = "/*"; b = ';'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 s = "/*"; b = ';';
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 switch (a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 case a:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 switch (t)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 case 1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 case 2:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 case b:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 case c: {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 case d: if (cond &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 test) { /* this line doesn't work right */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 if (!(vim_strchr(p_cpo, CPO_BUFOPTGLOB) != NULL && entering) &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 (bp_to->b_p_initialized ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 (!entering && vim_strchr(p_cpo, CPO_BUFOPT) != NULL)))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 return;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 label :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 asdf = asdf ?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 asdf : asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 asdf = asdf ?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 asdf: asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 /* Special Comments : This function has the added complexity (compared */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 /* : to addtolist) of having to check for a detail */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 /* : texture and add that to the list first. */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 char *(array[100]) = {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 "testje",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 "foo",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 "bar",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 enum soppie
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 {
3218
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
303 yes = 0,
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
304 no,
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
305 maybe
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 typedef enum soppie
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 {
3218
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
310 yes = 0,
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
311 no,
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
312 maybe
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314
3218
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
315 static enum
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
316 {
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
317 yes = 0,
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
318 no,
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
319 maybe
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
320 } soppie;
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
321
4187
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
322 public static enum
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
323 {
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
324 yes = 0,
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
325 no,
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
326 maybe
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
327 } soppie;
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
328
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
329 static private enum
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
330 {
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
331 yes = 0,
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
332 no,
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
333 maybe
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
334 } soppie;
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
335
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 struct Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 char *str;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 } var[] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 0, "zero",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 1, "one",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 2, "two",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 3, "three"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 float matrix[3][3] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 0,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 3,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 4,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 6,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 7,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 /* blah ( blah */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 /* where does this go? */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 /* blah ( blah */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 func(arg1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 /* comment */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 arg2);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386 b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 c; /* Hey, NOW it indents?! */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 func(arg1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 arg2,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 arg3);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 /* Hey, what am I doing here? Is this coz of the ","? */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400 main ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402 if (cond)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 if (cond) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 a = c;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 if (cond)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410 a = d;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
411 return;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 case 2: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416 asdfasdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 aasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 a = 9;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 case 3: if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 aasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 a = 9;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 case 4: x = 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423 y = 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 label: if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426 here;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 label: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 asdfasdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 label: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434 asdfasdf) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435 there;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 label: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439 asdfasdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 there;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
443 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
444 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445 hello with ":set comments= cino=c5"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 hello with ":set comments= cino="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
455 if (a < b) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456 a = a + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457 } else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 a = a + 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460 if (a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
461 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
462 testing;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463 } while (asdfasdf);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464 a = b + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
465 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
466 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467
6114
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
468 {
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
469 for ( int i = 0;
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
470 i < 10; i++ )
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
471 {
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
472 }
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
473 i = 0;
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
474 }
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
475
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
476 class bob
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
478 int foo() {return 1;}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
479 int bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
480 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
481
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
482 main()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
483 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484 while(1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
485 if (foo)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
486 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 else {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
491 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
492 misplacedline;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
493 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
494
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
495 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
496 if (clipboard.state == SELECT_DONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
497 && ((row == clipboard.start.lnum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
498 && col >= clipboard.start.col)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
499 || row > clipboard.start.lnum))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
500 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
501
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
502 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
503 if (1) {i += 4;}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
504 where_am_i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
505 return 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
506 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
507
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
508 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
509 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510 } // sdf(asdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
512 asd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
513 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
515 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
516 label1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
517 label2:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
518 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
519
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
520 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
521 int fooRet = foo(pBar1, false /*fKB*/,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
522 true /*fPTB*/, 3 /*nT*/, false /*fDF*/);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523 f() {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524 for ( i = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
525 i < m;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526 /* c */ i++ ) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
527 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
528 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
529 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
531
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
532 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533 f1(/*comment*/);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 f2();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
537 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
539 if (foo) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 } else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
541 ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542 } while (foo);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
543 foo(); // was wrong
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
544 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
545
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
546 int x; // no extra indent because of the ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
547 void func()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
548 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551 char *tab[] = {"aaa",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
552 "};", /* }; */ NULL}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553 int indented;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
554 {}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
556 char *a[] = {"aaa", "bbb",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557 "ccc", NULL};
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558 // here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
559
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
560 char *tab[] = {"aaa",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
561 "xx", /* xx */}; /* asdf */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
562 int not_indented;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566 switch (bla)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
567 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
568 case 1: if (foo)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
570 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571 } while (boo);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572 wrong;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
575 int foo,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
576 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
577 int foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579 #if defined(foo) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 && defined(bar)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 char * xx = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 foo\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 bor";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
584 int x;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
586 char *foo = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587 asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588 asdf",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589 *bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
590
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
593 #if defined(foo) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594 && defined(bar)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595 char *foo = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596 asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 asdf",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
598 *bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
599 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
600 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601 char *foo = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602 asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603 asdf",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604 *bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
609
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
610 int y; // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613 // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
614
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
615 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
616 Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
617 int b ) : BaseClass(a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
618 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
619 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
620 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
621
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
622 void foo()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
623 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
624 char one,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
625 two;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
626 struct bla piet,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
627 jan;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
628 enum foo kees,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
629 jannie;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
630 static unsigned sdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
631 krap;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
632 unsigned int piet,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
633 jan;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
634 int
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
635 kees,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
636 jan;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
637 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
638
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
639 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
640 t(int f,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
641 int d); // )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
642 d();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
643 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
644
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
645 Constructor::Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
646 int b
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
647 ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
648 BaseClass(a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
649 b,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
650 c),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
651 mMember(b),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
652 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
653 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
654
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
655 Constructor::Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
656 int b ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
657 BaseClass(a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
658 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
659 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
660
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
661 Constructor::Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
662 int b ) /*x*/ : /*x*/ BaseClass(a),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
663 member(b)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
664 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
665 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
666
7206
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
667 A::A(int a, int b)
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
668 : aa(a),
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
669 bb(b),
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
670 cc(c)
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
671 {
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
672 }
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
673
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
674 class CAbc :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
675 public BaseClass1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
676 protected BaseClass2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
677 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
678 int Test() { return FALSE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
679 int Test1() { return TRUE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
680
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
681 CAbc(int a, int b ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
682 BaseClass(a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
683 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
684 switch(xxx)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
685 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
686 case abc:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
687 asdf();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
688 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
690 case 999:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
691 baer();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
692 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
693 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
694 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
695
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
696 public: // <-- this was incoreectly indented before!!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
697 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
698 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
699 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
700 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
701
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
702 class CAbc : public BaseClass1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
703 protected BaseClass2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
704 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
705 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
706
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
707 static struct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
708 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
709 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
710 int b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
711 } variable[COUNT] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
712 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
713 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
714 123,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
715 456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
716 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
717 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
718 123,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
719 456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
720 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
721 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
722
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
723 static struct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
724 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
725 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
726 int b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
727 } variable[COUNT] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
728 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
729 { 123, 456 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
730 { 123, 456 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
731 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
732
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
733 void asdf() /* ind_maxparen may cause trouble here */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
734 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
735 if ((0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
736 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
737 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
738 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
739 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
740 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
741 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
742 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
743 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
744 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
745 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
746 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
747 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
748 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
749 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
750 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
751 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
752 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
753 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
754 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
755 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
756 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
757 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
758 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
759 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
760 && 1)) break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
761 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
762
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
763 foo()
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
764 {
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
765 a = cond ? foo() : asdf
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
766 + asdf;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
767
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
768 a = cond ?
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
769 foo() : asdf
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
770 + asdf;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
771 }
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
772
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
773 int main(void)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
774 {
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
775 if (a)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
776 if (b)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
777 2;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
778 else 3;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
779 next_line_of_code();
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
780 }
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
781
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
782 barry()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
783 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
784 Foo::Foo (int one,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
785 int two)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
786 : something(4)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
787 {}
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
788 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
789
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
790 barry()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
791 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
792 Foo::Foo (int one, int two)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
793 : something(4)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
794 {}
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
795 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
796
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
797 Constructor::Constructor(int a,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
798 int b
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
799 ) :
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
800 BaseClass(a,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
801 b,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
802 c),
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
803 mMember(b)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
804 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
805 }
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
806 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
807 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
808 if (lala)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
809 do
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
810 ++(*lolo);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
811 while (lili
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
812 && lele);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
813 lulu;
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
814 }
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
815
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
816 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
817 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
818 switch (c)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
819 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
820 case 'c': if (cond)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
821 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
822 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
823 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
824 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
825
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
826 main()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
827 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
828 (void) MyFancyFuasdfadsfnction(
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
829 argument);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
830 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
831
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
832 main()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
833 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
834 char foo[] = "/*";
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
835 /* as
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
836 df */
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
837 hello
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
838 }
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
839
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
840 /* valid namespaces with normal indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
841 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
842 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
843 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
844 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
845 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
846 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
847 namespace /* test */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
848 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
849 11111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
850 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
851 namespace // test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
852 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
853 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
854 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
855 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
856 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
857 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
858 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
859 namespace test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
860 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
861 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
862 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
863 namespace{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
864 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
865 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
866 namespace test{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
867 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
868 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
869 namespace {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
870 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
871 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
872 namespace test {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
873 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
874 namespace test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
875 22222222222222222;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
876 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
877 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
878
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
879 /* invalid namespaces use block indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
880 namespace test test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
881 111111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
882 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
883 namespace11111111111 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
884 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
885 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
886 namespace() {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
887 1111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
888 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
889 namespace()
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
890 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
891 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
892 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
893 namespace test test2
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
894 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
895 1111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
896 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
897 namespace111111111
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
898 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
899 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
900 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
901
6971
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
902 void getstring() {
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
903 /* Raw strings */
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
904 const char* s = R"(
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
905 test {
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
906 # comment
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
907 field: 123
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
908 }
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
909 )";
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
910 }
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
911
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
912 void getstring() {
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
913 const char* s = R"foo(
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
914 test {
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
915 # comment
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
916 field: 123
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
917 }
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
918 )foo";
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
919 }
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
920
7160
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
921 {
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
922 int a[4] = {
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
923 [0] = 0,
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
924 [1] = 1,
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
925 [2] = 2,
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
926 [3] = 3,
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
927 };
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
928 }
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
929
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
930 {
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
931 a = b[2]
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
932 + 3;
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
933 }
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
934
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
935 {
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
936 if (1)
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
937 /* aaaaa
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
938 * bbbbb
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
939 */
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
940 a = 1;
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
941 }
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
942
7164
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
943 void func()
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
944 {
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
945 switch (foo)
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
946 {
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
947 case (bar):
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
948 if (baz())
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
949 quux();
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
950 break;
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
951 case (shmoo):
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
952 if (!bar)
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
953 {
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
954 }
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
955 case (foo1):
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
956 switch (bar)
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
957 {
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
958 case baz:
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
959 baz_f();
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
960 break;
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
961 }
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
962 break;
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
963 default:
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
964 baz();
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
965 baz();
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
966 break;
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
967 }
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
968 }
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
969
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
970 /* end of AUTO */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
971
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
972 STARTTEST
11111
4618af3049fe patch 8.0.0443: terminal width is set to 80 in test3
Christian Brabandt <cb@256bit.org>
parents: 11069
diff changeset
973 :set tw=0 noai fo=croq
4618af3049fe patch 8.0.0443: terminal width is set to 80 in test3
Christian Brabandt <cb@256bit.org>
parents: 11069
diff changeset
974 :let &wm = &columns - 20
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
975 /serious/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
976 a about life, the universe, and the rest
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
977 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
978
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
979 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
980
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
981 /* this is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
982 * a real serious important big
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
983 * comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
984 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
985 /* insert " about life, the universe, and the rest" after "serious" */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
986 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
987
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
988 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
989 :set nocin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
990 /comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
991 joabout life/happens
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
992 jothere/below
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
993 oline/this
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
994 Ohello
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
995 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
996
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
997 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
998 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
999 * Testing for comments, without 'cin' set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1000 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1002 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1003 * what happens here?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1004 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1005
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1006 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1007 the end of the comment, try inserting a line below */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1008
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1009 /* how about
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1010 this one */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1011 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1012
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1013 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1014 :set cin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1015 /vec2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1016 ==
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1017 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1018
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1019 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1020 var = this + that + vec[0] * vec[0]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1021 + vec[1] * vec[1]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1022 + vec2[2] * vec[2];
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1023 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1024
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1025 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1026 :set cin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1027 :set cino=}4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1028 /testing1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1029 k2==/testing2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1030 k2==
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1031 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1032
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1033 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1034 asdf asdflkajds f;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1035 if (tes & ting) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1036 asdf asdf asdf ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1037 asdfa sdf asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1038 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1039 testing1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1040 if (tes & ting)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1041 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1042 asdf asdf asdf ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1043 asdfa sdf asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1044 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1045 testing2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1046 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1047
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1048 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1049 :set cin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1050 :set cino=(0,)20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1051 /main
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1052 =][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1053 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1054
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1055 main ( int first_par, /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1056 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1057 * first par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1058 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1059 int second_par /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1060 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1061 * second par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1062 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1063 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1064 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1065 func( first_par, /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1066 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1067 * first par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1068 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1069 second_par /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1070 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1071 * second par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1072 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1073 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1074
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1075 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1076
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1077 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1078 :set cin
3578
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1079 :set cino=es,n0s
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1080 /main
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1081 =][
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1082 ENDTEST
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1083
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1084 main(void)
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1085 {
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1086 /* Make sure that cino=X0s is not parsed like cino=Xs. */
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1087 if (cond)
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1088 foo();
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1089 else
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1090 {
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1091 bar();
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1092 }
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1093 }
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1094
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1095 STARTTEST
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1096 :set cin
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1097 :set cino=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1098 ]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1099 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1101 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1102 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1103 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1104 if ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1105 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1106 if ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1107 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1108 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1109 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1110 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1111 } while ();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1112 cmd; /* this should go under the } */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1113 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1115 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1116 ]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1117 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1119 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1120 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1121 if ( k() ) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1122 l();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1124 } else { /* Start (two words) end */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1125 m();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1126 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1128 n();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1129 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1131 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1132 :set cino={s,e-s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1133 ]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1134 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1135
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1136 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1137 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1138 if ( k() )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1139 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1140 l();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1141 } else { /* Start (two words) end */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1142 m();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1143 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1144 n(); /* should be under the if () */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1145 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1146
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1147 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1148 :set cino={s,fs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1149 ]]=/ foo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1150 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1152 void bar(void)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1153 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1154 static array[2][2] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1155 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1156 { 1, 2 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1157 { 3, 4 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1158 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1159
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1160 while (a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1161 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1162 foo(&a);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1163 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1164
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1165 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1166 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1167 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1168 a = a + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1169 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1170 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1171 b = a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1172 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1173
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1174 void func(void)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1175 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1176 a = 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1177 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1178 b = 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1179 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1180 c = 3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1181 d = 4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1182 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1183 /* foo */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1184
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1185 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1186 :set cino=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1187 /while
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1188 ohere
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1189 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1190
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1191 a()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1192 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1193 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1194 a = a +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1195 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1196 } while ( a ); /* add text under this line */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1197 if ( a )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1198 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1199 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1201 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1202 :set cino= com=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1203 /comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1204 olabel2: b(); label3 /* post */: /* pre */ label4: f(/*com*/); if (/*com*/) cmd();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1205 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1206
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1207 a()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1208 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1209 label1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1210 /* hmm */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1211 // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1212 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1213
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1214 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1215 :set comments& comments^=s:/*,m:**,ex:*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1216 /simple
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1217 =5j
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1218 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1219
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1220 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1221 * A simple comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1222 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1223
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1224 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1225 ** A different comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1226 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1227
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1228 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1229 :set cino=c0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1230 :set comments& comments-=s1:/* comments^=s0:/*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1231 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1232 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1233
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1234 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1235 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1236
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1237 /*********
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1238 A comment.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1239 *********/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1240 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1241
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1242 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1243 :set cino=c0,C1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1244 :set comments& comments-=s1:/* comments^=s0:/*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1245 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1246 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1247
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1248 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1249 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1250
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1251 /*********
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1252 A comment.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1253 *********/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1254 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1255
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1256 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1257 :set cino=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1258 ]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1259 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1260
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1261 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1262 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1263 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1264 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1265 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1266 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1267 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1268 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1269
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1270 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1271 :set cino=(s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1272 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1273 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1274
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1275 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1276 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1277 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1278 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1279 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1280 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1281 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1282 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1283
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1284 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1285 :set cino=(s,U1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1286 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1287 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1288
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1289 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1290 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1291 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1292 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1293 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1294 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1295 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1296 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1297
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1298 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1299 :set cino=(0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1300 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1301 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1302
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1303 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1304 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1305 if ( c1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1306 && ( c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1307 || c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1308 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1309 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1310
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1311 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1312 :set cino=(0,w1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1313 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1314 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1315
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1316 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1317 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1318 if ( c1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1319 && ( c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1320 || c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1321 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1322 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1323
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1324 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1325 :set cino=(s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1326 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1327 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1328
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1329 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1330 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1331 c = c1 && (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1332 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1333 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1334 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1335 if (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1336 c1 && c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1337 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1338 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1339 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1340
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1341 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1342 :set cino=(s,m1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1343 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1344 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1345
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1346 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1347 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1348 c = c1 && (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1349 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1350 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1351 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1352 if (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1353 c1 && c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1354 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1355 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1356 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1357
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1358 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1359 :set cino=b1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1360 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1361 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1362
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1363 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1364 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1365 switch (x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1366 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1367 case 1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1368 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1369 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1370 default:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1371 a = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1372 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1373 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1374 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1375
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1376 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1377 :set cino=(0,W5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1378 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1379 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1380
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1381 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1382 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1383 invokeme(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1384 argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1385 ment);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1386 invokeme(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1387 argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1388 ment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1389 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1390 invokeme(argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1391 ment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1392 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1393 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1394
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1395 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1396 :set cino=/6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1397 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1398 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1399
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1400 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1401 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1402 statement;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1403 // comment 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1404 // comment 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1405 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1406
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1407 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1408 :set cino=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1409 2kdd]]/comment 1/+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1410 ==
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1411 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1412
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1413 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1414 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1415 statement;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1416 // comment 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1417 // comment 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1418 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1419
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1420 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1421 :set cino=g0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1422 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1423 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1424
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1425 class CAbc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1426 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1427 int Test() { return FALSE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1428
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1429 public: // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1430 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1431 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1432 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1433 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1434
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1435 STARTTEST
3123
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1436 :set cino=(0,gs,hs
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1437 2kdd]]=][
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1438 ENDTEST
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1439
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1440 class Foo : public Bar
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1441 {
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1442 public:
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1443 virtual void method1(void) = 0;
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1444 virtual void method2(int arg1,
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1445 int arg2,
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1446 int arg3) = 0;
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1447 };
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1448
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1449 STARTTEST
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1450 :set cino=+20
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1451 2kdd]]=][
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1452 ENDTEST
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1453
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1454 void
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1455 foo()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1456 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1457 if (a)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1458 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1459 } else
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1460 asdf;
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1461 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1462
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1463 STARTTEST
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1464 :set cino=(0,W2s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1465 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1466 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1467
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1468 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1469 averylongfunctionnamelongfunctionnameaverylongfunctionname()->asd(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1470 asdasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1471 func(asdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1472 asdfadsf),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1473 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1474 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1475
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1476 /* those are ugly, but consequent */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1477
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1478 func()->asd(asdasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1479 averylongfunctionname(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1480 abc,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1481 dec)->averylongfunctionname(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1482 asdfadsf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1483 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1484 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1485 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1486 func(asdfadf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1487 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1488 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1489 asdasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1490 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1491
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1492 averylongfunctionnameaverylongfunctionnameavery()->asd(fasdf(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1493 abc,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1494 dec)->asdfasdfasdf(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1495 asdfadsf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1496 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1497 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1498 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1499 func(asdfadf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1500 asdfasdf),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1501 asdasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1502 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1503 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1504
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1505 STARTTEST
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1506 :set cino=M1
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1507 2kdd]]=][
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1508 ENDTEST
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1509
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1510 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1511 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1512 if (cond1 &&
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1513 cond2
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1514 )
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1515 foo;
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1516 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1517
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1518 STARTTEST
2776
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1519 :set cino=(0,ts
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1520 2kdd2j=][
2776
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1521 ENDTEST
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1522
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1523 void func(int a
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1524 #if defined(FOO)
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1525 , int b
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1526 , int c
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1527 #endif
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1528 )
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1529 {
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1530 }
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1531
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1532 STARTTEST
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1533 :set cino=(0
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1534 2kdd2j=][
2776
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1535 ENDTEST
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1536
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1537 void
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1538 func(int a
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1539 #if defined(FOO)
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1540 , int b
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1541 , int c
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1542 #endif
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1543 )
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1544 {
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1545 }
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1546
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1547 STARTTEST
2805
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1548 :set cino&
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1549 2kdd2j=7][
2805
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1550 ENDTEST
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1551
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1552 void func(void)
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1553 {
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1554 if(x==y)
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1555 if(y==z)
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1556 foo=1;
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1557 else { bar=1;
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1558 baz=2;
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1559 }
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1560 printf("Foo!\n");
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1561 }
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1562
2843
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1563 void func1(void)
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1564 {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1565 char* tab[] = {"foo", "bar",
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1566 "baz", "quux",
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1567 "this line used", "to be indented incorrectly"};
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1568 foo();
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1569 }
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1570
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1571 void func2(void)
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1572 {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1573 int tab[] =
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1574 {1, 2,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1575 3, 4,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1576 5, 6};
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1577
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1578 printf("This line used to be indented incorrectly.\n");
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1579 }
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1580
3186
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1581 int foo[]
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1582 #ifdef BAR
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1583
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1584 = { 1, 2, 3,
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1585 4, 5, 6 }
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1586
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1587 #endif
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1588 ;
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1589 int baz;
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1590
2843
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1591 void func3(void)
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1592 {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1593 int tab[] = {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1594 1, 2,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1595 3, 4,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1596 5, 6};
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1597
3220
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1598 printf("Don't you dare indent this line incorrectly!\n");
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1599 }
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1600
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1601 void
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1602 func4(a, b,
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1603 c)
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1604 int a;
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1605 int b;
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1606 int c;
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1607 {
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1608 }
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1609
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1610 void
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1611 func5(
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1612 int a,
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1613 int b)
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1614 {
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1615 }
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1616
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1617 void
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1618 func6(
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1619 int a)
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1620 {
2843
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1621 }
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1622
2805
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1623 STARTTEST
2807
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1624 :set cino&
2953
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1625 :set cino+=l1
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1626 2kdd2j=][
2953
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1627 ENDTEST
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1628
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1629 void func(void)
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1630 {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1631 int tab[] =
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1632 {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1633 1, 2, 3,
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1634 4, 5, 6};
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1635
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1636 printf("Indent this line correctly!\n");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1637
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1638 switch (foo)
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1639 {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1640 case bar:
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1641 printf("bar");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1642 break;
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1643 case baz: {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1644 printf("baz");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1645 break;
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1646 }
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1647 case quux:
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1648 printf("But don't break the indentation of this instruction\n");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1649 break;
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1650 }
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1651 }
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1652
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1653 STARTTEST
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1654 :set cino&
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1655 2kdd2j=][
2807
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1656 ENDTEST
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1657
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1658 void func(void)
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1659 {
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1660 cout << "a"
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1661 << "b"
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1662 << ") :"
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1663 << "c";
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1664 }
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1665
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1666 STARTTEST
2809
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1667 :set com=s1:/*,m:*,ex:*/
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1668 ]]3jofoo();
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1669 ENDTEST
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1670
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1671 void func(void)
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1672 {
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1673 /*
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1674 * This is a comment.
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1675 */
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1676 }
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1677
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1678 STARTTEST
2855
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1679 :set cino&
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1680 2kdd2j=][
2855
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1681 ENDTEST
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1682
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1683 void func(void)
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1684 {
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1685 for (int i = 0; i < 10; ++i)
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1686 if (i & 1) {
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1687 foo(1);
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1688 } else
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1689 foo(0);
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1690 baz();
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1691 }
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1692
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1693 STARTTEST
3454
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1694 :set cino=k2s,(0
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1695 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1696 ENDTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1697
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1698 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1699 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1700 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1701 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1702 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1703 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1704 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1705
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1706 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1707 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1708 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1709 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1710 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1711 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1712 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1713
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1714 if ( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1715 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1716 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1717 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1718 func( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1719 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1720 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1721 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1722 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1723
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1724 STARTTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1725 :set cino=k2s,(s
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1726 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1727 ENDTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1728
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1729 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1730 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1731 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1732 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1733 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1734 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1735 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1736
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1737 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1738 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1739 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1740 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1741 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1742 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1743 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1744
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1745 if ( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1746 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1747 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1748 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1749 func( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1750 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1751 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1752 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1753 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1754
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1755 STARTTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1756 :set cino=k2s,(s,U1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1757 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1758 ENDTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1759
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1760 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1761 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1762 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1763 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1764 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1765 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1766 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1767
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1768 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1769 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1770 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1771 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1772 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1773 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1774 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1775 if (c123456789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1776 && (c22345
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1777 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1778 printf("foo\n");
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1779
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1780 c = c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1781 (
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1782 c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1783 c3
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1784 ) && c4;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1785 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1786
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1787 STARTTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1788 :set cino=k2s,(0,W4
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1789 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1790 ENDTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1791
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1792 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1793 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1794 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1795 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1796 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1797 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1798 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1799
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1800 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1801 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1802 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1803 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1804 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1805 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1806 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1807 if (c123456789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1808 && (c22345
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1809 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1810 printf("foo\n");
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1811
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1812 if ( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1813 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1814 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1815 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1816
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1817 a_long_line(
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1818 argument,
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1819 argument);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1820 a_short_line(argument,
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1821 argument);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1822 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1823
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1824 STARTTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1825 :set cino=k2s,u2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1826 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1827 ENDTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1828
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1829 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1830 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1831 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1832 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1833 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1834 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1835 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1836
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1837 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1838 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1839 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1840 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1841 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1842 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1843 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1844 if (c123456789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1845 && (c22345
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1846 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1847 printf("foo\n");
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1848 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1849
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1850 STARTTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1851 :set cino=k2s,(0,w1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1852 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1853 ENDTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1854
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1855 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1856 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1857 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1858 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1859 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1860 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1861 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1862
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1863 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1864 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1865 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1866 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1867 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1868 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1869 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1870 if (c123456789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1871 && (c22345
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1872 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1873 printf("foo\n");
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1874
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1875 if ( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1876 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1877 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1878 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1879 func( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1880 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1881 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1882 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1883 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1884
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1885 STARTTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1886 :set cino=k2,(s
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1887 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1888 ENDTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1889
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1890 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1891 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1892 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1893 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1894 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1895 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1896 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1897
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1898 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1899 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1900 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1901 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1902 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1903 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1904 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1905 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1906
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1907 STARTTEST
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1908 :set cino=N-s
2879
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1909 /^NAMESPACESTART
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1910 =/^NAMESPACEEND
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1911 ENDTEST
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1912
2879
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1913 NAMESPACESTART
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1914 /* valid namespaces with normal indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1915 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1916 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1917 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1918 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1919 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1920 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1921 namespace /* test */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1922 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1923 11111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1924 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1925 namespace // test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1926 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1927 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1928 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1929 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1930 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1931 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1932 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1933 namespace test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1934 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1935 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1936 }
10396
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1937 namespace test::cpp17
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1938 {
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1939 111111111111111111;
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1940 }
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1941 namespace ::incorrectcpp17
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1942 {
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1943 111111111111111111;
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1944 }
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1945 namespace test::incorrectcpp17::
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1946 {
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1947 111111111111111111;
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1948 }
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1949 namespace test:incorrectcpp17
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1950 {
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1951 111111111111111111;
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1952 }
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1953 namespace test:::incorrectcpp17
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1954 {
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1955 111111111111111111;
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1956 }
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1957 namespace{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1958 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1959 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1960 namespace test{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1961 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1962 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1963 namespace {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1964 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1965 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1966 namespace test {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1967 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1968 namespace test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1969 22222222222222222;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1970 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1971 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1972
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1973 /* invalid namespaces use block indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1974 namespace test test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1975 111111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1976 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1977 namespace11111111111 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1978 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1979 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1980 namespace() {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1981 1111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1982 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1983 namespace()
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1984 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1985 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1986 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1987 namespace test test2
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1988 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1989 1111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1990 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1991 namespace111111111
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1992 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1993 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1994 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1995 NAMESPACEEND
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1996
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1997
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1998 STARTTEST
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1999 :set cino=j1,J1
2879
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2000 /^JSSTART
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2001 =/^JSEND
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2002 ENDTEST
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2003
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2004 JSSTART
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2005 var bar = {
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2006 foo: {
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2007 that: this,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2008 some: ok,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2009 },
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2010 "bar":{
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2011 a : 2,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2012 b: "123abc",
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2013 x: 4,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2014 "y": 5
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2015 }
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2016 }
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2017 JSEND
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2018
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2019 STARTTEST
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2020 :set cino=j1,J1
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2021 /^JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2022 =/^JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2023 ENDTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2024
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2025 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2026 var foo = [
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2027 1,
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2028 2,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2029 3
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2030 ];
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2031 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2032
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2033 STARTTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2034 :set cino=j1,J1
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2035 /^JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2036 =/^JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2037 ENDTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2038
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2039 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2040 function bar() {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2041 var foo = [
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2042 1,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2043 2,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2044 3
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2045 ];
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2046 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2047 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2048
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2049 STARTTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2050 :set cino=j1,J1
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2051 /^JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2052 =/^JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2053 ENDTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2054
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2055 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2056 (function($){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2057
6020
ad005d0114c1 updated for version 7.4.350
Bram Moolenaar <bram@vim.org>
parents: 4187
diff changeset
2058 if (cond &&
ad005d0114c1 updated for version 7.4.350
Bram Moolenaar <bram@vim.org>
parents: 4187
diff changeset
2059 cond) {
ad005d0114c1 updated for version 7.4.350
Bram Moolenaar <bram@vim.org>
parents: 4187
diff changeset
2060 stmt;
ad005d0114c1 updated for version 7.4.350
Bram Moolenaar <bram@vim.org>
parents: 4187
diff changeset
2061 }
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2062 window.something.left =
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2063 (width - 50 + offset) + "px";
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2064 var class_name='myclass';
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2065
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2066 function private_method() {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2067 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2068
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2069 var public_method={
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2070 method: function(options,args){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2071 private_method();
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2072 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2073 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2074
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2075 function init(options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2076
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2077 $(this).data(class_name+'_public',$.extend({},{
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2078 foo: 'bar',
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2079 bar: 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2080 foobar: [
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2081 1,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2082 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2083 3
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2084 ],
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2085 callback: function(){
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2086 return true;
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2087 }
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2088 }, options||{}));
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2089 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2090
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2091 $.fn[class_name]=function() {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2092
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2093 var _arguments=arguments;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2094 return this.each(function(){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2095
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2096 var options=$(this).data(class_name+'_public');
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2097 if (!options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2098 init.apply(this,_arguments);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2099
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2100 } else {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2101 var method=public_method[_arguments[0]];
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2102
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2103 if (typeof(method)!='function') {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2104 console.log(class_name+' has no method "'+_arguments[0]+'"');
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2105 return false;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2106 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2107 _arguments[0]=options;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2108 method.apply(this,_arguments);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2109 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2110 });
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2111 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2112
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2113 })(jQuery);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2114 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2115
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2116 STARTTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2117 :set cino=j1,J1
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2118 /^JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2119 =/^JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2120 ENDTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2121
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2122 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2123 function init(options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2124 $(this).data(class_name+'_public',$.extend({},{
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2125 foo: 'bar',
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2126 bar: 2,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2127 foobar: [
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2128 1,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2129 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2130 3
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2131 ],
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2132 callback: function(){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2133 return true;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2134 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2135 }, options||{}));
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2136 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2137 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2138
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2139 STARTTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2140 :set cino=j1,J1
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2141 /^JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2142 =/^JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2143 ENDTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2144
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2145 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2146 (function($){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2147 function init(options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2148 $(this).data(class_name+'_public',$.extend({},{
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2149 foo: 'bar',
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2150 bar: 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2151 foobar: [
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2152 1,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2153 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2154 3
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2155 ],
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2156 callback: function(){
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2157 return true;
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2158 }
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2159 }, options||{}));
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2160 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2161 })(jQuery);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2162 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2163
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2164 STARTTEST
6691
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2165 :set cino=j1,J1,+2
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2166 /^JSSTART
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2167 =/^JSEND
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2168 ENDTEST
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2169
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2170 JSSTART
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2171 // Results of JavaScript indent
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2172 // 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2173 (function(){
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2174 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2175 'a',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2176 'b',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2177 'c',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2178 'd',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2179 'e',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2180 'f',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2181 'g',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2182 'h',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2183 'i'
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2184 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2185 }())
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2186
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2187 // 2
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2188 (function(){
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2189 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2190 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2191 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2192 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2193 'a',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2194 'b',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2195 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2196 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2197 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2198 'c',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2199 'd',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2200 'e',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2201 'f',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2202 'g',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2203 'h',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2204 'i'
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2205 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2206 }())
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2207
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2208 // 3
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2209 (function(){
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2210 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2211 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2212 // comment 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2213 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2214 /* comment 2 */
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2215 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2216 'a',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2217 'b',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2218 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2219 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2220 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2221 'c',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2222 'd',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2223 'e',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2224 'f',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2225 'g',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2226 'h',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2227 'i'
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2228 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2229 }())
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2230
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2231 // 4
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2232 {
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2233 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2234 0,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2235 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2236 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2237 var b;
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2238 var c;
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2239 }
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2240
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2241 // 5
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2242 {
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2243 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2244 [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2245 0
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2246 ],
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2247 2,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2248 3
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2249 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2250 }
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2251
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2252 // 6
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2253 {
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2254 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2255 [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2256 0,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2257 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2258 ],
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2259 2,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2260 3
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2261 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2262 }
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2263
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2264 // 7
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2265 {
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2266 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2267 // [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2268 0,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2269 // 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2270 // ],
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2271 2,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2272 3
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2273 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2274 }
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2275
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2276 // 8
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2277 var x = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2278 (function(){
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2279 var a,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2280 b,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2281 c,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2282 d,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2283 e,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2284 f,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2285 g,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2286 h,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2287 i;
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2288 })
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2289 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2290
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2291 // 9
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2292 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2293 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2294 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2295 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2296 'a',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2297 'b',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2298 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2299 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2300 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2301 'c',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2302 'd',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2303 'e',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2304 'f',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2305 'g',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2306 'h',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2307 'i'
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2308 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2309
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2310 // 10
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2311 var a,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2312 b,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2313 c,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2314 d,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2315 e,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2316 f,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2317 g,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2318 h,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2319 i;
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2320 JSEND
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2321
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2322 STARTTEST
10516
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2323 :set cin cino&
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2324 /start of define
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2325 =/end of define
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2326 ENDTEST
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2327
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2328 /* start of define */
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2329 {
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2330 }
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2331 #define AAA \
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2332 BBB\
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2333 CCC
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2334
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2335 #define CNT \
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2336 1 + \
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2337 2 + \
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2338 4
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2339 /* end of define */
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2340
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2341 STARTTEST
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2342 :g/^STARTTEST/.,/^ENDTEST/d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2343 :1;/start of AUTO/,$wq! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2344 ENDTEST