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

Object elements can be separated by comma or newline #563

Merged
merged 2 commits into from Jan 30, 2023

Conversation

bduggan
Copy link
Contributor

@bduggan bduggan commented Oct 30, 2022

Hi!

According to

https://developer.hashicorp.com/terraform/language/expressions/types#maps-objects

"Key/value pairs can be separated by either a comma or a line break."

But, the documentation here indicates that they may only be separated by a comma.

This is a little change to the docs to include the possibility of separating object elements by a line break.

thanks
Brian

@kmoe kmoe self-assigned this Nov 8, 2022
Copy link
Member

@kmoe kmoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if we're updating this we'd better do the same for tuples.

hclsyntax/spec.md Outdated Show resolved Hide resolved
@kmoe kmoe removed their assignment Nov 8, 2022
Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com>
@alisdair alisdair merged commit 4557953 into hashicorp:main Jan 30, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants