Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indenter overly detecting block comments inside of a heredoc #183

Open
eimirae opened this issue Jul 24, 2023 · 1 comment
Open

Indenter overly detecting block comments inside of a heredoc #183

eimirae opened this issue Jul 24, 2023 · 1 comment

Comments

@eimirae
Copy link

eimirae commented Jul 24, 2023

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
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants