diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 20:07:09 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 20:07:09 -0400 |
| commit | 6cf980ea713906621d28baf847ce7dbdd0d003f9 (patch) | |
| tree | 7cb0fb5f55213d4a6594e1999ef37ea2b2c85ede /src/compile.c | |
| parent | 1d2e55f53dfab5153dbfd0c03f28cd9daedb3b77 (diff) | |
Add `continue` and `break` as aliases for `skip`/`stop`, also improve
keyword detection using a binary search
Diffstat (limited to 'src/compile.c')
| -rw-r--r-- | src/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
