diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/library/lux/data/text/regex.lux | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/library/lux/data/text/regex.lux b/stdlib/source/library/lux/data/text/regex.lux index a81b28c5a..795bee383 100644 --- a/stdlib/source/library/lux/data/text/regex.lux +++ b/stdlib/source/library/lux/data/text/regex.lux @@ -411,7 +411,7 @@ (-> Text (Parser Code)) (\ <>.monad map product.right (re_alternative^ #1 re_scoped^ current_module))) -(syntax: .public (regex {pattern <code>.text}) +(syntax: .public (regex [pattern <code>.text]) {#.doc (example "Create lexers using regular-expression syntax." "For example:" @@ -482,9 +482,9 @@ (in (list regex)) ))) -(syntax: .public (^regex {[pattern bindings] (<code>.form (<>.and <code>.text (<>.maybe <code>.any)))} - body - {branches (<>.many <code>.any)}) +(syntax: .public (^regex [[pattern bindings] (<code>.form (<>.and <code>.text (<>.maybe <code>.any))) + body <code>.any + branches (<>.many <code>.any)]) {#.doc (example "Allows you to test text against regular expressions." (case some_text (^regex "(\d{3})-(\d{3})-(\d{4})" |