From dbb7d4a4d65fc65939ab5570030da277262774b5 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Tue, 9 Dec 2014 13:54:44 +1100 Subject: [PATCH] Don't delay String_Constant's that are name colours This will allow the eval visitor to correctly coerce the string node to a color node. --- parser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser.cpp b/parser.cpp index 98c9d3191..83c9d746b 100644 --- a/parser.cpp +++ b/parser.cpp @@ -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; }