consider comment starting character to be a terminatorless separator #2106

This commit is contained in:
Sebastian McKenzie 2015-07-28 18:54:47 +01:00
parent 2b009e8c47
commit 4d846e3686

View File

@ -264,7 +264,7 @@ export default class Buffer {
this.parenPushNewlineState = null;
if (cha === "\n") {
if (cha === "\n" || cha === "/") {
// we're going to break this terminator expression so we need to add a parentheses
this._push("(");
this.indent();