title: Terraform fmt fails with indentation error
body: <p>I'm working on upgrading existing terraform resource from 0.11.3 to 0.12.0. I have a module directory and directories for state files(nonprod and prod), I ran terraform fmt command on a module to check my syntax, I'm suddenly getting this error, </p>
  
  <p>error :</p>
  
  <blockquote>
    <p>Error running fmt: In file.tf: At 27:10: Unknown token:
    27:10 IDENT merge</p>
  </blockquote>
  
  <p>It worked in terraform 0.11.13 version.</p>
  
  <pre><code>resource "aws_dynamodb_table" "table-x" {
    name           = "table-A"
    read_capacity  = 100                  //autoscaling enabled
    write_capacity = 100                  //autoscaling enabled
    hash_key       = "Id"
    range_key      = "appId"
  
    attribute {
      name = "Id"
      type = "S"
    }
  
    attribute {
      name = "appId"
      type = "S"
    }
  
    lifecycle {
      # Ignore the capacity changes to keep auto-scaling configuration
      prevent_destroy = true
      ignore_changes  = ["read_capacity", "write_capacity"]
    }
  
    tags = merge(local.global_tags,var.extra_tags)
  
  }
  </code></pre>
  
  <p>variable:</p>
  
  <pre><code>variable "extra_tags" {
    type    = map
    default = {}
  }
  </code></pre>
  
  <p>locals:</p>
  
  <pre><code>locals {
    global_tags = {
      email = "a-bp@x.com"
      owner = "x"
    }
  }
  </code></pre>
  
  <p>But how should i pass the locals value for the tags?</p>
  
  <p>Please let me know an alternative i can use, because the tags differ in prod and nonprod environment , for example i have 2 tags in nonprod and prod has 3.</p>
  
  <pre><code>nonprod:
  
  tags {
   email:
   owner:
  }
  
  prod:
  
  tags {
   email:
   owner: 
   application:
  }
  </code></pre>
  
  <p>i tried passing as variable , got the same error var.extra_tag</p>
  
  <p><code>tags = var.extra_tags</code></p>
  
  <p>Update: I just passed it as variable in the module but even <code>merge(local.global_tags,var.extra_tags)</code> also works , unless i run terraform fmt in module, i don't have any issues, I was able to successfully do an import . But If anybody knows how to pass <code>merge</code> in tags for 12.0 version, please do post your answers, would definitely like to know how it works.</p>