diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/macro/template.lux | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/source/lux/macro/template.lux b/stdlib/source/lux/macro/template.lux index 5c163aabd..ef4332a45 100644 --- a/stdlib/source/lux/macro/template.lux +++ b/stdlib/source/lux/macro/template.lux @@ -22,6 +22,9 @@ (syntax: #export (splice {parts (s.tuple (p.some s.any))}) (wrap parts)) +(syntax: #export (count {parts (s.tuple (p.some s.any))}) + (wrap (list (code.nat (list.size parts))))) + (syntax: #export (with-locals {locals (s.tuple (p.some s.local-identifier))} body) (do @ |