Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SCSS] Invalid multi-line comments inside multi-line lists and maps #9493

Open
xpuu opened this issue Oct 23, 2020 · 0 comments
Open

[SCSS] Invalid multi-line comments inside multi-line lists and maps #9493

xpuu opened this issue Oct 23, 2020 · 0 comments
Labels
area:comments Issues with how Prettier prints comments lang:css/scss/less Issues affecting CSS, Less or SCSS

Comments

@xpuu
Copy link

xpuu commented Oct 23, 2020

Prettier 2.1.2
Playground link

--parser scss

Input:

$list:
/* 
1
*/
2,
/*
3
*/
;

$map: (
/*
start: flex-start,
*/
end: flex-end,
center: center,
/*
between: space-between,
around: space-around,
evenly: space-evenly,
*/
);

Output:

$list:
/* 
1
*/ 2, /*
3
*/;

$map: (
  /*
start: flex-start,
*/ end: flex-end,
  center: center,
  /*
between: space-between,
around: space-around,
evenly: space-evenly,
*/
);

Expected behavior:

$list:
/* 
1
*/ 
  2, 
/*
3
*/
;

$map: (
/*
start: flex-start,
*/ 
  end: flex-end,
  center: center,
/*
between: space-between,
around: space-around,
evenly: space-evenly,
*/
);
@alexander-akait alexander-akait added area:comments Issues with how Prettier prints comments lang:css/scss/less Issues affecting CSS, Less or SCSS labels Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:comments Issues with how Prettier prints comments lang:css/scss/less Issues affecting CSS, Less or SCSS
Projects
None yet
Development

No branches or pull requests

2 participants