diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index 7edd31e..dc4e35c 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -42,8 +42,7 @@ namespace Parser { if (next.toktype == IDENTIFIER) { parseTree << Class(next.toktext); ++i; } else { - const bool isNotBlank = not next.toktext.empty(); - parsingError(next, isNotBlank ? " is not a valid class identifier" : "A class identifier is required", isNotBlank); + parsingError(next, hasNext ? " is not a valid class identifier" : "A class identifier is required", hasNext); } } else { bool isFinalDefine = nextAre({TAG, DEFINE});