Skip to content

[scss] Wildcard syntax in @forward broken #11482

@Michsior14

Description

@Michsior14

Using the latest prettier wildcard syntax is broken when using @forward pattern.
It worked as desired in v2.3.2.

Prettier 2.4.0
Playground link

--parser scss

Input:

@forward './path' as path-*;
@forward './color' as color-*;
@forward './element' as element-*;

Output:

@forward "./path" as path- *;
@forward "./color" as color- *;
@forward "./element" as element- *;

Expected behavior:

Wildcard syntax should be preserved.

@forward "./path" as path-*;
@forward "./color" as color-*;
@forward "./element" as element-*;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions