{
  "scopeName": "source.mdx.astro",
  "injectionSelector": "L:source.mdx",
  "patterns": [
    {
      "include": "#mdx_fenced_code_block_astro"
    }
  ],
  "repository": {
    "mdx_fenced_code_block_astro": {
      "begin": "(?:^|\\G)[\\t ]*([`~]{3,})(?:[\\t ]*((?:astro|(?:.*\\.)?(?:astro)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)",
      "beginCaptures": {
        "1": {
          "name": "punctuation.definition.markdown"
        },
        "2": {
          "name": "entity.name.function.markdown"
        }
      },
      "end": "(?:^|\\G)[\\t ]*(\\1)(?:[\\t ]*$)",
      "endCaptures": {
        "1": {
          "name": "punctuation.definition.markdown"
        }
      },
      "name": "markup.code.astro.mdx",
      "patterns": [
        {
          "begin": "(^|\\G)(\\s*)(.*)",
          "while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)",
          "patterns": [
            {
              "begin": "^\\s*---\\s*$",
              "end": "^\\s*---\\s*$",
              "beginCaptures": {
                "0": {
                  "name": "punctuation.definition.tag.xi.begin.t"
                }
              },
              "endCaptures": {
                "0": {
                  "name": "punctuation.definition.tag.xi.end.t"
                }
              },
              "contentName": "mdx.embedded.astro.frontmatter",
              "patterns": [
                {
                  "include": "source.tsx"
                }
              ]
            },
            {
              "contentName": "mdx.embedded.astro",
              "include": "source.astro"
            }
          ]
        }
      ]
    }
  }
}
