--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/tuple/syntax.js --- # Input ```js #[] #[1, 2] #[1, 2, #{ a: 3 }] ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -1,3 +1,7 @@ -#[]; -#[1, 2]; -#[1, 2, #{ a: 3 }]; +#[] +#[1, 2] +#[1, 2, # +{ + a: 3; +} +] ``` # Output ```js #[] #[1, 2] #[1, 2, # { a: 3; } ] ``` # Errors ``` syntax.js:1:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `!` following a `#`, but found none > 1 │ #[] │ ^ 2 │ #[1, 2] 3 │ #[1, 2, #{ a: 3 }] syntax.js:3:18 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected a statement but instead found ']' 1 │ #[] 2 │ #[1, 2] > 3 │ #[1, 2, #{ a: 3 }] │ ^ 4 │ i Expected a statement here 1 │ #[] 2 │ #[1, 2] > 3 │ #[1, 2, #{ a: 3 }] │ ^ 4 │ ```