diff --git a/src/ast.cpp b/src/ast.cpp index c2b0b46a1e..c43b72099b 100644 --- a/src/ast.cpp +++ b/src/ast.cpp @@ -2225,6 +2225,7 @@ namespace Sass { if (List_Ptr_Const r = dynamic_cast(&rhs)) { if (length() != r->length()) return false; if (separator() != r->separator()) return false; + if (is_bracketed() != r->is_bracketed()) return false; for (size_t i = 0, L = length(); i < L; ++i) { Expression_Obj rv = r->at(i); Expression_Obj lv = this->at(i); diff --git a/src/ast.hpp b/src/ast.hpp index cfa134de22..6a91faa201 100644 --- a/src/ast.hpp +++ b/src/ast.hpp @@ -1082,6 +1082,7 @@ namespace Sass { { if (hash_ == 0) { hash_ = std::hash()(sep_string()); + hash_combine(hash_, std::hash()(is_bracketed())); for (size_t i = 0, L = length(); i < L; ++i) hash_combine(hash_, (elements()[i])->hash()); }