Commit d90a627e by Aaron Leung

Converting color names to values when they're used as operands during the eval phase.

parent 4f2e7d70
......@@ -337,6 +337,16 @@ namespace Sass {
return expr;
}
} break;
case Node::identifier: {
string id_str(expr.to_string());
if (ctx.color_names_to_values.count(id_str)) {
return ctx.color_names_to_values[id_str];
}
else {
return expr;
}
} break;
case Node::string_schema:
case Node::value_schema:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment