From bb515636ff7b6ca429abec8598f6f5d9611bc7c7 Mon Sep 17 00:00:00 2001 From: zawz Date: Fri, 11 Jun 2021 14:27:59 +0200 Subject: [PATCH] improve some error messages --- src/parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.cpp b/src/parse.cpp index 44a1cd9..92e070d 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -1473,7 +1473,7 @@ std::pair parse_for(parse_context ctx) // end of arg list if(!is_in(ctx[ctx.i], "\n;#")) { - parse_error( unexpected_token(ctx[ctx.i])+", expecting '\\n' or ';'", ctx ); + parse_error( unexpected_token(ctx[ctx.i])+", expecting newline, ';' or 'in'", ctx ); while(!is_in(ctx[ctx.i], "\n;#")) ctx.i++; }