hcl-lang
hcl-lang copied to clipboard
Enable full support of invalid object/map identifiers
Context
While the HCL/Terraform language encourages use of "valid identifiers", such as a1234, it still supports identifiers which do not comply with the same restrictions, such as 12345.
These are already correctly collected as targets and provided in contextual completion, can be hovered over and are semantically highlighted.
However, we provide slightly less helpful go-to-definition

and less helpful go-to-references

Proposal
Provide the appropriate range for targets which represent object/map entries with "invalid" names.