Update valid comment characters in toml v1.1.0 #159
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
First of all, thank you for maintaining this repository and updating it so frequently. This repository is really helpful for identifying bugs in the parser/serializer and for understanding and explaining the specifications.
Recently, I noticed that some test cases are outdated in v1.1.0.
After the commit ab74958, TOML allows most control characters except for
0x00
,0x0A
,0x0B
,0x0C
, and0x0D
.Thus, although the following cases are invalid in TOML v1.0.0, they become valid after TOML v1.1.0:
comment_del.toml
:0x7f
(DEL)comment-lf.toml
:0x10
(DLE)comment-us.toml
:0x1f
(US)These characters are also included in
allowed-comment-char
defined intoml.abnf
at the current commit in toml-lang/toml.https://github.com/toml-lang/toml/blob/main/toml.abnf#L40-L43
So I removed those files from the list of invalid test cases defined in
tests/files-toml-1.1.0
.Please check it whenever you have time.
Thank you.