fixes #56: indent cases inside switch statements

master
Michael Ficarra 2017-01-10 12:03:36 -08:00
parent 0861f0a49b
commit fc521c4d03
11 changed files with 333 additions and 331 deletions

View File

@ -996,8 +996,10 @@ function genericPrintNoParens(path, options, print) {
"switch (",
path.call(print, "discriminant"),
") {",
hardline,
join(hardline, path.map(print, "cases")),
indent(
options.tabWidth,
concat([ hardline, join(hardline, path.map(print, "cases"))])
),
hardline,
"}"
]);