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

Incomplete inline tables should say either key or } is needed #296

Closed
epage opened this issue Jan 10, 2022 · 1 comment · Fixed by #436
Closed

Incomplete inline tables should say either key or } is needed #296

epage opened this issue Jan 10, 2022 · 1 comment · Fixed by #436
Labels
A-error Area: Error reporting A-parse Area: Parsing TOML C-bug Category: Things not working as expected

Comments

@epage
Copy link
Member

epage commented Jan 10, 2022

Cargo has a test case with a multi-line inline table. The error message is

  TOML parse error at line 8, column 27
    |
  8 |                 native = {
    |                           ^
  Unexpected `
  `
  Expected `key`

A } is also expected.

See rust-lang/cargo#10086

@epage epage added the C-bug Category: Things not working as expected label Jan 10, 2022
@epage
Copy link
Member Author

epage commented Jan 10, 2022

Related case: have some key-value pairs before the line line

@epage epage added A-parse Area: Parsing TOML A-error Area: Error reporting labels Sep 23, 2022
epage added a commit to epage/toml_edit that referenced this issue Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-error Area: Error reporting A-parse Area: Parsing TOML C-bug Category: Things not working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant