annotate src/testdir/test3.in @ 6973:7b35ee02b3c5 v7.4.804

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