annotate src/testdir/test3.in @ 2606:94694351f592 v7.3.029

updated for version 7.3.029 Problem: ":sort n" sorts lines without a number as number zero. (Beeyawned) Solution: Make lines without a number sort before lines with a number. Also fix sorting negative numbers.
author Bram Moolenaar <bram@vim.org>
date Fri, 15 Oct 2010 20:20:05 +0200
parents 18ee39301b82
children cdefcbb70e8c
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 Test for 'cindent'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :so small.vim
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 829
diff changeset
7 :set nocompatible viminfo+=nviminfo modeline
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :edit " read modeline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 /start of AUTO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 =/end of AUTO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
13 /* start of AUTO matically checked vim: set ts=4 : */
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 }
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 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 }
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 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 }
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 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 }
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 while (this)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 }
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 while (this)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 }
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 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 }
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 if (test) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 if (test) cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 }
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 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 for (blah)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 while (this)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 cmd3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 }
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 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 for (blah)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 while (this)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 cmd3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 cmd3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 }
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 /* Test for 'cindent' do/while mixed with if/else: */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 asdfasd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 while (cond);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 while (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 while (asdf);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 /* Test for 'cindent' with two ) on a continuation line */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 if (asdfasdf;asldkfj asdlkfj as;ldkfj sal;d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 aal;sdkjf ( ;asldfkja;sldfk
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 al;sdjfka ;slkdf ) sa;ldkjfsa dlk;)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 line up here;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 }
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 /* C++ tests: */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 // foo() these three lines should remain in column 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 // {
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 /* Test for continuation and unterminated lines: */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 i = 99 + 14325 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 21345 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 21345 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 21345 + ( 21345 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 21345) +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 2345 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 1234;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 c = 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 }
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 testje for indent with empty line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 here */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 if (testing &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 not a joke ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 line up here)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 hay;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 if (testing &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 (not a joke || testing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 )line up here)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 hay;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 if (testing &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 (not a joke || testing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 line up here))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 hay;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 }
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 switch (c)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 case xx:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 asdfasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 while (asdf);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 asdfasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 while (cond);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 case yy:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 case xx:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 case zz:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 testing;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 }
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 if (cond) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 }
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 if (alskdfj ;alsdkfjal;skdjf (;sadlkfsa ;dlkf j;alksdfj ;alskdjf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 alsdkfj (asldk;fj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 awith cino=(0 ;lf this one goes to below the paren with ==
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 ;laksjfd ;lsakdjf ;alskdf asd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 asdfasdf;)))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 asdfasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 int
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 func(a, b)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 int c;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 if (c1 && (c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 if (c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 (c2 || c3)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 )
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 while (asd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 if (that)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 cdasd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 while (as
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 df);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 }
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 s = "/*"; b = ';'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 s = "/*"; b = ';';
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 }
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 switch (a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 case a:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 switch (t)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 case 1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 case 2:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 case b:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 case c: {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 case d: if (cond &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 test) { /* this line doesn't work right */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 }
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 if (!(vim_strchr(p_cpo, CPO_BUFOPTGLOB) != NULL && entering) &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 (bp_to->b_p_initialized ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 (!entering && vim_strchr(p_cpo, CPO_BUFOPT) != NULL)))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 return;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 label :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 asdf = asdf ?
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 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 /* Special Comments : This function has the added complexity (compared */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 /* : to addtolist) of having to check for a detail */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 /* : texture and add that to the list first. */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 char *(array[100]) = {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 "testje",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 "foo",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 "bar",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 enum soppie
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 yes = 0,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 no,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 maybe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 typedef enum soppie
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 yes = 0,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 no,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 maybe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 struct Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 char *str;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324 } var[] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 0, "zero",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 1, "one",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 2, "two",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 3, "three"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 float matrix[3][3] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 0,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 3,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 4,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 6,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 7,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 /* blah ( blah */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 /* where does this go? */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 /* blah ( blah */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 func(arg1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 /* comment */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 arg2);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 c; /* Hey, NOW it indents?! */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 func(arg1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 arg2,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 arg3);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 /* Hey, what am I doing here? Is this coz of the ","? */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 main ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 if (cond)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 if (cond) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385 a = c;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 if (cond)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 a = d;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 return;
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 case 2: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 asdfasdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 aasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 a = 9;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397 case 3: if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 aasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 a = 9;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400 case 4: x = 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401 y = 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 label: if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 here;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 label: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 asdfasdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
411 label: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412 asdfasdf) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 there;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416 label: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 asdfasdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 there;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423 hello with ":set comments= cino=c5"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427 hello with ":set comments= cino="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 }
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 if (a < b) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434 a = a + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435 } else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 a = a + 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 if (a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 testing;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441 } while (asdfasdf);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442 a = b + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
443 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
444 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446 class bob
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 int foo() {return 1;}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 int bar;
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 main()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454 while(1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
455 if (foo)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459 else {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
461 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
462 misplacedline;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
465 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
466 if (clipboard.state == SELECT_DONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467 && ((row == clipboard.start.lnum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468 && col >= clipboard.start.col)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469 || row > clipboard.start.lnum))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
471
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
472 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
473 if (1) {i += 4;}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
474 where_am_i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475 return 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
476 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
478 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
479 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
480 } // sdf(asdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
481 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
482 asd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
483 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
485 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
486 label1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 label2:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
491 int fooRet = foo(pBar1, false /*fKB*/,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
492 true /*fPTB*/, 3 /*nT*/, false /*fDF*/);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
493 f() {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
494 for ( i = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
495 i < m;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
496 /* c */ i++ ) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
497 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
498 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
499 }
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 f1(/*comment*/);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
504 f2();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
505 }
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 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
509 if (foo) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510 } else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511 ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
512 } while (foo);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
513 foo(); // was wrong
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 int x; // no extra indent because of the ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
517 void func()
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 char *tab[] = {"aaa",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
522 "};", /* }; */ NULL}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523 int indented;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524 {}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
525
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526 char *a[] = {"aaa", "bbb",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
527 "ccc", NULL};
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
528 // here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
529
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530 char *tab[] = {"aaa",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
531 "xx", /* xx */}; /* asdf */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
532 int not_indented;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536 switch (bla)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
537 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 case 1: if (foo)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
539 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
541 } while (boo);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542 wrong;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
543 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
544
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
545 int foo,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
546 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
547 int foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
548
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549 #if defined(foo) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550 && defined(bar)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551 char * xx = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
552 foo\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553 bor";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
554 int x;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
556 char *foo = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557 asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558 asdf",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
559 *bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
560
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
561 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
562 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563 #if defined(foo) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 && defined(bar)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565 char *foo = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566 asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
567 asdf",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
568 *bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
570 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571 char *foo = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572 asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 asdf",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574 *bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
575 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
576 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
577 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 int y; // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
584
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
586 Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587 int b ) : BaseClass(a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
590 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592 void foo()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
593 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594 char one,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595 two;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596 struct bla piet,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 jan;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
598 enum foo kees,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
599 jannie;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
600 static unsigned sdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601 krap;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602 unsigned int piet,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603 jan;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604 int
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605 kees,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606 jan;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
609 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
610 t(int f,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 int d); // )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612 d();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
614
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
615 Constructor::Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
616 int b
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
617 ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
618 BaseClass(a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
619 b,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
620 c),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
621 mMember(b),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
622 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
623 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
624
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
625 Constructor::Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
626 int b ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
627 BaseClass(a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
628 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
629 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
630
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
631 Constructor::Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
632 int b ) /*x*/ : /*x*/ BaseClass(a),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
633 member(b)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
634 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
635 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
636
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
637 class CAbc :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
638 public BaseClass1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
639 protected BaseClass2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
640 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
641 int Test() { return FALSE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
642 int Test1() { return TRUE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
643
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
644 CAbc(int a, int b ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
645 BaseClass(a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
646 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
647 switch(xxx)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
648 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
649 case abc:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
650 asdf();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
651 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
652
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
653 case 999:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
654 baer();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
655 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
656 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
657 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
658
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
659 public: // <-- this was incoreectly indented before!!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
660 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
661 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
662 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
663 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
664
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
665 class CAbc : public BaseClass1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
666 protected BaseClass2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
667 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
668 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
669
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
670 static struct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
671 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
672 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
673 int b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
674 } variable[COUNT] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
675 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
676 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
677 123,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
678 456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
679 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
680 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
681 123,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
682 456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
683 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
684 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
685
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
686 static struct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
687 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
688 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689 int b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
690 } variable[COUNT] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
691 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
692 { 123, 456 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
693 { 123, 456 }
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 void asdf() /* ind_maxparen may cause trouble here */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
697 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
698 if ((0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
699 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
700 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
701 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
702 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
703 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
704 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
705 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
706 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
707 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
708 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
709 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
710 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
711 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
712 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
713 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
714 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
715 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
716 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
717 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
718 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
719 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
720 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
721 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
722 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
723 && 1)) break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
724 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
725
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
726 foo()
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
727 {
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
728 a = cond ? foo() : asdf
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
729 + asdf;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
730
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
731 a = cond ?
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
732 foo() : asdf
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
733 + asdf;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
734 }
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
735
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
736 int main(void)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
737 {
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
738 if (a)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
739 if (b)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
740 2;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
741 else 3;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
742 next_line_of_code();
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
743 }
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
744
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
745 barry()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
746 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
747 Foo::Foo (int one,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
748 int two)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
749 : something(4)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
750 {}
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
751 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
752
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
753 barry()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
754 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
755 Foo::Foo (int one, int two)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
756 : something(4)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
757 {}
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
758 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
759
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
760 Constructor::Constructor(int a,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
761 int b
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
762 ) :
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
763 BaseClass(a,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
764 b,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
765 c),
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
766 mMember(b)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
767 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
768 }
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
769 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
770 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
771 if (lala)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
772 do
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
773 ++(*lolo);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
774 while (lili
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
775 && lele);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
776 lulu;
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
777 }
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
778
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
779 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
780 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
781 switch (c)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
782 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
783 case 'c': if (cond)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
784 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
785 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
786 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
787 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
788
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
789 main()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
790 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
791 (void) MyFancyFuasdfadsfnction(
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
792 argument);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
793 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
794
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
795 main()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
796 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
797 char foo[] = "/*";
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
798 /* as
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
799 df */
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
800 hello
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
801 }
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
802 /* end of AUTO */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
803
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
804 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
805 :set tw=0 wm=60 columns=80 noai fo=croq
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
806 /serious/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
807 a about life, the universe, and the rest
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
808 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
809
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
810 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
811
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
812 /* this is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
813 * a real serious important big
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
814 * comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
815 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
816 /* insert " about life, the universe, and the rest" after "serious" */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
817 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
818
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
819 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
820 :set nocin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
821 /comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
822 joabout life/happens
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
823 jothere/below
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
824 oline/this
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
825 Ohello
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
826 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
827
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
828 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
829 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
830 * Testing for comments, without 'cin' set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
831 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
832
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
833 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
834 * what happens here?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
835 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
836
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
837 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
838 the end of the comment, try inserting a line below */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
839
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
840 /* how about
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
841 this one */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
842 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
843
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
844 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
845 :set cin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
846 /vec2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
847 ==
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
848 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
849
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
850 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
851 var = this + that + vec[0] * vec[0]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
852 + vec[1] * vec[1]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
853 + vec2[2] * vec[2];
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
854 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
855
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
856 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
857 :set cin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
858 :set cino=}4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
859 /testing1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
860 k2==/testing2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
861 k2==
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
862 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
863
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
864 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
865 asdf asdflkajds f;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
866 if (tes & ting) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
867 asdf asdf asdf ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
868 asdfa sdf asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
869 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
870 testing1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
871 if (tes & ting)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
872 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
873 asdf asdf asdf ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
874 asdfa sdf asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
875 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
876 testing2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
877 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
878
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
879 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
880 :set cin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
881 :set cino=(0,)20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
882 /main
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
883 =][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
884 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
885
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
886 main ( int first_par, /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
887 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
888 * first par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
889 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
890 int second_par /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
891 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
892 * second par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
893 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
894 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
895 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
896 func( first_par, /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
897 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
898 * first par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
899 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
900 second_par /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
901 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
902 * second par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
903 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
904 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
905
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
906 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
907
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
908 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
909 :set cin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
910 :set cino=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
911 ]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
912 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
913
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
914 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
915 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
916 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
917 if ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
918 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
919 if ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
920 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
921 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
922 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
923 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
924 } while ();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
925 cmd; /* this should go under the } */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
926 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
927
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
928 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
929 ]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
930 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
931
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
932 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
933 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
934 if ( k() ) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
935 l();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
936
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
937 } else { /* Start (two words) end */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
938 m();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
939 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
940
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
941 n();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
942 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
943
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
944 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
945 :set cino={s,e-s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
946 ]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
947 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
948
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
949 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
950 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
951 if ( k() )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
952 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
953 l();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
954 } else { /* Start (two words) end */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
955 m();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
956 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
957 n(); /* should be under the if () */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
958 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
959
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
960 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
961 :set cino={s,fs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
962 ]]=/ foo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
963 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
964
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
965 void bar(void)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
966 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
967 static array[2][2] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
968 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
969 { 1, 2 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
970 { 3, 4 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
971 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
972
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
973 while (a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
974 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
975 foo(&a);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
976 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
977
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
978 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
979 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
980 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
981 a = a + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
982 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
983 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
984 b = a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
985 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
986
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
987 void func(void)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
988 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
989 a = 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
990 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
991 b = 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
992 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
993 c = 3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
994 d = 4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
995 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
996 /* foo */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
997
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
998 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
999 :set cino=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1000 /while
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1001 ohere
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1002 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1003
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1004 a()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1005 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1006 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1007 a = a +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1008 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1009 } while ( a ); /* add text under this line */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1010 if ( a )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1011 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1012 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1013
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1014 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1015 :set cino= com=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1016 /comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1017 olabel2: b(); label3 /* post */: /* pre */ label4: f(/*com*/); if (/*com*/) cmd();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1018 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1019
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1020 a()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1021 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1022 label1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1023 /* hmm */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1024 // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1025 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1026
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1027 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1028 :set comments& comments^=s:/*,m:**,ex:*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1029 /simple
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1030 =5j
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 * A simple comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1035 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1036
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1037 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1038 ** A different comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1039 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1040
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1041 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1042 :set cino=c0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1043 :set comments& comments-=s1:/* comments^=s0:/*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1044 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1045 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1046
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1047 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1048 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1049
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1050 /*********
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1051 A comment.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1052 *********/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1053 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1054
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1055 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1056 :set cino=c0,C1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1057 :set comments& comments-=s1:/* comments^=s0:/*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1058 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1059 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1060
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1061 void f()
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 A comment.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1066 *********/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1067 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1068
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1069 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1070 :set cino=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1071 ]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1072 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1073
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1074 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1075 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1076 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1077 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1078 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1079 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1080 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1081 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1082
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1083 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1084 :set cino=(s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1085 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1086 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1087
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1088 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1089 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1090 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1091 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1092 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1093 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1094 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1095 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1096
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1097 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1098 :set cino=(s,U1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1099 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1100 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1102 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1103 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1104 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1105 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1106 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1107 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1108 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1109 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1111 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1112 :set cino=(0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1113 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1114 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1116 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1117 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1118 if ( c1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1119 && ( c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1120 || c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1121 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1122 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1124 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1125 :set cino=(0,w1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1126 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1127 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1129 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1130 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1131 if ( c1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1132 && ( c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1133 || c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1134 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1135 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1136
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1137 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1138 :set cino=(s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1139 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1140 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1141
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1142 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1143 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1144 c = c1 && (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1145 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1146 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1147 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1148 if (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1149 c1 && c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1150 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1151 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1152 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1153
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1154 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1155 :set cino=(s,m1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1156 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1157 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1159 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1160 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1161 c = c1 && (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1162 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1163 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1164 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1165 if (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1166 c1 && c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1167 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1168 foo;
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 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1172 :set cino=b1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1173 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1174 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1175
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1176 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1177 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1178 switch (x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1179 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1180 case 1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1181 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1182 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1183 default:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1184 a = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1185 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1186 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1187 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1189 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1190 :set cino=(0,W5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1191 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1192 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1193
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1194 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1195 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1196 invokeme(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1197 argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1198 ment);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1199 invokeme(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1200 argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1201 ment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1202 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1203 invokeme(argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1204 ment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1205 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1206 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1207
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1208 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1209 :set cino=/6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1210 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1211 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1212
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1213 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1214 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1215 statement;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1216 // comment 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1217 // comment 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1218 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1219
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1220 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1221 :set cino=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1222 2kdd]]/comment 1/+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1223 ==
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1224 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1225
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1226 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1227 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1228 statement;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1229 // comment 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1230 // comment 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1231 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1232
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1233 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1234 :set cino=g0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1235 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1236 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1237
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1238 class CAbc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1239 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1240 int Test() { return FALSE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1241
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1242 public: // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1243 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1244 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1245 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1246 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1247
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1248 STARTTEST
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1249 :set cino=+20
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1250 2kdd]]=][
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1251 ENDTEST
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1252
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1253 void
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1254 foo()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1255 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1256 if (a)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1257 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1258 } else
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1259 asdf;
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1260 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1261
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1262 STARTTEST
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1263 :set cino=(0,W2s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1264 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1265 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1266
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1267 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1268 averylongfunctionnamelongfunctionnameaverylongfunctionname()->asd(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1269 asdasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1270 func(asdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1271 asdfadsf),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1272 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1273 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1274
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1275 /* those are ugly, but consequent */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1276
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1277 func()->asd(asdasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1278 averylongfunctionname(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1279 abc,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1280 dec)->averylongfunctionname(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1281 asdfadsf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1282 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1283 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1284 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1285 func(asdfadf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1286 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1287 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1288 asdasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1289 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1290
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1291 averylongfunctionnameaverylongfunctionnameavery()->asd(fasdf(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1292 abc,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1293 dec)->asdfasdfasdf(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1294 asdfadsf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1295 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1296 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1297 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1298 func(asdfadf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1299 asdfasdf),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1300 asdasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1301 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1302 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1303
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1304 STARTTEST
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1305 :set cino=M1
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1306 2kdd]]=][
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1307 ENDTEST
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1308
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1309 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1310 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1311 if (cond1 &&
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1312 cond2
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1313 )
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1314 foo;
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1315 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1316
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1317 STARTTEST
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1318 :g/^STARTTEST/.,/^ENDTEST/d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1319 :1;/start of AUTO/,$wq! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1320 ENDTEST