+
Skip to content

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

@BernH4

Description

@BernH4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载