Revert "Simplify a if statement in lexer.cpp."

This reverts commit 42796ac54ccac44c8a2033ea39635ba44284c5d7.
This commit is contained in:
Username404-59 2021-03-06 13:27:02 +01:00
parent c02f8bcc1a
commit d3d951d843
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 3 deletions

View File

@ -63,9 +63,9 @@ vector<tok>& lex(const string& in)
}
} else {
tok::type currentType = getIdentifierCharType(current);
if ((currentType == tok::STRING) || (currentType == tok::UNEXPECTED)) {
generated.second.append(string(1, current));
} else longLex = false;
if ((currentType == tok::STRING) || ((currentType == tok::UNEXPECTED) && ((generated.first == tok::IDENTIFIER) || (generated.first == tok::NUMBER)))) {
longLex = false;
} else generated.second.append(string(1, current));
}
}
/* Test