aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/macro/template.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/macro/template.lux13
1 files changed, 7 insertions, 6 deletions
diff --git a/stdlib/source/lux/macro/template.lux b/stdlib/source/lux/macro/template.lux
index 737efe433..22d8d9251 100644
--- a/stdlib/source/lux/macro/template.lux
+++ b/stdlib/source/lux/macro/template.lux
@@ -14,10 +14,11 @@
["." rev ("#@." decimal)]
["." frac ("#@." decimal)]]
[collection
- ["." list ("#@." monad)]]]]
- ["." //
- ["." code]
- [syntax (#+ syntax:)]])
+ ["." list ("#@." monad)]]]
+ ["." meta]]
+ [//
+ [syntax (#+ syntax:)]
+ ["." code]])
(syntax: #export (splice {parts (s.tuple (p.some s.any))})
(wrap parts))
@@ -27,9 +28,9 @@
(syntax: #export (with-locals {locals (s.tuple (p.some s.local-identifier))}
body)
- (do {@ //.monad}
+ (do {@ meta.monad}
[g!locals (|> locals
- (list@map //.gensym)
+ (list@map meta.gensym)
(monad.seq @))]
(wrap (list (` (.with-expansions [(~+ (|> (list.zip2 locals g!locals)
(list@map (function (_ [name identifier])