Make currentCharType a constant variable in lexer.cpp

This commit is contained in:
Username404-59 2021-10-06 14:37:13 +02:00
parent 233ab8d0e8
commit aac3085e94
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

@ -26,7 +26,7 @@ vector<tok> lex(const string& in)
[[likely]] case ' ': case '\t': case '\r': break;
[[likely]] case '\n': ++lineNumber; break;
default: {
tok::type type = getIdentifierCharType(current);
const tok::type type = getIdentifierCharType(current);
bool isTypeString = (type == STRING);
switch (type) {
case STRING: ++i;