summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/hashicorp/hcl/hcl/printer/testdata/comment.golden
blob: 9d4b072a016c6acd62432856ac419657366947cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// A standalone comment is a comment which is not attached to any kind of node

// This comes from Terraform, as a test
variable "foo" {
  # Standalone comment should be still here

  default     = "bar"
  description = "bar" # yooo
}

/* This is a multi line standalone
comment*/

// fatih arslan
/* This is a developer test
account and a multine comment */
developer = ["fatih", "arslan"] // fatih arslan

# One line here
numbers = [1, 2] // another line here

# Another comment
variable = {
  description = "bar" # another yooo

  foo {
    # Nested standalone

    bar = "fatih"
  }
}

// lead comment
foo {
  bar = "fatih" // line comment 2 
} // line comment 3