| 40 columns | |
| >>> Empty block containing line comment. |
| { // comment |
| } |
| <<< |
| { |
| // comment |
| } |
| >>> Empty block containing inline block comment. |
| { /* comment */ } |
| <<< |
| { |
| /* comment */ |
| } |
| >>> Empty block containing non-inline block comment. |
| { |
| |
| /* comment */ |
| |
| |
| } |
| <<< |
| { |
| /* comment */ |
| } |
| >>> Empty block containing multi-line block comment. |
| { /* comment |
| line */ } |
| <<< |
| { |
| /* comment |
| line */ |
| } |
| >>> |
| { |
| |
| /* comment |
| line */ |
| |
| |
| } |
| <<< |
| { |
| /* comment |
| line */ |
| } |
| >>> Remove blank lines before and after comments at end of block. |
| { |
| |
| |
| |
| // comment |
| |
| |
| |
| } |
| <<< |
| { |
| // comment |
| } |
| >>> Preserve one blank line between line comments and statements. |
| { |
| // comment |
| a; |
| |
| // comment |
| |
| b; |
| |
| |
| |
| // comment |
| |
| |
| |
| c; |
| } |
| <<< |
| { |
| // comment |
| a; |
| |
| // comment |
| |
| b; |
| |
| // comment |
| |
| c; |
| } |
| >>> Comment before labeled statement. |
| { |
| /* c */ a: b: c; |
| } |
| <<< |
| { |
| /* c */ |
| a: |
| b: |
| c; |
| } |
| >>> Preserve one blank line between a leading comment and statement. |
| { |
| |
| |
| |
| // comment |
| |
| |
| |
| a; |
| } |
| <<< |
| { |
| // comment |
| |
| a; |
| } |