|
1 | 1 | { |
2 | | - "scopeName": "text.markmap", |
3 | | - "injectionSelector": "text.html.markdown", |
| 2 | + "name": "markmap", |
| 3 | + "scopeName": "source.markmap", |
4 | 4 | "patterns": [ |
5 | | - { |
6 | | - "name": "meta.tag.template.markmap", |
7 | | - "begin": "^{%\\s*markmap\\b", |
8 | | - "end": "%}", |
9 | | - "captures": { |
10 | | - "0": { "name": "entity.name.tag.markmap" } |
11 | | - }, |
| 5 | + { "include": "#frontMatter" }, |
| 6 | + { "include": "text.html.markdown" } |
| 7 | + ], |
| 8 | + "repository": { |
| 9 | + "frontMatter": { |
| 10 | + "begin": "\\A(?=(-{3,}))", |
| 11 | + "end": "^ {,3}\\1-*[ \\t]*$|^[ \\t]*\\.{3}$", |
| 12 | + "applyEndPatternLast": 1, |
| 13 | + "endCaptures": { "0": { "name": "punctuation.definition.tag.frontmatter"} }, |
12 | 14 | "patterns": [ |
13 | 15 | { |
14 | | - "match": "\\d+", |
15 | | - "name": "constant.numeric.markmap-param" |
16 | | - }, |
17 | | - { |
18 | | - "match": "\\w+", |
19 | | - "name": "variable.parameter.markmap" |
| 16 | + "begin": "\\A(-{3,})(.*)$", |
| 17 | + "while": "^(?! {,3}\\1-*[ \\t]*$|[ \\t]*\\.{3}$)", |
| 18 | + "beginCaptures": { |
| 19 | + "1": { "name": "punctuation.definition.tag.frontmatter" }, |
| 20 | + "2": { "name": "comment.frontmatter" } |
| 21 | + }, |
| 22 | + "contentName": "meta.embedded.block.frontmatter", |
| 23 | + "patterns": [ { "include": "source.yaml" } ] |
20 | 24 | } |
21 | 25 | ] |
22 | | - }, |
23 | | - { |
24 | | - "name": "meta.tag.template.markmap", |
25 | | - "match": "^{%\\s*endmarkmap\\s*%}", |
26 | | - "captures": { |
27 | | - "0": { "name": "entity.name.tag.markmap" } |
28 | | - } |
29 | 26 | } |
30 | | - ] |
| 27 | + } |
31 | 28 | } |
0 commit comments