...

Text file src/github.com/alecthomas/chroma/lexers/testdata/terraform.actual

Documentation: github.com/alecthomas/chroma/lexers/testdata

     1variable "some_var" {
     2    default = 12
     3}
     4
     5resource "something" "nice" {
     6  name        = "hello"
     7  value       = var.some_var
     8  x           = var.some_var > 5 ? var.some_var : 10
     9
    10  cidr_blocks = [
    11    for num in [1,2,3]:
    12    cidrhost("10.0.0.0/24", num)
    13  ]
    14  str = <<-EOT
    15    hello
    16    world
    17  EOT
    18
    19  /*
    20    Multiline comment
    21  */
    22  # Single comment
    23
    24  dynamic "setting" {
    25    for_each = var.settings
    26    content {
    27      namespace = setting.value["namespace"]
    28      name = setting.value["name"]
    29      value = setting.value["value"]
    30    }
    31  }
    32}
    33
    34
    35resource "other" "resource" {
    36  count = 3
    37  name = "resource${count.index+1}"
    38}
    39

View as plain text