blob: fcd7a86e0004a43b3a802d01df89b2bb8b4833ee [file] [log] [blame]
40 columns |
>>> Inside script tag.
#!scr‹ip›t
<<<
#!scr‹ip›t
>>> Inside blank lines between declarations.
class Foo {}
class Bar {}
<<<
class Foo {}
‹›class Bar {}
>>> Select entire file.
main( ) {
body( ) ;}›
<<<
main() {
body();
}›
>>> With trailing comment.
main() {}
// com›ment
<<<
main() {}
// com›ment
>>> In discarded whitespace.
foo( argument){ }
<<<
foo(‹argument) {›}
>>> In zero-length split whitespace.
main(){veryLongMethodCall(‹veryLongArgumentName);
veryLongMethodCall(›veryLongArgumentName);
}
<<<
main() {
veryLongMethodCall(
veryLongArgumentName,
);
veryLongMethodCall(›
veryLongArgumentName,
);
}
>>> In split-inserted space.
main() {shortCall(argument, argument);
shortCall(argument, argument);
}
<<<
main() {
shortCall(argument, argument);
shortCall(argument, argument);
}
>>> In inserted mandatory newline.
foo() {body; }
bar() {body; }
<<<
foo() {
body;
‹}
bar() {
body;›
}
>>> In inserted mandatory space.
main() async {
await‹(1);
throw›(2);
}
<<<
main() async {
await ‹(1);
throw (2);
}
>>> Across pieces that get solved separately.
foo() {
first();
}
bar() {second();}
<<<
foo() {
first();
}
bar() {
second();
}
>>> Only whitespace in newline selected.
foo() {} bar() {}
<<<
foo() {}
‹›bar() {}