Skip to content

Terraform lexer does not support HCL heredoc syntax #1909

@offbyone

Description

@offbyone

I am using pygments 2.10.0 to highlight a terraform config containing this:

resource "local_file" "tf_ansible_vars_file_new" {
  content  = <<-DOC
    # Ansible vars_file containing variable values from Terraform.
    # Generated by Terraform mgmt configuration.

    iot_credential_provider_endpoint: ${data.aws_iot_endpoint.credentials.endpoint_address}
    iot_credential_role_alias: ${aws_iot_role_alias.cert-dns.alias}
    DOC
  filename = "./vars/tf_ansible_vars_file.yml"
}

What I get out of it is the attached image.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lexingarea: changes to individual lexersgood first issueGood for newcomershelp wantedCommunity help appreciated!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions