HS: keyword-as-ref fallback + list innerHTML join
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 20s

- parse-atom: unrecognized keywords (e.g. index) fall back to ref,
  fixing 'set index to N' parse failure
- hs-set-inner-html!: join list values as "" so 'put [A,C] into el'
  concatenates strings not [object Object]

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-27 03:07:36 +00:00
parent eeb4e48230
commit 83cb75a87b
4 changed files with 10 additions and 2 deletions

View File

@@ -429,6 +429,8 @@
(let
((name val) (args (parse-call-args)))
(cons (quote call) (cons (list (quote ref) name) args)))))
((= typ "keyword")
(do (adv!) (list (quote ref) val)))
(true nil)))))
(define
parse-poss

View File

@@ -311,7 +311,9 @@
hs-set-inner-html!
(fn
(target value)
(do (dom-set-inner-html target value) (hs-boot-subtree! target))))
(let
((str-val (if (list? value) (join "" (map (fn (x) (str x)) value)) value)))
(do (dom-set-inner-html target str-val) (hs-boot-subtree! target)))))
(define
hs-put!
(fn

View File

@@ -429,6 +429,8 @@
(let
((name val) (args (parse-call-args)))
(cons (quote call) (cons (list (quote ref) name) args)))))
((= typ "keyword")
(do (adv!) (list (quote ref) val)))
(true nil)))))
(define
parse-poss

View File

@@ -311,7 +311,9 @@
hs-set-inner-html!
(fn
(target value)
(do (dom-set-inner-html target value) (hs-boot-subtree! target))))
(let
((str-val (if (list? value) (join "" (map (fn (x) (str x)) value)) value)))
(do (dom-set-inner-html target str-val) (hs-boot-subtree! target)))))
(define
hs-put!
(fn