pulumi/pkg/codegen/hcl2/syntax
Pat Gavlin 6bd81de8aa
[hcl2] Fix tokens and printing for TraverseIndex. (#4536)
The tokens that make up the "key" portion of an index traversal
(e.g. `"foo"` in `a["foo"]`) are structured like those that make up a
block label: an open quote token, a string literal token, and a close
quote token. The token mapper did not account for that fact, and instead
recorded the key token as the open quote. These changes correct that
error, and adjust the code in `literalText` to allow for
properly-escaped and quoted strings where necessary.
2020-04-30 13:44:32 -07:00
..
testdata Fix various printing issues. (#4378) 2020-04-13 19:11:56 -07:00
comments.go [hcl2] Fix tokens and printing for TraverseIndex. (#4536) 2020-04-30 13:44:32 -07:00
comments_test.go Fix various printing issues. (#4378) 2020-04-13 19:11:56 -07:00
parser.go Updates to the HCL2 syntax helpers. (#4282) 2020-04-02 20:01:14 -07:00
tokens.go [hcl2] Fix tokens and printing for TraverseIndex. (#4536) 2020-04-30 13:44:32 -07:00
utilities.go Add an HCL2 static typechecker and semantic model. (#4087) 2020-03-18 09:28:57 -07:00