diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index f7aec91..65f1350 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -91,7 +91,7 @@ namespace Parser { } const unsigned increment = 2 + isFinalDefine; const auto beginning = lexed.begin() + i + increment; - const auto end = find_if(beginning, lexed.end(), [¤t](const tok& it){ // TODO Find another way of choosing the tokens to parse + const auto end = find_if(beginning, lexed.end(), [¤t](const tok& it){ return it.toktype == SEMICOLON || it.line != current.line; }); parseTree << Define(isFinalDefine, current.toktext, parse(beginning, end));