annotate src/testdir/test3.ok @ 8847:470ea7526cc6 v7.4.1711

commit https://github.com/vim/vim/commit/a742e084b677f76c67e9e52c4f9fb9ab24002e20 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 5 21:10:38 2016 +0200 patch 7.4.1711 Problem: When using try/catch in 'statusline' it is still considered an error and the status line will be disabled. Solution: Check did_emsg instead of called_emsg. (haya14busa, closes https://github.com/vim/vim/issues/729)
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Apr 2016 21:15:05 +0200
parents c6a7305972fe
children 0bbbe99c8432
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
4187
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
309 public static enum
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
310 {
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
311 yes = 0,
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
312 no,
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
313 maybe
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
314 } soppie;
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
315
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
316 static private enum
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
317 {
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
318 yes = 0,
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
319 no,
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
320 maybe
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
321 } soppie;
171234e02b1e updated for version 7.3.845
Bram Moolenaar <bram@vim.org>
parents: 3578
diff changeset
322
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324 int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 struct Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 char *str;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 } var[] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 0, "zero",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 1, "one",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 2, "two",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 3, "three"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 float matrix[3][3] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 0,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 3,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 4,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 6,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 7,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 /* blah ( blah */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 /* where does this go? */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 /* blah ( blah */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 func(arg1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 /* comment */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 arg2);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 c; /* Hey, NOW it indents?! */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 func(arg1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 arg2,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 arg3);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 /* Hey, what am I doing here? Is this coz of the ","? */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 }
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 main ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 if (cond)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 if (cond) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 a = c;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 if (cond)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397 a = d;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 return;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402 case 2: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 asdfasdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 aasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 a = 9;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 case 3: if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 aasdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 a = 9;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 case 4: x = 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410 y = 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
411
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412 label: if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 here;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 label: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416 asdfasdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 label: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 asdfasdf) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 there;
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 label: if (asdf &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426 asdfasdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427 there;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432 hello with ":set comments= cino=c5"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 hello with ":set comments= cino="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 }
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 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442 if (a < b) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
443 a = a + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
444 } else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445 a = a + 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 if (a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 testing;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 } while (asdfasdf);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451 a = b + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454
6114
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
455 {
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
456 for ( int i = 0;
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
457 i < 10; i++ )
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
458 {
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
459 }
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
460 i = 0;
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
461 }
65b0974c5beb updated for version 7.4.395
Bram Moolenaar <bram@vim.org>
parents: 6030
diff changeset
462
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463 class bob
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
465 int foo() {return 1;}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
466 int bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469 main()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
471 while(1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
472 if (foo)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
473 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
474 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
476 else {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
478 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
479 misplacedline;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
480 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
481
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
482 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
483 if (clipboard.state == SELECT_DONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484 && ((row == clipboard.start.lnum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
485 && col >= clipboard.start.col)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
486 || row > clipboard.start.lnum))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490 if (1) {i += 4;}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
491 where_am_i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
492 return 0;
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 } // sdf(asdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
498 if (asdf)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
499 asd;
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 label1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
504 label2:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
505 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
506
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
507 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
508 int fooRet = foo(pBar1, false /*fKB*/,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
509 true /*fPTB*/, 3 /*nT*/, false /*fDF*/);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510 f() {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511 for ( i = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
512 i < m;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
513 /* c */ i++ ) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
515 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
516 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
517 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
518
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
519 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
520 f1(/*comment*/);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
521 f2();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
522 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
525 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526 if (foo) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
527 } else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
528 ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
529 } while (foo);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530 foo(); // was wrong
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
531 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
532
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533 int x; // no extra indent because of the ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 void func()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
537
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 char *tab[] = {"aaa",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
539 "};", /* }; */ NULL}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 int indented;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
541 {}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
543 char *a[] = {"aaa", "bbb",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
544 "ccc", NULL};
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
545 // here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
546
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
547 char *tab[] = {"aaa",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
548 "xx", /* xx */}; /* asdf */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549 int not_indented;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
552 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553 switch (bla)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
554 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555 case 1: if (foo)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
556 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558 } while (boo);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
559 wrong;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
560 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
561
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
562 int foo,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563 bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 int foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566 #if defined(foo) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
567 && defined(bar)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
568 char * xx = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569 foo\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
570 bor";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571 int x;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 char *foo = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574 asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
575 asdf",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
576 *bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
577
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 #if defined(foo) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 && defined(bar)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 char *foo = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
584 asdf",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585 *bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
586 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588 char *foo = "asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589 asdf\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
590 asdf",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591 *bar;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
593 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 int y; // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
598 // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
599
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
600 // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603 Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604 int b ) : BaseClass(a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
609 void foo()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
610 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 char one,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612 two;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613 struct bla piet,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
614 jan;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
615 enum foo kees,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
616 jannie;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
617 static unsigned sdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
618 krap;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
619 unsigned int piet,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
620 jan;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
621 int
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
622 kees,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
623 jan;
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 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
627 t(int f,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
628 int d); // )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
629 d();
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 Constructor::Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
633 int b
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
634 ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
635 BaseClass(a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
636 b,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
637 c),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
638 mMember(b),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
639 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
640 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
641
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
642 Constructor::Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
643 int b ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
644 BaseClass(a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
645 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
646 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
647
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
648 Constructor::Constructor(int a,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
649 int b ) /*x*/ : /*x*/ BaseClass(a),
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
650 member(b)
7
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
7206
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
654 A::A(int a, int b)
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
655 : aa(a),
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
656 bb(b),
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
657 cc(c)
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
658 {
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
659 }
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
660
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
661 class CAbc :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
662 public BaseClass1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
663 protected BaseClass2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
664 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
665 int Test() { return FALSE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
666 int Test1() { return TRUE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
667
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
668 CAbc(int a, int b ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
669 BaseClass(a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
670 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
671 switch(xxx)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
672 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
673 case abc:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
674 asdf();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
675 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
676
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
677 case 999:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
678 baer();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
679 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
680 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
681 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
682
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
683 public: // <-- this was incoreectly indented before!!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
684 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
685 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
686 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
687 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
688
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689 class CAbc : public BaseClass1,
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
690 protected BaseClass2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
691 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
692 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
693
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
694 static struct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
695 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
696 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
697 int b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
698 } variable[COUNT] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
699 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
700 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
701 123,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
702 456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
703 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
704 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
705 123,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
706 456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
707 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
708 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
709
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
710 static struct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
711 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
712 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
713 int b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
714 } variable[COUNT] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
715 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
716 { 123, 456 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
717 { 123, 456 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
718 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
719
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
720 void asdf() /* ind_maxparen may cause trouble here */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
721 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
722 if ((0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
723 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
724 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
725 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
726 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
727 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
728 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
729 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
730 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
731 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
732 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
733 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
734 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
735 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
736 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
737 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
738 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
739 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
740 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
741 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
742 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
743 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
744 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
745 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
746 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
747 && 1)) break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
748 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
749
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
750 foo()
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
751 {
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
752 a = cond ? foo() : asdf
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
753 + asdf;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
754
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
755 a = cond ?
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
756 foo() : asdf
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
757 + asdf;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
758 }
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
759
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
760 int main(void)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
761 {
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
762 if (a)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
763 if (b)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
764 2;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
765 else 3;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
766 next_line_of_code();
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
767 }
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
768
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
769 barry()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
770 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
771 Foo::Foo (int one,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
772 int two)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
773 : something(4)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
774 {}
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
775 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
776
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
777 barry()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
778 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
779 Foo::Foo (int one, int two)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
780 : something(4)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
781 {}
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
782 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
783
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
784 Constructor::Constructor(int a,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
785 int b
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
786 ) :
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
787 BaseClass(a,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
788 b,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
789 c),
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
790 mMember(b)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
791 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
792 }
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
793 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
794 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
795 if (lala)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
796 do
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
797 ++(*lolo);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
798 while (lili
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
799 && lele);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
800 lulu;
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
801 }
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
802
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
803 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
804 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
805 switch (c)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
806 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
807 case 'c': if (cond)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
808 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
809 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
810 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
811 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
812
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
813 main()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
814 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
815 (void) MyFancyFuasdfadsfnction(
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
816 argument);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
817 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
818
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
819 main()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
820 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
821 char foo[] = "/*";
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
822 /* as
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
823 df */
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
824 hello
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
825 }
2857
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 /* valid namespaces with normal indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
828 namespace
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 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
831 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
832 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
833 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
834 namespace /* test */
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 11111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
837 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
838 namespace // test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
839 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
840 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
841 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
842 namespace
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 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
845 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
846 namespace test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
847 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
848 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
849 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
850 namespace{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
851 111111111111111111;
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 namespace test{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
854 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
855 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
856 namespace {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
857 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
858 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
859 namespace test {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
860 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
861 namespace test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
862 22222222222222222;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
863 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
864 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
865
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
866 /* invalid namespaces use block indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
867 namespace test test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
868 111111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
869 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
870 namespace11111111111 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
871 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
872 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
873 namespace() {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
874 1111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
875 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
876 namespace()
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
877 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
878 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
879 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
880 namespace test test2
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
881 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
882 1111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
883 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
884 namespace111111111
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
885 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
886 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
887 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
888
6971
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
889 void getstring() {
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
890 /* Raw strings */
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
891 const char* s = R"(
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
892 test {
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
893 # comment
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
894 field: 123
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
895 }
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
896 )";
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
897 }
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
898
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
899 void getstring() {
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
900 const char* s = R"foo(
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
901 test {
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
902 # comment
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
903 field: 123
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
904 }
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
905 )foo";
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
906 }
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
907
7160
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
908 {
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
909 int a[4] = {
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
910 [0] = 0,
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
911 [1] = 1,
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
912 [2] = 2,
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
913 [3] = 3,
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
914 };
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
915 }
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
916
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
917 {
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
918 a = b[2]
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
919 + 3;
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
920 }
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
921
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
922 {
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
923 if (1)
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
924 /* aaaaa
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
925 * bbbbb
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
926 */
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
927 a = 1;
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
928 }
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
929
7164
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
930 void func()
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
931 {
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
932 switch (foo)
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
933 {
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
934 case (bar):
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
935 if (baz())
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
936 quux();
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
937 break;
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
938 case (shmoo):
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
939 if (!bar)
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
940 {
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
941 }
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
942 case (foo1):
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
943 switch (bar)
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
944 {
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
945 case baz:
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
946 baz_f();
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
947 break;
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
948 }
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
949 break;
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
950 default:
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
951 baz();
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
952 baz();
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
953 break;
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
954 }
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
955 }
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
956
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
957 /* end of AUTO */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
958
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
959
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
960 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
961
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
962 /* this is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
963 * a real serious
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
964 * about life, the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
965 * universe, and the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
966 * rest important big
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
967 * comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
968 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
969 /* insert " about life, the universe, and the rest" after "serious" */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
970 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
971
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
972
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
973 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
974 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
975 * Testing for comments, without 'cin' set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
976 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
977 about life
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
978
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
979 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
980 * what happens here?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
981 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
982 there
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
983
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
984 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
985 the end of the comment, try inserting a line below */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
986 line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
987
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
988 /* how about
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
989 hello
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
990 this one */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
991 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
992
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
993
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
994 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
995 var = this + that + vec[0] * vec[0]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
996 + vec[1] * vec[1]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
997 + vec2[2] * vec[2];
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
998 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
999
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 asdf asdflkajds f;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1003 if (tes & ting) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1004 asdf asdf asdf ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1005 asdfa sdf asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1006 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1007 testing1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1008 if (tes & ting)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1009 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1010 asdf asdf asdf ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1011 asdfa sdf asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1012 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1013 testing2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1014 }
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 main ( int first_par, /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1018 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1019 * first par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1020 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1021 int second_par /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1022 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1023 * second par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1024 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1025 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1026 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1027 func( first_par, /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1028 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1029 * first par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1030 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1031 second_par /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1032 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1033 * second par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1034 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1035 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1036
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1037 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1038
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1039
3578
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1040 main(void)
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1041 {
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1042 /* Make sure that cino=X0s is not parsed like cino=Xs. */
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1043 if (cond)
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1044 foo();
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1045 else
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1046 {
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1047 bar();
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1048 }
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1049 }
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1050
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1051
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1052 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1053 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1054 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1055 if ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1056 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1057 if ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1058 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1059 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1060 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1061 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1062 } while ();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1063 cmd; /* this should go under the } */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1064 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1065
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1066
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1067 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1068 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1069 if ( k() ) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1070 l();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1071
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1072 } else { /* Start (two words) end */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1073 m();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1074 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1075
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1076 n();
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 if ( k() )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1083 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1084 l();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1085 } else { /* Start (two words) end */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1086 m();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1087 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1088 n(); /* should be under the if () */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1089 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1090
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1091
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1092 void bar(void)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1093 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1094 static array[2][2] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1095 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1096 { 1, 2 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1097 { 3, 4 },
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 while (a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1101 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1102 foo(&a);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1103 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1105 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1106 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1107 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1108 a = a + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1109 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1110 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1111 b = a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1112 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1114 void func(void)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1115 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1116 a = 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1117 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1118 b = 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1119 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1120 c = 3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1121 d = 4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1122 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1123 /* foo */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1124
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1125
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1126 a()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1127 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1128 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1129 a = a +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1130 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1131 } while ( a ); /* add text under this line */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1132 here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1133 if ( a )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1134 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1135 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1136
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1137
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1138 a()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1139 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1140 label1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1141 /* hmm */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1142 // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1143 label2: b();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1144 label3 /* post */:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1145 /* pre */ label4:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1146 f(/*com*/);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1147 if (/*com*/)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1148 cmd();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1149 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1152 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1153 * A simple comment
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 ** A different comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1158 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1159
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1160
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1161 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1162 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1163
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1164 /*********
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1165 A comment.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1166 *********/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1167 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1169
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1170 void f()
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 /*********
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1174 A comment.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1175 *********/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1176 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1178
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1179 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1180 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1181 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1182 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1183 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1184 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1185 ) && c4;
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 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1190 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1191 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1192 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1193 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1194 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1195 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1196 }
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 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1200 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1201 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1202 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1203 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1204 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1205 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1206 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1207
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1208
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1209 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1210 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1211 if ( c1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1212 && ( c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1213 || c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1214 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1215 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1216
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1217
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1218 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1219 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1220 if ( c1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1221 && ( c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1222 || c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1223 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1224 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1225
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1226
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1227 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1228 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1229 c = c1 && (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1230 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1231 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1232 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1233 if (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1234 c1 && c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1235 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1236 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1237 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1238
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1239
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1240 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1241 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1242 c = c1 && (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1243 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1244 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1245 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1246 if (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1247 c1 && c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1248 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1249 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1250 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1252
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1253 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1254 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1255 switch (x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1256 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1257 case 1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1258 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1259 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1260 default:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1261 a = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1262 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1263 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1264 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1265
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1266
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1267 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1268 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1269 invokeme(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1270 argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1271 ment);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1272 invokeme(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1273 argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1274 ment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1275 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1276 invokeme(argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1277 ment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1278 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1279 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1280
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1281
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1282 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1283 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1284 statement;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1285 // comment 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1286 // comment 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1287 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1288
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1289
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1290 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1291 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1292 statement;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1293 // comment 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1294 // comment 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1295 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1296
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1297
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1298 class CAbc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1299 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1300 int Test() { return FALSE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1301
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1302 public: // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1303 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1304 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1305 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1306 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1307
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1308
3123
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1309 class Foo : public Bar
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1310 {
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1311 public:
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1312 virtual void method1(void) = 0;
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1313 virtual void method2(int arg1,
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1314 int arg2,
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1315 int arg3) = 0;
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1316 };
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1317
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1318
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1319 void
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1320 foo()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1321 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1322 if (a)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1323 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1324 } else
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1325 asdf;
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1326 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1327
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1328
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1329 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1330 averylongfunctionnamelongfunctionnameaverylongfunctionname()->asd(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1331 asdasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1332 func(asdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1333 asdfadsf),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1334 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1335 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1336
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1337 /* those are ugly, but consequent */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1338
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1339 func()->asd(asdasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1340 averylongfunctionname(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1341 abc,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1342 dec)->averylongfunctionname(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1343 asdfadsf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1344 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1345 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1346 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1347 func(asdfadf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1348 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1349 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1350 asdasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1351 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1352
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1353 averylongfunctionnameaverylongfunctionnameavery()->asd(fasdf(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1354 abc,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1355 dec)->asdfasdfasdf(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1356 asdfadsf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1357 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1358 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1359 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1360 func(asdfadf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1361 asdfasdf),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1362 asdasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1363 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1364 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1365
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1366
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1367 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1368 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1369 if (cond1 &&
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1370 cond2
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1371 )
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1372 foo;
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1373 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1374
2776
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1375
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1376 void func(int a
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1377 #if defined(FOO)
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1378 , int b
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1379 , int c
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1380 #endif
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1381 )
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1382 {
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1383 }
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1384
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1385
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1386 void
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1387 func(int a
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1388 #if defined(FOO)
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1389 , int b
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1390 , int c
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1391 #endif
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1392 )
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1393 {
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1394 }
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 829
diff changeset
1395
2805
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1396
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1397 void func(void)
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1398 {
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1399 if(x==y)
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1400 if(y==z)
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1401 foo=1;
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1402 else { bar=1;
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1403 baz=2;
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1404 }
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1405 printf("Foo!\n");
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1406 }
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1407
2843
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1408 void func1(void)
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1409 {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1410 char* tab[] = {"foo", "bar",
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1411 "baz", "quux",
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1412 "this line used", "to be indented incorrectly"};
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1413 foo();
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1414 }
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1415
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1416 void func2(void)
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1417 {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1418 int tab[] =
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1419 {1, 2,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1420 3, 4,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1421 5, 6};
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1422
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1423 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
1424 }
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1425
3186
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1426 int foo[]
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1427 #ifdef BAR
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1428
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1429 = { 1, 2, 3,
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1430 4, 5, 6 }
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1431
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1432 #endif
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1433 ;
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1434 int baz;
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1435
2843
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1436 void func3(void)
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1437 {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1438 int tab[] = {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1439 1, 2,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1440 3, 4,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1441 5, 6};
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1442
3220
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1443 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
1444 }
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1445
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1446 void
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1447 func4(a, b,
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1448 c)
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1449 int a;
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1450 int b;
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1451 int c;
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1452 {
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1453 }
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1454
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1455 void
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1456 func5(
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1457 int a,
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1458 int b)
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1459 {
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1460 }
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1461
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1462 void
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1463 func6(
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1464 int a)
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1465 {
2843
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1466 }
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1467
2807
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1468
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1469 void func(void)
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1470 {
2953
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1471 int tab[] =
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1472 {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1473 1, 2, 3,
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1474 4, 5, 6};
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1475
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1476 printf("Indent this line correctly!\n");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1477
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1478 switch (foo)
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1479 {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1480 case bar:
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1481 printf("bar");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1482 break;
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1483 case baz: {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1484 printf("baz");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1485 break;
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1486 }
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1487 case quux:
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1488 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
1489 break;
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1490 }
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1491 }
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1492
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1493
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1494 void func(void)
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1495 {
2807
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1496 cout << "a"
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1497 << "b"
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1498 << ") :"
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1499 << "c";
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1500 }
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1501
2809
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1502
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1503 void func(void)
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1504 {
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1505 /*
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1506 * This is a comment.
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1507 */
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1508 foo();
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1509 }
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1510
2855
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1511
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1512 void func(void)
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1513 {
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1514 for (int i = 0; i < 10; ++i)
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1515 if (i & 1) {
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1516 foo(1);
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1517 } else
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1518 foo(0);
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1519 baz();
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1520 }
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1521
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1522
3454
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1523 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1524 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1525 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1526 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1527 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1528 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1529 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1530
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1531 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1532 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1533 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1534 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1535 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1536 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1537 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1538
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1539 if ( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1540 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1541 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1542 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1543 func( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1544 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1545 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1546 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1547 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1548
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1549
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1550 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1551 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1552 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1553 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1554 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1555 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1556 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1557
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1558 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1559 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1560 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1561 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1562 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1563 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1564 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1565
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1566 if ( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1567 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1568 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1569 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1570 func( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1571 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1572 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1573 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1574 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1575
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1576
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1577 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1578 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1579 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1580 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1581 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1582 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1583 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1584
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1585 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1586 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1587 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1588 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1589 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1590 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1591 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1592 if (c123456789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1593 && (c22345
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1594 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1595 printf("foo\n");
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1596
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1597 c = c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1598 (
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1599 c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1600 c3
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1601 ) && c4;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1602 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1603
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1604
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1605 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1606 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1607 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1608 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1609 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1610 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1611 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1612
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1613 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1614 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1615 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1616 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1617 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1618 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1619 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1620 if (c123456789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1621 && (c22345
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1622 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1623 printf("foo\n");
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1624
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1625 if ( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1626 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1627 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1628 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1629
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1630 a_long_line(
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1631 argument,
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1632 argument);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1633 a_short_line(argument,
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1634 argument);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1635 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1636
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1637
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1638 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1639 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1640 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1641 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1642 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1643 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1644 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1645
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1646 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1647 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1648 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1649 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1650 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1651 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1652 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1653 if (c123456789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1654 && (c22345
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1655 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1656 printf("foo\n");
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1657 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1658
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1659
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1660 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1661 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1662 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1663 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1664 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1665 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1666 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1667
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1668 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1669 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1670 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1671 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1672 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1673 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1674 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1675 if (c123456789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1676 && (c22345
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1677 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1678 printf("foo\n");
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1679
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1680 if ( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1681 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1682 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1683 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1684 func( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1685 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1686 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1687 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1688 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1689
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1690
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1691 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1692 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1693 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1694 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1695 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1696 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1697 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1698
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1699 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1700 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1701 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1702 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1703 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1704 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1705 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1706 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1707
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1708
2879
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1709 NAMESPACESTART
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1710 /* valid namespaces with normal indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1711 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1712 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1713 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1714 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1715 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1716 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1717 namespace /* test */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1718 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1719 11111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1720 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1721 namespace // test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1722 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1723 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1724 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1725 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1726 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1727 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1728 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1729 namespace test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1730 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1731 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1732 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1733 namespace{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1734 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1735 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1736 namespace test{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1737 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1738 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1739 namespace {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1740 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1741 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1742 namespace test {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1743 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1744 namespace test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1745 22222222222222222;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1746 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1747 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1748
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1749 /* invalid namespaces use block indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1750 namespace test test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1751 111111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1752 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1753 namespace11111111111 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1754 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1755 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1756 namespace() {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1757 1111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1758 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1759 namespace()
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1760 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1761 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1762 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1763 namespace test test2
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1764 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1765 1111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1766 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1767 namespace111111111
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1768 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1769 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1770 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1771 NAMESPACEEND
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1772
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1773
2879
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1774
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1775 JSSTART
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1776 var bar = {
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1777 foo: {
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1778 that: this,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1779 some: ok,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1780 },
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1781 "bar":{
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1782 a : 2,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1783 b: "123abc",
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1784 x: 4,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1785 "y": 5
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1786 }
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1787 }
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1788 JSEND
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1789
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1790
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1791 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1792 var foo = [
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1793 1,
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1794 2,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1795 3
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1796 ];
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1797 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1798
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1799
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1800 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1801 function bar() {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1802 var foo = [
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1803 1,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1804 2,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1805 3
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1806 ];
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1807 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1808 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1809
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1810
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1811 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1812 (function($){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1813
6020
ad005d0114c1 updated for version 7.4.350
Bram Moolenaar <bram@vim.org>
parents: 4187
diff changeset
1814 if (cond &&
ad005d0114c1 updated for version 7.4.350
Bram Moolenaar <bram@vim.org>
parents: 4187
diff changeset
1815 cond) {
ad005d0114c1 updated for version 7.4.350
Bram Moolenaar <bram@vim.org>
parents: 4187
diff changeset
1816 stmt;
ad005d0114c1 updated for version 7.4.350
Bram Moolenaar <bram@vim.org>
parents: 4187
diff changeset
1817 }
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1818 window.something.left =
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1819 (width - 50 + offset) + "px";
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1820 var class_name='myclass';
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1821
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1822 function private_method() {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1823 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1824
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1825 var public_method={
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1826 method: function(options,args){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1827 private_method();
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1828 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1829 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1830
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1831 function init(options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1832
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1833 $(this).data(class_name+'_public',$.extend({},{
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1834 foo: 'bar',
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1835 bar: 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1836 foobar: [
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1837 1,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1838 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1839 3
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1840 ],
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1841 callback: function(){
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1842 return true;
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1843 }
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1844 }, options||{}));
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1845 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1846
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1847 $.fn[class_name]=function() {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1848
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1849 var _arguments=arguments;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1850 return this.each(function(){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1851
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1852 var options=$(this).data(class_name+'_public');
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1853 if (!options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1854 init.apply(this,_arguments);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1855
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1856 } else {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1857 var method=public_method[_arguments[0]];
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1858
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1859 if (typeof(method)!='function') {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1860 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
1861 return false;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1862 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1863 _arguments[0]=options;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1864 method.apply(this,_arguments);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1865 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1866 });
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1867 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1868
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1869 })(jQuery);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1870 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1871
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1872
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1873 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1874 function init(options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1875 $(this).data(class_name+'_public',$.extend({},{
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1876 foo: 'bar',
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1877 bar: 2,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1878 foobar: [
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1879 1,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1880 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1881 3
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1882 ],
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1883 callback: function(){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1884 return true;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1885 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1886 }, options||{}));
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1887 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1888 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1889
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1890
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1891 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1892 (function($){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1893 function init(options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1894 $(this).data(class_name+'_public',$.extend({},{
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1895 foo: 'bar',
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1896 bar: 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1897 foobar: [
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1898 1,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1899 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1900 3
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1901 ],
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1902 callback: function(){
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1903 return true;
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1904 }
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1905 }, options||{}));
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1906 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1907 })(jQuery);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1908 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1909
6691
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1910
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1911 JSSTART
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1912 // Results of JavaScript indent
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1913 // 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1914 (function(){
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1915 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1916 'a',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1917 'b',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1918 'c',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1919 'd',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1920 'e',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1921 'f',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1922 'g',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1923 'h',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1924 'i'
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1925 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1926 }())
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1927
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1928 // 2
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1929 (function(){
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1930 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1931 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1932 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1933 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1934 'a',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1935 'b',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1936 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1937 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1938 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1939 'c',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1940 'd',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1941 'e',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1942 'f',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1943 'g',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1944 'h',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1945 'i'
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1946 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1947 }())
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1948
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1949 // 3
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1950 (function(){
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1951 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1952 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1953 // comment 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1954 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1955 /* comment 2 */
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1956 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1957 'a',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1958 'b',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1959 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1960 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1961 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1962 'c',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1963 'd',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1964 'e',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1965 'f',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1966 'g',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1967 'h',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1968 'i'
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1969 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1970 }())
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1971
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1972 // 4
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1973 {
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1974 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1975 0,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1976 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1977 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1978 var b;
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1979 var c;
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1980 }
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1981
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1982 // 5
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1983 {
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1984 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1985 [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1986 0
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1987 ],
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1988 2,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1989 3
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1990 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1991 }
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1992
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1993 // 6
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1994 {
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1995 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1996 [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1997 0,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1998 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
1999 ],
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2000 2,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2001 3
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2002 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2003 }
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2004
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2005 // 7
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2006 {
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2007 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2008 // [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2009 0,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2010 // 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2011 // ],
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2012 2,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2013 3
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2014 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2015 }
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2016
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2017 // 8
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2018 var x = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2019 (function(){
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2020 var a,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2021 b,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2022 c,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2023 d,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2024 e,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2025 f,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2026 g,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2027 h,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2028 i;
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2029 })
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2030 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2031
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2032 // 9
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2033 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2034 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2035 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2036 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2037 'a',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2038 'b',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2039 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2040 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2041 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2042 'c',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2043 'd',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2044 'e',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2045 'f',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2046 'g',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2047 'h',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2048 'i'
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2049 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2050
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2051 // 10
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2052 var a,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2053 b,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2054 c,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2055 d,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2056 e,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2057 f,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2058 g,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2059 h,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2060 i;
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2061 JSEND
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2062