aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/poly
diff options
context:
space:
mode:
authorEduardo Julian2021-08-12 03:12:42 -0400
committerEduardo Julian2021-08-12 03:12:42 -0400
commit17629d66062b88b040a2397032f6c08361a5f3a7 (patch)
treebdc6110750b895667b9e45da5e46bec9609f9a7c /stdlib/source/poly
parenta62ce3f9c2b605e0033f4772b0f64c4525de4d86 (diff)
Improved binding syntax for "syntax:".
Diffstat (limited to 'stdlib/source/poly')
-rw-r--r--stdlib/source/poly/lux/data/format/json.lux5
1 files changed, 3 insertions, 2 deletions
diff --git a/stdlib/source/poly/lux/data/format/json.lux b/stdlib/source/poly/lux/data/format/json.lux
index 5b48aa34b..3146804e5 100644
--- a/stdlib/source/poly/lux/data/format/json.lux
+++ b/stdlib/source/poly/lux/data/format/json.lux
@@ -9,8 +9,9 @@
[control
["." try]
["<>" parser
+ ["</>" json]
["<.>" type]
- ["</>" json]]]
+ ["<.>" code]]]
[data
["." text
["%" format (#+ format)]]
@@ -321,7 +322,7 @@
(<>.failure (format "Cannot create JSON decoder for: " (type.format inputT)))
))))
-(syntax: .public (codec inputT)
+(syntax: .public (codec [inputT <code>.any])
{#.doc (example "A macro for automatically producing JSON codecs."
(type: Variant
(#Bit Bit)