blob: 6cc223729040f8260a78b12f37f8c36e00c33e73 [file] [log] [blame]
40 columns |
>>> inline after "var"
var /* int */ x;
<<<
var /* int */ x;
>>> trailing line comment
var x; // x
<<<
var x; // x
>>> multiple variable declaration list
var x /* X */, y;
<<<
var x /* X */, y;
>>> continue with line comment
while (true) {
continue // comment
;
}
<<<
while (true) {
continue // comment
;
}
>>> continue with wrapped block comment
while (true) {
continue /* a long comment that does not wrap */;
}
<<<
while (true) {
continue /* a long comment that does not wrap */;
}
>>> do with line comment
do // comment
{;} while (true);
<<<
do // comment
{
;
} while (true);
>>> always place newline after multi-line block comment
/*
*/ var i = value;
<<<
/*
*/
var i = value;
>>> remove blank line before beginning of block
while (true) {
// comment
}
<<<
while (true) {
// comment
}
>>>
main() {
/* comment */ statement;
}
<<<
main() {
/* comment */ statement;
}
>>>
main() {
code;
/* comment */ statement;
}
<<<
main() {
code;
/* comment */ statement;
}
>>>
main() {
while (b)
/*unreachable*/ {}
}
<<<
main() {
while (b) /*unreachable*/ {}
}