Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 7477d7f

Browse files
author
Aaron Leung
committed
More fixes for mixin content.
1 parent 21bd0ef commit 7477d7f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

document_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ namespace Sass {
601601
throw_syntax_error("only variable declarations and control directives are allowed inside functions");
602602
}
603603
else if (peek< include >(position)) {
604-
block << parse_mixin_call();
604+
block << parse_mixin_call(inside_of);
605605
semicolon = true;
606606
}
607607
else if (lex< content >()) {

eval_apply.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,14 @@ namespace Sass {
320320
re_expand(expr[1], expr[2], env, f_env, new_Node, ctx, bt, false, content);
321321
} break;
322322

323-
case Node::block: {
323+
case Node::block:
324+
case Node::mixin_call:
325+
case Node::mixin_content:
326+
case Node::if_directive:
327+
case Node::for_through_directive:
328+
case Node::for_to_directive:
329+
case Node::each_directive:
330+
case Node::while_directive: {
324331
for (size_t i = 0, S = expr.size(); i < S; ++i) {
325332
re_expand(expr[i], prefix, env, f_env, new_Node, ctx, bt, false, content);
326333
}

0 commit comments

Comments
 (0)