fix: skip the last zero in the file

This commit is contained in:
ToruNiina 2020-09-14 16:35:51 +09:00
parent 9132abc5c4
commit 003bc16c1b

View File

@ -125,6 +125,7 @@ parse_integer(location& loc)
const auto second = std::next(first);
if(second == loc.end()) // the token is just zero.
{
loc.advance();
return ok(std::make_pair(0, region(loc, first, second)));
}