update grammars

This commit is contained in:
Martin Aeschlimann
2018-10-04 12:00:39 +02:00
parent 84f1d0d438
commit 10a1d2a50a
17 changed files with 1490 additions and 404 deletions

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/83a1940ab00b770392c3ae71b92e80cca2960613",
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/6b98eb377656fb175692f9e972bc6e88881eafd8",
"name": "Markdown",
"scopeName": "text.html.markdown",
"patterns": [
@@ -168,6 +168,9 @@
{
"include": "#fenced_code_block_handlebars"
},
{
"include": "#fenced_code_block_markdown"
},
{
"include": "#fenced_code_block_unknown"
},
@@ -1721,6 +1724,39 @@
}
]
},
"fenced_code_block_markdown": {
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(markdown|md)(\\s+[^`~]*)?$)",
"name": "markup.fenced_code.block.markdown",
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
"beginCaptures": {
"3": {
"name": "punctuation.definition.markdown"
},
"5": {
"name": "fenced_code.block.language"
},
"6": {
"name": "fenced_code.block.language.attributes"
}
},
"endCaptures": {
"3": {
"name": "punctuation.definition.markdown"
}
},
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
"contentName": "meta.embedded.block.markdown",
"patterns": [
{
"include": "text.html.markdown"
}
]
}
]
},
"fenced_code_block_unknown": {
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?=([^`~]*)?$)",
"beginCaptures": {
@@ -2030,7 +2066,7 @@
"while": "(^|\\G)([ ]{4}|\\t)"
},
"separator": {
"match": "(^|\\G)[ ]{0,3}([*-_])([ ]{0,2}\\2){2,}[ \\t]*$\\n?",
"match": "(^|\\G)[ ]{0,3}([\\*\\-\\_])([ ]{0,2}\\2){2,}[ \\t]*$\\n?",
"name": "meta.separator.markdown"
}
}