From c02f8bcc1ab169f0c809ee2107f3fa559786b7ec Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sat, 6 Mar 2021 13:24:08 +0100 Subject: [PATCH] Simplify a if statement in lexer.cpp. --- src/etc/lexer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/lexer.cpp b/src/etc/lexer.cpp index b5cd636..c2447ed 100644 --- a/src/etc/lexer.cpp +++ b/src/etc/lexer.cpp @@ -63,9 +63,9 @@ vector& lex(const string& in) } } else { tok::type currentType = getIdentifierCharType(current); - if ((currentType == tok::STRING) || ((currentType == tok::UNEXPECTED) && ((generated.first == tok::IDENTIFIER) || (generated.first == tok::NUMBER)))) { - longLex = false; - } else generated.second.append(string(1, current)); + if ((currentType == tok::STRING) || (currentType == tok::UNEXPECTED)) { + generated.second.append(string(1, current)); + } else longLex = false; } } /* Test