--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/export-default/escaped/default-escaped.js --- # Input ```js // export asyn\u{63} from "async"; export n\u{63} from "async"; ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -1,2 +1,5 @@ // export asyn\u{63} from "async"; -export nc from "async"; +export +n\u{63}; +from; +("async"); ``` # Output ```js // export asyn\u{63} from "async"; export n\u{63}; from; ("async"); ``` # Errors ``` default-escaped.js:2:8 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `*` but instead found `n\u{63}` 1 │ // export asyn\u{63} from "async"; > 2 │ export n\u{63} from "async"; │ ^^^^^^^ i Remove n\u{63} default-escaped.js:2:16 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 1 │ // export asyn\u{63} from "async"; > 2 │ export n\u{63} from "async"; │ ^^^^ i An explicit or implicit semicolon is expected here... 1 │ // export asyn\u{63} from "async"; > 2 │ export n\u{63} from "async"; │ ^^^^ i ...Which is required to end this statement 1 │ // export asyn\u{63} from "async"; > 2 │ export n\u{63} from "async"; │ ^^^^^^^^^^^^ default-escaped.js:2:21 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none 1 │ // export asyn\u{63} from "async"; > 2 │ export n\u{63} from "async"; │ ^^^^^^^ i An explicit or implicit semicolon is expected here... 1 │ // export asyn\u{63} from "async"; > 2 │ export n\u{63} from "async"; │ ^^^^^^^ i ...Which is required to end this statement 1 │ // export asyn\u{63} from "async"; > 2 │ export n\u{63} from "async"; │ ^^^^^^^^^^^^ ```