-
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 #617 from epage/update
fix(parser): Failed on mixed inline tables
- Loading branch information
Showing
20 changed files
with
122 additions
and
39 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
1 change: 1 addition & 0 deletions
1
crates/toml_edit/tests/fixtures/invalid/encoding/bad-codepoint.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 29 |
7 changes: 4 additions & 3 deletions
7
crates/toml_edit/tests/fixtures/invalid/float/exp-trailing-us.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
TOML parse error at line 1, column 21 | ||
TOML parse error at line 1, column 24 | ||
| | ||
1 | exp-trailing-us = 1e_23_ | ||
| ^ | ||
1 | exp-trailing-us = 1e23_ | ||
| ^ | ||
invalid floating-point number | ||
expected digit |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/float/inf-capital.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 5 | ||
| | ||
1 | v = Inf | ||
| ^ | ||
invalid string | ||
expected `"`, `'` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/float/nan-capital.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 5 | ||
| | ||
1 | v = NaN | ||
| ^ | ||
invalid string | ||
expected `"`, `'` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/float/trailing-us-exp-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 23 | ||
| | ||
1 | trailing-us-exp-1 = 1_e2 | ||
| ^ | ||
invalid integer | ||
expected digit |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/float/trailing-us-exp-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 25 | ||
| | ||
1 | trailing-us-exp-2 = 1.2_e2 | ||
| ^ | ||
invalid floating-point number | ||
expected digit, digit |
6 changes: 0 additions & 6 deletions
6
crates/toml_edit/tests/fixtures/invalid/float/trailing-us-exp.stderr
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/inline-table/bad-key-syntax.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 14 | ||
| | ||
1 | tbl = { a = 1, [b] } | ||
| ^ | ||
invalid inline table | ||
expected `}` |
5 changes: 5 additions & 0 deletions
5
crates/toml_edit/tests/fixtures/invalid/inline-table/dotted-key-conflict.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 1, column 8 | ||
| | ||
1 | tbl = { a.b = "a_b", a.b.c = "a_b_c" } | ||
| ^ | ||
dotted key `a.b` attempted to extend non-table type (string) |
5 changes: 5 additions & 0 deletions
5
crates/toml_edit/tests/fixtures/invalid/inline-table/nested_key_conflict.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 1, column 8 | ||
| | ||
1 | tbl = { fruit = { apple.color = "red" }, fruit.apple.texture = { smooth = true } } | ||
| ^ | ||
duplicate key `fruit` |
5 changes: 5 additions & 0 deletions
5
crates/toml_edit/tests/fixtures/invalid/table/append-to-array-with-dotted-keys.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 4, column 1 | ||
| | ||
4 | b.y = 2 | ||
| ^ | ||
duplicate key `y` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/table/duplicate-key-dotted-array.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 4, column 1 | ||
| | ||
4 | [[fruit.apple]] | ||
| ^ | ||
invalid table header | ||
duplicate key `apple` in table `fruit` |