Skip to content

Commit b7cc9ca

Browse files
committed
Update md grammar
1 parent e5557b7 commit b7cc9ca

1 file changed

Lines changed: 37 additions & 1 deletion

File tree

extensions/markdown-basics/syntaxes/markdown.tmLanguage.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/00b05ebe6850083664d92d0eba6e5ee8f153baa6",
7+
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/46724e2885f9557400ed91727d75c3574ceded3a",
88
"name": "Markdown",
99
"scopeName": "text.html.markdown",
1010
"patterns": [
@@ -1682,6 +1682,39 @@
16821682
}
16831683
]
16841684
},
1685+
"fenced_code_block_log": {
1686+
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(log)(\\s+[^`~]*)?$)",
1687+
"name": "markup.fenced_code.block.markdown",
1688+
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
1689+
"beginCaptures": {
1690+
"3": {
1691+
"name": "punctuation.definition.markdown"
1692+
},
1693+
"4": {
1694+
"name": "fenced_code.block.language.markdown"
1695+
},
1696+
"5": {
1697+
"name": "fenced_code.block.language.attributes.markdown"
1698+
}
1699+
},
1700+
"endCaptures": {
1701+
"3": {
1702+
"name": "punctuation.definition.markdown"
1703+
}
1704+
},
1705+
"patterns": [
1706+
{
1707+
"begin": "(^|\\G)(\\s*)(.*)",
1708+
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
1709+
"contentName": "meta.embedded.block.log",
1710+
"patterns": [
1711+
{
1712+
"include": "text.log"
1713+
}
1714+
]
1715+
}
1716+
]
1717+
},
16851718
"fenced_code_block": {
16861719
"patterns": [
16871720
{
@@ -1831,6 +1864,9 @@
18311864
{
18321865
"include": "#fenced_code_block_markdown"
18331866
},
1867+
{
1868+
"include": "#fenced_code_block_log"
1869+
},
18341870
{
18351871
"include": "#fenced_code_block_unknown"
18361872
}

0 commit comments

Comments
 (0)