Commit Graph

3 Commits

Author SHA1 Message Date
Paul Hinze
92237bfa68
hcl/parser: Support lists of objects
a.k.a lists of maps

Implementation was pretty straightforward - I had to tweak the `needsComma`
handling since it was stuck inside literal parsing. It happens out front
now. I also promoted the `assign_deep.hcl` parser test to a decoder
test that passes, since it was testing for an error to occur but now it
works! :)

Additionally we make ObjectLists support being comma-delimited, which
enables maps to defined inline like `{one = 1, two = 2}`.

Refs https://github.com/hashicorp/terraform/issues/7142
2016-07-06 13:01:52 -05:00
Mitchell Hashimoto
d5f339015f hcl package for hcl parsing 2014-08-02 11:41:10 -07:00
Mitchell Hashimoto
23e6ebe938 Arrays, empty structures, assignment objects accepted 2014-08-01 08:14:57 -07:00