diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index 53b1d3b..fc7f9a1 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -103,6 +103,7 @@ namespace Parser { } } break; + case ';': break; case LPAR: case LBRACE: case LBRACKET: { const auto closingCharacter = find_corresponding(lexed.begin() + i + 1, lexed.end(), current.toktype, tok::inverseLCharacter(current.toktype)); vector subTokens(lexed.begin() + i + 1, closingCharacter); @@ -134,8 +135,7 @@ namespace Parser { i = distance(lexed.begin(), closingCharacter); break; } - case RPAR: case RBRACE: case RBRACKET: parsingError(current, " \u27F5 Unexpected character", true); - default: break; + default: parsingError(current, " \u27F5 Unexpected character", true); } } return parseTree;