Kamil Kozik
Kamil Kozik
Hello, thanks for the report I'm not able to reproduce. Does the bug still occur? If so, could you provide some piece of config that's causing it?
@grahamhar Hi, thanks for the test case. It looks like the issue is caused by incorrect definition in the [grammar file](https://github.com/amplify-education/python-hcl2/blob/main/hcl2/hcl2.lark) - we will look into this. As a workaround,...
Hey everyone. Following up on @weaversam8, we just released #169 under version 5.0.0. Furthermore, we will keep looking into supporting reconstruction of JSON/dict to HCL2 text. Thanks!
@zhcli released v4.3.5. It also allows `if` and `for_each` as identifiers. Thanks for contributing!
What do you mean by _terraform specific parser_ and _hcl specific parser_? The library uses only one parser: https://github.com/amplify-education/python-hcl2/blob/fc8805e8ee0a72e6c4db9feea711ead4391171fa/hcl2/parser.py#L10-L16 `.tf` files are written in HCL2 language.
Fixed in version 7.0.0