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

Support for indentation in inline tables #920

Closed
willpinha opened this issue Sep 14, 2022 · 2 comments
Closed

Support for indentation in inline tables #920

willpinha opened this issue Sep 14, 2022 · 2 comments

Comments

@willpinha
Copy link

Is there a way to support indentation in inline tables? So instead of doing:

user = { name="abc", password = false }

We can do:

user = {
  name="abc",
  password = false
}

This is especially useful when we are dealing with many fields in the inline table.

@marzer
Copy link
Contributor

marzer commented Sep 14, 2022

Support for this was added in #904. Changelog: https://github.com/toml-lang/toml/blob/main/CHANGELOG.md

@eksortso
Copy link
Contributor

Keep in mind that, even with multi-line inline tables, indentation is ignored. What makes this work for you (once your parser supports it) are the commas and line breaks, not the indents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants