Merge pull request #57 from michaelficarra/GH-56
fixes #56: indent cases inside switch statementsmaster
commit
e3b41dd6ca
|
@ -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,
|
||||||
"}"
|
"}"
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue