parse !important
This commit is contained in:
parent
3f753da627
commit
8c45b58524
@ -398,14 +398,16 @@ less.parser = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
value: function value() {
|
value: function value() {
|
||||||
var e, expressions = [];
|
var e, expressions = [], important;
|
||||||
|
|
||||||
while (e = $(this.expression)) {
|
while (e = $(this.expression)) {
|
||||||
expressions.push(e);
|
expressions.push(e);
|
||||||
if (! $(',')) { break }
|
if (! $(',')) { break }
|
||||||
}
|
}
|
||||||
|
important = $(/!\s*important/g);
|
||||||
|
|
||||||
if (expressions.length > 0) {
|
if (expressions.length > 0) {
|
||||||
return new(node.Value)(expressions);
|
return new(node.Value)(expressions, important);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sub: function sub() {
|
sub: function sub() {
|
||||||
|
Loading…
Reference in New Issue
Block a user