Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow empty quoted keys #97

Merged
merged 1 commit into from
Sep 6, 2016
Merged

Conversation

pelletier
Copy link
Owner

Allow the following:

[""]
"" = 1

Should fix #96

@pelletier pelletier merged commit 31055c2 into master Sep 6, 2016
@pelletier pelletier deleted the 96-empty-quoted-keys-allowed branch September 6, 2016 20:26
@nhooyr
Copy link

nhooyr commented Sep 6, 2016

How would tree.GetPos work with this if it thinks an empy key refers to the tree itself?

@pelletier
Copy link
Owner Author

Quoted keys are also supported by TomlTree.Get and TomlTree.GetPosition. So in order to get that value, you'd need to do tree.Get(""."")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

empty quoted keys should be allowed.
2 participants