Merge pull request #57 from michaelficarra/GH-56

fixes #56: indent cases inside switch statements
master
James Long 2017-01-10 17:49:46 -05:00 committed by GitHub
commit e3b41dd6ca
11 changed files with 333 additions and 331 deletions

View File

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