Skip to content

Commit

Permalink
Compile the inner vectors within ambig case forms
Browse files Browse the repository at this point in the history
  • Loading branch information
onionpancakes committed Apr 4, 2024
1 parent 8902991 commit 14540c5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/dev/onionpancakes/chassis/compiler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -523,14 +523,16 @@
[`(let [~attrs-sym ~attrs]
(if (c/attrs? ~attrs-sym)
(c/->OpeningTag ~metadata ~tag ~head-id ~head-class ~attrs-sym)
[~(c/->OpeningTag metadata tag head-id head-class nil)
~attrs-sym
~(c/->ClosingTag metadata tag)]))]
(compile
[~(c/->OpeningTag metadata tag head-id head-class nil)
~attrs-sym
~(c/->ClosingTag metadata tag)])))]
[`(let [~attrs-sym ~attrs]
(if (c/attrs? ~attrs-sym)
(c/->OpeningTag ~metadata ~tag ~head-id ~head-class ~attrs-sym)
[~(c/->OpeningTag metadata tag head-id head-class nil)
~attrs-sym]))
(compile
[~(c/->OpeningTag metadata tag head-id head-class nil)
~attrs-sym])))
(c/content-subvec elem 2)
(c/->ClosingTag metadata tag)])))

Expand Down

0 comments on commit 14540c5

Please sign in to comment.