Make currentCharType a constant variable in lexer.cpp
This commit is contained in:
parent
233ab8d0e8
commit
aac3085e94
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user