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

Comments with no space are parsed incorrectly #32

Open
JasperTimm opened this issue Jul 16, 2014 · 1 comment
Open

Comments with no space are parsed incorrectly #32

JasperTimm opened this issue Jul 16, 2014 · 1 comment

Comments

@JasperTimm
Copy link

It seems like the parser is having trouble with comments which are not followed by spaces before the next value. See below:

>> TOML.load("Host = 6")
=> {"Host"=>6}
>> TOML.load("#Host = 6")
=> {"#Host"=>6}
>> TOML.load("#\nHost = 6")
=> {"#\nHost"=>6}
>> TOML.load("#\nHost = 6")
=> {"#\nHost"=>6}
>> TOML.load("#\n Host = 6")
=> {"Host"=>6}
>> TOML.load("# \nHost = 6")
=> {"Host"=>6}
@parkr
Copy link
Collaborator

parkr commented Jul 16, 2014

Weird! @BurntSushi, do you have a test for this in toml-test?

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

No branches or pull requests

2 participants