summaryrefslogtreecommitdiff
path: root/hclsyntax/spec.md
AgeCommit message (Collapse)Author
2024-02-09Typo fix in spec.mdElliot Bonneville
2023-01-30Merge pull request #563 from bduggan/patch-2Alisdair McDiarmid
Object elements can be separated by comma or newline
2023-01-30Merge branch 'main' into mainAlisdair McDiarmid
2023-01-30Merge pull request #550 from ascopes/patch-1Alisdair McDiarmid
Update spec.md to avoid suggesting ! is a binary operator
2022-11-08Update hclsyntax/spec.mdBrian Duggan
Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com>
2022-10-30Object elements can be separated by comma or newlineBrian Duggan
2022-10-27Fix documentation typoBrian Duggan
"within within" should be "within"
2022-10-13Fix typos in hclsyntax/spec.mdAntun Maldini
2022-08-28Update spec.md to avoid suggesting ! is a binary operatorAshley Scopes
The current spec appears to suggest that the bang is a binary operator, which would enable expressions such as `foo ! bar`. https://github.com/hashicorp/hcl/blob/main/hclsyntax/parser.go#L1070 seems to suggest this is only a unary operator.
2021-08-16Merge pull request #452 from ahgittin/patch-1Radek Simko
Update spec.md
2021-08-13hclsyntax: Fix typoLe Li
2021-06-24hclsyntax: Fix incorrect examples of object expressions in the specMartin Atkins
In the text talking about how to resolve the ambiguity between "for" expressions and values/keys called "for" there was previously an incorrect statement about the behavior of "(for)" as an object key. That situation causes HCL to take the value of a variable named "for". To get the literal string "for" we must instead write the name in quotes, similarly to how we'd represent a key string that includes characters which HCL doesn't admit into an identifier.
2021-03-07Update spec.mdAlex Heneveld
Fix inconsistent vars
2020-03-05hclsyntax: Correct spec to allow colons as object element delimiterMartin Atkins
To allow easir adaptation of data already serialized as JSON, HCL native syntax allows both equals signs _and_ colons for object constructors. This was already implemented, but not reflected in the pseudo-BNF in the specification.
2019-10-01hclsyntax: Include legacy index syntax in the specificationMartin Atkins
2019-10-01hclsyntax: Correct specification of the interpretation of tabsMartin Atkins
This changed during development as we iterated on the prototype, but the spec is lagging behind.
2019-09-09Unfold the "hcl" directory up into the rootMartin Atkins
The main HCL package is more visible this way, and so it's easier than having to pick it out from dozens of other package directories.