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

Clarify in documentation that "#" is or is not a valid "inline comment" token #602

Open
danekantner opened this issue Mar 28, 2023 · 0 comments

Comments

@danekantner
Copy link

HCL specs indicate # is a "line comment" and declares that only the /* */ syntax meets the categorization of an "inline comment"

This is counter-intuitive to how most HCL-based tools actually interpret a # comment when used inline after valid code. Most tools, including Terraform, view a # comment inline after other valid HCL statements to be treated as a valid inline comment (and it is ignored accordingly)

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

1 participant