* Add handleBreakAndContinueStatementComments to handleEndOfLineComment * Add tests * Add changelog * Update tests * Add more tests * Fix for own line comments * Fix tests * Fix tests * Fix tests * Add unstable tests
357 B
357 B
Print end-of-line comment for continue/break statements (#12075 by @sosukesuzuki)
// Input
for (;;) continue // comment
;
// Prettier stable
Error: Comment "comment" was not printed. Please report this error!
// Prettier main
for (;;)
continue; // comment