[ply](https://github.com/dabeaz/ply) only tracks the position of tokens in the whole file (`lexpos`), but this is used incorrectly as a column number in the errors [reported by pyhcl](https://github.com/virtuald/pyhcl/blob/main/src/hcl/parser.py#L625). See this in the ply documentation: https://github.com/dabeaz/ply/blob/master/doc/ply.md#line-numbers-and-positional-information It should be possible to calculate the actual column number using `lexpos`.