Skip to content

Commit 233f2b3

Browse files
mgreterxzyfer
authored andcommitted
Fix string schema issue and interpolation as rhs operand
1 parent 3f5fde5 commit 233f2b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/eval.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ namespace Sass {
519519
}
520520
}
521521
if (String_Schema* s_r = dynamic_cast<String_Schema*>(b->right())) {
522-
if (!s_r->is_left_interpolant() || op_type == Sass_OP::DIV) {
522+
if (!s_r->has_interpolant() && (!s_r->is_left_interpolant() || op_type == Sass_OP::DIV)) {
523523
ret_schema = SASS_MEMORY_NEW(ctx.mem, String_Schema, s_r->pstate());
524524
Binary_Expression* bin_ex = SASS_MEMORY_NEW(ctx.mem, Binary_Expression, b->pstate(),
525525
b->op(), b->left(), s_r->first());
@@ -691,7 +691,7 @@ namespace Sass {
691691
}
692692
}
693693

694-
if (force_delay) {
694+
if (force_delay) {
695695
std::string str("");
696696
str += v_l->to_string(ctx.c_options);
697697
if (b->op().ws_before) str += " ";

0 commit comments

Comments
 (0)