|
4 | 4 | "If you want to provide a fix or improvement, please create a pull request against the original repository.", |
5 | 5 | "Once accepted there, we are happy to receive an update request." |
6 | 6 | ], |
7 | | - "version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/4504240cdb13a4640f64fc98a0adb858226a879e", |
| 7 | + "version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/826a9c47f16a3d567c3691636fd19f189f65fca5", |
8 | 8 | "name": "Markdown", |
9 | 9 | "scopeName": "text.html.markdown", |
10 | 10 | "patterns": [ |
|
165 | 165 | { |
166 | 166 | "include": "#fenced_code_block_dart" |
167 | 167 | }, |
| 168 | + { |
| 169 | + "include": "#fenced_code_block_handlebars" |
| 170 | + }, |
168 | 171 | { |
169 | 172 | "include": "#fenced_code_block_unknown" |
170 | 173 | }, |
|
1685 | 1688 | } |
1686 | 1689 | ] |
1687 | 1690 | }, |
| 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 | + }, |
1688 | 1724 | "fenced_code_block_unknown": { |
1689 | 1725 | "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?=([^`~]*)?$)", |
1690 | 1726 | "beginCaptures": { |
|
1994 | 2030 | "while": "(^|\\G)([ ]{4}|\\t)" |
1995 | 2031 | }, |
1996 | 2032 | "separator": { |
1997 | | - "match": "(^|\\G)[ ]{0,3}([\\*\\-\\_])([ ]{0,2}\\2){2,}[ \\t]*$\\n?", |
| 2033 | + "match": "(^|\\G)[ ]{0,3}([*-_])([ ]{0,2}\\2){2,}[ \\t]*$\\n?", |
1998 | 2034 | "name": "meta.separator.markdown" |
1999 | 2035 | } |
2000 | 2036 | } |
|
0 commit comments