jm / toml

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

Parser fails when config contains array of tables with literal strings #75

Open BernH4 opened 1 year ago

BernH4 commented 1 year ago

Hello.

Following minimal file fails to parse:

[[test]]
foo = 'bar'
irb(main):017:0> TOML.load_file("test.toml")
/home/bs/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/parslet-2.0.0/lib/parslet/cause.rb:70:in `raise': Failed to match sequence (ALL_SPACE (COMMENT_LINE / TABLE / TABLE_ARRAY / KEY_VALUE){0, } ALL_SPACE) at line 2 char 1. (Parslet::ParseFailed)

When i quote bar with double quotes it works. I want to use single quotes because i need literal strings (no escaping). Im using Version 0.3.0.