parse !important

This commit is contained in:
cloudhead 2010-02-25 21:29:34 -05:00
parent 3f753da627
commit 8c45b58524

View File

@ -398,14 +398,16 @@ less.parser = {
}
},
value: function value() {
var e, expressions = [];
var e, expressions = [], important;
while (e = $(this.expression)) {
expressions.push(e);
if (! $(',')) { break }
}
important = $(/!\s*important/g);
if (expressions.length > 0) {
return new(node.Value)(expressions);
return new(node.Value)(expressions, important);
}
},
sub: function sub() {