markdown.tmLanguage.json 62.4 KB
Newer Older
M
Matt Bierner 已提交
1 2 3 4 5 6
{
	"information_for_contributors": [
		"This file has been converted from https://github.com/microsoft/vscode-markdown-tm-grammar/blob/master/syntaxes/markdown.tmLanguage",
		"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."
	],
M
Matt Bierner 已提交
7
	"version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/3445afdd642f67052a21c0f86bf76b3deb45fd26",
M
Matt Bierner 已提交
8
	"name": "Markdown",
9
	"scopeName": "text.html.markdown",
M
Matt Bierner 已提交
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
	"patterns": [
		{
			"include": "#frontMatter"
		},
		{
			"include": "#block"
		}
	],
	"repository": {
		"block": {
			"patterns": [
				{
					"include": "#separator"
				},
				{
					"include": "#heading"
				},
				{
					"include": "#blockquote"
				},
				{
					"include": "#lists"
				},
				{
					"include": "#fenced_code_block_css"
				},
				{
					"include": "#fenced_code_block_basic"
				},
				{
					"include": "#fenced_code_block_ini"
				},
				{
					"include": "#fenced_code_block_java"
				},
				{
					"include": "#fenced_code_block_lua"
				},
				{
					"include": "#fenced_code_block_makefile"
				},
				{
					"include": "#fenced_code_block_perl"
				},
				{
					"include": "#fenced_code_block_r"
				},
				{
					"include": "#fenced_code_block_ruby"
				},
				{
					"include": "#fenced_code_block_php"
				},
				{
					"include": "#fenced_code_block_sql"
				},
				{
					"include": "#fenced_code_block_vs_net"
				},
				{
					"include": "#fenced_code_block_xml"
				},
				{
					"include": "#fenced_code_block_xsl"
				},
				{
					"include": "#fenced_code_block_yaml"
				},
				{
					"include": "#fenced_code_block_dosbatch"
				},
				{
					"include": "#fenced_code_block_clojure"
				},
				{
					"include": "#fenced_code_block_coffee"
				},
				{
					"include": "#fenced_code_block_c"
				},
				{
					"include": "#fenced_code_block_cpp"
				},
				{
					"include": "#fenced_code_block_diff"
				},
				{
					"include": "#fenced_code_block_dockerfile"
				},
				{
					"include": "#fenced_code_block_git_commit"
				},
				{
					"include": "#fenced_code_block_git_rebase"
				},
				{
					"include": "#fenced_code_block_go"
				},
				{
					"include": "#fenced_code_block_groovy"
				},
				{
M
Matt Bierner 已提交
112
					"include": "#fenced_code_block_pug"
M
Matt Bierner 已提交
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
				},
				{
					"include": "#fenced_code_block_js"
				},
				{
					"include": "#fenced_code_block_js_regexp"
				},
				{
					"include": "#fenced_code_block_json"
				},
				{
					"include": "#fenced_code_block_less"
				},
				{
					"include": "#fenced_code_block_objc"
				},
				{
					"include": "#fenced_code_block_scss"
				},
				{
					"include": "#fenced_code_block_perl6"
				},
				{
					"include": "#fenced_code_block_powershell"
				},
				{
					"include": "#fenced_code_block_python"
				},
				{
					"include": "#fenced_code_block_regexp_python"
				},
				{
					"include": "#fenced_code_block_rust"
				},
				{
					"include": "#fenced_code_block_scala"
				},
				{
					"include": "#fenced_code_block_shell"
				},
				{
					"include": "#fenced_code_block_ts"
				},
				{
					"include": "#fenced_code_block_tsx"
				},
				{
					"include": "#fenced_code_block_csharp"
				},
				{
					"include": "#fenced_code_block_fsharp"
				},
M
Matt Bierner 已提交
165 166 167
				{
					"include": "#fenced_code_block_dart"
				},
M
Matt Bierner 已提交
168 169 170
				{
					"include": "#fenced_code_block_handlebars"
				},
M
Matt Bierner 已提交
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
				{
					"include": "#fenced_code_block_unknown"
				},
				{
					"include": "#raw_block"
				},
				{
					"include": "#link-def"
				},
				{
					"include": "#html"
				},
				{
					"include": "#paragraph"
				}
			],
			"repository": {
				"blockquote": {
					"begin": "(^|\\G)[ ]{0,3}(>) ?",
					"captures": {
						"2": {
M
Matt Bierner 已提交
192
							"name": "punctuation.definition.quote.begin.markdown"
M
Matt Bierner 已提交
193 194 195 196 197 198 199 200 201 202
						}
					},
					"name": "markup.quote.markdown",
					"patterns": [
						{
							"include": "#block"
						}
					],
					"while": "(^|\\G)\\s*(>) ?"
				},
M
Matt Bierner 已提交
203 204 205 206
				"fenced_code_block_css": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(css|css.erb)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
M
Matt Bierner 已提交
207 208 209 210
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
						},
M
Matt Bierner 已提交
211
						"5": {
M
Matt Bierner 已提交
212
							"name": "fenced_code.block.language"
M
Matt Bierner 已提交
213 214 215
						},
						"6": {
							"name": "fenced_code.block.language.attributes"
M
Matt Bierner 已提交
216 217 218 219 220 221 222 223 224
						}
					},
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
						}
					},
					"patterns": [
						{
M
Matt Bierner 已提交
225 226 227 228 229 230 231 232
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.css",
							"patterns": [
								{
									"include": "source.css"
								}
							]
M
Matt Bierner 已提交
233 234 235
						}
					]
				},
M
Matt Bierner 已提交
236 237 238 239 240 241 242
				"fenced_code_block_basic": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(html|htm|shtml|xhtml|inc|tmpl|tpl)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
243
						},
M
Matt Bierner 已提交
244 245 246 247 248
						"5": {
							"name": "fenced_code.block.language"
						},
						"6": {
							"name": "fenced_code.block.language.attributes"
M
Matt Bierner 已提交
249
						}
M
Matt Bierner 已提交
250 251 252 253 254 255
					},
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
						}
					},
M
Matt Bierner 已提交
256 257
					"patterns": [
						{
M
Matt Bierner 已提交
258 259 260
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.html",
M
Matt Bierner 已提交
261 262
							"patterns": [
								{
M
Matt Bierner 已提交
263
									"include": "text.html.basic"
M
Matt Bierner 已提交
264 265
								}
							]
M
Matt Bierner 已提交
266 267 268 269 270 271 272 273 274 275
						}
					]
				},
				"fenced_code_block_ini": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(ini|conf)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
276
						},
M
Matt Bierner 已提交
277 278
						"5": {
							"name": "fenced_code.block.language"
M
Matt Bierner 已提交
279
						},
M
Matt Bierner 已提交
280 281 282 283 284 285 286 287 288 289
						"6": {
							"name": "fenced_code.block.language.attributes"
						}
					},
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
						}
					},
					"patterns": [
M
Matt Bierner 已提交
290
						{
M
Matt Bierner 已提交
291 292 293
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.ini",
M
Matt Bierner 已提交
294 295
							"patterns": [
								{
M
Matt Bierner 已提交
296
									"include": "source.ini"
M
Matt Bierner 已提交
297
								}
M
Matt Bierner 已提交
298
							]
M
Matt Bierner 已提交
299 300 301
						}
					]
				},
