Skip to content

Commit

Permalink
At root without an expression should exclude everything
Browse files Browse the repository at this point in the history
Extract from #2086.
  • Loading branch information
xzyfer committed May 19, 2016
1 parent 2f47dae commit 6a9b434
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1747,6 +1747,11 @@ namespace Sass {
bool is_hoistable() { return true; }
bool bubbles() { return true; }
bool exclude_node(Statement* s) {
if (expression() == 0)
{
return true;
}

if (s->statement_type() == Statement::DIRECTIVE)
{
return expression()->exclude(static_cast<Directive*>(s)->keyword().erase(0, 1));
Expand Down

0 comments on commit 6a9b434

Please sign in to comment.