Skip to content

Commit 6e4409e

Browse files
committed
Merge pull request #2088 from xzyfer/feat/at-root-bubble
At root without an expression should exclude everything
2 parents 2f47dae + 6a9b434 commit 6e4409e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ast.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,11 @@ namespace Sass {
17471747
bool is_hoistable() { return true; }
17481748
bool bubbles() { return true; }
17491749
bool exclude_node(Statement* s) {
1750+
if (expression() == 0)
1751+
{
1752+
return true;
1753+
}
1754+
17501755
if (s->statement_type() == Statement::DIRECTIVE)
17511756
{
17521757
return expression()->exclude(static_cast<Directive*>(s)->keyword().erase(0, 1));

0 commit comments

Comments
 (0)