M
Matt Bierner 已提交
302 303 304 305 306
				"fenced_code_block_java": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(java|bsh)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
					"beginCaptures": {
M
Matt Bierner 已提交
307
						"3": {
M
Matt Bierner 已提交
308
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
309 310
						},
						"5": {
M
Matt Bierner 已提交
311
							"name": "fenced_code.block.language"
M
Matt Bierner 已提交
312 313
						},
						"6": {
M
Matt Bierner 已提交
314
							"name": "fenced_code.block.language.attributes"
M
Matt Bierner 已提交
315 316
						}
					},
M
Matt Bierner 已提交
317 318 319
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
320
						}
M
Matt Bierner 已提交
321
					},
M
Matt Bierner 已提交
322 323
					"patterns": [
						{
M
Matt Bierner 已提交
324 325 326
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.java",
M
Matt Bierner 已提交
327 328
							"patterns": [
								{
M
Matt Bierner 已提交
329
									"include": "source.java"
M
Matt Bierner 已提交
330
								}
M
Matt Bierner 已提交
331 332 333 334 335 336 337 338 339 340 341 342 343 344
							]
						}
					]
				},
				"fenced_code_block_lua": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(lua)(\\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"
M
Matt Bierner 已提交
345
						},
M
Matt Bierner 已提交
346 347 348 349 350 351 352 353 354 355
						"6": {
							"name": "fenced_code.block.language.attributes"
						}
					},
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
						}
					},
					"patterns": [
M
Matt Bierner 已提交
356
						{
M
Matt Bierner 已提交
357 358 359
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.lua",
M
Matt Bierner 已提交
360 361
							"patterns": [
								{
M
Matt Bierner 已提交
362
									"include": "source.lua"
M
Matt Bierner 已提交
363
								}
M
Matt Bierner 已提交
364
							]
M
Matt Bierner 已提交
365 366 367
						}
					]
				},
M
Matt Bierner 已提交
368 369 370 371 372 373 374
				"fenced_code_block_makefile": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(Makefile|makefile|GNUmakefile|OCamlMakefile)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
375
						},
M
Matt Bierner 已提交
376 377
						"5": {
							"name": "fenced_code.block.language"
M
Matt Bierner 已提交
378
						},
M
Matt Bierner 已提交
379 380
						"6": {
							"name": "fenced_code.block.language.attributes"
M
Matt Bierner 已提交
381
						}
M
Matt Bierner 已提交
382 383 384 385
					},
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
386 387 388 389
						}
					},
					"patterns": [
						{
M
Matt Bierner 已提交
390 391 392
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.makefile",
M
Matt Bierner 已提交
393 394
							"patterns": [
								{
M
Matt Bierner 已提交
395
									"include": "source.makefile"
M
Matt Bierner 已提交
396 397 398 399 400
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
401 402 403 404 405 406 407
				"fenced_code_block_perl": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(perl|pl|pm|pod|t|PL|psgi|vcl)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
408 409
						},
						"5": {
M
Matt Bierner 已提交
410
							"name": "fenced_code.block.language"
M
Matt Bierner 已提交
411 412
						},
						"6": {
M
Matt Bierner 已提交
413
							"name": "fenced_code.block.language.attributes"
M
Matt Bierner 已提交
414 415
						}
					},
M
Matt Bierner 已提交
416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
						}
					},
					"patterns": [
						{
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.perl",
							"patterns": [
								{
									"include": "source.perl"
								}
							]
						}
					]
M
Matt Bierner 已提交
433
				},
M
Matt Bierner 已提交
434 435 436 437 438 439 440
				"fenced_code_block_r": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(R|r|s|S|Rprofile)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
441 442
						},
						"5": {
M
Matt Bierner 已提交
443
							"name": "fenced_code.block.language"
M
Matt Bierner 已提交
444 445
						},
						"6": {
M
Matt Bierner 已提交
446
							"name": "fenced_code.block.language.attributes"
M
Matt Bierner 已提交
447 448
						}
					},
M
Matt Bierner 已提交
449 450 451
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
452 453 454 455
						}
					},
					"patterns": [
						{
M
Matt Bierner 已提交
456 457 458
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.r",
M
Matt Bierner 已提交
459 460
							"patterns": [
								{
M
Matt Bierner 已提交
461
									"include": "source.r"
M
Matt Bierner 已提交
462 463
								}
							]
M
Matt Bierner 已提交
464 465 466 467 468 469 470 471 472 473
						}
					]
				},
				"fenced_code_block_ruby": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(ruby|rb|rbx|rjs|Rakefile|rake|cgi|fcgi|gemspec|irbrc|Capfile|ru|prawn|Cheffile|Gemfile|Guardfile|Hobofile|Vagrantfile|Appraisals|Rantfile|Berksfile|Berksfile.lock|Thorfile|Puppetfile)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
474
						},
M
Matt Bierner 已提交
475 476
						"5": {
							"name": "fenced_code.block.language"
M
Matt Bierner 已提交
477
						},
M
Matt Bierner 已提交
478 479 480 481 482 483 484 485 486 487
						"6": {
							"name": "fenced_code.block.language.attributes"
						}
					},
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
						}
					},
					"patterns": [
M
Matt Bierner 已提交
488
						{
M
Matt Bierner 已提交
489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.ruby",
							"patterns": [
								{
									"include": "source.ruby"
								}
							]
						}
					]
				},
				"fenced_code_block_php": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(php|php3|php4|php5|phpt|phtml|aw|ctp)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
507
						},
M
Matt Bierner 已提交
508 509
						"5": {
							"name": "fenced_code.block.language"
M
Matt Bierner 已提交
510
						},
M
Matt Bierner 已提交
511 512 513 514 515 516 517 518 519 520
						"6": {
							"name": "fenced_code.block.language.attributes"
						}
					},
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
						}
					},
					"patterns": [
M
Matt Bierner 已提交
521
						{
M
Matt Bierner 已提交
522 523 524 525 526 527 528 529
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.php",
							"patterns": [
								{
									"include": "text.html.basic"
								},
								{
M
Matt Bierner 已提交
530
									"include": "source.php"
M
Matt Bierner 已提交
531 532
								}
							]
M
Matt Bierner 已提交
533 534 535
						}
					]
				},
M
Matt Bierner 已提交
536 537 538 539 540 541 542
				"fenced_code_block_sql": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(sql|ddl|dml)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
543
						},
M
Matt Bierner 已提交
544 545
						"5": {
							"name": "fenced_code.block.language"
M
Matt Bierner 已提交
546
						},
M
Matt Bierner 已提交
547 548
						"6": {
							"name": "fenced_code.block.language.attributes"
M
Matt Bierner 已提交
549 550
						}
					},
M
Matt Bierner 已提交
551
					"endCaptures": {
M
Matt Bierner 已提交
552
						"3": {
M
Matt Bierner 已提交
553
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
554 555
						}
					},
M
Matt Bierner 已提交
556 557 558 559 560 561 562 563 564 565 566 567
					"patterns": [
						{
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.sql",
							"patterns": [
								{
									"include": "source.sql"
								}
							]
						}
					]
M
Matt Bierner 已提交
568
				},
M
Matt Bierner 已提交
569 570 571 572 573 574 575
				"fenced_code_block_vs_net": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(vb)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
576 577
						},
						"5": {
M
Matt Bierner 已提交
578
							"name": "fenced_code.block.language"
M
Matt Bierner 已提交
579 580
						},
						"6": {
M
Matt Bierner 已提交
581
							"name": "fenced_code.block.language.attributes"
M
Matt Bierner 已提交
582 583
						}
					},
