Files
test-repo/changelog_unreleased/javascript/12075.md
T
Sosuke Suzuki db73cc8e0c Print end-of-line comment for continue/break statements (#12075)
* 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
2022-01-19 22:29:37 +09:00

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