Skip to content

Commit

Permalink
Merge pull request hashicorp#563 from bduggan/patch-2
Browse files Browse the repository at this point in the history
Object elements can be separated by comma or newline
  • Loading branch information
alisdair committed Jan 30, 2023
2 parents 2ffdbcf + 1029fd5 commit 4557953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hclsyntax/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ collection value.
```ebnf
CollectionValue = tuple | object;
tuple = "[" (
(Expression ("," Expression)* ","?)?
(Expression (("," | Newline) Expression)* ","?)?
) "]";
object = "{" (
(objectelem ("," objectelem)* ","?)?
(objectelem (( "," | Newline) objectelem)* ","?)?
) "}";
objectelem = (Identifier | Expression) ("=" | ":") Expression;
```
Expand Down

0 comments on commit 4557953

Please sign in to comment.