parser – fix #2496: allow detached rulesets as mixin argument defaults

This commit is contained in:
Calvin Juárez
2015-03-10 18:10:39 -06:00
parent b3e06577f9
commit d4a8804808

View File

@@ -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) {