Skip to content

Commit

Permalink
Delay interpolated expression as in regular CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter authored and xzyfer committed Mar 23, 2018
1 parent 2807587 commit 046b32a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/debugger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ inline void debug_ast(AST_Node_Ptr node, std::string ind, Env* env)
Number_Ptr expression = Cast<Number>(node);
std::cerr << ind << "Number " << expression;
std::cerr << " (" << pstate_source_position(node) << ")";
std::cerr << " [delayed: " << expression->is_delayed() << "] ";
std::cerr << " [interpolant: " << expression->is_interpolant() << "] ";
std::cerr << " [" << expression->value() << expression->unit() << "]" <<
" [hash: " << expression->hash() << "] " <<
Expand Down
2 changes: 1 addition & 1 deletion src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1962,7 +1962,7 @@ namespace Sass {
if (lex< re_static_expression >()) {
ex = SASS_MEMORY_NEW(String_Constant, pstate, lexed);
} else {
ex = parse_list();
ex = parse_list(true);
}
ex->is_interpolant(true);
schema->append(ex);
Expand Down

0 comments on commit 046b32a

Please sign in to comment.