diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/documentation/lux.lux | 23 |
1 files changed, 12 insertions, 11 deletions
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 [<tag>] - [(pattern (list [_ {<tag> [module name]}])) - (in (list (` [(~ (text$ module)) (~ (text$ name))])))]) - ([#Symbol]) - - _ - (failure "Wrong syntax for symbol")))]) + [(def: .public symbol + (macro (_ tokens) + (case tokens + (^template [<tag>] + [(pattern (list [_ {<tag> [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! |