beautify: keep semicolon after /*comment*/ on the same line

This commit is contained in:
tophf 2018-01-05 14:10:27 +03:00
parent b32832e237
commit 42bd77ec17

View File

@ -407,7 +407,7 @@
} }
print.text(eatComment()); print.text(eatComment());
print.newLine(); if (peek() !== ';') print.newLine();
} else if (ch === '/' && peek() === '/') { // single line comment } else if (ch === '/' && peek() === '/') { // single line comment
if (!isAfterNewline && last_top_ch !== '{') { if (!isAfterNewline && last_top_ch !== '{') {
print.trim(); print.trim();