Files
rose-ash/lib/hyperscript
giles ac4e9ac96e
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 34s
HS: fix bare repeat — don't consume command keyword as count expression
parse-repeat-cmd fallback called parse-expr on the next token, which
parse-atom would consume any keyword as (ref val). For bare `repeat`
followed by a command like `set`, this ate the `set` token so the loop
body started from the wrong position.

Fix: only attempt to parse a count expression when the next token is
a number, ident, or paren-open — the types that can form a numeric
count. Any keyword (set, put, if, end, …) means bare repeat-forever.

Fixes "repeat forever works w/o keyword" (+1 test).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-05 11:30:11 +00:00
..