diff --git a/src/etc/lexer.cpp b/src/etc/lexer.cpp index 6026624..09024da 100644 --- a/src/etc/lexer.cpp +++ b/src/etc/lexer.cpp @@ -3,7 +3,7 @@ using namespace std; using enum tok::type; tok::type getIdentifierCharType(const char& Char) { - if (isalpha(Char)) return IDENTIFIER; + if (isalpha(Char) || Char == '_') return IDENTIFIER; else if (isdigit(Char)) return NUMBER; else if (Char == STRING) return STRING; else return UNEXPECTED;