--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: css/front-matter/custom-parser.css --- # Input ```css ---mycustomparser title: Title description: Description --- /* comment */ .something {} ``` # Prettier differences ```diff --- Prettier +++ Biome @@ -1,8 +1,9 @@ ----mycustomparser +- +--mycustomparser title: Title description: Description ---- - +-- +- /* comment */ .something { } ``` # Output ```css - --mycustomparser title: Title description: Description -- - /* comment */ .something { } ``` # Errors ``` custom-parser.css:1:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a qualified rule, or an at rule but instead found '-'. > 1 │ ---mycustomparser │ ^ 2 │ title: Title 3 │ description: Description i Expected a qualified rule, or an at rule here. > 1 │ ---mycustomparser │ ^ 2 │ title: Title 3 │ description: Description custom-parser.css:2:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `title` 1 │ ---mycustomparser > 2 │ title: Title │ ^^^^^ 3 │ description: Description 4 │ --- i Remove title custom-parser.css:3:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `description` 1 │ ---mycustomparser 2 │ title: Title > 3 │ description: Description │ ^^^^^^^^^^^ 4 │ --- 5 │ /* comment */ i Remove description custom-parser.css:4:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `-` 2 │ title: Title 3 │ description: Description > 4 │ --- │ ^ 5 │ /* comment */ 6 │ .something· i Remove - custom-parser.css:4:3 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `-` 2 │ title: Title 3 │ description: Description > 4 │ --- │ ^ 5 │ /* comment */ 6 │ .something· i Remove - ```