Changeset View
Changeset View
Standalone View
Standalone View
autotests/input/highlight.d
Show All 9 Lines | |||||
10 | + | 10 | + | ||
11 | + --- | 11 | + --- | ||
12 | + // comment | 12 | + // comment | ||
13 | + #line 12 "hightlighttest.d" /* block comment */ | 13 | + #line 12 "hightlighttest.d" /* block comment */ | ||
14 | + #line __LINE__ __FILE__ /++ embedded block comment +/ | 14 | + #line __LINE__ __FILE__ /++ embedded block comment +/ | ||
15 | + | 15 | + | ||
16 | + pragma /* */ (msg, "what?"); | 16 | + pragma /* */ (msg, "what?"); | ||
17 | + pragma(/++ +/ lib, "insane.a"); | 17 | + pragma(/++ +/ lib, "insane.a"); | ||
18 | + pragma(inline); | ||||
19 | + pragma(linkerDirective); | ||||
20 | + pragma(mangle); | ||||
21 | + pragma(startaddress); | ||||
18 | + pragma(D_Custom_Extension, "custom data"); | 22 | + pragma(D_Custom_Extension, "custom data"); | ||
23 | + pragma(foo 0); | ||||
19 | + --- | 24 | + --- | ||
20 | +/ | 25 | +/ | ||
21 | 26 | | |||
22 | /// version condition | 27 | /// version condition | ||
23 | version = X; | 28 | version = X; | ||
29 | version = 1_2_3; | ||||
24 | version (X) ; | 30 | version (X) ; | ||
25 | version(linux) {} | 31 | version(linux) {} | ||
26 | 32 | | |||
27 | /// linkage | 33 | /// linkage | ||
28 | extern | 34 | extern | ||
29 | (C) {} | 35 | (C) {} | ||
30 | extern : | 36 | extern : | ||
31 | ; | 37 | ; | ||
38 | extern (C++) {} | ||||
39 | extern (C++, foo.bar.baz) {} | ||||
40 | extern (D) {} | ||||
32 | extern (Windows) {} | 41 | extern (Windows) {} | ||
42 | extern (Pascal) {} | ||||
43 | extern (System) {} | ||||
44 | extern (unknown) {} | ||||
45 | extern (C,) {} | ||||
46 | extern (C++, foo, bar) {} | ||||
33 | 47 | | |||
34 | /// alias & typedef | 48 | /// alias & typedef | ||
35 | alias int.min minint; | 49 | alias int.min minint; | ||
36 | typedef int myint; | 50 | typedef int myint; | ||
37 | 51 | | |||
38 | int main(char[][] args) { | 52 | int main(char[][] args) { | ||
39 | /// statements | 53 | /// statements | ||
40 | if (1) {} | 54 | if (1) {} | ||
▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines |