--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/comments/break-continue-statements.js --- # Input ```js for (;;) { break /* comment */; continue /* comment */; } loop: for (;;) { break /* comment */ loop; break loop /* comment */; continue /* comment */ loop; continue loop /* comment */; } ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -4,8 +4,8 @@ } loop: for (;;) { - break /* comment */ loop; - break loop /* comment */; - continue /* comment */ loop; - continue loop /* comment */; + break loop; /* comment */ + break loop; /* comment */ + continue loop; /* comment */ + continue loop; /* comment */ } ``` # Output ```js for (;;) { break; /* comment */ continue; /* comment */ } loop: for (;;) { break loop; /* comment */ break loop; /* comment */ continue loop; /* comment */ continue loop; /* comment */ } ```