|
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/ee6a11d0bbbe8ef6bcf8e664f446c00fb14212f2", |
| 7 | + "version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/11cf764606cb2cde54badb5d0e5a0758a8871c4b", |
8 | 8 | "name": "Markdown", |
9 | 9 | "scopeName": "text.html.markdown", |
10 | 10 | "patterns": [ |
|
120 | 120 | { |
121 | 121 | "include": "#fenced_code_block_json" |
122 | 122 | }, |
| 123 | + { |
| 124 | + "include": "#fenced_code_block_jsonc" |
| 125 | + }, |
123 | 126 | { |
124 | 127 | "include": "#fenced_code_block_less" |
125 | 128 | }, |
|
1196 | 1199 | } |
1197 | 1200 | ] |
1198 | 1201 | }, |
| 1202 | + "fenced_code_block_jsonc": { |
| 1203 | + "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(jsonc)(\\s+[^`~]*)?$)", |
| 1204 | + "name": "markup.fenced_code.block.markdown", |
| 1205 | + "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", |
| 1206 | + "beginCaptures": { |
| 1207 | + "3": { |
| 1208 | + "name": "punctuation.definition.markdown" |
| 1209 | + }, |
| 1210 | + "5": { |
| 1211 | + "name": "fenced_code.block.language" |
| 1212 | + }, |
| 1213 | + "6": { |
| 1214 | + "name": "fenced_code.block.language.attributes" |
| 1215 | + } |
| 1216 | + }, |
| 1217 | + "endCaptures": { |
| 1218 | + "3": { |
| 1219 | + "name": "punctuation.definition.markdown" |
| 1220 | + } |
| 1221 | + }, |
| 1222 | + "patterns": [ |
| 1223 | + { |
| 1224 | + "begin": "(^|\\G)(\\s*)(.*)", |
| 1225 | + "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", |
| 1226 | + "contentName": "meta.embedded.block.jsonc", |
| 1227 | + "patterns": [ |
| 1228 | + { |
| 1229 | + "include": "source.json.comments" |
| 1230 | + } |
| 1231 | + ] |
| 1232 | + } |
| 1233 | + ] |
| 1234 | + }, |
1199 | 1235 | "fenced_code_block_less": { |
1200 | 1236 | "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(less)(\\s+[^`~]*)?$)", |
1201 | 1237 | "name": "markup.fenced_code.block.markdown", |
|
1984 | 2020 | "name": "punctuation.definition.string.end.markdown" |
1985 | 2021 | } |
1986 | 2022 | }, |
1987 | | - "match": "(?x)\n \\s* # Leading whitespace\n (\\[)([\\w ]+?)(\\])(:) # Reference name\n [ \\t]* # Optional whitespace\n (<?)(\\S+?)(>?) # The url\n [ \\t]* # Optional whitespace\n (?:\n ((\\().+?(\\))) # Match title in quotes…\n | ((\").+?(\")) # or in parens.\n )? # Title is optional\n \\s* # Optional whitespace\n $\n", |
| 2023 | + "match": "(?x)\n \\s* # Leading whitespace\n (\\[)([^]]+?)(\\])(:) # Reference name\n [ \\t]* # Optional whitespace\n (<?)(\\S+?)(>?) # The url\n [ \\t]* # Optional whitespace\n (?:\n ((\\().+?(\\))) # Match title in quotes…\n | ((\").+?(\")) # or in parens.\n )? # Title is optional\n \\s* # Optional whitespace\n $\n", |
1988 | 2024 | "name": "meta.link.reference.def.markdown" |
1989 | 2025 | }, |
1990 | 2026 | "list_paragraph": { |
|
0 commit comments