---
source: crates/rome_formatter_test/src/snapshot_builder.rs
info:
test_file: jsx/spread/child.js
---
# Input
```js
{...a}
;
{...a /* comment */}
;
{/* comment */...a}
;
{...a //comment
}
;
{...a
//comment
}
;
{
//comment
...a
}
;
{//comment
...a // comment
}
;
```
# Prettier differences
```diff
--- Prettier
+++ Rome
@@ -2,7 +2,7 @@
{...a /* comment */}
;
-{/* comment */ ...a}
;
+{.../* comment */ a}
;
{
@@ -19,14 +19,14 @@
{
- //comment
- ...a
+ ...//comment
+ a
}
;
{
- //comment
- ...a // comment
+ ...//comment
+ a // comment
}
;
```
# Output
```js
{...a}
;
{...a /* comment */}
;
{.../* comment */ a}
;
{
...a //comment
}
;
{
...a
//comment
}
;
{
...//comment
a
}
;
{
...//comment
a // comment
}
;
```