Initial Revision
[ohcount] / test / src_dir / d1.d
1 /* comment block */
2 // single-line comment
3 int main(char[][] args)
4 {
5         int w_total; // a comment and code on the same line
6
7         /+ begin a nestable comment block
8                 /* this comment is nested within another */
9                 this_code_is_commented_out();
10         +/
11
12         /* when inside a c-style block comment, /+ does not start a nested comment */
13   this_line_is_code();
14
15         // when inside a line comment, /+ does not start a nested comment
16         this_line_is_also_code();
17
18         /+ when inside a nestable comment, /+ does begin a nested comment
19           now we close the inner comment +/
20                 This line is still part of the outer comment
21           now we close the outer comment +/
22
23         x = `when inside a backtick string, /+ does not begin a nested comment`;
24         y = `when inside a backtick string, /* does not begin a nested comment`;
25         z = `when inside a backtick string, // does not begin a nested comment`;
26 }