Skip to content

Regression in 2.8.1: Commas are removed from fn args in Sass maps. #13984

@jgerigmeyer

Description

@jgerigmeyer

Probably caused by #9184?
Possible related to #13580?

Prettier 2.8.1
Playground link

--parser scss

Input:

@each $name, $hue in $hues {
  $map: map.merge(
    $map,
    (
      '#{$prefix}-#{$name}': blend.set($base, $hue: $hue),
    )
  );
}

Output:

@each $name, $hue in $hues {
  $map: map.merge($map, ('#{$prefix}-#{$name}': blend.set($base $hue: $hue)));
}

Expected behavior:

Comma should not be removed from blend.set($base, $hue: $hue) call.

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