aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorEduardo Julian2017-10-31 22:26:59 -0400
committerEduardo Julian2017-10-31 22:26:59 -0400
commita269ea72337852e8e57bd427773baed111ad6e92 (patch)
treef4502ac003905acb378e09d6ea2c83559de96b44 /stdlib
parent19c589edc2c1dd77550e26d4f5cf78ec772da337 (diff)
- "^code" can now be used as a normal macro, when pattern-matching using the "^" macro.
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux.lux7
1 files changed, 6 insertions, 1 deletions
diff --git a/stdlib/source/lux.lux b/stdlib/source/lux.lux
index 6b68b9f29..51dff8142 100644
--- a/stdlib/source/lux.lux
+++ b/stdlib/source/lux.lux
@@ -6046,6 +6046,11 @@
(do Monad<Meta>
[pattern (untemplate-pattern template)]
(wrap (list& pattern body branches)))
-
+
+ (^ (list template))
+ (do Monad<Meta>
+ [pattern (untemplate-pattern template)]
+ (wrap (list pattern)))
+
_
(fail "Wrong syntax for ^code")))