Skip to content

Broken highlighting with nested interpolations #18

Closed
@alex-aver

Description

@alex-aver

If you have a resource attribute with nested interpolations where you need to use quotes, the highlighting in the rest of the document breaks. It's easier to explain with examples:

The following statement breaks the highlighting:
user_data = "${file("${path.module}/text_files/ec2/user_data_scripts/ecs_app")}"

But if I removed a pair of quotes, highlighting works fine:
user_data = "${file(${path.module}/text_files/ec2/user_data_scripts/ecs_app)}"

Or, if I were to keep the quotes, but lose the ${path.module}, highlighting works fine:
user_data = "${file("text_files/ec2/user_data_scripts/ecs_app")}"

screen shot 2017-02-09 at 10 09 59 am
screen shot 2017-02-09 at 10 09 36 am
screen shot 2017-02-09 at 10 09 12 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions