hcl-emacs / hcl-mode

Emacs major mode of HCL(Hashicorp Configuration Language)
GNU General Public License v3.0
27 stars 9 forks source link

String interpolation breaks syntax highlighting #8

Open Fuco1 opened 1 year ago

Fuco1 commented 1 year ago

(copied from terraform-mode https://github.com/emacsorphanage/terraform-mode/issues/9)

Satements such as

resource "aws_iam_role_policy" "ecs_service_role_policy" {
  policy   = "${file("${path.module}/policies/ecs-service-role-policy.json")}"
}

breaks the syntax highlighting. It is valid HSL statements. I find the not escaping double quotes in double quotes quite strange, but to my understanding that's how it is intended.