jm / toml

Parse TOML. Like a bawss.
MIT License
151 stars 38 forks source link

Add a test for empty strings #10

Closed samsonjs closed 11 years ago

samsonjs commented 11 years ago

Empty strings are currently parsed as arrays. I only wrote the test because I'm unsure of how to fix it.

It appears that the empty string is being parsed as a key. The following rule gets a subtree v that is {string: []}: https://github.com/jm/toml/blob/fced48ec1b30daa3b89032f005d8e125d5c75950/lib/toml/transformer.rb#L79-L81

dirk commented 11 years ago

Thanks for submitting this! Looking into it now.