2022-03-16 13:25:48 +09:00
|
|
|
#### Print end-of-line comments for `continue`/`break` statements (#12075 by @sosukesuzuki)
|
2022-01-19 22:29:37 +09:00
|
|
|
|
|
|
|
|
<!-- prettier-ignore -->
|
|
|
|
|
```jsx
|
|
|
|
|
// Input
|
|
|
|
|
for (;;) continue // comment
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
// Prettier stable
|
|
|
|
|
Error: Comment "comment" was not printed. Please report this error!
|
|
|
|
|
|
|
|
|
|
// Prettier main
|
|
|
|
|
for (;;)
|
|
|
|
|
continue; // comment
|
|
|
|
|
|
|
|
|
|
```
|