Nested SCSS function calls with leading dash are interpreted as unary minus #15369
Labels
lang:css/scss/less
Issues affecting CSS, Less or SCSS
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 3.0.3
Playground link
Input:
Output:
Expected behavior:
Dashes are valid parts of SCSS function names. You can test this by pasting the following snippet at https://www.sassmeister.com/:
However, if a function call is nested, the inner leading dash is interpreted as unary minus, and a space is inserted. This breaks the SCSS function call.
The text was updated successfully, but these errors were encountered: