Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hclwrite: Fix a bug that Block.open/close positions were not recorded…
… in parser While implementing Block.SetLabels(), I found a new hclwrite parser bug. The NewBlock() method records positions of TokenOBrace / TokenCBrace. Nevertheless when generating blocks via hclwrite.ParseConfig(), they were not recorded. The position of TokenOBrace is needed for Block.SetLabels(), so I also fixed this existing bug.
- Loading branch information