mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
parse !important
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user