Add json QUIRK_ALLOW_TRAILING_COMMENT

This commit is contained in:
Nigel Tao committed 2020-09-21 11:24:22 +10:00
1 parent 2912ea8e28
commit fa50f4de67
6 files changed
+160 -13

No files matched your search

+1
View File
@@ -240,6 +240,7 @@ void set_quirks(wuffs_json__decoder* dec, uint64_t hash_44_bits) {
WUFFS_JSON__QUIRK_ALLOW_INF_NAN_NUMBERS,
WUFFS_JSON__QUIRK_ALLOW_LEADING_ASCII_RECORD_SEPARATOR,
WUFFS_JSON__QUIRK_ALLOW_LEADING_UNICODE_BYTE_ORDER_MARK,
WUFFS_JSON__QUIRK_ALLOW_TRAILING_COMMENT,
WUFFS_JSON__QUIRK_ALLOW_TRAILING_NEW_LINE,
WUFFS_JSON__QUIRK_REPLACE_INVALID_UNICODE,
0,