Skip to content

Commit

Permalink
Merge pull request #2088 from xzyfer/feat/at-root-bubble
Browse files Browse the repository at this point in the history
At root without an expression should exclude everything
  • Loading branch information
xzyfer committed May 19, 2016
2 parents 2f47dae + 6a9b434 commit 6e4409e
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 6e4409e

Please sign in to comment.