dunno why i did that

This commit is contained in:
lachrymaL 2021-05-15 17:54:24 -04:00
parent 81ebf1d8eb
commit e397cc3aba
No known key found for this signature in database
GPG key ID: F3640ACFA174B1C1

View file

@ -44,12 +44,10 @@ namespace {
while (!current_scope.Scope.empty()) { while (!current_scope.Scope.empty()) {
stream.get(c); stream.get(c);
// there cannot be any more scope inside of quoted strings
bool no_more_nesting_quotes = (current_scope.Scope.back() == '\'' || current_scope.Scope.back() == '\"');
// push scope if opening scoper is found // push scope if opening scoper is found
bool set_scope_on_this_iter = false; bool set_scope_on_this_iter = false;
if (!no_more_nesting_quotes) { // there cannot be any more scope inside of quoted strings
if (current_scope.Scope.back() != '\'' && current_scope.Scope.back() != '\"') {
for (auto const& x : SCOPER_MAP) for (auto const& x : SCOPER_MAP)
{ {
if (c == x.first) { if (c == x.first) {