Parser.hpp: Remove an unused closingCharacter capture
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
51b5a546c7
commit
b63bf0d480
|
@ -126,7 +126,7 @@ namespace Parser {
|
|||
if (not parseTree.empty()) {
|
||||
try {
|
||||
auto& previous = dynamic_cast<ParseTree&>(*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);
|
||||
|
|
Loading…
Reference in New Issue