properly align multi declarator var declarations - fixes #413

This commit is contained in:
Sebastian McKenzie 2015-01-08 00:37:32 +11:00
parent 6650336c64
commit 281003c7bd

View File

@ -157,7 +157,7 @@ exports.DebuggerStatement = function () {
exports.VariableDeclaration = function (node, print, parent) {
this.push(node.kind + " ");
print.join(node.declarations, { separator: ", " });
print.join(node.declarations, { separator: ",\n" + this.getIndent(2) });
if (!t.isFor(parent)) {
this.semicolon();