From f4297fe851efe951052d6ca5cb5c86e599db750a Mon Sep 17 00:00:00 2001 From: Username404 Date: Tue, 10 Aug 2021 14:01:20 +0200 Subject: [PATCH] Use STRING directly in the getIdentifierCharType() function. --- src/etc/lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/lexer.cpp b/src/etc/lexer.cpp index 61c02bd..ee2a83c 100644 --- a/src/etc/lexer.cpp +++ b/src/etc/lexer.cpp @@ -5,7 +5,7 @@ using enum tok::type; tok::type getIdentifierCharType(const char& Char) { if (isalpha(Char)) return IDENTIFIER; else if (isdigit(Char)) return NUMBER; - else if (Char == '"') return STRING; + else if (Char == STRING) return STRING; else return UNEXPECTED; }