--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/with/indent.js --- # Input ```js with (0) {} with (0) 1; ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -1,4 +1,3 @@ -with (0) { -} +with (0) {} with (0) 1; ``` # Output ```js with (0) {} with (0) 1; ``` # Errors ``` indent.js:1:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × `with` statements are not allowed in strict mode > 1 │ with (0) {} │ ^^^^^^^^^^^ 2 │ 3 │ with (0) 1; indent.js:3:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × `with` statements are not allowed in strict mode 1 │ with (0) {} 2 │ > 3 │ with (0) 1; │ ^^^^^^^^^^^ 4 │ ```