diff --git a/parser.cpp b/parser.cpp index c3512c2b18..70881183f9 100644 --- a/parser.cpp +++ b/parser.cpp @@ -2056,13 +2056,8 @@ namespace Sass { string kwd(lexed); At_Rule* at_rule = new (ctx.mem) At_Rule(pstate, kwd); Lookahead lookahead = lookahead_for_include(position); - if (lookahead.found) { - if (lookahead.has_interpolants) { - at_rule->selector(parse_selector_schema(lookahead.found)); - } - else { - at_rule->selector(parse_selector_list()); - } + if (lookahead.found && !lookahead.has_interpolants) { + at_rule->selector(parse_selector_list()); } lex < css_comments >(); diff --git a/util.cpp b/util.cpp index a480319f12..f605f81d32 100644 --- a/util.cpp +++ b/util.cpp @@ -537,7 +537,9 @@ namespace Sass { bool hasPrintableChildBlocks = false; for (size_t i = 0, L = b->length(); i < L; ++i) { Statement* stm = (*b)[i]; - if (dynamic_cast(stm)) { + if (dynamic_cast(stm)) { + return true; + } else if (dynamic_cast(stm)) { Block* pChildBlock = ((Has_Block*)stm)->block(); if (isPrintable(pChildBlock, style)) { hasPrintableChildBlocks = true;