aboutsummaryrefslogtreecommitdiffstats
path: root/parser.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'parser.hpp')
-rw-r--r--parser.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser.hpp b/parser.hpp
index 2aee82a..588315d 100644
--- a/parser.hpp
+++ b/parser.hpp
@@ -27,6 +27,8 @@ public:
ParseStatus parse(State& state, std::string_view& str) {
const auto end = str.find_first_of(" \t\n\r");
const auto sub = str.substr(0, end);
+ if (sub.empty())
+ return ParseStatus::Finished;
if (state.pass != Pass::None) {
switch (state.pass) {