diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index dc4e35c..69ac05e 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -33,7 +33,7 @@ namespace Parser { }; for (;i < lexed.size(); ++i) { const bool hasNext = (i + 1) < lexed.size(); - const tok& current = lexed[i], next = hasNext ? lexed[i + 1] : tok(UNEXPECTED); + const tok& current = lexed[i], next = hasNext ? lexed[i + 1] : tok(UNEXPECTED, current.line); switch (current.toktype) { case STRING: parseTree << types::String(current.toktext.data()); break;