diff --git a/src/etc/lexer.cpp b/src/etc/lexer.cpp index 16284da..4a54ce3 100644 --- a/src/etc/lexer.cpp +++ b/src/etc/lexer.cpp @@ -39,7 +39,7 @@ vector lex(const string& in) string formedString; for (;i < in.size(); ++i) { bool isString = getIdentifierCharType(in[i]) == tok::STRING; - if ((getIdentifierCharType(in[i]) == type && !isString) || (type == tok::STRING && !isString)) { + if ((getIdentifierCharType(in[i]) == type || type == tok::STRING) && !isString) { formedString += string(1, in[i]); } else { resVal.emplace_back(type, formedString);