annotate src/testdir/test3.ok @ 3220:534b3ef1cf14 v7.3.380

updated for version 7.3.380 Problem: C-indenting wrong for a function header. Solution: Skip to the start paren. (Lech Lorens)
author Bram Moolenaar <bram@vim.org>
date Wed, 14 Dec 2011 20:21:35 +0100
parents 0f193ef0f429
children 214c7ec1c8f9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1 /* start of AUTO matically checked vim: set ts=4 : */
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 while (this)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 while (this)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 if (test) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 if (test) 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 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 for (blah)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 while (this)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 cmd3;
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 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 for (blah)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 while (this)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 cmd3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 cmd1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 cmd2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 cmd3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 /* Test for 'cindent' do/while mixed with if/else: */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 asdfasd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 while (cond);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 while (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 while (asdf);
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 /* Test for 'cindent' with two ) on a continuation line */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 if (asdfasdf;asldkfj asdlkfj as;ldkfj sal;d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 aal;sdkjf ( ;asldfkja;sldfk
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 al;sdjfka ;slkdf ) sa;ldkjfsa dlk;)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 line up here;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 /* C++ tests: */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 // foo() these three lines should remain in column 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 // {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 // }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 /* Test for continuation and unterminated lines: */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 i = 99 + 14325 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 21345 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 21345 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 21345 + ( 21345 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 21345) +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 2345 +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 1234;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 c = 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 testje for indent with empty line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 here */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 if (testing &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 not a joke ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 line up here)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 hay;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 if (testing &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 (not a joke || testing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 )line up here)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 hay;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 if (testing &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 (not a joke || testing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 line up here))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 hay;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 switch (c)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 case xx:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 asdfasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 while (asdf);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 asdfasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 while (cond);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 case yy:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 case xx:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 case zz:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 testing;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 if (cond) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 }
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 if (alskdfj ;alsdkfjal;skdjf (;sadlkfsa ;dlkf j;alksdfj ;alskdjf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 alsdkfj (asldk;fj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 awith cino=(0 ;lf this one goes to below the paren with ==
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 ;laksjfd ;lsakdjf ;alskdf asd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 asdfasdf;)))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 asdfasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 int
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 func(a, b)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 int c;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 if (c1 && (c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 if (c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 (c2 || c3)
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 while (asd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 if (test)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 if (that)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 cdasd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 while (as
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 df);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 s = "/*"; b = ';'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 s = "/*"; b = ';';
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 switch (a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 case a:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 switch (t)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 case 1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 case 2:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 case b:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 case c: {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 case d: if (cond &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 test) { /* this line doesn't work right */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 if (!(vim_strchr(p_cpo, CPO_BUFOPTGLOB) != NULL && entering) &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 (bp_to->b_p_initialized ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 (!entering && vim_strchr(p_cpo, CPO_BUFOPT) != NULL)))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 return;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 label :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 asdf = asdf ?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 asdf : asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 asdf = asdf ?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 asdf: asdf;
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 /* Special Comments : This function has the added complexity (compared */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 /* : to addtolist) of having to check for a detail */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 /* : texture and add that to the list first. */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 char *(array[100]) = {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 "testje",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 "foo",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 "bar",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 enum soppie
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 yes = 0,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 no,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 maybe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 typedef enum soppie
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 yes = 0,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 no,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 maybe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301
3218
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
302 static enum
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
303 {
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
304 yes = 0,
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
305 no,
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
306 maybe
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
307 } soppie;
0f193ef0f429 updated for version 7.3.379
Bram Moolenaar <bram@vim.org>
parents: 3186
diff changeset
308
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 b;
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 struct Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 char *str;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 } var[] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 0, "zero",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 1, "one",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 2, "two",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324 3, "three"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 float matrix[3][3] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 0,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331 1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 2
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 3,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 4,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 5
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 6,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 7,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 8
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 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 /* blah ( blah */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 /* where does this go? */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 /* blah ( blah */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 func(arg1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 /* comment */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 arg2);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 c; /* Hey, NOW it indents?! */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 func(arg1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 arg2,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 arg3);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 /* Hey, what am I doing here? Is this coz of the ","? */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 main ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 if (cond)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 if (cond) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 a = c;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 if (cond)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 a = d;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 return;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 case 2: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 asdfasdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390 aasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391 a = 9;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392 case 3: if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 aasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 a = 9;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 case 4: x = 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 y = 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 label: if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 here;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401 label: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402 asdfasdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 }
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 there;
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 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 hello with ":set comments= cino=c5"
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 hello with ":set comments= cino="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423 */
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 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 if (a < b) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 a = a + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430 } else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431 a = a + 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 if (a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435 testing;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 } while (asdfasdf);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 a = b + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441 class bob
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
443 int foo() {return 1;}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
444 int bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 main()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 while(1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 if (foo)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454 else {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
455 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457 misplacedline;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
461 if (clipboard.state == SELECT_DONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
462 && ((row == clipboard.start.lnum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463 && col >= clipboard.start.col)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464 || row > clipboard.start.lnum))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
465 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
466
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468 if (1) {i += 4;}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469 where_am_i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 return 0;
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 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
474 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475 } // sdf(asdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
476 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477 asd;
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 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
481 label1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
482 label2:
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 int fooRet = foo(pBar1, false /*fKB*/,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 true /*fPTB*/, 3 /*nT*/, false /*fDF*/);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488 f() {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 for ( i = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490 i < m;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
491 /* c */ i++ ) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
492 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
493 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
494 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
495 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
496
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
497 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
498 f1(/*comment*/);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
499 f2();
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 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
504 if (foo) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
505 } else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
506 ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
507 } while (foo);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
508 foo(); // was wrong
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
509 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511 int x; // no extra indent because of the ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
512 void func()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
513 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
515
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
516 char *tab[] = {"aaa",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
517 "};", /* }; */ NULL}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
518 int indented;
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 *a[] = {"aaa", "bbb",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
522 "ccc", NULL};
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523 // here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
525 char *tab[] = {"aaa",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526 "xx", /* xx */}; /* asdf */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
527 int not_indented;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
528
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
529 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
531 switch (bla)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
532 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533 case 1: if (foo)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536 } while (boo);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
537 wrong;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
539
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 int foo,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
541 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542 int foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
543
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
544 #if defined(foo) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
545 && defined(bar)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
546 char * xx = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
547 foo\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
548 bor";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549 int x;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551 char *foo = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
552 asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553 asdf",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
554 *bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
556 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558 #if defined(foo) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
559 && defined(bar)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
560 char *foo = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
561 asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
562 asdf",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563 *bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566 char *foo = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
567 asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
568 asdf",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569 *bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
570 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
575 int y; // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
576 // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
577
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578 // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 int b ) : BaseClass(a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 {
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587 void foo()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589 char one,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
590 two;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591 struct bla piet,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592 jan;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
593 enum foo kees,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594 jannie;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595 static unsigned sdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596 krap;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 unsigned int piet,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
598 jan;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
599 int
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
600 kees,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601 jan;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605 t(int f,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606 int d); // )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607 d();
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 Constructor::Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 int b
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612 ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613 BaseClass(a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
614 b,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
615 c),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
616 mMember(b),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
617 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
618 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
619
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
620 Constructor::Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
621 int b ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
622 BaseClass(a)
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
626 Constructor::Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
627 int b ) /*x*/ : /*x*/ BaseClass(a),
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
628 member(b)
7
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
632 class CAbc :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
633 public BaseClass1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
634 protected BaseClass2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
635 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
636 int Test() { return FALSE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
637 int Test1() { return TRUE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
638
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
639 CAbc(int a, int b ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
640 BaseClass(a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
641 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
642 switch(xxx)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
643 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
644 case abc:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
645 asdf();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
646 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
647
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
648 case 999:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
649 baer();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
650 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
651 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
652 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
653
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
654 public: // <-- this was incoreectly indented before!!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
655 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
656 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
657 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
658 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
659
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
660 class CAbc : public BaseClass1,
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
661 protected BaseClass2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
662 {
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 static struct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
666 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
667 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
668 int b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
669 } variable[COUNT] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
670 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
671 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
672 123,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
673 456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
674 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
675 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
676 123,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
677 456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
678 }
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 static struct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
682 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
683 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
684 int b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
685 } variable[COUNT] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
686 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
687 { 123, 456 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
688 { 123, 456 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
690
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
691 void asdf() /* ind_maxparen may cause trouble here */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
692 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
693 if ((0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
694 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
695 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
696 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
697 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
698 && 1
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)) break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
719 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
720
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
721 foo()
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
722 {
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
723 a = cond ? foo() : asdf
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
724 + asdf;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
725
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
726 a = cond ?
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
727 foo() : asdf
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
728 + asdf;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
729 }
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
730
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
731 int main(void)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
732 {
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
733 if (a)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
734 if (b)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
735 2;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
736 else 3;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
737 next_line_of_code();
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
738 }
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
739
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
740 barry()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
741 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
742 Foo::Foo (int one,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
743 int two)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
744 : something(4)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
745 {}
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
746 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
747
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
748 barry()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
749 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
750 Foo::Foo (int one, int two)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
751 : something(4)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
752 {}
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
753 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
754
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
755 Constructor::Constructor(int a,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
756 int b
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
757 ) :
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
758 BaseClass(a,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
759 b,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
760 c),
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
761 mMember(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 }
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
764 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
765 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
766 if (lala)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
767 do
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
768 ++(*lolo);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
769 while (lili
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
770 && lele);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
771 lulu;
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
772 }
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
773
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
774 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
775 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
776 switch (c)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
777 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
778 case 'c': if (cond)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
779 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
780 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
781 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
782 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
783
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
784 main()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
785 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
786 (void) MyFancyFuasdfadsfnction(
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
787 argument);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
788 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
789
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
790 main()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
791 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
792 char foo[] = "/*";
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
793 /* as
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
794 df */
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
795 hello
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
796 }
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
797
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
798 /* valid namespaces with normal indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
799 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
800 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
801 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
802 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
803 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
804 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
805 namespace /* test */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
806 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
807 11111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
808 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
809 namespace // test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
810 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
811 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
812 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
813 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
814 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
815 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
816 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
817 namespace test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
818 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
819 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
820 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
821 namespace{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
822 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
823 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
824 namespace test{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
825 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
826 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
827 namespace {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
828 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
829 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
830 namespace test {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
831 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
832 namespace test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
833 22222222222222222;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
834 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
835 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
836
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
837 /* invalid namespaces use block indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
838 namespace test test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
839 111111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
840 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
841 namespace11111111111 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
842 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
843 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
844 namespace() {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
845 1111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
846 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
847 namespace()
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
848 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
849 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
850 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
851 namespace test test2
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
852 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
853 1111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
854 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
855 namespace111111111
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
856 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
857 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
858 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
859
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
860 /* end of AUTO */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
861
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
862
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 /* this is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
866 * a real serious
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
867 * about life, the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
868 * universe, and the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
869 * rest important big
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
870 * comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
871 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
872 /* insert " about life, the universe, and the rest" after "serious" */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
873 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
874
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
875
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
876 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
877 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
878 * Testing for comments, without 'cin' set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
879 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
880 about life
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
881
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
882 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
883 * what happens here?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
884 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
885 there
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
886
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
887 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
888 the end of the comment, try inserting a line below */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
889 line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
890
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
891 /* how about
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
892 hello
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
893 this one */
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
897 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
898 var = this + that + vec[0] * vec[0]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
899 + vec[1] * vec[1]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
900 + vec2[2] * vec[2];
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
901 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
902
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 asdf asdflkajds f;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
906 if (tes & ting) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
907 asdf asdf asdf ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
908 asdfa sdf asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
909 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
910 testing1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
911 if (tes & ting)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
912 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
913 asdf asdf asdf ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
914 asdfa sdf asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
915 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
916 testing2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
917 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
918
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
919
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
920 main ( int first_par, /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
921 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
922 * first par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
923 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
924 int second_par /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
925 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
926 * second par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
927 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
928 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
929 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
930 func( first_par, /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
931 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
932 * first par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
933 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
934 second_par /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
935 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
936 * second par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
937 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
938 );
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
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 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
945 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
946 if ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
947 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
948 if ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
949 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
950 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
951 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
952 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
953 } while ();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
954 cmd; /* this should go under the } */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
955 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
956
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
957
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
958 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
959 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
960 if ( k() ) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
961 l();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
962
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
963 } else { /* Start (two words) end */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
964 m();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
965 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
966
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
967 n();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
968 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
969
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
970
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
971 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
972 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
973 if ( k() )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
974 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
975 l();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
976 } else { /* Start (two words) end */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
977 m();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
978 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
979 n(); /* should be under the if () */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
980 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
981
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
982
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
983 void bar(void)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
984 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
985 static array[2][2] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
986 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
987 { 1, 2 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
988 { 3, 4 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
989 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
990
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
991 while (a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
992 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
993 foo(&a);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
994 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
995
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
996 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
997 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
998 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
999 a = a + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1000 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1001 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1002 b = a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1003 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1004
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1005 void func(void)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1006 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1007 a = 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1008 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1009 b = 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1010 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1011 c = 3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1012 d = 4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1013 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1014 /* foo */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1015
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1016
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1017 a()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1018 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1019 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1020 a = a +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1021 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1022 } while ( a ); /* add text under this line */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1023 here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1024 if ( a )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1025 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1026 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1027
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1028
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1029 a()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1030 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1031 label1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1032 /* hmm */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1033 // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1034 label2: b();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1035 label3 /* post */:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1036 /* pre */ label4:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1037 f(/*com*/);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1038 if (/*com*/)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1039 cmd();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1040 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1041
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1042
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1043 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1044 * A simple comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1045 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1046
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1047 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1048 ** A different comment
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1052 void f()
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 /*********
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1056 A comment.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1057 *********/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1058 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1059
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1070 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1071 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1072 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1073 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1074 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1075 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1076 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1077 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1078
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1079
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1080 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1081 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1082 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1083 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1084 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1085 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1086 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1087 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1088
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1089
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1090 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1091 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1092 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1093 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1094 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1095 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1096 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1097 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1098
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1099
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1100 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1101 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1102 if ( c1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1103 && ( c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1104 || c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1105 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1106 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1109 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1110 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1111 if ( c1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1112 && ( c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1113 || c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1114 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1115 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1116
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1118 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1119 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1120 c = c1 && (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1121 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1122 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1123 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1124 if (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1125 c1 && c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1126 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1127 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1128 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1129
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1131 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1132 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1133 c = c1 && (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1134 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1135 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1136 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1137 if (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1138 c1 && c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1139 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1140 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1141 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1142
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1143
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1144 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1145 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1146 switch (x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1147 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1148 case 1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1149 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1150 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1151 default:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1152 a = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1153 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1154 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1155 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1156
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1158 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1159 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1160 invokeme(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1161 argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1162 ment);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1163 invokeme(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1164 argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1165 ment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1166 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1167 invokeme(argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1168 ment
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1172
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1173 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1174 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1175 statement;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1176 // comment 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1177 // comment 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1178 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1180
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1181 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1182 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1183 statement;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1184 // comment 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1185 // comment 2
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 class CAbc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1190 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1191 int Test() { return FALSE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1192
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1193 public: // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1194 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1195 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1196 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1197 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1199
3123
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1200 class Foo : public Bar
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1201 {
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1202 public:
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1203 virtual void method1(void) = 0;
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1204 virtual void method2(int arg1,
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1205 int arg2,
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1206 int arg3) = 0;
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1207 };
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1208
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1209
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1210 void
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1211 foo()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1212 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1213 if (a)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1214 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1215 } else
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1216 asdf;
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1217 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1218
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1219
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1220 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1221 averylongfunctionnamelongfunctionnameaverylongfunctionname()->asd(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1222 asdasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1223 func(asdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1224 asdfadsf),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1225 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1226 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1227
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1228 /* those are ugly, but consequent */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1229
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1230 func()->asd(asdasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1231 averylongfunctionname(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1232 abc,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1233 dec)->averylongfunctionname(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1234 asdfadsf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1235 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1236 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1237 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1238 func(asdfadf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1239 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1240 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1241 asdasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1242 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1243
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1244 averylongfunctionnameaverylongfunctionnameavery()->asd(fasdf(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1245 abc,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1246 dec)->asdfasdfasdf(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1247 asdfadsf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1248 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1249 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1250 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1251 func(asdfadf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1252 asdfasdf),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1253 asdasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1254 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1255 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1256
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1257
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1258 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1259 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1260 if (cond1 &&
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1261 cond2
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1262 )
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1263 foo;
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1264 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1265
2776
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1266
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1267 void func(int a
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1268 #if defined(FOO)
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1269 , int b
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1270 , int c
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1271 #endif
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1272 )
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1273 {
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1274 }
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1275
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1276
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1277 void
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1278 func(int a
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1279 #if defined(FOO)
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1280 , int b
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1281 , int c
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1282 #endif
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1283 )
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1284 {
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1285 }
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1286
2805
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1287
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1288 void func(void)
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1289 {
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1290 if(x==y)
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1291 if(y==z)
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1292 foo=1;
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1293 else { bar=1;
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1294 baz=2;
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1295 }
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1296 printf("Foo!\n");
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1297 }
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1298
2843
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1299 void func1(void)
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1300 {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1301 char* tab[] = {"foo", "bar",
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1302 "baz", "quux",
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1303 "this line used", "to be indented incorrectly"};
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1304 foo();
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1305 }
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1306
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1307 void func2(void)
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1308 {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1309 int tab[] =
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1310 {1, 2,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1311 3, 4,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1312 5, 6};
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1313
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1314 printf("This line used to be indented incorrectly.\n");
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1315 }
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1316
3186
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1317 int foo[]
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1318 #ifdef BAR
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1319
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1320 = { 1, 2, 3,
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1321 4, 5, 6 }
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1322
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1323 #endif
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1324 ;
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1325 int baz;
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1326
2843
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1327 void func3(void)
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1328 {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1329 int tab[] = {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1330 1, 2,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1331 3, 4,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1332 5, 6};
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1333
3220
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1334 printf("Don't you dare indent this line incorrectly!\n");
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1335 }
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1336
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1337 void
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1338 func4(a, b,
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1339 c)
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1340 int a;
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1341 int b;
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1342 int c;
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1343 {
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1344 }
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1345
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1346 void
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1347 func5(
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1348 int a,
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1349 int b)
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1350 {
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1351 }
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1352
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1353 void
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1354 func6(
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1355 int a)
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1356 {
2843
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1357 }
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1358
2807
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1359
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1360 void func(void)
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1361 {
2953
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1362 int tab[] =
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1363 {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1364 1, 2, 3,
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1365 4, 5, 6};
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1366
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1367 printf("Indent this line correctly!\n");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1368
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1369 switch (foo)
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1370 {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1371 case bar:
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1372 printf("bar");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1373 break;
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1374 case baz: {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1375 printf("baz");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1376 break;
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1377 }
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1378 case quux:
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1379 printf("But don't break the indentation of this instruction\n");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1380 break;
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1381 }
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1382 }
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1383
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1384
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1385 void func(void)
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1386 {
2807
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1387 cout << "a"
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1388 << "b"
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1389 << ") :"
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1390 << "c";
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1391 }
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1392
2809
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1393
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1394 void func(void)
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1395 {
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1396 /*
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1397 * This is a comment.
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1398 */
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1399 foo();
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1400 }
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1401
2855
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1402
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1403 void func(void)
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1404 {
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1405 for (int i = 0; i < 10; ++i)
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1406 if (i & 1) {
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1407 foo(1);
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1408 } else
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1409 foo(0);
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1410 baz();
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1411 }
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1412
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1413
2879
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1414 NAMESPACESTART
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1415 /* valid namespaces with normal indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1416 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1417 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1418 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1419 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1420 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1421 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1422 namespace /* test */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1423 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1424 11111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1425 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1426 namespace // test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1427 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1428 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1429 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1430 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1431 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1432 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1433 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1434 namespace test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1435 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1436 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1437 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1438 namespace{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1439 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1440 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1441 namespace test{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1442 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1443 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1444 namespace {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1445 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1446 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1447 namespace test {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1448 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1449 namespace test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1450 22222222222222222;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1451 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1452 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1453
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1454 /* invalid namespaces use block indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1455 namespace test test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1456 111111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1457 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1458 namespace11111111111 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1459 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1460 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1461 namespace() {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1462 1111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1463 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1464 namespace()
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1465 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1466 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1467 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1468 namespace test test2
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1469 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1470 1111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1471 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1472 namespace111111111
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1473 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1474 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1475 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1476 NAMESPACEEND
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1477
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1478
2879
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1479
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1480 JSSTART
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1481 var bar = {
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1482 foo: {
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1483 that: this,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1484 some: ok,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1485 },
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1486 "bar":{
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1487 a : 2,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1488 b: "123abc",
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1489 x: 4,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1490 "y": 5
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1491 }
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1492 }
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1493 JSEND
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1494
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1495
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1496 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1497 var foo = [
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1498 1, // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1499 2,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1500 3
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1501 ]; // indent 8 less
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1502 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1503
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1504
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1505 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1506 function bar() {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1507 var foo = [
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1508 1,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1509 2,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1510 3
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1511 ]; // indent 16 less
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1512 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1513 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1514
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1515
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1516 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1517 (function($){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1518
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1519 var class_name='myclass';
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1520
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1521 function private_method() {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1522 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1523
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1524 var public_method={
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1525 method: function(options,args){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1526 private_method();
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1527 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1528 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1529
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1530 function init(options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1531
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1532 $(this).data(class_name+'_public',$.extend({},{
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1533 foo: 'bar',
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1534 bar: 2, // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1535 foobar: [ // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1536 1, // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1537 2, // indent 16 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1538 3 // indent 16 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1539 ],
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1540 callback: function(){ // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1541 return true; // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1542 } // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1543 }, options||{}));
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1544 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1545
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1546 $.fn[class_name]=function() {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1547
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1548 var _arguments=arguments;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1549 return this.each(function(){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1550
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1551 var options=$(this).data(class_name+'_public');
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1552 if (!options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1553 init.apply(this,_arguments);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1554
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1555 } else {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1556 var method=public_method[_arguments[0]];
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1557
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1558 if (typeof(method)!='function') {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1559 console.log(class_name+' has no method "'+_arguments[0]+'"');
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1560 return false;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1561 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1562 _arguments[0]=options;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1563 method.apply(this,_arguments);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1564 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1565 });
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1566 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1567
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1568 })(jQuery);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1569 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1570
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1571
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1572 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1573 function init(options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1574 $(this).data(class_name+'_public',$.extend({},{
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1575 foo: 'bar',
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1576 bar: 2,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1577 foobar: [
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1578 1, // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1579 2, // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1580 3 // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1581 ],
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1582 callback: function(){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1583 return true;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1584 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1585 }, options||{}));
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1586 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1587 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1588
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1589
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1590 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1591 (function($){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1592 function init(options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1593 $(this).data(class_name+'_public',$.extend({},{
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1594 foo: 'bar',
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1595 bar: 2, // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1596 foobar: [ // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1597 1, // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1598 2, // indent 16 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1599 3 // indent 16 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1600 ],
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1601 callback: function(){ // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1602 return true; // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1603 } // indent 8 more
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1604 }, options||{}));
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1605 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1606 })(jQuery);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1607 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1608