Skip to content

Commit 2719dec

Browse files
committed
Update markdown grammar
Fixes microsoft#55635
1 parent d039671 commit 2719dec

1 file changed

Lines changed: 38 additions & 2 deletions

File tree

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

Lines changed: 38 additions & 2 deletions
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/4504240cdb13a4640f64fc98a0adb858226a879e",
7+
"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/826a9c47f16a3d567c3691636fd19f189f65fca5",
88
"name": "Markdown",
99
"scopeName": "text.html.markdown",
1010
"patterns": [
@@ -165,6 +165,9 @@
165165
{
166166
"include": "#fenced_code_block_dart"
167167
},
168+
{
169+
"include": "#fenced_code_block_handlebars"
170+
},
168171
{
169172
"include": "#fenced_code_block_unknown"
170173
},
@@ -1685,6 +1688,39 @@
16851688
}
16861689
]
16871690
},
1691+
"fenced_code_block_handlebars": {
1692+
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(handlebars|hbs)(\\s+[^`~]*)?$)",
1693+
"name": "markup.fenced_code.block.markdown",
1694+
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
1695+
"beginCaptures": {
1696+
"3": {
1697+
"name": "punctuation.definition.markdown"
1698+
},
1699+
"5": {
1700+
"name": "fenced_code.block.language"
1701+
},
1702+
"6": {
1703+
"name": "fenced_code.block.language.attributes"
1704+
}
1705+
},
1706+
"endCaptures": {
1707+
"3": {
1708+
"name": "punctuation.definition.markdown"
1709+
}
1710+
},
1711+
"patterns": [
1712+
{
1713+
"begin": "(^|\\G)(\\s*)(.*)",
1714+
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
1715+
"contentName": "meta.embedded.block.handlebars",
1716+
"patterns": [
1717+
{
1718+
"include": "text.html.handlebars"
1719+
}
1720+
]
1721+
}
1722+
]
1723+
},
16881724
"fenced_code_block_unknown": {
16891725
"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?=([^`~]*)?$)",
16901726
"beginCaptures": {
@@ -1994,7 +2030,7 @@
19942030
"while": "(^|\\G)([ ]{4}|\\t)"
19952031
},
19962032
"separator": {
1997-
"match": "(^|\\G)[ ]{0,3}([\\*\\-\\_])([ ]{0,2}\\2){2,}[ \\t]*$\\n?",
2033+
"match": "(^|\\G)[ ]{0,3}([*-_])([ ]{0,2}\\2){2,}[ \\t]*$\\n?",
19982034
"name": "meta.separator.markdown"
19992035
}
20002036
}

0 commit comments

Comments
 (0)