@@ -82,7 +82,10 @@ namespace Sass {
82
82
Statement_Ptr CheckNesting::operator ()(Definition_Ptr n)
83
83
{
84
84
if (!this ->should_visit (n)) return NULL ;
85
- if (!is_mixin (n)) return n;
85
+ if (!is_mixin (n)) {
86
+ visit_children (n);
87
+ return n;
88
+ }
86
89
87
90
Definition_Ptr old_mixin_definition = this ->current_mixin_definition ;
88
91
this ->current_mixin_definition = n;
@@ -129,9 +132,8 @@ namespace Sass {
129
132
if (SASS_MEMORY_CAST_PTR (Declaration, node))
130
133
{ this ->invalid_prop_parent (this ->parent ); }
131
134
132
- if (
133
- SASS_MEMORY_CAST_PTR (Declaration, this ->parent )
134
- ) { this ->invalid_prop_child (node); }
135
+ if (SASS_MEMORY_CAST_PTR (Declaration, this ->parent ))
136
+ { this ->invalid_prop_child (node); }
135
137
136
138
if (SASS_MEMORY_CAST_PTR (Return, node))
137
139
{ this ->invalid_return_parent (this ->parent ); }
@@ -258,6 +260,8 @@ namespace Sass {
258
260
SASS_MEMORY_CAST_PTR (Debug, child) ||
259
261
SASS_MEMORY_CAST_PTR (Return, child) ||
260
262
SASS_MEMORY_CAST_PTR (Variable, child) ||
263
+ // Ruby Sass doesn't distinguish variables and assignments
264
+ SASS_MEMORY_CAST_PTR (Assignment, child) ||
261
265
SASS_MEMORY_CAST_PTR (Warning, child) ||
262
266
SASS_MEMORY_CAST_PTR (Error, child)
263
267
)) {
0 commit comments