From 6cf980ea713906621d28baf847ce7dbdd0d003f9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 20:07:09 -0400 Subject: Add `continue` and `break` as aliases for `skip`/`stop`, also improve keyword detection using a binary search --- src/compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compile.c') diff --git a/src/compile.c b/src/compile.c index 0b7f19f5..aaf41166 100644 --- a/src/compile.c +++ b/src/compile.c @@ -1338,7 +1338,7 @@ static CORD _compile_statement(env_t *env, ast_t *ast) } } if (env->loop_ctx) - code_err(ast, "This 'skip' is not inside any loop"); + code_err(ast, "This is not inside any loop"); else if (target) code_err(ast, "No loop target named '", target, "' was found"); else @@ -1367,7 +1367,7 @@ static CORD _compile_statement(env_t *env, ast_t *ast) } } if (env->loop_ctx) - code_err(ast, "This 'stop' is not inside any loop"); + code_err(ast, "This is not inside any loop"); else if (target) code_err(ast, "No loop target named '", target, "' was found"); else -- cgit v1.2.3