syntax icon indicating copy to clipboard operation
syntax copied to clipboard

Wrong highlighting for function that splits over multiple lines inside a string

Open dbanck opened this issue 1 year ago • 0 comments

Originally reported in https://github.com/hashicorp/vscode-terraform/issues/1756

Example

locals {
  list = [
    "1", "2", "3"
  ]
  function = [
    for i in local.list : "Out: ${join("-", [i, "join"]
    )}" if i != "2"
  ]
}

output "test" {
  value = local.function
}

Screenshot 2024-05-15 at 2 05 22 PM

It breaks some time after the 0.4.2 release

dbanck avatar May 21 '24 12:05 dbanck