Update markdown grammar

This commit is contained in:
Matt Bierner 2021-12-06 18:13:00 -08:00
parent 1921071835
commit d07ee60829
No known key found for this signature in database
GPG key ID: 099C331567E11888
2 changed files with 74 additions and 2 deletions

View file

@ -33,7 +33,7 @@
"git": {
"name": "microsoft/vscode-markdown-tm-grammar",
"repositoryUrl": "https://github.com/microsoft/vscode-markdown-tm-grammar",
"commitHash": "b0e9d49bdb9ff10332439db26550383b5d13aea7"
"commitHash": "402cd37bf494f7e04e2df15423ba91ce8a9b1301"
}
},
"license": "MIT",

View file

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/b0e9d49bdb9ff10332439db26550383b5d13aea7",
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/402cd37bf494f7e04e2df15423ba91ce8a9b1301",
"name": "Markdown",
"scopeName": "text.html.markdown",
"patterns": [
@ -1781,6 +1781,72 @@
}
]
},
"fenced_code_block_latex": {
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(latex|tex)((\\s+|:|,|\\{|\\?)[^`~]*)?$)",
"name": "markup.fenced_code.block.markdown",
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
"beginCaptures": {
"3": {
"name": "punctuation.definition.markdown"
},
"4": {
"name": "fenced_code.block.language.markdown"
},
"5": {
"name": "fenced_code.block.language.attributes.markdown"
}
},
"endCaptures": {
"3": {
"name": "punctuation.definition.markdown"
}
},
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
"contentName": "meta.embedded.block.latex",
"patterns": [
{
"include": "text.tex.latex"
}
]
}
]
},
"fenced_code_block_bibtex": {
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(bibtex)((\\s+|:|,|\\{|\\?)[^`~]*)?$)",
"name": "markup.fenced_code.block.markdown",
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
"beginCaptures": {
"3": {
"name": "punctuation.definition.markdown"
},
"4": {
"name": "fenced_code.block.language.markdown"
},
"5": {
"name": "fenced_code.block.language.attributes.markdown"
}
},
"endCaptures": {
"3": {
"name": "punctuation.definition.markdown"
}
},
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
"contentName": "meta.embedded.block.bibtex",
"patterns": [
{
"include": "text.bibtex"
}
]
}
]
},
"fenced_code_block": {
"patterns": [
{
@ -1939,6 +2005,12 @@
{
"include": "#fenced_code_block_elixir"
},
{
"include": "#fenced_code_block_latex"
},
{
"include": "#fenced_code_block_bibtex"
},
{
"include": "#fenced_code_block_unknown"
}