This fixes the following problem in Terraform Test files (which use the HCL syntax instead of the more specialized Terraform one):
The grammar treats the opening brace that is part of the template string as a block and therefore breaks the following lines (mostly treated as a string).
This PR restricts parsing blocks as it only allows block labels to contain any character if that label is enclosed by double quotes. If it isn't only \w-_ are valid characters.
This fixes the following problem in Terraform Test files (which use the HCL syntax instead of the more specialized Terraform one):
The grammar treats the opening brace that is part of the template string as a block and therefore breaks the following lines (mostly treated as a string).
This PR restricts parsing blocks as it only allows block labels to contain any character if that label is enclosed by double quotes. If it isn't only
\w-_
are valid characters.