hashivim / vim-terraform

basic vim/terraform integration
http://hashivim.github.io/vim-terraform
ISC License
1.07k stars 111 forks source link

Indenter overly detecting block comments inside of a heredoc #183

Open eimirae opened 1 year ago

eimirae commented 1 year ago

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

dimbleby commented 1 year ago

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)