Skip to content

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

@dbanck

Description

@dbanck

Originally reported in hashicorp/vscode-terraform#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions