rouge icon indicating copy to clipboard operation
rouge copied to clipboard

Terraform: $${ are highlighted as error

Open Sayrus opened this issue 1 year ago • 0 comments

Name of the lexer Terraform

Code sample A sample of the code that produces the bug.

locals {
  demo_dollars = "$${local.demo}"
}

Demo link

image

Additional context This syntax allows escape the literal sequence ${ for later use in templatestring or to pass the raw value somewhere else. https://developer.hashicorp.com/terraform/language/expressions/strings#string-templates

This should be rendered as a string as there is no variable interpolation done there. image

Sayrus avatar Aug 21 '24 11:08 Sayrus