Open schungx opened 1 year ago
One nit-pick: For default case, it puts two spaces after the underscore instead of one:
Since we're at it, here are a few more:
fn add(a, b) {
a + b // comment
}
Result:
fn add(a, b) {
a + b
}
The comment is gone.
fn add(a, b) {
a + b; // a very very very looooooooonnnnnng long long long long long long comment
}
is formatted to:
fn add(a, b) {
a
+ b; // a very very very looooooooonnnnnng long long long long long long comment
}
If a line comment is too long, the item gets moved to the second line, which looks strange.
Missing space before line comment if it is right after an open {
.
get formatted to: