mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
parser – fix #2496: allow detached rulesets as mixin argument defaults
This commit is contained in:
@@ -704,10 +704,7 @@ var Parser = function Parser(context, imports, fileInfo) {
|
||||
expressionContainsNamed = true;
|
||||
}
|
||||
|
||||
// we do not support setting a ruleset as a default variable - it doesn't make sense
|
||||
// However if we do want to add it, there is nothing blocking it, just don't error
|
||||
// and remove isCall dependency below
|
||||
value = (isCall && parsers.detachedRuleset()) || parsers.expression();
|
||||
value = parsers.detachedRuleset() || parsers.expression();
|
||||
|
||||
if (!value) {
|
||||
if (isCall) {
|
||||
|
||||
Reference in New Issue
Block a user