Skip to content

Commit e3603a6

Browse files
committed
handle declaration with key but no value
1 parent 0e52e63 commit e3603a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ module.exports = function(css, options){
188188
prop = trim(prop[0]);
189189
// : /* AUSTIN HACK! */
190190
// if (!match(/^:\s*/)) return error("property missing ':'");
191+
if (!match(/^:\s*/)) {
192+
match(/^\s*/)
193+
}
191194

192195
// val
193196
var val = match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/);

0 commit comments

Comments
 (0)