hashicorp / vscode-hcl

HCL (HashiCorp Configuration Language) Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=HashiCorp.HCL
Mozilla Public License 2.0
44 stars 9 forks source link

Invalid syntax highlighting in single-line block in 0.5.0 #303

Open nickmasster opened 3 months ago

nickmasster commented 3 months ago

Hi :wave:

Using extension for HCL syntax highlighting in Terragrunt and Terraform configurations.

After upgrading to version 0.5.0, single-line blocks appear broken. See screenshots:

Version 0.4.0 Screenshot 2024-05-23 at 20 02 36

Version 0.5.0 Screenshot 2024-05-23 at 20 01 41

When using latest version of HashiCorp Terraform extension for syntax highlighting everything seems ok. But looks like it didn't get the fix for https://github.com/hashicorp/syntax/pull/120 yet.

jpogran commented 1 month ago

Hi @nickmasster, thanks for raising this. Terragrunt files are a separate product, so you will have to look to that product for specific syntax support. The vscode-hcl extension can provide syntax highlighting for any HCL compliant file, but product specific features like Terragrunt require specific support by those products.

I'll double check that this extension is inline with the Terraform one.