| 40 columns | |
| >>> indented line comment (dartbug.com/16383) |
| var list = [ |
| // comment |
| ]; |
| <<< |
| var list = [ |
| // comment |
| ]; |
| >>> line comment on opening line |
| var list = [ // comment |
| ]; |
| <<< |
| var list = [ |
| // comment |
| ]; |
| >>> indented block comment |
| var list = [ |
| /* comment */ |
| ]; |
| <<< |
| var list = [ |
| /* comment */ |
| ]; |
| >>> block comment with trailing newline |
| var list = [/* comment */ |
| ]; |
| <<< |
| var list = [ |
| /* comment */ |
| ]; |
| >>> block comment with leading newline |
| var list = [ |
| /* comment */]; |
| <<< |
| var list = [ |
| /* comment */ |
| ]; |
| >>> inline block comment |
| var list = [ /* comment */ ]; |
| <<< |
| var list = [/* comment */]; |
| >>> multiple comments on opening line |
| var list = [ /* first */ // second |
| ]; |
| <<< |
| var list = [ |
| /* first */ // second |
| ]; |
| >>> multiple inline block comments |
| var list = [ /* 1 */ /* 2 */ /* 3 */ ]; |
| <<< |
| var list = [/* 1 */ /* 2 */ /* 3 */]; |
| >>> multiline trailing block comment |
| var list = [ /* comment |
| */ ]; |
| <<< |
| var list = [ |
| /* comment |
| */ |
| ]; |
| >>> line comment between items |
| var list = ['a', // comment |
| 'b']; |
| <<< |
| var list = [ |
| 'a', // comment |
| 'b' |
| ]; |
| >>> line comments after last item |
| var list = ['a' // 1 |
| // 2 |
| ]; |
| <<< |
| var list = [ |
| 'a' // 1 |
| // 2 |
| ]; |
| >>> line comments after trailing comma |
| var list = ['a', // 1 |
| // 2 |
| ]; |
| <<< |
| var list = [ |
| 'a', // 1 |
| // 2 |
| ]; |
| >>> space on left between block comment and "," |
| var list = [1,/* a */ 2 /* b */ , 3]; |
| <<< |
| var list = [1, /* a */ 2 /* b */, 3]; |
| >>> remove blank lines before beginning of body |
| var list = [ |
| |
| |
| |
| // comment |
| ]; |
| <<< |
| var list = [ |
| // comment |
| ]; |
| >>> remove blank lines after end of body |
| var list = [ |
| // comment |
| |
| |
| |
| ]; |
| <<< |
| var list = [ |
| // comment |
| ]; |