pnathan / pp-toml

Paul's Parser for Tom's Own Minimal Language
https://github.com/mojombo/toml
Other
19 stars 3 forks source link

allow trailing newlines #17

Closed andy128k closed 8 years ago

pnathan commented 8 years ago

Hi Andy,

I can't recall at the moment: is this spec-conformant? If so, I am happy to merge in. Please advise!

andy128k commented 8 years ago

@pnathan Spec is not very strict, so I can't point you to exact definition. This commit just allows extra white spaces at the end of file. I've also modified test so you can see an issue with current parser definitions.

For now extra spaces are allowed at the beginning of a file, but not at its end. https://github.com/pnathan/pp-toml/blob/master/pp-toml.lisp#L241

pnathan commented 8 years ago

works for me.