annotate src/testdir/test3.in @ 10885:310834b0256a v8.0.0332

patch 8.0.0332: GUI test fails on some systems commit https://github.com/vim/vim/commit/4e9dbc74df24dc22d0eeda3741c3fb0e0e7373bf Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 17 13:44:48 2017 +0100 patch 8.0.0332: GUI test fails on some systems Problem: GUI test fails on some systems. Solution: Try different language settings. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Fri, 17 Feb 2017 13:45:04 +0100
parents 09bb1836cdb5
children 814126a34c9d
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
7206
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
666 A::A(int a, int b)
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
667 : aa(a),
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
668 bb(b),
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
669 cc(c)
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
670 {
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
671 }
c6a7305972fe commit https://github.com/vim/vim/commit/e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a
Christian Brabandt <cb@256bit.org>
parents: 7164
diff changeset
672
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
673 class CAbc :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
674 public BaseClass1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
675 protected BaseClass2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
676 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
677 int Test() { return FALSE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
678 int Test1() { return TRUE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
679
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
680 CAbc(int a, int b ) :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
681 BaseClass(a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
682 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
683 switch(xxx)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
684 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
685 case abc:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
686 asdf();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
687 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
688
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689 case 999:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
690 baer();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
691 break;
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
695 public: // <-- this was incoreectly indented before!!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
696 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
697 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
698 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
699 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
700
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
701 class CAbc : public BaseClass1,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
702 protected BaseClass2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
703 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
704 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
705
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
706 static struct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
707 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
708 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
709 int b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
710 } variable[COUNT] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
711 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
712 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
713 123,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
714 456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
715 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
716 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
717 123,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
718 456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
719 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
720 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
721
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
722 static struct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
723 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
724 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
725 int b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
726 } variable[COUNT] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
727 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
728 { 123, 456 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
729 { 123, 456 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
730 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
731
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
732 void asdf() /* ind_maxparen may cause trouble here */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
733 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
734 if ((0
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
753 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
754 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
755 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
756 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
757 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
758 && 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
759 && 1)) break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
760 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
761
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
762 foo()
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
763 {
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
764 a = cond ? foo() : asdf
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
765 + asdf;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
766
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
767 a = cond ?
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
768 foo() : asdf
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
769 + asdf;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
770 }
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
771
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
772 int main(void)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
773 {
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
774 if (a)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
775 if (b)
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
776 2;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
777 else 3;
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
778 next_line_of_code();
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
779 }
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 7
diff changeset
780
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
781 barry()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
782 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
783 Foo::Foo (int one,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
784 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 barry()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
790 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
791 Foo::Foo (int one, int two)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
792 : something(4)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
793 {}
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
794 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
795
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
796 Constructor::Constructor(int a,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
797 int b
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
798 ) :
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
799 BaseClass(a,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
800 b,
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
801 c),
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
802 mMember(b)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
803 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
804 }
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
805 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
806 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
807 if (lala)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
808 do
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
809 ++(*lolo);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
810 while (lili
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
811 && lele);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
812 lulu;
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
813 }
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
814
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
815 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
816 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
817 switch (c)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
818 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
819 case 'c': if (cond)
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
820 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
821 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
822 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
823 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
824
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
825 main()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
826 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
827 (void) MyFancyFuasdfadsfnction(
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
828 argument);
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
829 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
830
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
831 main()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
832 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
833 char foo[] = "/*";
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
834 /* as
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
835 df */
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
836 hello
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
837 }
2857
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 /* valid namespaces with normal indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
840 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
841 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
842 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
843 111111111111;
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 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
846 namespace /* test */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
847 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
848 11111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
849 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
850 namespace // test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
851 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
852 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
853 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
854 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
855 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
856 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 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
860 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
861 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
862 namespace{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
863 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
864 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
865 namespace test{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
866 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
867 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
868 namespace {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
869 111111111111111111;
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 namespace test {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
872 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
873 namespace test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
874 22222222222222222;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
875 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
876 }
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 /* invalid namespaces use block indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
879 namespace test test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
880 111111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
881 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
882 namespace11111111111 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
883 111111111111;
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() {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
886 1111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
887 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
888 namespace()
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
889 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
890 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
891 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
892 namespace test test2
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
893 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
894 1111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
895 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
896 namespace111111111
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
897 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
898 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
899 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
900
6971
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
901 void getstring() {
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
902 /* Raw strings */
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
903 const char* s = R"(
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
904 test {
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
905 # comment
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
906 field: 123
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
907 }
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
908 )";
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
909 }
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
910
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
911 void getstring() {
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
912 const char* s = R"foo(
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
913 test {
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
914 # comment
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
915 field: 123
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
916 }
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
917 )foo";
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
918 }
e859731ea1cd patch 7.4.803
Bram Moolenaar <bram@vim.org>
parents: 6691
diff changeset
919
7160
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
920 {
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
921 int a[4] = {
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
922 [0] = 0,
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
923 [1] = 1,
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
924 [2] = 2,
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
925 [3] = 3,
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
926 };
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
927 }
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
928
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
929 {
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
930 a = b[2]
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
931 + 3;
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
932 }
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
933
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
934 {
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
935 if (1)
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
936 /* aaaaa
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
937 * bbbbb
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
938 */
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
939 a = 1;
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
940 }
accd3a0e9bf4 commit https://github.com/vim/vim/commit/089af18d1fd0961ff504ee72db0156bbfe509cdf
Christian Brabandt <cb@256bit.org>
parents: 6971
diff changeset
941
7164
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
942 void func()
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
943 {
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
944 switch (foo)
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
945 {
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
946 case (bar):
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
947 if (baz())
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
948 quux();
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
949 break;
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
950 case (shmoo):
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
951 if (!bar)
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
952 {
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
953 }
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
954 case (foo1):
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
955 switch (bar)
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
956 {
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
957 case baz:
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
958 baz_f();
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
959 break;
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
960 }
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
961 break;
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
962 default:
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
963 baz();
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
964 baz();
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
965 break;
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
966 }
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
967 }
d3c57e7f489a commit https://github.com/vim/vim/commit/d1b15dec4d00d7ed5e92ff4e0fb7fc2e0818e479
Christian Brabandt <cb@256bit.org>
parents: 7160
diff changeset
968
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
969 /* end of AUTO */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
970
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
971 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
972 :set tw=0 wm=60 columns=80 noai fo=croq
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
973 /serious/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
974 a about life, the universe, and the rest
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
975 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
976
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
977 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
978
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
979 /* this is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
980 * a real serious important big
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
981 * comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
982 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
983 /* insert " about life, the universe, and the rest" after "serious" */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
984 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
985
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
986 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
987 :set nocin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
988 /comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
989 joabout life/happens
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
990 jothere/below
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
991 oline/this
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
992 Ohello
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
993 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
994
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
995 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
996 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
997 * Testing for comments, without 'cin' set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
998 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
999
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1000 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1001 * what happens here?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1002 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1003
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1004 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1005 the end of the comment, try inserting a line below */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1006
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1007 /* how about
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1008 this one */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1009 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1010
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1011 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1012 :set cin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1013 /vec2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1014 ==
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1015 ENDTEST
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 var = this + that + vec[0] * vec[0]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1019 + vec[1] * vec[1]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1020 + vec2[2] * vec[2];
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1021 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1022
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1023 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1024 :set cin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1025 :set cino=}4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1026 /testing1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1027 k2==/testing2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1028 k2==
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1029 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1030
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1031 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1032 asdf asdflkajds f;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1033 if (tes & ting) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1034 asdf asdf asdf ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1035 asdfa sdf asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1036 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1037 testing1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1038 if (tes & ting)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1039 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1040 asdf asdf asdf ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1041 asdfa sdf asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1042 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1043 testing2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1044 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1045
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1046 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1047 :set cin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1048 :set cino=(0,)20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1049 /main
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1050 =][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1051 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1052
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1053 main ( int first_par, /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1054 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1055 * first par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1056 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1057 int second_par /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1058 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1059 * second par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1060 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1061 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1062 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1063 func( first_par, /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1064 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1065 * first par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1066 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1067 second_par /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1068 * Comment for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1069 * second par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1070 */
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 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1074
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1075 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1076 :set cin
3578
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1077 :set cino=es,n0s
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1078 /main
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1079 =][
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1080 ENDTEST
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1081
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1082 main(void)
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1083 {
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1084 /* 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
1085 if (cond)
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1086 foo();
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1087 else
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1088 {
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1089 bar();
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1090 }
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1091 }
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1092
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1093 STARTTEST
c0c935956ac3 updated for version 7.3.549
Bram Moolenaar <bram@vim.org>
parents: 3454
diff changeset
1094 :set cin
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1095 :set cino=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1096 ]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1097 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1098
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1099 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1100 do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1101 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1102 if ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1103 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1104 if ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1105 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1106 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1107 asdf;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1108 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1109 } while ();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1110 cmd; /* this should go under the } */
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 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1114 ]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1115 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1116
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1117 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1118 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1119 if ( k() ) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1120 l();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1122 } else { /* Start (two words) end */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1123 m();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1124 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1125
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1126 n();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1127 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1129 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1130 :set cino={s,e-s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1131 ]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1132 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1133
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1134 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1135 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1136 if ( k() )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1137 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1138 l();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1139 } else { /* Start (two words) end */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1140 m();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1141 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1142 n(); /* should be under the if () */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1143 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1145 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1146 :set cino={s,fs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1147 ]]=/ foo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1148 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1149
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1150 void bar(void)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1151 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1152 static array[2][2] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1153 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1154 { 1, 2 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1155 { 3, 4 },
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1156 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1158 while (a)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1159 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1160 foo(&a);
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 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1164 int a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1165 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1166 a = a + 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1167 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1168 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1169 b = a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1170 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1171
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1172 void func(void)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1173 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1174 a = 1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1175 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1176 b = 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1177 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1178 c = 3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1179 d = 4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1180 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1181 /* foo */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1182
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1183 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1184 :set cino=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1185 /while
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1186 ohere
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1187 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1189 a()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1190 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1191 do {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1192 a = a +
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1193 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1194 } while ( a ); /* add text under this line */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1195 if ( a )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1196 a;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1197 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1199 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1200 :set cino= com=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1201 /comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1202 olabel2: b(); label3 /* post */: /* pre */ label4: f(/*com*/); if (/*com*/) cmd();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1203 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1204
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1205 a()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1206 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1207 label1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1208 /* hmm */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1209 // comment
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 comments& comments^=s:/*,m:**,ex:*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1214 /simple
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1215 =5j
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1216 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1217
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1218 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1219 * A simple comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1220 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1221
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1222 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1223 ** A different comment
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=c0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1228 :set comments& comments-=s1:/* comments^=s0:/*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1229 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1230 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1231
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1232 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1233 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1234
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1235 /*********
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1236 A comment.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1237 *********/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1238 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1239
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1240 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1241 :set cino=c0,C1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1242 :set comments& comments-=s1:/* comments^=s0:/*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1243 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1244 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1245
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1246 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1247 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1248
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1249 /*********
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1250 A comment.
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1254 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1255 :set cino=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1256 ]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1257 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1258
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1259 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1260 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1261 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1262 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1263 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1264 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1265 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1266 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1267
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1268 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1269 :set cino=(s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1270 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1271 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1272
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1273 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1274 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1275 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1276 (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1277 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1278 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1279 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1280 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1281
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1282 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1283 :set cino=(s,U1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1284 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1285 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1286
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1287 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1288 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1289 c = c1 &&
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1290 (
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 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1295
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1296 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1297 :set cino=(0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1298 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1299 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1300
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1301 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1302 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1303 if ( c1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1304 && ( c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1305 || c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1306 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1307 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1308
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1309 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1310 :set cino=(0,w1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1311 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1312 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1313
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1314 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1315 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1316 if ( c1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1317 && ( c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1318 || c3))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1319 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1320 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1321
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1322 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1323 :set cino=(s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1324 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1325 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1326
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1327 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1328 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1329 c = c1 && (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1330 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1331 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1332 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1333 if (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1334 c1 && c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1335 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1336 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1337 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1338
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1339 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1340 :set cino=(s,m1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1341 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1342 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1343
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1344 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1345 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1346 c = c1 && (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1347 c2 ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1348 c3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1349 ) && c4;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1350 if (
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1351 c1 && c2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1352 )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1353 foo;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1354 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1355
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1356 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1357 :set cino=b1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1358 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1359 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1360
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1361 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1362 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1363 switch (x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1364 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1365 case 1:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1366 a = b;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1367 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1368 default:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1369 a = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1370 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1371 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1372 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1373
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1374 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1375 :set cino=(0,W5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1376 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1377 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1378
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1379 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1380 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1381 invokeme(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1382 argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1383 ment);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1384 invokeme(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1385 argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1386 ment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1387 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1388 invokeme(argu,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1389 ment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1390 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1391 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1392
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1393 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1394 :set cino=/6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1395 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1396 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1397
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1398 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1399 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1400 statement;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1401 // comment 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1402 // comment 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1403 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1404
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1405 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1406 :set cino=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1407 2kdd]]/comment 1/+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1408 ==
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1409 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1410
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1411 void f()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1412 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1413 statement;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1414 // comment 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1415 // comment 2
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 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1419 :set cino=g0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1420 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1421 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1422
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1423 class CAbc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1424 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1425 int Test() { return FALSE; }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1426
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1427 public: // comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1428 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1429 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1430 void testfall();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1431 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1432
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1433 STARTTEST
3123
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1434 :set cino=(0,gs,hs
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1435 2kdd]]=][
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1436 ENDTEST
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1437
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1438 class Foo : public Bar
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1439 {
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1440 public:
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1441 virtual void method1(void) = 0;
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1442 virtual void method2(int arg1,
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1443 int arg2,
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1444 int arg3) = 0;
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1445 };
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1446
0ecfe54a273f updated for version 7.3.332
Bram Moolenaar <bram@vim.org>
parents: 2968
diff changeset
1447 STARTTEST
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1448 :set cino=+20
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1449 2kdd]]=][
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1450 ENDTEST
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1451
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1452 void
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1453 foo()
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1454 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1455 if (a)
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1456 {
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1457 } else
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1458 asdf;
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1459 }
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1460
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 827
diff changeset
1461 STARTTEST
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1462 :set cino=(0,W2s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1463 2kdd]]=][
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1464 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1465
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1466 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1467 averylongfunctionnamelongfunctionnameaverylongfunctionname()->asd(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1468 asdasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1469 func(asdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1470 asdfadsf),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1471 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1472 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1473
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1474 /* those are ugly, but consequent */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1475
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1476 func()->asd(asdasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1477 averylongfunctionname(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1478 abc,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1479 dec)->averylongfunctionname(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1480 asdfadsf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1481 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1482 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1483 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1484 func(asdfadf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1485 asdfasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1486 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1487 asdasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1488 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1489
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1490 averylongfunctionnameaverylongfunctionnameavery()->asd(fasdf(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1491 abc,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1492 dec)->asdfasdfasdf(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1493 asdfadsf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1494 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1495 asdfasdf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1496 ),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1497 func(asdfadf,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1498 asdfasdf),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1499 asdasdf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1500 );
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1501 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1502
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1503 STARTTEST
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1504 :set cino=M1
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1505 2kdd]]=][
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1506 ENDTEST
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1507
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1508 int main ()
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1509 {
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1510 if (cond1 &&
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1511 cond2
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1512 )
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1513 foo;
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1514 }
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1515
dc8197342755 updated for version 7.0d04
vimboss
parents: 828
diff changeset
1516 STARTTEST
2776
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1517 :set cino=(0,ts
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1518 2kdd2j=][
2776
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1519 ENDTEST
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1520
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1521 void func(int a
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1522 #if defined(FOO)
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1523 , int b
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1524 , int c
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1525 #endif
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1526 )
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1527 {
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1528 }
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1529
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1530 STARTTEST
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1531 :set cino=(0
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1532 2kdd2j=][
2776
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1533 ENDTEST
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1534
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1535 void
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1536 func(int a
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1537 #if defined(FOO)
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1538 , int b
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1539 , int c
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1540 #endif
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1541 )
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1542 {
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1543 }
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1544
cdefcbb70e8c updated for version 7.3.164
Bram Moolenaar <bram@vim.org>
parents: 1624
diff changeset
1545 STARTTEST
2805
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1546 :set cino&
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1547 2kdd2j=7][
2805
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1548 ENDTEST
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1549
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1550 void func(void)
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1551 {
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1552 if(x==y)
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1553 if(y==z)
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1554 foo=1;
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1555 else { bar=1;
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1556 baz=2;
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1557 }
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1558 printf("Foo!\n");
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1559 }
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1560
2843
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1561 void func1(void)
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1562 {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1563 char* tab[] = {"foo", "bar",
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1564 "baz", "quux",
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1565 "this line used", "to be indented incorrectly"};
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1566 foo();
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1567 }
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1568
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1569 void func2(void)
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1570 {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1571 int tab[] =
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1572 {1, 2,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1573 3, 4,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1574 5, 6};
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1575
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1576 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
1577 }
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1578
3186
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1579 int foo[]
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1580 #ifdef BAR
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1581
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1582 = { 1, 2, 3,
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1583 4, 5, 6 }
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1584
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1585 #endif
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1586 ;
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1587 int baz;
c025592d7b1d updated for version 7.3.363
Bram Moolenaar <bram@vim.org>
parents: 3123
diff changeset
1588
2843
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1589 void func3(void)
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1590 {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1591 int tab[] = {
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1592 1, 2,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1593 3, 4,
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1594 5, 6};
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1595
3220
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1596 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
1597 }
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1598
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1599 void
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1600 func4(a, b,
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1601 c)
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1602 int a;
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1603 int b;
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1604 int c;
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1605 {
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1606 }
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1607
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1608 void
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1609 func5(
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1610 int a,
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1611 int b)
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1612 {
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1613 }
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1614
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1615 void
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1616 func6(
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1617 int a)
534b3ef1cf14 updated for version 7.3.380
Bram Moolenaar <bram@vim.org>
parents: 3218
diff changeset
1618 {
2843
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1619 }
8dbea5adc937 updated for version 7.3.195
Bram Moolenaar <bram@vim.org>
parents: 2809
diff changeset
1620
2805
ac639ca9f58f updated for version 7.3.178
Bram Moolenaar <bram@vim.org>
parents: 2776
diff changeset
1621 STARTTEST
2807
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1622 :set cino&
2953
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1623 :set cino+=l1
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1624 2kdd2j=][
2953
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1625 ENDTEST
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1626
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1627 void func(void)
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1628 {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1629 int tab[] =
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1630 {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1631 1, 2, 3,
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1632 4, 5, 6};
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1633
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1634 printf("Indent this line correctly!\n");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1635
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1636 switch (foo)
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1637 {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1638 case bar:
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1639 printf("bar");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1640 break;
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1641 case baz: {
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1642 printf("baz");
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1643 break;
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1644 }
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1645 case quux:
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1646 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
1647 break;
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1648 }
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1649 }
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1650
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1651 STARTTEST
9f71f5a526af updated for version 7.3.249
Bram Moolenaar <bram@vim.org>
parents: 2879
diff changeset
1652 :set cino&
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1653 2kdd2j=][
2807
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1654 ENDTEST
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1655
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1656 void func(void)
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1657 {
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1658 cout << "a"
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1659 << "b"
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1660 << ") :"
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1661 << "c";
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1662 }
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1663
11e62fb6f815 updated for version 7.3.179
Bram Moolenaar <bram@vim.org>
parents: 2805
diff changeset
1664 STARTTEST
2809
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1665 :set com=s1:/*,m:*,ex:*/
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1666 ]]3jofoo();
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1667 ENDTEST
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1668
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1669 void func(void)
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1670 {
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1671 /*
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1672 * This is a comment.
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1673 */
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1674 }
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1675
ed47d18b39c6 updated for version 7.3.180
Bram Moolenaar <bram@vim.org>
parents: 2807
diff changeset
1676 STARTTEST
2855
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1677 :set cino&
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
1678 2kdd2j=][
2855
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1679 ENDTEST
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1680
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1681 void func(void)
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1682 {
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1683 for (int i = 0; i < 10; ++i)
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1684 if (i & 1) {
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1685 foo(1);
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1686 } else
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1687 foo(0);
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1688 baz();
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1689 }
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1690
78859ef2982b updated for version 7.3.201
Bram Moolenaar <bram@vim.org>
parents: 2843
diff changeset
1691 STARTTEST
3454
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1692 :set cino=k2s,(0
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1693 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1694 ENDTEST
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 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1697 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1698 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1699 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1700 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1701 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1702 && argument2);
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 (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1705 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1706 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1707 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1708 (c2 || c3))
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 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1711
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1712 if ( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1713 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1714 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1715 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1716 func( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1717 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1718 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1719 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1720 }
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 STARTTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1723 :set cino=k2s,(s
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1724 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1725 ENDTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1726
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1727 void func(void)
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 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1730 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1731 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1732 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1733 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1734
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1735 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1736 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1737 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1738 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1739 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1740 {
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
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1743 if ( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1744 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1745 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1746 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1747 func( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1748 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1749 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1750 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1751 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1752
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1753 STARTTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1754 :set cino=k2s,(s,U1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1755 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1756 ENDTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1757
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1758 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1759 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1760 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1761 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1762 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1763 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1764 && argument2);
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 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1767 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1768 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1769 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1770 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1771 {
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 (c123456789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1774 && (c22345
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1775 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1776 printf("foo\n");
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1777
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1778 c = c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1779 (
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1780 c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1781 c3
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1782 ) && c4;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1783 }
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 STARTTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1786 :set cino=k2s,(0,W4
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1787 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1788 ENDTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1790 void func(void)
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 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1793 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1794 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1795 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1796 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1797
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1798 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1799 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1800 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1801 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1802 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1803 {
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 (c123456789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1806 && (c22345
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1807 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1808 printf("foo\n");
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1809
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1810 if ( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1811 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1812 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1813 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1814
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1815 a_long_line(
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1816 argument,
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1817 argument);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1818 a_short_line(argument,
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1819 argument);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1820 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1821
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1822 STARTTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1823 :set cino=k2s,u2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1824 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1825 ENDTEST
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 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1828 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1829 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1830 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1831 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1832 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1833 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1834
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1835 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1836 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1837 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1838 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1839 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1840 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1841 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1842 if (c123456789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1843 && (c22345
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1844 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1845 printf("foo\n");
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 STARTTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1849 :set cino=k2s,(0,w1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1850 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1851 ENDTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1852
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1853 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1854 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1855 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1856 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1857 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1858 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1859 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1860
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1861 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1862 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1863 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1864 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1865 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1866 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1867 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1868 if (c123456789
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1869 && (c22345
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1870 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1871 printf("foo\n");
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1872
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1873 if ( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1874 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1875 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1876 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1877 func( c1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1878 && ( c2
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1879 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1880 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1881 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1882
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1883 STARTTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1884 :set cino=k2,(s
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1885 2kdd3j=][
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1886 ENDTEST
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1887
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1888 void func(void)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1889 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1890 if (condition1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1891 && condition2)
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1892 action();
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1893 function(argument1
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1894 && argument2);
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1895
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1896 if (c1 && (c2 ||
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1897 c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1898 foo;
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1899 if (c1 &&
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1900 (c2 || c3))
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1901 {
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1902 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1903 }
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1904
214c7ec1c8f9 updated for version 7.3.492
Bram Moolenaar <bram@vim.org>
parents: 3220
diff changeset
1905 STARTTEST
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1906 :set cino=N-s
2879
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1907 /^NAMESPACESTART
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1908 =/^NAMESPACEEND
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1909 ENDTEST
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1910
2879
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1911 NAMESPACESTART
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1912 /* valid namespaces with normal indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1913 namespace
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 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1916 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1917 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1918 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1919 namespace /* test */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1920 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1921 11111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1922 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1923 namespace // test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1924 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1925 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1926 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1927 namespace
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1928 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1929 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1930 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1931 namespace test
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1932 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1933 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1934 }
10396
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1935 namespace test::cpp17
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1936 {
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1937 111111111111111111;
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1938 }
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1939 namespace ::incorrectcpp17
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1940 {
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1941 111111111111111111;
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1942 }
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1943 namespace test::incorrectcpp17::
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1944 {
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1945 111111111111111111;
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1946 }
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1947 namespace test:incorrectcpp17
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1948 {
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1949 111111111111111111;
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1950 }
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1951 namespace test:::incorrectcpp17
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1952 {
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1953 111111111111111111;
0bbbe99c8432 commit https://github.com/vim/vim/commit/ca8b8d6956dd881de6446fc32c38e817a364a6cc
Christian Brabandt <cb@256bit.org>
parents: 7206
diff changeset
1954 }
2857
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1955 namespace{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1956 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1957 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1958 namespace test{
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1959 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1960 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1961 namespace {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1962 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1963 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1964 namespace test {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1965 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1966 namespace test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1967 22222222222222222;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1968 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1969 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1970
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1971 /* invalid namespaces use block indent */
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1972 namespace test test2 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1973 111111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1974 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1975 namespace11111111111 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1976 111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1977 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1978 namespace() {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1979 1111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1980 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1981 namespace()
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1982 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1983 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1984 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1985 namespace test test2
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1986 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1987 1111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1988 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1989 namespace111111111
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1990 {
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1991 111111111111111111;
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1992 }
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1993 NAMESPACEEND
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1994
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1995
f80e67bd6271 updated for version 7.3.202
Bram Moolenaar <bram@vim.org>
parents: 2855
diff changeset
1996 STARTTEST
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
1997 :set cino=j1,J1
2879
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1998 /^JSSTART
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
1999 =/^JSEND
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2000 ENDTEST
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2001
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2002 JSSTART
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2003 var bar = {
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2004 foo: {
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2005 that: this,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2006 some: ok,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2007 },
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2008 "bar":{
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2009 a : 2,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2010 b: "123abc",
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2011 x: 4,
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2012 "y": 5
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2013 }
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2014 }
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2015 JSEND
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2016
493897f8bf90 updated for version 7.3.213
Bram Moolenaar <bram@vim.org>
parents: 2857
diff changeset
2017 STARTTEST
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2018 :set cino=j1,J1
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2019 /^JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2020 =/^JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2021 ENDTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2022
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2023 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2024 var foo = [
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2025 1,
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2026 2,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2027 3
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2028 ];
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2029 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2030
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2031 STARTTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2032 :set cino=j1,J1
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2033 /^JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2034 =/^JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2035 ENDTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2036
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2037 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2038 function bar() {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2039 var foo = [
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2040 1,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2041 2,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2042 3
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2043 ];
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2044 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2045 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2046
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2047 STARTTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2048 :set cino=j1,J1
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2049 /^JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2050 =/^JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2051 ENDTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2052
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2053 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2054 (function($){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2055
6020
ad005d0114c1 updated for version 7.4.350
Bram Moolenaar <bram@vim.org>
parents: 4187
diff changeset
2056 if (cond &&
ad005d0114c1 updated for version 7.4.350
Bram Moolenaar <bram@vim.org>
parents: 4187
diff changeset
2057 cond) {
ad005d0114c1 updated for version 7.4.350
Bram Moolenaar <bram@vim.org>
parents: 4187
diff changeset
2058 stmt;
ad005d0114c1 updated for version 7.4.350
Bram Moolenaar <bram@vim.org>
parents: 4187
diff changeset
2059 }
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2060 window.something.left =
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2061 (width - 50 + offset) + "px";
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2062 var class_name='myclass';
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2063
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2064 function private_method() {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2065 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2066
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2067 var public_method={
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2068 method: function(options,args){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2069 private_method();
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2070 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2071 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2072
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2073 function init(options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2074
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2075 $(this).data(class_name+'_public',$.extend({},{
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2076 foo: 'bar',
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2077 bar: 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2078 foobar: [
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2079 1,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2080 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2081 3
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2082 ],
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2083 callback: function(){
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2084 return true;
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2085 }
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2086 }, options||{}));
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2087 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2088
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2089 $.fn[class_name]=function() {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2090
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2091 var _arguments=arguments;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2092 return this.each(function(){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2093
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2094 var options=$(this).data(class_name+'_public');
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2095 if (!options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2096 init.apply(this,_arguments);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2097
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2098 } else {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2099 var method=public_method[_arguments[0]];
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2100
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2101 if (typeof(method)!='function') {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2102 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
2103 return false;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2104 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2105 _arguments[0]=options;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2106 method.apply(this,_arguments);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2107 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2108 });
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2109 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2110
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2111 })(jQuery);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2112 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2113
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2114 STARTTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2115 :set cino=j1,J1
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2116 /^JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2117 =/^JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2118 ENDTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2119
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2120 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2121 function init(options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2122 $(this).data(class_name+'_public',$.extend({},{
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2123 foo: 'bar',
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2124 bar: 2,
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2125 foobar: [
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2126 1,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2127 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2128 3
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2129 ],
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2130 callback: function(){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2131 return true;
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2132 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2133 }, options||{}));
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2134 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2135 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2136
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2137 STARTTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2138 :set cino=j1,J1
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2139 /^JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2140 =/^JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2141 ENDTEST
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2142
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2143 JSSTART
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2144 (function($){
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2145 function init(options) {
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2146 $(this).data(class_name+'_public',$.extend({},{
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2147 foo: 'bar',
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2148 bar: 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2149 foobar: [
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2150 1,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2151 2,
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2152 3
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2153 ],
6030
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2154 callback: function(){
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2155 return true;
9a4efda75b5e updated for version 7.4.355
Bram Moolenaar <bram@vim.org>
parents: 6020
diff changeset
2156 }
2968
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2157 }, options||{}));
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2158 }
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2159 })(jQuery);
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2160 JSEND
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2161
c296c225736e updated for version 7.3.256
Bram Moolenaar <bram@vim.org>
parents: 2953
diff changeset
2162 STARTTEST
6691
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2163 :set cino=j1,J1,+2
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2164 /^JSSTART
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2165 =/^JSEND
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2166 ENDTEST
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2167
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2168 JSSTART
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2169 // Results of JavaScript indent
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2170 // 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2171 (function(){
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2172 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2173 'a',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2174 'b',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2175 'c',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2176 'd',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2177 'e',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2178 'f',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2179 'g',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2180 'h',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2181 'i'
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2182 ];
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 // 2
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2186 (function(){
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2187 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2188 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2189 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2190 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2191 'a',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2192 'b',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2193 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2194 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2195 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2196 'c',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2197 'd',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2198 'e',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2199 'f',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2200 'g',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2201 'h',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2202 'i'
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2203 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2204 }())
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2205
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2206 // 3
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2207 (function(){
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2208 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2209 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2210 // comment 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2211 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2212 /* comment 2 */
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 'a',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2215 'b',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2216 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2217 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2218 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2219 'c',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2220 'd',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2221 'e',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2222 'f',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2223 'g',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2224 'h',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2225 'i'
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2226 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2227 }())
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2228
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2229 // 4
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 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2232 0,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2233 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2234 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2235 var b;
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2236 var c;
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2237 }
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2238
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2239 // 5
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2240 {
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2241 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2242 [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2243 0
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2244 ],
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2245 2,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2246 3
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2247 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2248 }
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2249
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2250 // 6
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2251 {
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2252 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2253 [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2254 0,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2255 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2256 ],
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2257 2,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2258 3
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2259 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2260 }
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2261
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2262 // 7
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2263 {
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2264 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2265 // [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2266 0,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2267 // 1
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2268 // ],
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2269 2,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2270 3
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2271 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2272 }
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2273
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2274 // 8
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2275 var x = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2276 (function(){
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2277 var a,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2278 b,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2279 c,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2280 d,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2281 e,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2282 f,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2283 g,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2284 h,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2285 i;
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2286 })
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2287 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2288
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2289 // 9
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2290 var a = [
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2291 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2292 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2293 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2294 'a',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2295 'b',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2296 0 +
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2297 5 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2298 9 *
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2299 'c',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2300 'd',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2301 'e',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2302 'f',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2303 'g',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2304 'h',
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2305 'i'
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2306 ];
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2307
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2308 // 10
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2309 var a,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2310 b,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2311 c,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2312 d,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2313 e,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2314 f,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2315 g,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2316 h,
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2317 i;
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2318 JSEND
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2319
c4cb95fb4c58 updated for version 7.4.670
Bram Moolenaar <bram@vim.org>
parents: 6114
diff changeset
2320 STARTTEST
10516
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2321 :set cin cino&
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2322 /start of define
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2323 =/end of define
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2324 ENDTEST
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2325
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2326 /* start of define */
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2327 {
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2328 }
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2329 #define AAA \
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2330 BBB\
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2331 CCC
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2332
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2333 #define CNT \
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2334 1 + \
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2335 2 + \
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2336 4
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2337 /* end of define */
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2338
09bb1836cdb5 commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Christian Brabandt <cb@256bit.org>
parents: 10396
diff changeset
2339 STARTTEST
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2340 :g/^STARTTEST/.,/^ENDTEST/d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2341 :1;/start of AUTO/,$wq! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2342 ENDTEST