summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 9061e12..71936ba 100644
--- a/parse.c
+++ b/parse.c
@@ -723,6 +723,7 @@ static bool parse_expr(Parser *p, Expression *e, Token *end) {
default:
unrecognized:
tokr_err(t, "Unrecognized expression.");
+ t->token = end + 1;
return false;
}
t->token = end;
@@ -1282,7 +1283,6 @@ static bool parse_expr(Parser *p, Expression *e, Token *end) {
return true;
}
tokr_err(t, "Unrecognized expression.");
- t->token = end + 1;
return false;
}
}