blob: 234dd271306906ed57b8ae3f76698286c14654fc [file] [log] [blame]
40 columns |
>>> Unsplit empty argument list with inline block comment.
function ( /* comment */ ) ;
<<<
function(/* comment */);
>>> Split empty argument list with inline block comment.
veryLongFunction ( /* very long comment */ ) ;
<<<
veryLongFunction(
/* very long comment */
);
>>> Split empty argument list with line comment.
function ( // comment
) ;
<<<
function(
// comment
);
>>> Split empty argument list with block comment.
function ( /* multi
line
comment */) ;
<<<
function(
/* multi
line
comment */
);
>>> Remove extra leading and all trailing empty lines.
function(argument,
// comment
another,
);
<<<
function(
argument,
// comment
another,
);
>>> Preserve one blank line between line comments.
function(argument,
// one
// two
// three
// four
// five
another,
);
<<<
function(
argument,
// one
// two
// three
// four
// five
another,
);
>>> Don't preserve newlines in argument lists with line comment.
### For collection literals, a line comment is a signal to preserve the user's
### original newlines. This test is just to validate that we *don't* do that
### for argument lists.
function(// yeah
first, second, third,
fourth, fifth,
sixth);
<<<
function(
// yeah
first,
second,
third,
fourth,
fifth,
sixth,
);