-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #460 from epage/compliance
fix(parser): Allow appending to dotted table
- Loading branch information
Showing
28 changed files
with
127 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
crates/toml_edit/tests/fixtures/invalid/encoding/bad-utf8-in-multiline-literal.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
invalid utf-8 sequence of 1 bytes from index 66 |
1 change: 1 addition & 0 deletions
1
crates/toml_edit/tests/fixtures/invalid/encoding/bad-utf8-in-multiline.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
invalid utf-8 sequence of 1 bytes from index 66 |
1 change: 1 addition & 0 deletions
1
crates/toml_edit/tests/fixtures/invalid/encoding/bad-utf8-in-string-literal.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
invalid utf-8 sequence of 1 bytes from index 64 |
5 changes: 5 additions & 0 deletions
5
crates/toml_edit/tests/fixtures/invalid/spec/inline-table-2-0.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TOML parse error at line 3, column 1 | ||
| | ||
3 | type.edible = false # INVALID | ||
| ^ | ||
dotted key `type` attempted to extend non-table type (inline table) |
5 changes: 5 additions & 0 deletions
5
crates/toml_edit/tests/fixtures/invalid/spec/inline-table-3-0.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TOML parse error at line 3, column 1 | ||
| | ||
3 | type = { edible = false } # INVALID | ||
| ^ | ||
duplicate key `type` in table `product` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/spec/key-value-pair-1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 7 | ||
| | ||
1 | key = # INVALID | ||
| ^ | ||
invalid string | ||
expected `"`, `'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TOML parse error at line 1, column 1 | ||
| | ||
1 | = "no key name" # INVALID | ||
| ^ | ||
invalid key |
5 changes: 5 additions & 0 deletions
5
crates/toml_edit/tests/fixtures/invalid/spec/string-4-0.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TOML parse error at line 2, column 46 | ||
| | ||
2 | str5 = """Here are three quotation marks: """.""" # INVALID | ||
| ^ | ||
expected newline, `#` |
5 changes: 5 additions & 0 deletions
5
crates/toml_edit/tests/fixtures/invalid/spec/string-7-0.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TOML parse error at line 3, column 48 | ||
| | ||
3 | apos15 = '''Here are fifteen apostrophes: '''''''''''''''''' # INVALID | ||
| ^ | ||
expected newline, `#` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/spec/table-9-0.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 5, column 1 | ||
| | ||
5 | [fruit.apple] # INVALID | ||
| ^ | ||
invalid table header | ||
duplicate key `apple` in table `fruit` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/spec/table-9-1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 6, column 1 | ||
| | ||
6 | [fruit.apple.taste] # INVALID | ||
| ^ | ||
invalid table header | ||
duplicate key `taste` in table `fruit.apple` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/string/bad-hex-esc-1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 20 | ||
| | ||
1 | bad-hex-esc-1 = "\x0g" | ||
| ^ | ||
invalid escape sequence | ||
expected `b`, `f`, `n`, `r`, `t`, `u`, `U`, `\`, `"` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/string/bad-hex-esc-2.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 20 | ||
| | ||
1 | bad-hex-esc-2 = "\xG0" | ||
| ^ | ||
invalid escape sequence | ||
expected `b`, `f`, `n`, `r`, `t`, `u`, `U`, `\`, `"` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/string/bad-hex-esc-3.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 20 | ||
| | ||
1 | bad-hex-esc-3 = "\x" | ||
| ^ | ||
invalid escape sequence | ||
expected `b`, `f`, `n`, `r`, `t`, `u`, `U`, `\`, `"` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/string/bad-hex-esc-4.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 20 | ||
| | ||
1 | bad-hex-esc-4 = "\x 50" | ||
| ^ | ||
invalid escape sequence | ||
expected `b`, `f`, `n`, `r`, `t`, `u`, `U`, `\`, `"` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/string/bad-hex-esc-5.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 20 | ||
| | ||
1 | bad-hex-esc-5 = "\x 50" | ||
| ^ | ||
invalid escape sequence | ||
expected `b`, `f`, `n`, `r`, `t`, `u`, `U`, `\`, `"` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/string/bad-hex-esc.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 20 | ||
| | ||
1 | bad-hex-esc-1 = "\x0g" | ||
| ^ | ||
invalid escape sequence | ||
expected `b`, `f`, `n`, `r`, `t`, `u`, `U`, `\`, `"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters