1
2
3
4
5
6
7
8
9
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
|
{
"injectionSelector": "L:source.rust -string -comment -meta.embedded.block.rustdoc.md",
"patterns": [
{
"include": "#triple-slash"
},
{
"include": "#double-slash-exclamation"
},
{
"include": "#slash-start-exclamation"
},
{
"include": "#slash-double-start"
}
],
"repository": {
"triple-slash": {
"begin": "(^|\\G)\\s*(///) ?",
"captures": {
"2": {
"name": "comment.line.double-slash.rust"
}
},
"name": "comment.quote_code.triple-slash.rust",
"contentName": "meta.embedded.block.rustdoc",
"patterns": [
{
"include": "text.html.markdown.rustdoc"
}
],
"while": "(^|\\G)\\s*(///) ?"
},
"double-slash-exclamation": {
"begin": "(^|\\G)\\s*(//!) ?",
"captures": {
"2": {
"name": "comment.line.double-slash.rust"
}
},
"name": "comment.quote_code.double-slash-exclamation.rust",
"contentName": "meta.embedded.block.rustdoc",
"patterns": [
{
"include": "text.html.markdown.rustdoc"
}
],
"while": "(^|\\G)\\s*(//!) ?"
},
"slash-start-exclamation": {
"begin": "(^)(/\\*!) ?$",
"captures": {
"2": {
"name": "comment.block.rust"
}
},
"name": "comment.quote_code.slash-start-exclamation.rust",
"contentName": "meta.embedded.block.rustdoc",
"patterns": [
{
"include": "text.html.markdown.rustdoc"
}
],
"end": "( ?)(\\*/)"
},
"slash-double-start": {
"name": "comment.quote_code.slash-double-start-quote-star.rust",
"begin": "(?:^)\\s*/\\*\\* ?$",
"end": "\\*/",
"patterns": [
{
"include": "#quote-star"
}
]
},
"quote-star": {
"begin": "(^|\\G)\\s*(\\*(?!/)) ?",
"captures": {
"2": {
"name": "comment.punctuation.definition.quote_code.slash-star.MR"
}
},
"contentName": "meta.embedded.block.rustdoc",
"patterns": [
{
"include": "text.html.markdown.rustdoc"
}
],
"while": "(^|\\G)\\s*(\\*(?!/)) ?"
}
},
"scopeName": "comment.markdown-cell-inject.rustdoc"
}
|