M
Matt Bierner 已提交
584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
						}
					},
					"patterns": [
						{
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.vs_net",
							"patterns": [
								{
									"include": "source.asp.vb.net"
								}
							]
						}
					]
M
Matt Bierner 已提交
601
				},
M
Matt Bierner 已提交
602 603 604 605 606 607 608
				"fenced_code_block_xml": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(xml|xsd|tld|jsp|pt|cpt|dtml|rss|opml)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
609 610
						},
						"5": {
M
Matt Bierner 已提交
611
							"name": "fenced_code.block.language"
M
Matt Bierner 已提交
612 613
						},
						"6": {
M
Matt Bierner 已提交
614
							"name": "fenced_code.block.language.attributes"
M
Matt Bierner 已提交
615 616
						}
					},
M
Matt Bierner 已提交
617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
						}
					},
					"patterns": [
						{
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.xml",
							"patterns": [
								{
									"include": "text.xml"
								}
							]
						}
					]
M
Matt Bierner 已提交
634
				},
M
Matt Bierner 已提交
635 636 637 638 639 640 641
				"fenced_code_block_xsl": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(xsl|xslt)(\\s+[^`~]*)?$)",
					"name": "markup.fenced_code.block.markdown",
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
642 643
						},
						"5": {
M
Matt Bierner 已提交
644
							"name": "fenced_code.block.language"
M
Matt Bierner 已提交
645 646
						},
						"6": {
M
Matt Bierner 已提交
647
							"name": "fenced_code.block.language.attributes"
M
Matt Bierner 已提交
648 649
						}
					},
M
Matt Bierner 已提交
650
					"endCaptures": {
M
Matt Bierner 已提交
651
						"3": {
M
Matt Bierner 已提交
652
							"name": "punctuation.definition.markdown"
M
Matt Bierner 已提交
653 654
						}
					},
M
Matt Bierner 已提交
655 656 657 658 659 660 661 662 663 664 665 666
					"patterns": [
						{
							"begin": "(^|\\G)(\\s*)(.*)",
							"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
							"contentName": "meta.embedded.block.xsl",
							"patterns": [
								{
									"include": "text.xml.xsl"
								}
							]
						}
					]
M
Matt Bierner 已提交
667
				},
M
Matt Bierner 已提交
668 669
				"fenced_code_block_yaml": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(yaml|yml)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691
					"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*$)",
M
Matt Bierner 已提交
692
							"contentName": "meta.embedded.block.yaml",
M
Matt Bierner 已提交
693 694
							"patterns": [
								{
M
Matt Bierner 已提交
695
									"include": "source.yaml"
M
Matt Bierner 已提交
696 697 698 699 700
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
701 702
				"fenced_code_block_dosbatch": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(bat|batch)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724
					"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*$)",
M
Matt Bierner 已提交
725
							"contentName": "meta.embedded.block.dosbatch",
M
Matt Bierner 已提交
726 727
							"patterns": [
								{
M
Matt Bierner 已提交
728
									"include": "source.batchfile"
M
Matt Bierner 已提交
729 730 731 732 733
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
734 735
				"fenced_code_block_clojure": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(clj|cljs|clojure)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757
					"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*$)",
M
Matt Bierner 已提交
758
							"contentName": "meta.embedded.block.clojure",
M
Matt Bierner 已提交
759 760
							"patterns": [
								{
M
Matt Bierner 已提交
761
									"include": "source.clojure"
M
Matt Bierner 已提交
762 763 764 765 766
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
767 768
				"fenced_code_block_coffee": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(coffee|Cakefile|coffee.erb)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790
					"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*$)",
M
Matt Bierner 已提交
791
							"contentName": "meta.embedded.block.coffee",
M
Matt Bierner 已提交
792 793
							"patterns": [
								{
M
Matt Bierner 已提交
794
									"include": "source.coffee"
M
Matt Bierner 已提交
795 796 797 798 799
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
800 801
				"fenced_code_block_c": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(c|h)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823
					"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*$)",
M
Matt Bierner 已提交
824
							"contentName": "meta.embedded.block.c",
M
Matt Bierner 已提交
825 826
							"patterns": [
								{
M
Matt Bierner 已提交
827
									"include": "source.c"
M
Matt Bierner 已提交
828 829 830 831 832
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
833 834
				"fenced_code_block_cpp": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(cpp|c\\+\\+|cxx)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856
					"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*$)",
M
Matt Bierner 已提交
857
							"contentName": "meta.embedded.block.cpp",
M
Matt Bierner 已提交
858 859
							"patterns": [
								{
M
Matt Bierner 已提交
860
									"include": "source.cpp"
M
Matt Bierner 已提交
861 862 863 864 865
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
866 867
				"fenced_code_block_diff": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(patch|diff|rej)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889
					"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*$)",
M
Matt Bierner 已提交
890
							"contentName": "meta.embedded.block.diff",
M
Matt Bierner 已提交
891 892
							"patterns": [
								{
M
Matt Bierner 已提交
893
									"include": "source.diff"
M
Matt Bierner 已提交
894 895 896 897 898
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
899 900
				"fenced_code_block_dockerfile": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(dockerfile|Dockerfile)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922
					"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*$)",
M
Matt Bierner 已提交
923
							"contentName": "meta.embedded.block.dockerfile",
M
Matt Bierner 已提交
924 925
							"patterns": [
								{
M
Matt Bierner 已提交
926
									"include": "source.dockerfile"
M
Matt Bierner 已提交
927 928 929 930 931
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
932 933
				"fenced_code_block_git_commit": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(COMMIT_EDITMSG|MERGE_MSG)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955
					"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*$)",
M
Matt Bierner 已提交
956
							"contentName": "meta.embedded.block.git_commit",
M
Matt Bierner 已提交
957 958
							"patterns": [
								{
M
Matt Bierner 已提交
959
									"include": "text.git-commit"
M
Matt Bierner 已提交
960 961 962 963 964
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
965 966
				"fenced_code_block_git_rebase": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(git-rebase-todo)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988
					"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*$)",
M
Matt Bierner 已提交
989
							"contentName": "meta.embedded.block.git_rebase",
M
Matt Bierner 已提交
990 991
							"patterns": [
								{
M
Matt Bierner 已提交
992
									"include": "text.git-rebase"
M
Matt Bierner 已提交
993 994 995 996 997
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
998 999
				"fenced_code_block_go": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(go|golang)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021
					"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*$)",
M
Matt Bierner 已提交
1022
							"contentName": "meta.embedded.block.go",
M
Matt Bierner 已提交
1023 1024
							"patterns": [
								{
M
Matt Bierner 已提交
1025
									"include": "source.go"
M
Matt Bierner 已提交
1026 1027 1028 1029 1030
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1031 1032
				"fenced_code_block_groovy": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(groovy|gvy)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054
					"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*$)",
M
Matt Bierner 已提交
1055
							"contentName": "meta.embedded.block.groovy",
M
Matt Bierner 已提交
1056 1057
							"patterns": [
								{
M
Matt Bierner 已提交
1058
									"include": "source.groovy"
M
Matt Bierner 已提交
1059 1060 1061 1062 1063
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1064
				"fenced_code_block_pug": {
M
Matt Bierner 已提交
1065
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(jade|pug)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087
					"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*$)",
1088
							"contentName": "meta.embedded.block.pug",
M
Matt Bierner 已提交
1089 1090
							"patterns": [
								{
1091
									"include": "text.pug"
M
Matt Bierner 已提交
1092 1093 1094 1095 1096
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1097 1098
				"fenced_code_block_js": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(js|jsx|javascript|es6|mjs)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120
					"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*$)",
M
Matt Bierner 已提交
1121
							"contentName": "meta.embedded.block.javascript",
M
Matt Bierner 已提交
1122 1123
							"patterns": [
								{
M
Matt Bierner 已提交
1124
									"include": "source.js"
M
Matt Bierner 已提交
1125 1126 1127 1128 1129
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1130 1131
				"fenced_code_block_js_regexp": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(regexp)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153
					"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*$)",
M
Matt Bierner 已提交
1154
							"contentName": "meta.embedded.block.js_regexp",
M
Matt Bierner 已提交
1155 1156
							"patterns": [
								{
M
Matt Bierner 已提交
1157
									"include": "source.js.regexp"
M
Matt Bierner 已提交
1158 1159 1160 1161 1162
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1163 1164
				"fenced_code_block_json": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(json|sublime-settings|sublime-menu|sublime-keymap|sublime-mousemap|sublime-theme|sublime-build|sublime-project|sublime-completions)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186
					"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*$)",
M
Matt Bierner 已提交
1187
							"contentName": "meta.embedded.block.json",
M
Matt Bierner 已提交
1188 1189
							"patterns": [
								{
M
Matt Bierner 已提交
1190
									"include": "source.json"
M
Matt Bierner 已提交
1191 1192 1193 1194 1195
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1196 1197
				"fenced_code_block_less": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(less)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219
					"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*$)",
M
Matt Bierner 已提交
1220
							"contentName": "meta.embedded.block.less",
M
Matt Bierner 已提交
1221 1222
							"patterns": [
								{
M
Matt Bierner 已提交
1223
									"include": "source.css.less"
M
Matt Bierner 已提交
1224 1225 1226 1227 1228
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1229 1230
				"fenced_code_block_objc": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(objectivec|objective-c|mm|objc|obj-c|m|h)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252
					"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*$)",
M
Matt Bierner 已提交
1253
							"contentName": "meta.embedded.block.objc",
M
Matt Bierner 已提交
1254 1255
							"patterns": [
								{
M
Matt Bierner 已提交
1256
									"include": "source.objc"
M
Matt Bierner 已提交
1257 1258 1259 1260 1261
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1262 1263
				"fenced_code_block_scss": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(scss)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285
					"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*$)",
M
Matt Bierner 已提交
1286
							"contentName": "meta.embedded.block.scss",
M
Matt Bierner 已提交
1287 1288
							"patterns": [
								{
M
Matt Bierner 已提交
1289
									"include": "source.css.scss"
M
Matt Bierner 已提交
1290 1291 1292 1293 1294
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1295 1296
				"fenced_code_block_perl6": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(perl6|p6|pl6|pm6|nqp)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318
					"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*$)",
M
Matt Bierner 已提交
1319
							"contentName": "meta.embedded.block.perl6",
M
Matt Bierner 已提交
1320 1321
							"patterns": [
								{
M
Matt Bierner 已提交
1322
									"include": "source.perl.6"
M
Matt Bierner 已提交
1323 1324 1325 1326 1327
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1328 1329
				"fenced_code_block_powershell": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(powershell|ps1|psm1|psd1)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351
					"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*$)",
M
Matt Bierner 已提交
1352
							"contentName": "meta.embedded.block.powershell",
M
Matt Bierner 已提交
1353 1354
							"patterns": [
								{
M
Matt Bierner 已提交
1355
									"include": "source.powershell"
M
Matt Bierner 已提交
1356 1357 1358 1359 1360
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1361 1362
				"fenced_code_block_python": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(python|py|py3|rpy|pyw|cpy|SConstruct|Sconstruct|sconstruct|SConscript|gyp|gypi)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384
					"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*$)",
M
Matt Bierner 已提交
1385
							"contentName": "meta.embedded.block.python",
M
Matt Bierner 已提交
1386 1387
							"patterns": [
								{
M
Matt Bierner 已提交
1388
									"include": "source.python"
M
Matt Bierner 已提交
1389 1390 1391 1392 1393
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1394 1395
				"fenced_code_block_regexp_python": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(re)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417
					"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*$)",
M
Matt Bierner 已提交
1418
							"contentName": "meta.embedded.block.regexp_python",
M
Matt Bierner 已提交
1419 1420
							"patterns": [
								{
M
Matt Bierner 已提交
1421
									"include": "source.regexp.python"
M
Matt Bierner 已提交
1422 1423 1424 1425 1426
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1427 1428
				"fenced_code_block_rust": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(rust|rs)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450
					"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*$)",
M
Matt Bierner 已提交
1451
							"contentName": "meta.embedded.block.rust",
M
Matt Bierner 已提交
1452 1453
							"patterns": [
								{
M
Matt Bierner 已提交
1454
									"include": "source.rust"
M
Matt Bierner 已提交
1455 1456 1457 1458 1459
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1460 1461
				"fenced_code_block_scala": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(scala|sbt)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483
					"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*$)",
M
Matt Bierner 已提交
1484
							"contentName": "meta.embedded.block.scala",
M
Matt Bierner 已提交
1485 1486
							"patterns": [
								{
M
Matt Bierner 已提交
1487
									"include": "source.scala"
M
Matt Bierner 已提交
1488 1489 1490 1491 1492
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1493 1494
				"fenced_code_block_shell": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(shell|sh|bash|zsh|bashrc|bash_profile|bash_login|profile|bash_logout|.textmate_init)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516
					"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*$)",
M
Matt Bierner 已提交
1517
							"contentName": "meta.embedded.block.shellscript",
M
Matt Bierner 已提交
1518 1519
							"patterns": [
								{
M
Matt Bierner 已提交
1520
									"include": "source.shell"
M
Matt Bierner 已提交
1521 1522 1523 1524 1525
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1526 1527
				"fenced_code_block_ts": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(typescript|ts)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549
					"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*$)",
M
Matt Bierner 已提交
1550
							"contentName": "meta.embedded.block.typescript",
M
Matt Bierner 已提交
1551 1552
							"patterns": [
								{
M
Matt Bierner 已提交
1553
									"include": "source.ts"
M
Matt Bierner 已提交
1554 1555 1556 1557 1558
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1559 1560
				"fenced_code_block_tsx": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(tsx)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582
					"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*$)",
M
Matt Bierner 已提交
1583
							"contentName": "meta.embedded.block.typescriptreact",
M
Matt Bierner 已提交
1584 1585
							"patterns": [
								{
M
Matt Bierner 已提交
1586
									"include": "source.tsx"
M
Matt Bierner 已提交
1587 1588 1589 1590 1591
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1592 1593
				"fenced_code_block_csharp": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(cs|csharp|c#)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615
					"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*$)",
M
Matt Bierner 已提交
1616
							"contentName": "meta.embedded.block.csharp",
M
Matt Bierner 已提交
1617 1618
							"patterns": [
								{
M
Matt Bierner 已提交
1619
									"include": "source.cs"
M
Matt Bierner 已提交
1620 1621 1622 1623 1624
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1625 1626
				"fenced_code_block_fsharp": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(fs|fsharp|f#)(\\s+[^`~]*)?$)",
