-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
Description
Hey there,
I'm running through these tests to test my own JSON5 parser. When running against the files in this repo, I noticed several files that (expectedly) errored out, but the filenames (with .json5
) imply they should be valid.
Specifically:
- objects/reserved-unquoted-key
- misc/readme-example
Both of these files include reserved keywords as keys and are therefore invalid identifiers.
If my understanding is correct, should these should be renamed with a .txt
extension?
Thanks!
P.S. I was also curious about octals... Currently my parser accepts them as integers with a leading 0
. e.g. -0123
is -123
. The spec doesn't seem to explicitly forbid leading zeros in integers. Though, perhaps I should bring this up in the spec repo.