diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index f3b09ee..a129bc8 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -63,7 +63,7 @@ namespace Parser { } case LPAR: case LBRACE: case LBRACKET: { const auto inverseCharacter = tok::inverseLCharacter(current.toktype); - const auto closingCharacter = find_if(lexed.cbegin(), lexed.cend(), [&inverseCharacter](const tok& it){ + const auto closingCharacter = find_if(lexed.cbegin() + i, lexed.cend(), [&inverseCharacter](const tok& it){ return it.toktype == inverseCharacter; }); if (closingCharacter != lexed.cend()) {