cmur2 / language-terraform

Terraform.io support for Atom
MIT License
49 stars 32 forks source link

Nested Interpolations break the syntax highlighting #9

Closed j0nesin closed 8 years ago

j0nesin commented 8 years ago

Terraform 0.6.7 release changes the way template files are referenced to typically follow this pattern with nested interpolations.

template = "${file("${path.module}/filename.tpl")}"

The syntax highlighting loses sync as it associates the internal closing bracket with the external opening bracked causing the remainder of the file to by highlighted incorrectly.

Thanks for the plugin.

crumley commented 8 years ago

:+1:

josh-padnick commented 8 years ago

Ran into this exact issue.

Formats correctly but fails to run with Terraform: screenshot 2016-01-12 11 24 55

Formats incorrectly but runs successfully with Terraform: screenshot 2016-01-12 11 24 16

Notice how an inner set of quotes is required, but then the plugin stops formatting comments correctly.

stvnwrgs commented 8 years ago

+1

GiantToast commented 8 years ago

Should be fixed in the new release. Thanks @johnrengelman for the pull request.