Skip extra `;` (#1773)
parent
bb0c184855
commit
54497a0865
|
@ -2522,7 +2522,7 @@ function genericPrintNoParens(path, options, print, args) {
|
||||||
}
|
}
|
||||||
case "css-decl": {
|
case "css-decl": {
|
||||||
return concat([
|
return concat([
|
||||||
n.raws.before.trimLeft(),
|
n.raws.before.replace(/[\s;]/g, ''),
|
||||||
n.prop,
|
n.prop,
|
||||||
": ",
|
": ",
|
||||||
path.call(print, "value"),
|
path.call(print, "value"),
|
||||||
|
|
|
@ -5,10 +5,20 @@ exports[`empty.css 1`] = `
|
||||||
|
|
||||||
details[open] {
|
details[open] {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div {
|
||||||
|
box-sizing: border-box;;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
.ui-syntax-color();
|
.ui-syntax-color();
|
||||||
|
|
||||||
details[open] {
|
details[open] {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div {
|
||||||
|
box-sizing: border-box;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -2,3 +2,8 @@
|
||||||
|
|
||||||
details[open] {
|
details[open] {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div {
|
||||||
|
box-sizing: border-box;;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue