vscode/extensions/markdown-math/syntaxes/md-math-block.tmLanguage.json
mxwj 018ff30de3
Some checks failed
Monaco Editor checks / Monaco Editor checks (push) Has been cancelled
Initial commit
2024-11-15 14:29:18 +08:00

85 lines
1.8 KiB
JSON

{
"fileTypes": [],
"injectionSelector": "L:text.html.markdown - (comment, string, meta.paragraph.markdown, markup.math.block.markdown, markup.fenced_code.block.markdown, markup.raw.block.markdown)",
"patterns": [
{
"include": "#double_dollar_math_block"
},
{
"include": "#single_dollar_math_block"
}
],
"repository": {
"double_dollar_math_block": {
"name": "markup.math.block.markdown",
"contentName": "meta.embedded.math.markdown",
"begin": "(?<=^\\s*)(\\${2})(?![^$]*\\${2})",
"beginCaptures": {
"1": {
"name": "punctuation.definition.math.begin.markdown"
}
},
"end": "(.*)(\\${2})",
"endCaptures": {
"1": {
"name": "meta.embedded.math.markdown",
"patterns": [
{
"include": "text.html.markdown.math#math"
}
]
},
"2": {
"name": "punctuation.definition.math.end.markdown"
}
},
"patterns": [
{
"begin": "(^|\\G)",
"while": "(^|\\G)(?!.*(\\${2}))",
"patterns": [
{
"include": "text.html.markdown.math#math"
}
]
}
]
},
"single_dollar_math_block": {
"name": "markup.math.block.markdown",
"contentName": "meta.embedded.math.markdown",
"begin": "(?<=^\\s*)(\\$)(?![^$]*\\$|\\d)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.math.begin.markdown"
}
},
"end": "(.*)(\\${1})",
"endCaptures": {
"1": {
"name": "meta.embedded.math.markdown",
"patterns": [
{
"include": "text.html.markdown.math#math"
}
]
},
"2": {
"name": "punctuation.definition.math.end.markdown"
}
},
"patterns": [
{
"begin": "(^|\\G)",
"while": "(^|\\G)(?!.*(\\${1}))",
"patterns": [
{
"include": "text.html.markdown.math#math"
}
]
}
]
}
},
"scopeName": "markdown.math.block"
}