Skip to content

SCSS: unexpected format #8674

@fisker

Description

@fisker

Prettier 2.0.5
Playground link

--parser scss

Input:

@import ur
  l(//fonts.googleapis.com/css?family=Open+Sans:400,400italic);

Output:

@import ur
  l(;

Expected behavior:

I was playing on the playground, found this case, it's seems not really valid, but we should not lost the comment, or should throw a ParseError. And less parser didn't lost the comment.

@include b() /* comment*/
@include b() // comment

Same problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:css/scss/lessIssues affecting CSS, Less or SCSSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions