We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 189aeb9 commit e42c03aCopy full SHA for e42c03a
src/parser.cpp
@@ -2200,7 +2200,8 @@ namespace Sass {
2200
lex< identifier >();
2201
std::string name(lexed);
2202
2203
- if (Util::normalize_underscores(name) == "content-exists" && stack.back() != Scope::Mixin)
+ bool in_mixin = std::find(stack.begin(), stack.end(), Scope::Mixin) != stack.end();
2204
+ if (Util::normalize_underscores(name) == "content-exists" && !in_mixin)
2205
{ error("Cannot call content-exists() except within a mixin."); }
2206
2207
ParserState call_pos = pstate;
0 commit comments