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