Skip extra `;` (#1773)

master
Christopher Chedeau 2017-05-27 13:20:19 -07:00 committed by GitHub
parent bb0c184855
commit 54497a0865
3 changed files with 16 additions and 1 deletions

View File

@ -2522,7 +2522,7 @@ function genericPrintNoParens(path, options, print, args) {
}
case "css-decl": {
return concat([
n.raws.before.trimLeft(),
n.raws.before.replace(/[\s;]/g, ''),
n.prop,
": ",
path.call(print, "value"),

View File

@ -5,10 +5,20 @@ exports[`empty.css 1`] = `
details[open] {
}
div {
box-sizing: border-box;;
color: red;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ui-syntax-color();
details[open] {
}
div {
box-sizing: border-box;
color: red;
}
`;

View File

@ -2,3 +2,8 @@
details[open] {
}
div {
box-sizing: border-box;;
color: red;
}