Nigel Tao
77f855206d
Have JSON line-comment tokens exclude the "\n"
...
Before this commit, line-comment token chains included the final "\n"
the way block-comments included the final "*/". The "\n" was mandatory.
However, when parsing with both QUIRK_ALLOW_COMMENT_LINE and
QUIRK_ALLOW_TRAILING_FILLER, input like "123//xyz" (without a "\n"
before the EOF) was rejected before and accepted after this commit.
So that line-comments are consistent, in that they either always or
never include the final "\n", they now never include the final "\n".
An input fragment (parsed with QUIRK_ALLOW_COMMENT_LINE) like
"//abc\n\t\t" was, before this commit, parsed as a 6 byte comment token
and a 2 byte other-filler token. That split is now 5+3.
2021-07-20 14:17:09 +10:00
Nigel Tao
904004e79a
Let non-strict JSON Pointer syntax allow "~t"
2020-11-15 20:56:04 +11:00
Nigel Tao
178c6422b7
Delete deprecated JSON quirks
2020-09-24 12:46:00 +10:00
Nigel Tao
cd4cbc9102
Tweak JSON trailing comment/new-line quirks
2020-09-22 23:03:49 +10:00
Nigel Tao
fa50f4de67
Add json QUIRK_ALLOW_TRAILING_COMMENT
2020-09-21 11:24:22 +10:00
Nigel Tao
2912ea8e28
Re-assign JSON quirk numbers
2020-09-21 10:30:46 +10:00
Nigel Tao
a06a89c080
Add link to previous commit (BACKSLASH_X_AS_BYTES)
2020-08-30 21:14:11 +10:00
Nigel Tao
6c13877688
Drop WUFFS_JSON__QUIRK_ALLOW_BACKSLASH_X_AS_BYTES
...
We can always add it back later if there's demand for it.
2020-08-30 16:15:35 +10:00
Nigel Tao
b3438434ca
Add json QUIRK_JSON_POINTER_ALLOW_TILDE_R_TILDE_N
2020-08-13 00:06:56 +10:00
Nigel Tao
1adbc9547f
Split std/json's QUIRK_ALLOW_BACKSLASH_X in two
2020-08-06 23:28:07 +10:00
Nigel Tao
b9afc26387
Add TOKEN__VBD__STRING__CHAIN_ETC
2020-07-03 13:36:13 +10:00
Nigel Tao
e39f3cbf42
Redo Wuffs structs' quirk bool fields
2020-04-14 23:03:18 +10:00
Nigel Tao
532e18c4a5
Add colons to const syntax
2020-04-14 14:57:30 +10:00
Nigel Tao
74871344f0
Capitalize Wuffs const names
2020-04-13 15:52:36 +10:00
Nigel Tao
df3acfbb21
Clarify std/json quirk_allow_backslash_x semantics
2020-04-08 11:08:01 +10:00
Nigel Tao
d83bd8d036
Add std/json quirk_allow_ascii_control_codes
2020-04-07 17:50:47 +10:00
Nigel Tao
6f67bbc4b2
Add std/json quirk_allow_backslash_new_line
2020-04-07 17:24:31 +10:00
Nigel Tao
2db72dabe5
Re-assign JSON quirk numbers
2020-04-07 17:17:54 +10:00
Nigel Tao
3bfed6d812
Rename std/json quirk_replace_invalid_utf_8
2020-03-24 17:44:47 +11:00
Nigel Tao
93882564fd
Rename std/json quirk_allow_final_comma
2020-03-24 14:00:21 +11:00
Nigel Tao
eb06ed77ba
Add std/json quirk_allow_comment_etc
2020-03-22 21:07:12 +11:00
Nigel Tao
83e7da0a6a
Add std/json quirk_allow_backslash_capital_u
2020-03-19 23:20:45 +11:00
Nigel Tao
a3827275c0
Add std/json quirks
2020-03-12 16:47:26 +11:00