-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
kind/bugThis issue represents a verified problem we are committed to solvingThis issue represents a verified problem we are committed to solving
Description
Team
- I've assigned a team label to this issue
Severity
High
Version
1.0.4
Latest Version
No response
What happened?
Two problems with the HCLParser that cause failures in valid HCL:
- Comments in object type declarations:
variable "foo" {
type = object({
# this prop is really important for reasons
bar = string
# this one...who knows
baz = string
}- Heredoc delimiters match in the middle of a string:
variable "bar" {
default = <<-EOF
Here we have some text. And for valid reasons,
I need to have EOF in the text I'm writing.
EOFThe parser currently matches the EOF in the middle of the sentence and then fails with invalid syntax for the remainder.
Reproduction
See above.
Error and Stacktrace
No response
More Information
No response
Workaround
I've submitted a PR that seems to resolve both issues: OctopusDeploy/HCLParser#11
Metadata
Metadata
Assignees
Labels
kind/bugThis issue represents a verified problem we are committed to solvingThis issue represents a verified problem we are committed to solving