diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index 835187e..6cd1cda 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -20,7 +20,7 @@ namespace Parser { ) { error(token, text, token.line, quoteTokenText); } void filter_comma_list(vector& tokens) { - if (tokens.size() >= 2 && tokens[1].toktype != tok::RPAR) { + if (tokens.size() >= 2) { for (auto iterator = tokens.begin(); iterator->toktype != tok::COMMA && iterator < tokens.end() - 1; ++iterator) { const auto nextIterator = iterator + 1; if (nextIterator->toktype == tok::COMMA) {