Highlighting seems to only work with this syntax:
os_profile_linux_config {
ssh_keys {
path = "/home/${var.admin_user}/.ssh/authorized_keys"
key_data = "${var.vm_ssh_key}"
}
disable_password_authentication = true
}
Though this is valid syntax for terraform as well and breaks the highlighting:
os_profile_linux_config {
ssh_keys = {
path = "/home/${var.admin_user}/.ssh/authorized_keys"
key_data = "${var.vm_ssh_key}"
}
disable_password_authentication = true
}


The screenshots looks like the language might be set to HCL instead of Terraform.
*.tf files by default.In your screenshot, the colorization of references, like var.admin_user, are colored in two different colors.
${} has the same theme selector: "entity.other.attribute-name".${} as "storage.modifier.hcl"${} are defined as "entity.name.type.hcl"Here's a quick comparison of a syntax highlighting between the two


Version 2.0+ of the extension handles both of those cases correctly, so I'm going to close this. Thanks!
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the context necessary to investigate further.
Most helpful comment
The screenshots looks like the language might be set to HCL instead of Terraform.
*.tffiles by default.In your screenshot, the colorization of references, like
var.admin_user, are colored in two different colors.${}has the same theme selector: "entity.other.attribute-name".${}as "storage.modifier.hcl"${}are defined as "entity.name.type.hcl"Here's a quick comparison of a syntax highlighting between the two
Terraform Language Extension
HCL Language Extension