Skip to content

Commit

Permalink
Merge pull request sass#695 from xzyfer/fix/map-keys-as-colors
Browse files Browse the repository at this point in the history
Fix colours as map keys
  • Loading branch information
xzyfer committed Dec 9, 2014
2 parents 0042ad7 + dbb7d4a commit 8ba2e36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,8 @@ namespace Sass {

if (lex< identifier >()) {
String_Constant* str = new (ctx.mem) String_Constant(path, source_position, lexed);
str->is_delayed(true);
// Dont' delay this string if it is a name color. Fixes #652.
str->is_delayed(ctx.names_to_colors.count(lexed) == 0);
return str;
}

Expand Down

0 comments on commit 8ba2e36

Please # to comment.