Update Terraform lexer to support data blocks

Issue #1402 new
Anonymous created an issue

Terraform supports data configurations, but the pygments lexer fails to understand it.

Sample RST Markup

.. code-block:: terraform

data "aws_iam_policy_document" "binaryalert" {
  statement {
    effect = "Allow"

    actions = [
      "cloudwatch:DeleteAlarms",
      "cloudwatch:DeleteDashboards",
      "cloudwatch:DescribeAlarms",
      "cloudwatch:PutMetricAlarm",
    ]

    resources = ["*"]
  }
}

Sphinx-Build

ERROR: Could not lex literal_block as "terraform"

Comments (0)

  1. Log in to comment