From 7480c0f9c9d28e2eebbe460c2f4cfdf65c026d26 Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 26 Apr 2026 18:03:48 +0000 Subject: [PATCH] HS: restore hs-id= after merge (compiler dispatch + runtime def) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lost when resolving E37 reformat conflicts — re-added: - hs-id= function in runtime.sx (JS === for elements, = for scalars) - hs-id= dispatch in compiler.sx (after = clause) Parser already uses hs-id= for != operator (unchanged). --- lib/hyperscript/compiler.sx | 5 +++++ shared/static/wasm/sx/hs-compiler.sx | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lib/hyperscript/compiler.sx b/lib/hyperscript/compiler.sx index 2df6752b..43607567 100644 --- a/lib/hyperscript/compiler.sx +++ b/lib/hyperscript/compiler.sx @@ -1151,6 +1151,11 @@ (quote =) (hs-to-sx (nth ast 1)) (hs-to-sx (nth ast 2)))) + ((= head (quote hs-id=)) + (list + (quote hs-id=) + (hs-to-sx (nth ast 1)) + (hs-to-sx (nth ast 2)))) ((= head (quote +)) (list (quote hs-add) diff --git a/shared/static/wasm/sx/hs-compiler.sx b/shared/static/wasm/sx/hs-compiler.sx index 2df6752b..43607567 100644 --- a/shared/static/wasm/sx/hs-compiler.sx +++ b/shared/static/wasm/sx/hs-compiler.sx @@ -1151,6 +1151,11 @@ (quote =) (hs-to-sx (nth ast 1)) (hs-to-sx (nth ast 2)))) + ((= head (quote hs-id=)) + (list + (quote hs-id=) + (hs-to-sx (nth ast 1)) + (hs-to-sx (nth ast 2)))) ((= head (quote +)) (list (quote hs-add)