@wooorm/starry-night
Version:
Syntax highlighting, like GitHub
1,263 lines (1,262 loc) • 171 kB
JavaScript
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is developed at
// <https://github.com/wooorm/markdown-tm-language>
// and licensed `mit`.
// See <https://github.com/wooorm/starry-night> for more info.
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/** @type {Grammar} */
const grammar = {
dependencies: ['source.tsx'],
extensions: ['.mdx'],
names: ['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])([0-9A-Fa-f]{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\\x2dblueprint|(?:.*\\.)?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\\x2dblueprint|(?:.*\\.)?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:(?:.*\\.)?(?:adoc|asciidoc)))(?:[\\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:(?:.*\\.)?(?:adoc|asciidoc)))(?:[\\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\\x2dscript|oncrpc|rpc|rpcgen|unified\\x2dparallel\\x2dc|x\\x2dbitmap|x\\x2dpixmap|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\\x2dscript|oncrpc|rpc|rpcgen|unified\\x2dparallel\\x2dc|x\\x2dbitmap|x\\x2dpixmap|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\\x2dscript|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\\x2dscript|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:pycon|python\\x2dconsole))(?:[\\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:pycon|python\\x2dconsole))(?:[\\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\\x2dscript|asymptote|c\\+\\+|edje\\x2ddata\\x2dcollection|game\\x2dmaker\\x2dlanguage|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.c++'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:ags|ags\\x2dscript|asymptote|c\\+\\+|edje\\x2ddata\\x2dcollection|game\\x2dmaker\\x2dlanguage|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.c++'}],
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:containerfile|(?:.*\\.)?dockerfile))(?:[\\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:containerfile|(?:.*\\.)?dockerfile))(?:[\\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|exs)))(?:[\\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|exs)))(?:[\\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\\x2dconfig|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\\x2dconfig|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:(?:.*\\.)?(?:gql|graphql|graphqls)))(?:[\\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'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?(?:gql|graphql|graphqls)))(?:[\\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'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
}
]
},
'commonmark-code-fenced-haskell': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:c2hs|c2hs\\x2dhaskell|frege|haskell|(?:.*\\.)?(?:chs|dhall|hs|hs\\x2dboot|hsc)))(?:[\\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.haskell.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
contentName: 'meta.embedded.haskell',
patterns: [{include: 'source.haskell'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:c2hs|c2hs\\x2dhaskell|frege|haskell|(?:.*\\.)?(?:chs|dhall|hs|hs\\x2dboot|hsc)))(?:[\\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.haskell.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
contentName: 'meta.embedded.haskell',
patterns: [{include: 'source.haskell'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
}
]
},
'commonmark-code-fenced-html': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:html|(?:.*\\.)?(?:hta|htm|html\\.hl|kit|mtml|xht|xhtml)))(?:[\\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.html.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
contentName: 'meta.embedded.html',
patterns: [{include: 'text.html.basic'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:html|(?:.*\\.)?(?:hta|htm|html\\.hl|kit|mtml|xht|xhtml)))(?:[\\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.html.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
contentName: 'meta.embedded.html',
patterns: [{include: 'text.html.basic'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
}
]
},
'commonmark-code-fenced-ini': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:altium|altium\\x2ddesigner|dosini|(?:.*\\.)?(?:cnf|dof|ini|lektorproject|outjob|pcbdoc|prefs|prjpcb|properties|schdoc|url)))(?:[\\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.ini.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
contentName: 'meta.embedded.ini',
patterns: [{include: 'source.ini'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:altium|altium\\x2ddesigner|dosini|(?:.*\\.)?(?:cnf|dof|ini|lektorproject|outjob|pcbdoc|prefs|prjpcb|properties|schdoc|url)))(?:[\\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.ini.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
contentName: 'meta.embedded.ini',
patterns: [{include: 'source.ini'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
}
]
},
'commonmark-code-fenced-java': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:chuck|unrealscript|(?:.*\\.)?(?:ck|jav|java|jsh|uc)))(?:[\\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.java.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
contentName: 'meta.embedded.java',
patterns: [{include: 'source.java'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:chuck|unrealscript|(?:.*\\.)?(?:ck|jav|java|jsh|uc)))(?:[\\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.java.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
contentName: 'meta.embedded.java',
patterns: [{include: 'source.java'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
}
]
},
'commonmark-code-fenced-js': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:cycript|javascript\\+erb|json\\x2dwith\\x2dcomments|node|qt\\x2dscript|(?:.*\\.)?(?:_js|bones|cjs|code\\x2dsnippets|code\\x2dworkspace|cy|es6|jake|javascript|js|js\\.erb|jsb|jscad|jsfl|jslib|jsm|json5|jsonc|jsonld|jspre|jss|jsx|mjs|njs|pac|sjs|ssjs|sublime\\x2dbuild|sublime\\x2dcolor\\x2dscheme|sublime\\x2dcommands|sublime\\x2dcompletions|sublime\\x2dkeymap|sublime\\x2dmacro|sublime\\x2dmenu|sublime\\x2dmousemap|sublime\\x2dproject|sublime\\x2dsettings|sublime\\x2dtheme|sublime\\x2dworkspace|sublime_metrics|sublime_session|xsjs|xsjslib)))(?:[\\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.js.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
contentName: 'meta.embedded.js',
patterns: [{include: 'source.js'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
},
{
begin:
'(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:cycript|javascript\\+erb|json\\x2dwith\\x2dcomments|node|qt\\x2dscript|(?:.*\\.)?(?:_js|bones|cjs|code\\x2dsnippets|code\\x2dworkspace|cy|es6|jake|javascript|js|js\\.erb|jsb|jscad|jsfl|jslib|jsm|json5|jsonc|jsonld|jspre|jss|jsx|mjs|njs|pac|sjs|ssjs|sublime\\x2dbuild|sublime\\x2dcolor\\x2dscheme|sublime\\x2dcommands|sublime\\x2dcompletions|sublime\\x2dkeymap|sublime\\x2dmacro|sublime\\x2dmenu|sublime\\x2dmousemap|sublime\\x2dproject|sublime\\x2dsettings|sublime\\x2dtheme|sublime\\x2dworkspace|sublime_metrics|sublime_session|xsjs|xsjslib)))(?:[\\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.js.mdx',
patterns: [
{
begin: '(^|\\G)(\\s*)(.*)',
contentName: 'meta.embedded.js',
patterns: [{include: 'source.js'}],
while: '(^|\\G)(?![\\t ]*([`~]{3,})[\\t ]*$)'
}
]
}
]
},
'commonmark-code-fenced-json': {
patterns: [
{
begin:
'(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:ecere\\x2dprojects|ipython\\x2dnotebook|jupyter\\x2dnotebook|max|max/msp|maxmsp|oasv2\\x2djson|oasv3\\x2djson|(?:.*\\.)?(?:4dform|4dproject|avsc|epj|geojson|gltf|har|ice|ipynb|json|json|json|json\\x2dtmlanguage|jsonl|maxhelp|maxpat|maxproj|mcmeta|mxt|pat|sarif|