tm-grammars
Version:
Collecton of TextMate grammars in JSON
1,740 lines (1,739 loc) • 214 kB
JSON
{
"displayName": "MDX",
"fileTypes": [
"mdx"
],
"name": "mdx",
"patterns": [
{
"include": "#markdown-frontmatter"
},
{
"include": "#markdown-sections"
}
],
"repository": {
"commonmark-attention": {
"patterns": [
{
"match": "(?<=\\S)\\*{3,}|\\*{3,}(?=\\S)",
"name": "string.other.strong.emphasis.asterisk.mdx"
},
{
"match": "(?<=[\\p{L}\\p{N}])_{3,}(?![\\p{L}\\p{N}])|(?<=\\p{P})_{3,}|(?<![\\p{L}\\p{N}\\p{P}])_{3,}(?!\\s)",
"name": "string.other.strong.emphasis.underscore.mdx"
},
{
"match": "(?<=\\S)\\*{2}|\\*{2}(?=\\S)",
"name": "string.other.strong.asterisk.mdx"
},
{
"match": "(?<=[\\p{L}\\p{N}])_{2}(?![\\p{L}\\p{N}])|(?<=\\p{P})_{2}|(?<![\\p{L}\\p{N}\\p{P}])_{2}(?!\\s)",
"name": "string.other.strong.underscore.mdx"
},
{
"match": "(?<=\\S)\\*|\\*(?=\\S)",
"name": "string.other.emphasis.asterisk.mdx"
},
{
"match": "(?<=[\\p{L}\\p{N}])_(?![\\p{L}\\p{N}])|(?<=\\p{P})_|(?<![\\p{L}\\p{N}\\p{P}])_(?!\\s)",
"name": "string.other.emphasis.underscore.mdx"
}
]
},
"commonmark-block-quote": {
"begin": "(?:^|\\G)[\\t ]*(>) ?",
"beginCaptures": {
"0": {
"name": "markup.quote.mdx"
},
"1": {
"name": "punctuation.definition.quote.begin.mdx"
}
},
"name": "markup.quote.mdx",
"patterns": [
{
"include": "#markdown-sections"
}
],
"while": "(>) ?",
"whileCaptures": {
"0": {
"name": "markup.quote.mdx"
},
"1": {
"name": "punctuation.definition.quote.begin.mdx"
}
}
},
"commonmark-character-escape": {
"match": "\\\\[!-/:-@\\[-`{-~]",
"name": "constant.language.character-escape.mdx"
},
"commonmark-character-reference": {
"patterns": [
{
"include": "#whatwg-html-data-character-reference-named-terminated"
},
{
"captures": {
"1": {
"name": "punctuation.definition.character-reference.begin.html"
},
"2": {
"name": "punctuation.definition.character-reference.numeric.html"
},
"3": {
"name": "punctuation.definition.character-reference.numeric.hexadecimal.html"
},
"4": {
"name": "constant.numeric.integer.hexadecimal.html"
},
"5": {
"name": "punctuation.definition.character-reference.end.html"
}
},
"match": "(&)(#)([Xx])(\\h{1,6})(;)",
"name": "constant.language.character-reference.numeric.hexadecimal.html"
},
{
"captures": {
"1": {
"name": "punctuation.definition.character-reference.begin.html"
},
"2": {
"name": "punctuation.definition.character-reference.numeric.html"
},
"3": {
"name": "constant.numeric.integer.decimal.html"
},
"4": {
"name": "punctuation.definition.character-reference.end.html"
}
},
"match": "(&)(#)([0-9]{1,7})(;)",
"name": "constant.language.character-reference.numeric.decimal.html"
}
]
},
"commonmark-code-fenced": {
"patterns": [
{
"include": "#commonmark-code-fenced-apib"
},
{
"include": "#commonmark-code-fenced-asciidoc"
},
{
"include": "#commonmark-code-fenced-c"
},
{
"include": "#commonmark-code-fenced-clojure"
},
{
"include": "#commonmark-code-fenced-coffee"
},
{
"include": "#commonmark-code-fenced-console"
},
{
"include": "#commonmark-code-fenced-cpp"
},
{
"include": "#commonmark-code-fenced-cs"
},
{
"include": "#commonmark-code-fenced-css"
},
{
"include": "#commonmark-code-fenced-diff"
},
{
"include": "#commonmark-code-fenced-dockerfile"
},
{
"include": "#commonmark-code-fenced-elixir"
},
{
"include": "#commonmark-code-fenced-elm"
},
{
"include": "#commonmark-code-fenced-erlang"
},
{
"include": "#commonmark-code-fenced-gitconfig"
},
{
"include": "#commonmark-code-fenced-go"
},
{
"include": "#commonmark-code-fenced-graphql"
},
{
"include": "#commonmark-code-fenced-haskell"
},
{
"include": "#commonmark-code-fenced-html"
},
{
"include": "#commonmark-code-fenced-ini"
},
{
"include": "#commonmark-code-fenced-java"
},
{
"include": "#commonmark-code-fenced-js"
},
{
"include": "#commonmark-code-fenced-json"
},
{
"include": "#commonmark-code-fenced-julia"
},
{
"include": "#commonmark-code-fenced-kotlin"
},
{
"include": "#commonmark-code-fenced-less"
},
{
"include": "#commonmark-code-fenced-less"
},
{
"include": "#commonmark-code-fenced-lua"
},
{
"include": "#commonmark-code-fenced-makefile"
},
{
"include": "#commonmark-code-fenced-md"
},
{
"include": "#commonmark-code-fenced-mdx"
},
{
"include": "#commonmark-code-fenced-objc"
},
{
"include": "#commonmark-code-fenced-perl"
},
{
"include": "#commonmark-code-fenced-php"
},
{
"include": "#commonmark-code-fenced-php"
},
{
"include": "#commonmark-code-fenced-python"
},
{
"include": "#commonmark-code-fenced-r"
},
{
"include": "#commonmark-code-fenced-raku"
},
{
"include": "#commonmark-code-fenced-ruby"
},
{
"include": "#commonmark-code-fenced-rust"
},
{
"include": "#commonmark-code-fenced-scala"
},
{
"include": "#commonmark-code-fenced-scss"
},
{
"include": "#commonmark-code-fenced-shell"
},
{
"include": "#commonmark-code-fenced-shell-session"
},
{
"include": "#commonmark-code-fenced-sql"
},
{
"include": "#commonmark-code-fenced-svg"
},
{
"include": "#commonmark-code-fenced-swift"
},
{
"include": "#commonmark-code-fenced-toml"
},
{
"include": "#commonmark-code-fenced-ts"
},
{
"include": "#commonmark-code-fenced-tsx"
},
{
"include": "#commonmark-code-fenced-vbnet"
},
{
"include": "#commonmark-code-fenced-xml"
},
{
"include": "#commonmark-code-fenced-yaml"
},
{
"include": "#commonmark-code-fenced-unknown"
}
]
},
"commonmark-code-fenced-apib": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:api-blueprint|(?:.*\\.)?apib))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.apib.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.apib",
"patterns": [
{
"include": "text.html.markdown.source.gfm.apib"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:api-blueprint|(?:.*\\.)?apib))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.apib.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.apib",
"patterns": [
{
"include": "text.html.markdown.source.gfm.apib"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-asciidoc": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:(?:.*\\.)?a(?:|scii)doc))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.asciidoc.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.asciidoc",
"patterns": [
{
"include": "text.html.asciidoc"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:(?:.*\\.)?a(?:|scii)doc))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.asciidoc.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.asciidoc",
"patterns": [
{
"include": "text.html.asciidoc"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-c": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:dtrace|dtrace-script|oncrpc|rpc|rpcgen|unified-parallel-c|x-bitmap|x-pixmap|xdr|(?:.*\\.)?(?:c|cats|h|idc|opencl|upc|xbm|xpm|xs)))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.c.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.c",
"patterns": [
{
"include": "source.c"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:dtrace|dtrace-script|oncrpc|rpc|rpcgen|unified-parallel-c|x-bitmap|x-pixmap|xdr|(?:.*\\.)?(?:c|cats|h|idc|opencl|upc|xbm|xpm|xs)))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.c.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.c",
"patterns": [
{
"include": "source.c"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-clojure": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:clojure|rouge|(?:.*\\.)?(?:boot|cl2|clj|cljc|cljs|cljs\\.hl|cljscm|cljx|edn|hic|rg|wisp)))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.clojure.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.clojure",
"patterns": [
{
"include": "source.clojure"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:clojure|rouge|(?:.*\\.)?(?:boot|cl2|clj|cljc|cljs|cljs\\.hl|cljscm|cljx|edn|hic|rg|wisp)))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.clojure.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.clojure",
"patterns": [
{
"include": "source.clojure"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-coffee": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:coffee-script|coffeescript|(?:.*\\.)?(?:_coffee|cjsx|coffee|cson|em|emberscript|iced)))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.coffee.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.coffee",
"patterns": [
{
"include": "source.coffee"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:coffee-script|coffeescript|(?:.*\\.)?(?:_coffee|cjsx|coffee|cson|em|emberscript|iced)))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.coffee.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.coffee",
"patterns": [
{
"include": "source.coffee"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-console": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:py(?:con|thon-console)))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.console.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.console",
"patterns": [
{
"include": "text.python.console"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:py(?:con|thon-console)))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.console.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.console",
"patterns": [
{
"include": "text.python.console"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-cpp": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:ags|ags-script|asymptote|c\\+\\+|edje-data-collection|game-maker-language|swig|(?:.*\\.)?(?:asc|ash|asy|c\\+\\+|cc|cp|cpp|cppm|cxx|edc|gml|h\\+\\+|hh|hpp|hxx|inl|ino|ipp|ixx|metal|re|tcc|tpp|txx)))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.cpp.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.cpp",
"patterns": [
{
"include": "source.c++"
},
{
"include": "source.cpp"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:ags|ags-script|asymptote|c\\+\\+|edje-data-collection|game-maker-language|swig|(?:.*\\.)?(?:asc|ash|asy|c\\+\\+|cc|cp|cpp|cppm|cxx|edc|gml|h\\+\\+|hh|hpp|hxx|inl|ino|ipp|ixx|metal|re|tcc|tpp|txx)))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.cpp.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.cpp",
"patterns": [
{
"include": "source.c++"
},
{
"include": "source.cpp"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-cs": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:beef|c#|cakescript|csharp|(?:.*\\.)?(?:bf|cake|cs|cs\\.pp|csx|eq|linq|uno)))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.cs.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.cs",
"patterns": [
{
"include": "source.cs"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:beef|c#|cakescript|csharp|(?:.*\\.)?(?:bf|cake|cs|cs\\.pp|csx|eq|linq|uno)))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.cs.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.cs",
"patterns": [
{
"include": "source.cs"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-css": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:(?:.*\\.)?css))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.css.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.css",
"patterns": [
{
"include": "source.css"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:(?:.*\\.)?css))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.css.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.css",
"patterns": [
{
"include": "source.css"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-diff": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:udiff|(?:.*\\.)?(?:diff|patch)))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.diff.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.diff",
"patterns": [
{
"include": "source.diff"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:udiff|(?:.*\\.)?(?:diff|patch)))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.diff.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.diff",
"patterns": [
{
"include": "source.diff"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-dockerfile": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:(?:contain|(?:.*\\.)?dock)erfile))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.dockerfile.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.dockerfile",
"patterns": [
{
"include": "source.dockerfile"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:(?:contain|(?:.*\\.)?dock)erfile))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.dockerfile.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.dockerfile",
"patterns": [
{
"include": "source.dockerfile"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-elixir": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:elixir|(?:.*\\.)?ex(?:|s)))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.elixir.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.elixir",
"patterns": [
{
"include": "source.elixir"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:elixir|(?:.*\\.)?ex(?:|s)))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.elixir.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.elixir",
"patterns": [
{
"include": "source.elixir"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-elm": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:(?:.*\\.)?elm))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.elm.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.elm",
"patterns": [
{
"include": "source.elm"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:(?:.*\\.)?elm))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.elm.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.elm",
"patterns": [
{
"include": "source.elm"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-erlang": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:erlang|(?:.*\\.)?(?:app|app\\.src|erl|es|escript|hrl|xrl|yrl)))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.erlang.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.erlang",
"patterns": [
{
"include": "source.erlang"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:erlang|(?:.*\\.)?(?:app|app\\.src|erl|es|escript|hrl|xrl|yrl)))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.erlang.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.erlang",
"patterns": [
{
"include": "source.erlang"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-gitconfig": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:git-config|gitmodules|(?:.*\\.)?gitconfig))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.gitconfig.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.gitconfig",
"patterns": [
{
"include": "source.gitconfig"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:git-config|gitmodules|(?:.*\\.)?gitconfig))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.gitconfig.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.gitconfig",
"patterns": [
{
"include": "source.gitconfig"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-go": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:golang|(?:.*\\.)?go))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.go.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.go",
"patterns": [
{
"include": "source.go"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
},
{
"begin": "(?:^|\\G)[\\t ]*(~{3,})[\\t ]*((?i:golang|(?:.*\\.)?go))(?:[\\t ]+([^\\n\\r]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.go.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.go",
"patterns": [
{
"include": "source.go"
}
],
"while": "(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)"
}
]
}
]
},
"commonmark-code-fenced-graphql": {
"patterns": [
{
"begin": "(?:^|\\G)[\\t ]*(`{3,})[\\t ]*((?i:(?:.*\\.)?g(?:ql|raphql|raphqls)))(?:[\\t ]+([^\\n\\r`]+))?[\\t ]*$",
"beginCaptures": {
"1": {
"name": "string.other.begin.code.fenced.mdx"
},
"2": {
"name": "entity.name.function.mdx",
"patterns": [
{
"include": "#markdown-string"
}
]
},
"3": {
"patterns": [
{
"include": "#markdown-string"
}
]
}
},
"end": "(?:^|\\G)[\\t ]*(\\1)[\\t ]*$",
"endCaptures": {
"1": {
"name": "string.other.end.code.fenced.mdx"
}
},
"name": "markup.code.graphql.mdx",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"contentName": "meta.embedded.graphql",
"patterns": [
{
"include": "source.graphql"
}
],