M
Matt Bierner 已提交
1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648
					"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*$)",
M
Matt Bierner 已提交
1649
							"contentName": "meta.embedded.block.fsharp",
M
Matt Bierner 已提交
1650 1651
							"patterns": [
								{
M
Matt Bierner 已提交
1652
									"include": "source.fsharp"
M
Matt Bierner 已提交
1653 1654 1655 1656 1657
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690
				"fenced_code_block_dart": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(dart)(\\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.dart",
							"patterns": [
								{
									"include": "source.dart"
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723
				"fenced_code_block_handlebars": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(handlebars|hbs)(\\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.handlebars",
							"patterns": [
								{
									"include": "text.html.handlebars"
								}
							]
						}
					]
				},
M
Matt Bierner 已提交
1724 1725
				"fenced_code_block_unknown": {
					"begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?=([^`~]*)?$)",
M
Matt Bierner 已提交
1726 1727 1728 1729
					"beginCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
						},
M
Matt Bierner 已提交
1730
						"4": {
M
Matt Bierner 已提交
1731 1732 1733
							"name": "fenced_code.block.language"
						}
					},
M
Matt Bierner 已提交
1734
					"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
M
Matt Bierner 已提交
1735 1736 1737 1738 1739
					"endCaptures": {
						"3": {
							"name": "punctuation.definition.markdown"
						}
					},
M
Matt Bierner 已提交
1740 1741 1742
					"name": "markup.fenced_code.block.markdown"
				},
				"heading": {
M
Matt Bierner 已提交
1743
					"match": "(?:^|\\G)[ ]{0,3}((#{1,6})\\s*(?=[\\S[^#]]).*?\\s*(#{1,6})?)$\\n?",
M
Matt Bierner 已提交
1744 1745
					"captures": {
						"1": {
M
Matt Bierner 已提交
1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837
							"patterns": [
								{
									"match": "(#{6})\\s*(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?",
									"name": "heading.6.markdown",
									"captures": {
										"1": {
											"name": "punctuation.definition.heading.markdown"
										},
										"2": {
											"name": "entity.name.section.markdown"
										},
										"3": {
											"name": "punctuation.definition.heading.markdown"
										}
									}
								},
								{
									"match": "(#{5})\\s*(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?",
									"name": "heading.5.markdown",
									"captures": {
										"1": {
											"name": "punctuation.definition.heading.markdown"
										},
										"2": {
											"name": "entity.name.section.markdown"
										},
										"3": {
											"name": "punctuation.definition.heading.markdown"
										}
									}
								},
								{
									"match": "(#{4})\\s*(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?",
									"name": "heading.4.markdown",
									"captures": {
										"1": {
											"name": "punctuation.definition.heading.markdown"
										},
										"2": {
											"name": "entity.name.section.markdown"
										},
										"3": {
											"name": "punctuation.definition.heading.markdown"
										}
									}
								},
								{
									"match": "(#{3})\\s*(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?",
									"name": "heading.3.markdown",
									"captures": {
										"1": {
											"name": "punctuation.definition.heading.markdown"
										},
										"2": {
											"name": "entity.name.section.markdown"
										},
										"3": {
											"name": "punctuation.definition.heading.markdown"
										}
									}
								},
								{
									"match": "(#{2})\\s*(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?",
									"name": "heading.2.markdown",
									"captures": {
										"1": {
											"name": "punctuation.definition.heading.markdown"
										},
										"2": {
											"name": "entity.name.section.markdown"
										},
										"3": {
											"name": "punctuation.definition.heading.markdown"
										}
									}
								},
								{
									"match": "(#{1})\\s*(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?",
									"name": "heading.1.markdown",
									"captures": {
										"1": {
											"name": "punctuation.definition.heading.markdown"
										},
										"2": {
											"name": "entity.name.section.markdown"
										},
										"3": {
											"name": "punctuation.definition.heading.markdown"
										}
									}
								}
							]
M
Matt Bierner 已提交
1838 1839 1840
						}
					},
					"name": "markup.heading.markdown",
M
Matt Bierner 已提交
1841 1842
					"patterns": [
						{
M
Matt Bierner 已提交
1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876
							"include": "#inline"
						}
					]
				},
				"heading-setext": {
					"patterns": [
						{
							"match": "^(={3,})(?=[ \\t]*$\\n?)",
							"name": "markup.heading.setext.1.markdown"
						},
						{
							"match": "^(-{3,})(?=[ \\t]*$\\n?)",
							"name": "markup.heading.setext.2.markdown"
						}
					]
				},
				"html": {
					"patterns": [
						{
							"begin": "(^|\\G)\\s*(<!--)",
							"captures": {
								"1": {
									"name": "punctuation.definition.comment.html"
								},
								"2": {
									"name": "punctuation.definition.comment.html"
								}
							},
							"end": "(-->)",
							"name": "comment.block.html"
						},
						{
							"begin": "(^|\\G)\\s*(?=<(script|style|pre)(\\s|$|>)(?!.*?</(script|style|pre)>))",
							"end": "(?=.*</(script|style|pre)>)",
M
Matt Bierner 已提交
1877 1878
							"patterns": [
								{
M
Matt Bierner 已提交
1879 1880 1881 1882 1883 1884 1885
									"begin": "(\\s*|$)",
									"patterns": [
										{
											"include": "text.html.basic"
										}
									],
									"while": "^(?!.*</(script|style|pre)>)"
M
Matt Bierner 已提交
1886 1887 1888
								}
							]
						},
M
Matt Bierner 已提交
1889 1890 1891 1892 1893 1894 1895 1896
						{
							"begin": "(^|\\G)\\s*(?=</?(address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(\\s|$|/?>))",
							"patterns": [
								{
									"include": "text.html.basic"
								}
							],
							"while": "^(?!\\s*$)"
M
Matt Bierner 已提交
1897 1898
						},
						{
M
Matt Bierner 已提交
1899
							"begin": "(^|\\G)\\s*(?=(<[a-zA-Z0-9\\-](/?>|\\s.*?>)|</[a-zA-Z0-9\\-]>)\\s*$)",
M
Matt Bierner 已提交
1900 1901
							"patterns": [
								{
M
Matt Bierner 已提交
1902
									"include": "text.html.basic"
M
Matt Bierner 已提交
1903
								}
M
Matt Bierner 已提交
1904 1905
							],
							"while": "^(?!\\s*$)"
M
Matt Bierner 已提交
1906 1907 1908
						}
					]
				},
M
Matt Bierner 已提交
1909 1910 1911 1912 1913 1914 1915 1916
				"link-def": {
					"captures": {
						"1": {
							"name": "punctuation.definition.constant.markdown"
						},
						"2": {
							"name": "constant.other.reference.link.markdown"
						},
M
Matt Bierner 已提交
1917
						"3": {
M
Matt Bierner 已提交
1918 1919 1920 1921
							"name": "punctuation.definition.constant.markdown"
						},
						"4": {
							"name": "punctuation.separator.key-value.markdown"
M
Matt Bierner 已提交
1922 1923
						},
						"5": {
M
Matt Bierner 已提交
1924
							"name": "punctuation.definition.link.markdown"
M
Matt Bierner 已提交
1925 1926
						},
						"6": {
M
Matt Bierner 已提交
1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948
							"name": "markup.underline.link.markdown"
						},
						"7": {
							"name": "punctuation.definition.link.markdown"
						},
						"8": {
							"name": "string.other.link.description.title.markdown"
						},
						"9": {
							"name": "punctuation.definition.string.begin.markdown"
						},
						"10": {
							"name": "punctuation.definition.string.end.markdown"
						},
						"11": {
							"name": "string.other.link.description.title.markdown"
						},
						"12": {
							"name": "punctuation.definition.string.begin.markdown"
						},
						"13": {
							"name": "punctuation.definition.string.end.markdown"
M
Matt Bierner 已提交
1949 1950
						}
					},
M
Matt Bierner 已提交
1951
					"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",
M
Matt Bierner 已提交
1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965
					"name": "meta.link.reference.def.markdown"
				},
				"list_paragraph": {
					"begin": "(^|\\G)(?=\\S)(?![*+->]\\s|[0-9]+\\.\\s)",
					"name": "meta.paragraph.markdown",
					"patterns": [
						{
							"include": "#inline"
						},
						{
							"include": "text.html.basic"
						},
						{
							"include": "#heading-setext"
M
Matt Bierner 已提交
1966
						}
M
Matt Bierner 已提交
1967 1968 1969 1970
					],
					"while": "(^|\\G)(?!\\s*$|#|[ ]{0,3}([-*_>][ ]{2,}){3,}[ \\t]*$\\n?|[ ]{0,3}[*+->]|[ ]{0,3}[0-9]+\\.)"
				},
				"lists": {
M
Matt Bierner 已提交
1971 1972
					"patterns": [
						{
M
Matt Bierner 已提交
1973 1974 1975
							"begin": "(^|\\G)([ ]{0,3})([*+-])([ ]{1,3}|\\t)",
							"beginCaptures": {
								"3": {
M
Matt Bierner 已提交
1976
									"name": "punctuation.definition.list.begin.markdown"
M
Matt Bierner 已提交
1977 1978 1979 1980
								}
							},
							"comment": "Currently does not support un-indented second lines.",
							"name": "markup.list.unnumbered.markdown",
M
Matt Bierner 已提交
1981 1982
							"patterns": [
								{
M
Matt Bierner 已提交
1983 1984 1985 1986
									"include": "#block"
								},
								{
									"include": "#list_paragraph"
M
Matt Bierner 已提交
1987
								}
M
Matt Bierner 已提交
1988
							],
M
Matt Bierner 已提交
1989
							"while": "((^|\\G)([ ]{2,4}|\\t))|(^[ \\t]*$)"
M
Matt Bierner 已提交
1990 1991
						},
						{
M
Matt Bierner 已提交
1992 1993 1994
							"begin": "(^|\\G)([ ]{0,3})([0-9]+\\.)([ ]{1,3}|\\t)",
							"beginCaptures": {
								"3": {
M
Matt Bierner 已提交
1995
									"name": "punctuation.definition.list.begin.markdown"
M
Matt Bierner 已提交
1996 1997 1998
								}
							},
							"name": "markup.list.numbered.markdown",
M
Matt Bierner 已提交
1999 2000
							"patterns": [
								{
M
Matt Bierner 已提交
2001 2002 2003 2004
									"include": "#block"
								},
								{
									"include": "#list_paragraph"
M
Matt Bierner 已提交
2005
								}
M
Matt Bierner 已提交
2006
							],
M
Matt Bierner 已提交
2007
							"while": "((^|\\G)([ ]{2,4}|\\t))|(^[ \\t]*$)"
M
Matt Bierner 已提交
2008 2009 2010
						}
					]
				},
M
Matt Bierner 已提交
2011 2012 2013 2014 2015 2016
				"paragraph": {
					"begin": "(^|\\G)[ ]{0,3}(?=\\S)",
					"name": "meta.paragraph.markdown",
					"patterns": [
						{
							"include": "#inline"
M
Matt Bierner 已提交
2017
						},
M
Matt Bierner 已提交
2018 2019
						{
							"include": "text.html.basic"
M
Matt Bierner 已提交
2020
						},
M
Matt Bierner 已提交
2021 2022
						{
							"include": "#heading-setext"
M
Matt Bierner 已提交
2023
						}
M
Matt Bierner 已提交
2024 2025 2026 2027 2028 2029 2030 2031 2032
					],
					"while": "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=\\S))"
				},
				"raw_block": {
					"begin": "(^|\\G)([ ]{4}|\\t)",
					"name": "markup.raw.block.markdown",
					"while": "(^|\\G)([ ]{4}|\\t)"
				},
				"separator": {
M
Matt Bierner 已提交
2033
					"match": "(^|\\G)[ ]{0,3}([*-_])([ ]{0,2}\\2){2,}[ \\t]*$\\n?",
M
Matt Bierner 已提交
2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096
					"name": "meta.separator.markdown"
				}
			}
		},
		"frontMatter": {
			"begin": "\\A-{3}\\s*$",
			"contentName": "meta.embedded.block.frontmatter",
			"patterns": [
				{
					"include": "source.yaml"
				}
			],
			"while": "^(?!(-{3}|\\.{3})\\s*$)"
		},
		"inline": {
			"patterns": [
				{
					"include": "#ampersand"
				},
				{
					"include": "#bracket"
				},
				{
					"include": "#bold"
				},
				{
					"include": "#italic"
				},
				{
					"include": "#raw"
				},
				{
					"include": "#escape"
				},
				{
					"include": "#image-inline"
				},
				{
					"include": "#image-ref"
				},
				{
					"include": "#link-email"
				},
				{
					"include": "#link-inet"
				},
				{
					"include": "#link-inline"
				},
				{
					"include": "#link-ref"
				},
				{
					"include": "#link-ref-literal"
				}
			],
			"repository": {
				"ampersand": {
					"comment": "Markdown will convert this for us. We match it so that the HTML grammar will not mark it up as invalid.",
					"match": "&(?!([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);)",
					"name": "meta.other.valid-ampersand.markdown"
				},
				"bold": {
M
Matt Bierner 已提交
2097
					"begin": "(?x)\n (\\*\\*(?=\\w)|(?<!\\w)\\*\\*|(?<!\\w)\\b__)(?=\\S)                # Open\n (?=\n   (\n     <[^>]*+>              # HTML tags\n     | (?<raw>`+)([^`]|(?!(?<!`)\\k<raw>(?!`))`)*+\\k<raw>\n                       # Raw\n     | \\\\[\\\\`*_{}\\[\\]()#.!+\\->]?+      # Escapes\n     | \\[\n     (\n         (?<square>          # Named group\n           [^\\[\\]\\\\]        # Match most chars\n           | \\\\.            # Escaped chars\n           | \\[ \\g<square>*+ \\]    # Nested brackets\n         )*+\n       \\]\n       (\n         (              # Reference Link\n           [ ]?          # Optional space\n           \\[[^\\]]*+\\]        # Ref name\n         )\n         | (              # Inline Link\n           \\(            # Opening paren\n             [ \\t]*+        # Optional whitespace\n             <?(.*?)>?      # URL\n             [ \\t]*+        # Optional whitespace\n             (          # Optional Title\n               (?<title>['\"])\n               (.*?)\n               \\k<title>\n             )?\n           \\)\n         )\n       )\n     )\n     | (?!(?<=\\S)\\1).            # Everything besides\n                       # style closer\n   )++\n   (?<=\\S)(?=__\\b|\\*\\*)\\1                # Close\n )\n",
M
Matt Bierner 已提交
2098 2099 2100
					"captures": {
						"1": {
							"name": "punctuation.definition.bold.markdown"
M
Matt Bierner 已提交
2101 2102
						}
					},
M
Matt Bierner 已提交
2103 2104
					"end": "(?<=\\S)(\\1)",
					"name": "markup.bold.markdown",
M
Matt Bierner 已提交
2105 2106
					"patterns": [
						{
M
Matt Bierner 已提交
2107 2108 2109
							"applyEndPatternLast": 1,
							"begin": "(?=<[^>]*?>)",
							"end": "(?<=>)",
M
Matt Bierner 已提交
2110 2111
							"patterns": [
								{
M
Matt Bierner 已提交
2112
									"include": "text.html.basic"
M
Matt Bierner 已提交
2113 2114 2115
								}
							]
						},
M
Matt Bierner 已提交
2116 2117
						{
							"include": "#escape"
M
Matt Bierner 已提交
2118 2119
						},
						{
M
Matt Bierner 已提交
2120
							"include": "#ampersand"
M
Matt Bierner 已提交
2121
						},
M
Matt Bierner 已提交
2122 2123
						{
							"include": "#bracket"
M
Matt Bierner 已提交
2124 2125
						},
						{
M
Matt Bierner 已提交
2126
							"include": "#raw"
M
Matt Bierner 已提交
2127
						},
M
Matt Bierner 已提交
2128 2129 2130
						{
							"include": "#bold"
						},
M
Matt Bierner 已提交
2131 2132
						{
							"include": "#italic"
M
Matt Bierner 已提交
2133 2134
						},
						{
M
Matt Bierner 已提交
2135
							"include": "#image-inline"
M
Matt Bierner 已提交
2136
						},
M
Matt Bierner 已提交
2137 2138
						{
							"include": "#link-inline"
M
Matt Bierner 已提交
2139 2140
						},
						{
M
Matt Bierner 已提交
2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153
							"include": "#link-inet"
						},
						{
							"include": "#link-email"
						},
						{
							"include": "#image-ref"
						},
						{
							"include": "#link-ref-literal"
						},
						{
							"include": "#link-ref"
M
Matt Bierner 已提交
2154 2155 2156
						}
					]
				},
M
Matt Bierner 已提交
2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175
				"bracket": {
					"comment": "Markdown will convert this for us. We match it so that the HTML grammar will not mark it up as invalid.",
					"match": "<(?![a-z/?\\$!])",
					"name": "meta.other.valid-bracket.markdown"
				},
				"escape": {
					"match": "\\\\[-`*_#+.!(){}\\[\\]\\\\>]",
					"name": "constant.character.escape.markdown"
				},
				"image-inline": {
					"captures": {
						"1": {
							"name": "punctuation.definition.string.begin.markdown"
						},
						"2": {
							"name": "string.other.link.description.markdown"
						},
						"4": {
							"name": "punctuation.definition.string.end.markdown"
M
Matt Bierner 已提交
2176 2177
						},
						"5": {
M
Matt Bierner 已提交
2178
							"name": "punctuation.definition.metadata.markdown"
M
Matt Bierner 已提交
2179 2180
						},
						"6": {
M
Matt Bierner 已提交
2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208
							"name": "punctuation.definition.link.markdown"
						},
						"7": {
							"name": "markup.underline.link.image.markdown"
						},
						"8": {
							"name": "punctuation.definition.link.markdown"
						},
						"9": {
							"name": "string.other.link.description.title.markdown"
						},
						"10": {
							"name": "punctuation.definition.string.markdown"
						},
						"11": {
							"name": "punctuation.definition.string.markdown"
						},
						"12": {
							"name": "string.other.link.description.title.markdown"
						},
						"13": {
							"name": "punctuation.definition.string.markdown"
						},
						"14": {
							"name": "punctuation.definition.string.markdown"
						},
						"15": {
							"name": "punctuation.definition.metadata.markdown"
M
Matt Bierner 已提交
2209 2210
						}
					},
M
Matt Bierner 已提交
2211
					"match": "(?x)\n  (\\!\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])\n                # Match the link text.\n  (\\()            # Opening paren for url\n    (<?)(\\S+?)(>?)      # The url\n    [ \\t]*          # Optional whitespace\n    (?:\n        ((\\().+?(\\)))    # Match title in parens…\n      | ((\").+?(\"))    # or in quotes.\n    )?            # Title is optional\n    \\s*            # Optional whitespace\n  (\\))\n",
M
Matt Bierner 已提交
2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223
					"name": "meta.image.inline.markdown"
				},
				"image-ref": {
					"captures": {
						"1": {
							"name": "punctuation.definition.string.begin.markdown"
						},
						"2": {
							"name": "string.other.link.description.markdown"
						},
						"4": {
							"name": "punctuation.definition.string.begin.markdown"
M
Matt Bierner 已提交
2224 2225
						},
						"5": {
M
Matt Bierner 已提交
2226
							"name": "punctuation.definition.constant.markdown"
M
Matt Bierner 已提交
2227 2228
						},
						"6": {
M
Matt Bierner 已提交
2229 2230 2231 2232
							"name": "constant.other.reference.link.markdown"
						},
						"7": {
							"name": "punctuation.definition.constant.markdown"
M
Matt Bierner 已提交
2233 2234
						}
					},
M
Matt Bierner 已提交
2235 2236 2237 2238
					"match": "(\\!\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])[ ]?(\\[)(.*?)(\\])",
					"name": "meta.image.reference.markdown"
				},
				"italic": {
M
Matt Bierner 已提交
2239
					"begin": "(?x) (\\*(?=\\w)|(?<!\\w)\\*|(?<!\\w)\\b_)(?=\\S)                # Open\n  (?=\n    (\n      <[^>]*+>              # HTML tags\n      | (?<raw>`+)([^`]|(?!(?<!`)\\k<raw>(?!`))`)*+\\k<raw>\n                        # Raw\n      | \\\\[\\\\`*_{}\\[\\]()#.!+\\->]?+      # Escapes\n      | \\[\n      (\n          (?<square>          # Named group\n            [^\\[\\]\\\\]        # Match most chars\n            | \\\\.            # Escaped chars\n            | \\[ \\g<square>*+ \\]    # Nested brackets\n          )*+\n        \\]\n        (\n          (              # Reference Link\n            [ ]?          # Optional space\n            \\[[^\\]]*+\\]        # Ref name\n          )\n          | (              # Inline Link\n            \\(            # Opening paren\n              [ \\t]*+        # Optional whtiespace\n              <?(.*?)>?      # URL\n              [ \\t]*+        # Optional whtiespace\n              (          # Optional Title\n                (?<title>['\"])\n                (.*?)\n                \\k<title>\n              )?\n            \\)\n          )\n        )\n      )\n      | \\1\\1                # Must be bold closer\n      | (?!(?<=\\S)\\1).            # Everything besides\n                        # style closer\n    )++\n    (?<=\\S)(?=_\\b|\\*)\\1                # Close\n  )\n",
M
Matt Bierner 已提交
2240 2241 2242
					"captures": {
						"1": {
							"name": "punctuation.definition.italic.markdown"
M
Matt Bierner 已提交
2243 2244
						}
					},
M
Matt Bierner 已提交
2245 2246
					"end": "(?<=\\S)(\\1)((?!\\1)|(?=\\1\\1))",
					"name": "markup.italic.markdown",
M
Matt Bierner 已提交
2247 2248
					"patterns": [
						{
M
Matt Bierner 已提交
2249 2250 2251
							"applyEndPatternLast": 1,
							"begin": "(?=<[^>]*?>)",
							"end": "(?<=>)",
M
Matt Bierner 已提交
2252 2253
							"patterns": [
								{
M
Matt Bierner 已提交
2254
									"include": "text.html.basic"
M
Matt Bierner 已提交
2255 2256
								}
							]
M
Matt Bierner 已提交
2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292
						},
						{
							"include": "#escape"
						},
						{
							"include": "#ampersand"
						},
						{
							"include": "#bracket"
						},
						{
							"include": "#raw"
						},
						{
							"include": "#bold"
						},
						{
							"include": "#image-inline"
						},
						{
							"include": "#link-inline"
						},
						{
							"include": "#link-inet"
						},
						{
							"include": "#link-email"
						},
						{
							"include": "#image-ref"
						},
						{
							"include": "#link-ref-literal"
						},
						{
							"include": "#link-ref"
M
Matt Bierner 已提交
2293 2294 2295
						}
					]
				},
M
Matt Bierner 已提交
2296 2297 2298 2299
				"link-email": {
					"captures": {
						"1": {
							"name": "punctuation.definition.link.markdown"
M
Matt Bierner 已提交
2300
						},
M
Matt Bierner 已提交
2301 2302
						"2": {
							"name": "markup.underline.link.markdown"
M
Matt Bierner 已提交
2303
						},
M
Matt Bierner 已提交
2304 2305
						"4": {
							"name": "punctuation.definition.link.markdown"
M
Matt Bierner 已提交
2306 2307
						}
					},
M
Matt Bierner 已提交
2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318
					"match": "(<)((?:mailto:)?[-.\\w]+@[-a-z0-9]+(\\.[-a-z0-9]+)*\\.[a-z]+)(>)",
					"name": "meta.link.email.lt-gt.markdown"
				},
				"link-inet": {
					"captures": {
						"1": {
							"name": "punctuation.definition.link.markdown"
						},
						"2": {
							"name": "markup.underline.link.markdown"
						},
M
Matt Bierner 已提交
2319
						"3": {
M
Matt Bierner 已提交
2320
							"name": "punctuation.definition.link.markdown"
M
Matt Bierner 已提交
2321 2322
						}
					},
M
Matt Bierner 已提交
2323 2324
					"match": "(<)((?:https?|ftp)://.*?)(>)",
					"name": "meta.link.inet.markdown"
M
Matt Bierner 已提交
2325
				},
M
Matt Bierner 已提交
2326 2327 2328 2329 2330 2331 2332 2333 2334 2335
				"link-inline": {
					"captures": {
						"1": {
							"name": "punctuation.definition.string.begin.markdown"
						},
						"2": {
							"name": "string.other.link.title.markdown"
						},
						"4": {
							"name": "punctuation.definition.string.end.markdown"
M
Matt Bierner 已提交
2336 2337
						},
						"5": {
M
Matt Bierner 已提交
2338
							"name": "punctuation.definition.metadata.markdown"
M
Matt Bierner 已提交
2339 2340
						},
						"6": {
M
Matt Bierner 已提交
2341 2342 2343 2344 2345
							"name": "punctuation.definition.link.markdown"
						},
						"7": {
							"name": "markup.underline.link.markdown"
						},
M
Matt Bierner 已提交
2346
						"9": {
M
Matt Bierner 已提交
2347 2348
							"name": "punctuation.definition.link.markdown"
						},
M
Matt Bierner 已提交
2349
						"10": {
M
Matt Bierner 已提交
2350 2351
							"name": "string.other.link.description.title.markdown"
						},
M
Matt Bierner 已提交
2352
						"11": {
M
Matt Bierner 已提交
2353 2354
							"name": "punctuation.definition.string.begin.markdown"
						},
M
Matt Bierner 已提交
2355
						"12": {
M
Matt Bierner 已提交
2356 2357
							"name": "punctuation.definition.string.end.markdown"
						},
M
Matt Bierner 已提交
2358
						"13": {
M
Matt Bierner 已提交
2359 2360
							"name": "string.other.link.description.title.markdown"
						},
M
Matt Bierner 已提交
2361
						"14": {
M
Matt Bierner 已提交
2362 2363
							"name": "punctuation.definition.string.begin.markdown"
						},
M
Matt Bierner 已提交
2364
						"15": {
M
Matt Bierner 已提交
2365 2366
							"name": "punctuation.definition.string.end.markdown"
						},
M
Matt Bierner 已提交
2367
						"16": {
M
Matt Bierner 已提交
2368
							"name": "punctuation.definition.metadata.markdown"
M
Matt Bierner 已提交
2369 2370
						}
					},
M
Matt Bierner 已提交
2371
					"match": "(?x)\n  (\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])\n                # Match the link text.\n  (\\()            # Opening paren for url\n    (<?)((?<url>[^\\s()]+|\\(\\g<url>*\\))*)(>?)      # The url\n    [ \\t]*          # Optional whitespace\n    (?:\n        ((\\().+?(\\)))    # Match title in parens…\n      | ((\").+?(\"))    # or in quotes.\n    )?            # Title is optional\n    \\s*            # Optional whitespace\n  (\\))\n",
M
Matt Bierner 已提交
2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392
					"name": "meta.link.inline.markdown"
				},
				"link-ref": {
					"captures": {
						"1": {
							"name": "punctuation.definition.string.begin.markdown"
						},
						"2": {
							"name": "string.other.link.title.markdown"
						},
						"4": {
							"name": "punctuation.definition.string.end.markdown"
						},
						"5": {
							"name": "punctuation.definition.constant.begin.markdown"
						},
						"6": {
							"name": "constant.other.reference.link.markdown"
						},
						"7": {
							"name": "punctuation.definition.constant.end.markdown"
M
Matt Bierner 已提交
2393 2394
						}
					},
M
Matt Bierner 已提交
2395 2396
					"match": "(\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])(\\[)([^\\]]*+)(\\])",
					"name": "meta.link.reference.markdown"
M
Matt Bierner 已提交
2397
				},
M
Matt Bierner 已提交
2398 2399 2400 2401 2402 2403 2404 2405 2406 2407
				"link-ref-literal": {
					"captures": {
						"1": {
							"name": "punctuation.definition.string.begin.markdown"
						},
						"2": {
							"name": "string.other.link.title.markdown"
						},
						"4": {
							"name": "punctuation.definition.string.end.markdown"
M
Matt Bierner 已提交
2408 2409
						},
						"5": {
M
Matt Bierner 已提交
2410
							"name": "punctuation.definition.constant.begin.markdown"
M
Matt Bierner 已提交
2411 2412
						},
						"6": {
M
Matt Bierner 已提交
2413
							"name": "punctuation.definition.constant.end.markdown"
M
Matt Bierner 已提交
2414 2415
						}
					},
M
Matt Bierner 已提交
2416 2417 2418 2419 2420 2421 2422 2423
					"match": "(\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])[ ]?(\\[)(\\])",
					"name": "meta.link.reference.literal.markdown"
				},
				"raw": {
					"captures": {
						"1": {
							"name": "punctuation.definition.raw.markdown"
						},
M
Matt Bierner 已提交
2424
						"3": {
M
Matt Bierner 已提交
2425
							"name": "punctuation.definition.raw.markdown"
M
Matt Bierner 已提交
2426 2427
						}
					},
M
Matt Bierner 已提交
2428 2429
					"match": "(`+)([^`]|(?!(?<!`)\\1(?!`))`)*+(\\1)",
					"name": "markup.inline.raw.string.markdown"
M
Matt Bierner 已提交
2430 2431 2432
				}
			}
		}
2433
	}
M
Matt Bierner 已提交
2434
}