265 B
265 B
Fix comments handling for for-statements (#18099 by @fisker, @sosukesuzuki)
// Input
for (x of y)
// Comment
bar();
// Prettier stable
// Comment
for (x of y) bar();
// Prettier main
for (x of y)
// Comment
bar();