Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion json/_json_print.pony
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ primitive _JsonPrint
"""
var buf = consume buf'

match d
match \exhaustive\ d
| let x: Bool => buf.append(x.string())
| let x: None => buf.append("null")
| let x: String =>
Expand Down
6 changes: 3 additions & 3 deletions json/json_doc.pony
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class JsonDoc
Raise error on invalid or missing value.
"""
_dump_whitespace()
match _peek_char(context)?
match \exhaustive\ _peek_char(context)?
| let c: U8 if (c >= 'a') and (c <= 'z') => _parse_keyword()?
| let c: U8 if (c >= '0') and (c <= '9') => _parse_number()?
| '-' => _parse_number()?
Expand Down Expand Up @@ -350,7 +350,7 @@ class JsonDoc

while i < 4 do
let d =
match _get_char("Unicode escape sequence")?
match \exhaustive\ _get_char("Unicode escape sequence")?
| let c: U8 if (c >= '0') and (c <= '9') => c - '0'
| let c: U8 if (c >= 'a') and (c <= 'f') => (c - 'a') + 10
| let c: U8 if (c >= 'A') and (c <= 'F') => (c - 'A') + 10
Expand Down Expand Up @@ -401,7 +401,7 @@ class JsonDoc
// EOF found, is that OK?
_last_index = -1

match eof_context
match \exhaustive\ eof_context
| None => return 0 // EOF is allowed
| let context: String =>
// EOF not allowed
Expand Down