Skip to content

Commit ef503c5

Browse files
committed
Enable nesting checks for all includes
1 parent 813b8ea commit ef503c5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/context.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,11 @@ namespace Sass {
653653
Expand expand(*this, &global, &backtrace);
654654
Cssize cssize(*this, &backtrace);
655655
CheckNesting check_nesting;
656-
// check nesting
657-
check_nesting(root);
656+
// check nesting in all files
657+
for (auto sheet : sheets) {
658+
auto styles = sheet.second;
659+
check_nesting(styles.root);
660+
}
658661
// expand and eval the tree
659662
root = expand(root);
660663
// check nesting

0 commit comments

Comments
 (0)