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

Add SingleLineComment support to object #11

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

BrentSouza
Copy link

We use this library to parse modules and stumbled upon an error when trying to parse a variable declaration for an object type that contained comments on some of the properties, e.g.:

variable "foo" {
  type = object({
    # this prop is really important for reasons
    bar = string
    # this one...who knows
    baz = string
}

I made a very small change to add support for SingeLineComments into the definition for ObjectTypeProperty. I'm not sure if this is the correct thing to do, but I added a test case and things are passing. Hurray!

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

Successfully merging this pull request may close these issues.

1 participant