jm / toml

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

Failure at \n (newline) #24

Open lessless opened 10 years ago

lessless commented 10 years ago

Hi! This is a part of a scheme that I'm working with (

[section.subsection]
tab = false
approximate = true
cost =
currency =
leads =

and here is the error

TOML.load_file("schema.toml")
Failed to match sequence (ALL_SPACE (TABLE / TABLE_ARRAY / KEY_VALUE / COMMENT_LINE){0, } ALL_SPACE) at line 16 char 1.
`- Don't know what to do with "cost = \ncu" at line 16 char 1.

If you will not be able reproduce the error I will send an actual file

dirk commented 10 years ago

Thanks! Looking into this.

dirk commented 10 years ago

If I recall correctly aren't empty values are technically illegal?