From f623de52d76ad8ec96feb048cd95a3fb150717e1 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 5 Jun 2022 01:39:29 -0400 Subject: De-sigil-ification: : [Part 1] --- stdlib/source/documentation/lux.lux | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'stdlib/source/documentation/lux.lux') diff --git a/stdlib/source/documentation/lux.lux b/stdlib/source/documentation/lux.lux index 2f5090611..59a5159b4 100644 --- a/stdlib/source/documentation/lux.lux +++ b/stdlib/source/documentation/lux.lux @@ -428,17 +428,18 @@ (-> [Code Code] (List Code)) (list left right))]) -(documentation: /.macro: +(documentation: /.macro "Macro-definition macro." - [(macro: .public (symbol tokens) - (case tokens - (^template [] - [(pattern (list [_ { [module name]}])) - (in (list (` [(~ (text$ module)) (~ (text$ name))])))]) - ([#Symbol]) - - _ - (failure "Wrong syntax for symbol")))]) + [(def: .public symbol + (macro (_ tokens) + (case tokens + (^template [] + [(pattern (list [_ { [module name]}])) + (in (list (` [(~ (text$ module)) (~ (text$ name))])))]) + ([#Symbol]) + + _ + (failure "Wrong syntax for symbol"))))]) (documentation: /.and "Short-circuiting 'and'." @@ -958,7 +959,7 @@ ..let ..function ..def: - ..macro: + ..macro ..and ..or ..panic! -- cgit v1.2.3