forked from pelletier/go-toml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix key parsing in line tables (pelletier#311)
A bug was reported that indicated that inline tables did not fully support bare keys: $ echo 'foo = { -bar => "buz"}' | ./tomljson (1, 9): unexpected token type in inline table: Error $ echo 'foo = { "whatever" = "buz"}' | ./tomljson (1, 10): unexpected token type in inline table: String echo 'foo = { _no = "buz"}' | ./tomljson (1, 9): unexpected token type in inline table: Error This change makes a couple of tweaks to to allow for all key variants in inline tables Fixes: pelletier#282
- Loading branch information
1 parent
e87c92d
commit bef0f57
Showing
4 changed files
with
96 additions
and
7 deletions.
There are no files selected for viewing
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