Terraform.tmLanguage
Terraform.tmLanguage copied to clipboard
IAM policy with */ treated as commend block
Hi,
In ST3 when I have a IAM policy with "/*", plugin treated this as comment:
For example, in Visual Studio its workings good:
Can you fix it ? I love ST3 and Your plugin, but this bug is very annoying. ;(
I fixed this by doing a manual install of the plugin via cloning the repo (see instructions on readme) and commenting out lines 170-178 of Terraform.sublime-syntax. Not submitting a PR because this is a quick hack to fix it enough to suit my needs. I have many IAM s3 policies and I don't use block comments, but others might.
I’d be happy to take this on if someone could give me some guidance. I’m sure the Java syntax handles this problem, I just don’t know where to look.
I'm also seeing broken syntax inside of jsonencode()
with the variable expansion syntax ("${}"
).
I found a workaround for this. Remove the quotes from all of the keys and use = instead of :