hashivim / vim-terraform

basic vim/terraform integration

Home Page:http://hashivim.github.io/vim-terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Indenter overly detecting block comments inside of a heredoc

eimirae opened this issue · comments

The following terraform code:

locals {
  test = <<EOP
"This is a test /*"
"This line shouldn't be indented"
EOP
}

Will result in:

locals {
  test = <<EOP
  "This is a test /*"
   "This line shouldn't be indented"
   EOP
 }

I believe the indenter should ignore comments inside of heredocs

I expect I'd accept a merge request, I don't expect to work on this myself

(it's an edge condition that I've never encountered and don't ever expect to encounter)