From b63bf0d480ca8edd9fb9eb4c328ba6c235678b3b Mon Sep 17 00:00:00 2001 From: Username404 Date: Sun, 24 Apr 2022 01:09:17 +0200 Subject: [PATCH] Parser.hpp: Remove an unused closingCharacter capture Signed-off-by: Username404 --- src/headers/parsing/Parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index 6cd1cda..16f1654 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -126,7 +126,7 @@ namespace Parser { if (not parseTree.empty()) { try { auto& previous = dynamic_cast(*parseTree.at(parseTree.size() - 1)); - if (find_if(reverse_iterator(lexed.begin() + i), lexed.rend(), [&closingCharacter](const tok& token){ + if (find_if(reverse_iterator(lexed.begin() + i), lexed.rend(), [](const tok& token){ return token.toktype != SEMICOLON; })->toktype != *closingCharacter) { previous = parse(subTokens);