Tue, 12 May 2020 18:38:00 -0500
Support initial-prefixed \XYtodo.
0 | 1 | |
2 | { | |
3 | "fileTypes": [], | |
4 | "injectionSelector": "L:text.html.markdown", | |
5 | "patterns": [ | |
6 | { | |
7 | "include": "#fenced_code_block_latex" | |
8 | } | |
9 | ], | |
10 | "repository": { | |
11 | "fenced_code_block_latex": { | |
12 | "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(latex)\\s*(?:\\{[^\\{\\}]*\\})?\\s*$", | |
13 | "name": "markup.fenced_code.block.markdown", | |
14 | "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", | |
15 | "beginCaptures": { | |
16 | "3": { | |
17 | "name": "punctuation.definition.markdown" | |
18 | }, | |
19 | "4": { | |
20 | "name": "fenced_code.block.language" | |
21 | } | |
22 | }, | |
23 | "endCaptures": { | |
24 | "3": { | |
25 | "name": "punctuation.definition.markdown" | |
26 | } | |
27 | }, | |
28 | "patterns": [ | |
29 | { | |
30 | "begin": "(^|\\G)(\\s*)(.*)", | |
31 | "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", | |
32 | "contentName": "meta.embedded.block.latex", | |
33 | "patterns": [ | |
34 | { | |
35 | "include": "text.tex.latex" | |
36 | } | |
37 | ] | |
38 | } | |
39 | ] | |
40 | } | |
41 | }, | |
42 | "scopeName": "markdown.latex.codeblock" | |
43 | } |