The formatter is smart enough to indent the comment here because no case follows it:
class Main {
static function main() {
switch ("c") {
case "a":
case "b":
case _:
// nothing to do
}
}
}
Maybe it should be indented here too, because case "a" is empty (so it's unlikely to be a comment belonging to the next case):
class Main {
static function main() {
switch ("c") {
case "a":
// nothing to do
case "b":
case _:
}
}
}
The formatter is smart enough to indent the comment here because no
casefollows it:Maybe it should be indented here too, because
case "a"is empty (so it's unlikely to be a comment belonging to the nextcase):