返回 slidev
codeblock.json
根目录 / packages / vscode / syntaxes / codeblock.json
1 {
2 "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3 "fileTypes": [],
4 "injectionSelector": "L:fenced_code.block.language.attributes.markdown -meta.code_block_attrs.slidev",
5 "patterns": [
6 {
7 "match": "twoslash",
8 "name": "keyword.twoslash.slidev"
9 },
10 {
11 "match": "\\s*(\\{)([^}]*)(\\})\\s*(.*)$",
12 "name": "meta.code_block_attrs.slidev",
13 "captures": {
14 "1": {
15 "name": "punctuation.definition.range_or_monaco.slidev"
16 },
17 "2": {
18 "name": "meta.range_or_monaco.slidev",
19 "patterns": [
20 {
21 "include": "source.slidev#monaco-type"
22 },
23 {
24 "include": "source.slidev#range-with-steps"
25 }
26 ]
27 },
28 "3": {
29 "name": "punctuation.definition.range_or_monaco.slidev"
30 },
31 "4": {
32 "patterns": [
33 {
34 "match": "twoslash",
35 "name": "keyword.twoslash.slidev"
36 },
37 {
38 "begin": "(?=\\{)",
39 "end": "(?<=\\})(\\s*twoslash)?$",
40 "endCaptures": {
41 "1": {
42 "name": "keyword.twoslash.slidev"
43 }
44 },
45 "contentName": "meta.embedded.block.code_block_options.ts",
46 "patterns": [
47 {
48 "include": "source.ts#object-literal"
49 }
50 ]
51 }
52 ]
53 }
54 }
55 }
56 ],
57 "scopeName": "inject-to-markdown.codeblock.slidev"
58 }
59
59 lines JSON