diff options
author | Eduardo Julian | 2021-08-12 03:12:42 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-08-12 03:12:42 -0400 |
commit | 17629d66062b88b040a2397032f6c08361a5f3a7 (patch) | |
tree | bdc6110750b895667b9e45da5e46bec9609f9a7c /stdlib/source/library/lux/control/exception.lux | |
parent | a62ce3f9c2b605e0033f4772b0f64c4525de4d86 (diff) |
Improved binding syntax for "syntax:".
Diffstat (limited to 'stdlib/source/library/lux/control/exception.lux')
-rw-r--r-- | stdlib/source/library/lux/control/exception.lux | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/source/library/lux/control/exception.lux b/stdlib/source/library/lux/control/exception.lux index ee5fd753a..9a9e7f845 100644 --- a/stdlib/source/library/lux/control/exception.lux +++ b/stdlib/source/library/lux/control/exception.lux @@ -97,7 +97,7 @@ (<>.and (<>\in (` .private)) private) ))) -(syntax: .public (exception: {[export_policy t_vars [name inputs] body] ..exception}) +(syntax: .public (exception: [[export_policy t_vars [name inputs] body] ..exception]) {#.doc (example "Define a new exception type." "It mostly just serves as a way to tag error messages for later catching." "" @@ -153,7 +153,7 @@ (on_entry head) tail)))) -(syntax: .public (report {entries (<>.many (<code>.tuple (<>.and <code>.any <code>.any)))}) +(syntax: .public (report [entries (<>.many (<code>.tuple (<>.and <code>.any <code>.any)))]) {#.doc (example "An error report." (: Text (report ["Row 0" value/0] |