process_hs_val replaces newlines with `then` to give the HS parser a statement separator, but `else then` and `catch foo then` are syntax errors — `else` and `catch <name>` already open new blocks. Strip the inserted `then` after them so multi-line if/try parses cleanly. No net pass-count delta on smoke-tested suites (the if-with-window-state tests fail for a separate reason: window setups all run before any click rather than being interleaved with state changes), but the source now parses correctly and matches what upstream HS sees. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
574 KiB
574 KiB