-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Less Parse Error: Variable Body that starts with & #5420
Copy link
Copy link
Open
Labels
lang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSSlang:lessIssues affecting Less-specific syntax (not plain CSS)Issues affecting Less-specific syntax (not plain CSS)priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!
Metadata
Metadata
Assignees
Labels
lang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSSlang:lessIssues affecting Less-specific syntax (not plain CSS)Issues affecting Less-specific syntax (not plain CSS)priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!
Prettier 1.15.1
Playground link
Input:
Output:
Expected behavior:
The line should parse fine, since it is valid less syntax, and the less compiler parses this fine.