|
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/e2af2e59c84c47b7b3c3ea690d74e7001bab96a1", |
| 7 | + "version": "https://github.com/microsoft/vscode-markdown-tm-grammar/commit/0a4b23580308fdcfb4ab7b526e3e13ba17d436fb", |
8 | 8 | "name": "Markdown",
|
9 | 9 | "scopeName": "text.tex.markdown_latex_combined",
|
10 | 10 | "patterns": [
|
|
45 | 45 | {
|
46 | 46 | "include": "#html"
|
47 | 47 | },
|
| 48 | + { |
| 49 | + "include": "#table" |
| 50 | + }, |
48 | 51 | {
|
49 | 52 | "include": "#paragraph"
|
50 | 53 | }
|
|
2440 | 2443 | "while": "((^|\\G)([ ]{2,4}|\\t))|(^[ \\t]*$)"
|
2441 | 2444 | },
|
2442 | 2445 | {
|
2443 |
| - "begin": "(^|\\G)([ ]{0,3})([0-9]+\\.)([ \\t])", |
| 2446 | + "begin": "(^|\\G)([ ]{0,3})([0-9]+[\\.\\)])([ \\t])", |
2444 | 2447 | "beginCaptures": {
|
2445 | 2448 | "3": {
|
2446 | 2449 | "name": "punctuation.definition.list.begin.markdown"
|
|
2460 | 2463 | ]
|
2461 | 2464 | },
|
2462 | 2465 | "paragraph": {
|
2463 |
| - "begin": "(^|\\G)[ ]{0,3}(?=\\S)", |
| 2466 | + "begin": "(^|\\G)[ ]{0,3}(?=[^ \\t\\n])", |
2464 | 2467 | "name": "meta.paragraph.markdown",
|
2465 | 2468 | "patterns": [
|
2466 | 2469 | {
|
|
2473 | 2476 | "include": "#heading-setext"
|
2474 | 2477 | }
|
2475 | 2478 | ],
|
2476 |
| - "while": "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=\\S))" |
| 2479 | + "while": "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=[^ \\t\\n]))" |
2477 | 2480 | },
|
2478 | 2481 | "raw_block": {
|
2479 | 2482 | "begin": "(^|\\G)([ ]{4}|\\t)",
|
|
2494 | 2497 | ],
|
2495 | 2498 | "end": "(^|\\G)-{3}|\\.{3}\\s*$"
|
2496 | 2499 | },
|
| 2500 | + "table": { |
| 2501 | + "name": "markup.table.markdown", |
| 2502 | + "begin": "(^|\\G)(\\|)(?=[^|].+\\|\\s*$)", |
| 2503 | + "beginCaptures": { |
| 2504 | + "2": { |
| 2505 | + "name": "punctuation.definition.table.markdown" |
| 2506 | + } |
| 2507 | + }, |
| 2508 | + "while": "(^|\\G)(?=\\|)", |
| 2509 | + "patterns": [ |
| 2510 | + { |
| 2511 | + "match": "\\|", |
| 2512 | + "name": "punctuation.definition.table.markdown" |
| 2513 | + }, |
| 2514 | + { |
| 2515 | + "match": "(?<=\\|)\\s*(:?-+:?)\\s*(?=\\|)", |
| 2516 | + "captures": { |
| 2517 | + "1": { |
| 2518 | + "name": "punctuation.separator.table.markdown" |
| 2519 | + } |
| 2520 | + } |
| 2521 | + }, |
| 2522 | + { |
| 2523 | + "match": "(?<=\\|)\\s*(?=\\S)((\\\\\\||[^|])+)(?<=\\S)\\s*(?=\\|)", |
| 2524 | + "captures": { |
| 2525 | + "1": { |
| 2526 | + "patterns": [ |
| 2527 | + { |
| 2528 | + "include": "#inline" |
| 2529 | + } |
| 2530 | + ] |
| 2531 | + } |
| 2532 | + } |
| 2533 | + } |
| 2534 | + ] |
| 2535 | + }, |
2497 | 2536 | "inline": {
|
2498 | 2537 | "patterns": [
|
2499 | 2538 | {
|
|
2956 | 2995 | "name": "punctuation.definition.link.title.end.markdown"
|
2957 | 2996 | }
|
2958 | 2997 | },
|
2959 |
| - "match": "(?<![\\]\\\\])(\\[)(\\S+?)(\\])", |
| 2998 | + "match": "(?<![\\]\\\\])(\\[)((?:[^\\s\\[\\]\\\\]|\\\\[\\[\\]])+?)((?<!\\\\)\\])", |
2960 | 2999 | "name": "meta.link.reference.markdown"
|
2961 | 3000 | },
|
2962 | 3001 | "raw": {
|
|
0 commit comments