apiuikit 0.3.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -7
- package/dist/LinkedInExtension-6xekO5bX.cjs +1 -0
- package/dist/LinkedInExtension-BL-4T9tt.js +21 -0
- package/dist/LogoExtension-BOYrY_RE.cjs +1 -0
- package/dist/LogoExtension-HOlSsQf-.js +27 -0
- package/dist/XExtension-GyRtdHLL.js +23 -0
- package/dist/XExtension-jAiATfg-.cjs +1 -0
- package/dist/apiuikit.cjs.js +1 -1
- package/dist/apiuikit.css +1 -1
- package/dist/apiuikit.es.js +24 -17
- package/dist/c-Bz1-FJiA.js +277 -0
- package/dist/c-C_Sx7N-F.cjs +1 -0
- package/dist/clojure-DWYEZwCD.cjs +1 -0
- package/dist/clojure-aY2138WD.js +135 -0
- package/dist/components/Authorization.d.ts +28 -17
- package/dist/components/ChannelAddress.d.ts +8 -2
- package/dist/components/CodeBlock.d.ts +4 -1
- package/dist/components/CodeSamples.d.ts +12 -0
- package/dist/components/CollapsiblePanel.d.ts +24 -0
- package/dist/components/CopyMarkdownButton.d.ts +15 -0
- package/dist/components/Examples.d.ts +4 -2
- package/dist/components/InfoMetadata.d.ts +21 -2
- package/dist/components/Markdown.d.ts +2 -0
- package/dist/components/MarkdownExportMenu.d.ts +13 -0
- package/dist/components/MethodBadge.d.ts +14 -0
- package/dist/components/Navigation/AsyncAPINavigation.d.ts +28 -0
- package/dist/components/Navigation/Navigation.d.ts +58 -0
- package/dist/components/Navigation/OpenAPINavigation.d.ts +22 -0
- package/dist/components/Navigation/SpecNavigation.d.ts +25 -0
- package/dist/components/Navigation/index.d.ts +4 -0
- package/dist/components/Navigation/sharedSections.d.ts +10 -0
- package/dist/components/RenderExtensions.d.ts +28 -0
- package/dist/components/Section.d.ts +3 -1
- package/dist/components/ServerAddressBanner.d.ts +16 -0
- package/dist/components/SidePanel.d.ts +2 -0
- package/dist/components/Tabs.d.ts +3 -1
- package/dist/components/schema/SchemaTab.d.ts +24 -3
- package/dist/components/tests/Authorization.test.d.ts +1 -0
- package/dist/components/tests/Bindings.test.d.ts +1 -0
- package/dist/components/tests/CodeBlock.test.d.ts +1 -0
- package/dist/components/tests/CodeSamples.test.d.ts +1 -0
- package/dist/components/tests/CopyMarkdownButton.test.d.ts +1 -0
- package/dist/components/tests/MarkdownExportMenu.test.d.ts +1 -0
- package/dist/components/tests/RenderExtensions.test.d.ts +1 -0
- package/dist/config/config.d.ts +10 -0
- package/dist/containers/AsyncAPI/AsyncAPI.d.ts +12 -6
- package/dist/containers/AsyncAPI/AsyncAPIRenderer.d.ts +9 -0
- package/dist/containers/Information/InformationSection.d.ts +22 -0
- package/dist/containers/Information/OpenAPIInformation.d.ts +9 -0
- package/dist/containers/OpenAPI/Layout.d.ts +7 -0
- package/dist/containers/OpenAPI/OpenAPI.d.ts +18 -0
- package/dist/containers/OpenAPI/OpenAPIDocumentProvider.d.ts +13 -0
- package/dist/containers/OpenAPI/OpenAPIRenderer.d.ts +17 -0
- package/dist/containers/OpenAPI/tests/OpenAPI.test.d.ts +1 -0
- package/dist/containers/OpenAPI/tests/OpenAPIRenderer.test.d.ts +1 -0
- package/dist/containers/Operation/Operations.d.ts +2 -1
- package/dist/containers/Path/OperationCallbacks.d.ts +37 -0
- package/dist/containers/Path/PathOperation.d.ts +21 -0
- package/dist/containers/Path/Paths.d.ts +16 -0
- package/dist/containers/Path/ResponseLinks.d.ts +21 -0
- package/dist/containers/Path/tests/PathOperation.test.d.ts +1 -0
- package/dist/containers/Server/OpenAPIServer.d.ts +4 -0
- package/dist/containers/Server/OpenAPIServers.d.ts +13 -0
- package/dist/contants.d.ts +7 -0
- package/dist/contexts/useSpec.d.ts +30 -6
- package/dist/crystal-BcGgviMR.cjs +1 -0
- package/dist/crystal-BtD5fR4q.js +283 -0
- package/dist/csharp-AnFv7wyC.js +382 -0
- package/dist/csharp-yuAGIuP4.cjs +1 -0
- package/dist/go-BpetKc7b.cjs +1 -0
- package/dist/go-CkZ9_bn0.js +151 -0
- package/dist/helpers/codeSamples.d.ts +92 -0
- package/dist/helpers/exampleSchema.d.ts +19 -0
- package/dist/helpers/hljsLanguages.d.ts +6 -0
- package/dist/helpers/openapiParser.d.ts +10 -0
- package/dist/helpers/openapiSearchIndex.d.ts +3 -0
- package/dist/helpers/resolveDocument.d.ts +8 -0
- package/dist/helpers/runtimeExpression.d.ts +15 -0
- package/dist/helpers/schemaExample.d.ts +9 -0
- package/dist/helpers/searchIndex.d.ts +5 -2
- package/dist/helpers/tests/codeSamples.test.d.ts +1 -0
- package/dist/helpers/tests/exampleSchema.test.d.ts +1 -0
- package/dist/helpers/tests/openapiSearchIndex.test.d.ts +1 -0
- package/dist/helpers/tests/toMarkdown.test.d.ts +1 -0
- package/dist/helpers/toMarkdown.d.ts +20 -0
- package/dist/hooks/useDocumentProviderValue.d.ts +27 -0
- package/dist/hooks/useFuseSearch.d.ts +14 -0
- package/dist/hooks/useOpenAPISearch.d.ts +9 -0
- package/dist/hooks/useSearchResultFocus.d.ts +18 -0
- package/dist/hooks/useSpecLayoutController.d.ts +51 -0
- package/dist/hooks/useSpecSearch.d.ts +2 -6
- package/dist/http--XH4hLDt.cjs +1 -0
- package/dist/http-DKeNlJKS.js +85 -0
- package/dist/icons/Copy.d.ts +6 -0
- package/dist/icons/Info.d.ts +5 -0
- package/dist/icons/Search.d.ts +3 -0
- package/dist/{index-D7GelPk0.cjs → index-ArzwV232.cjs} +6 -6
- package/dist/index-Bh4OKjMA.js +25412 -0
- package/dist/index-C278WDNb.cjs +139 -0
- package/dist/index-C4I0xC5G.js +17544 -0
- package/dist/index-DuW5iShy.cjs +177 -0
- package/dist/index-PtAFPDfk.js +18851 -0
- package/dist/index.d.ts +7 -0
- package/dist/java-BIk0G-rH.cjs +1 -0
- package/dist/java-BicX26Pg.js +240 -0
- package/dist/kotlin-BwB8b-YX.js +242 -0
- package/dist/kotlin-kGuORR5a.cjs +2 -0
- package/dist/objectivec-CnyrJ13Z.js +237 -0
- package/dist/objectivec-CoeV81Tz.cjs +1 -0
- package/dist/ocaml-0j7KDjso.cjs +1 -0
- package/dist/ocaml-T8IqWCjo.js +67 -0
- package/dist/php-BL35ZHWM.js +566 -0
- package/dist/php-DF4zG2hq.cjs +2 -0
- package/dist/powershell-CvydS3ek.cjs +1 -0
- package/dist/powershell-DuhUKWoO.js +236 -0
- package/dist/protoToJsonSchema-AciPTlBK.cjs +83 -0
- package/dist/protoToJsonSchema-D1lojrO3.js +6131 -0
- package/dist/{protobufSchemaParser-D_2rEsD4.cjs → protobufSchemaParser-7SgmMhQd.cjs} +1 -1
- package/dist/{protobufSchemaParser-Cj2WOp05.js → protobufSchemaParser-BohWo_pY.js} +2 -2
- package/dist/public/createSectionRoot.d.ts +30 -0
- package/dist/public/openapiSections.d.ts +26 -0
- package/dist/public/sections.d.ts +6 -3
- package/dist/r-B8fCBydS.js +207 -0
- package/dist/r-CYaZnHkA.cjs +1 -0
- package/dist/ruby-CvOid-1s.js +388 -0
- package/dist/ruby-nPcbuC2a.cjs +1 -0
- package/dist/rust-BocnJ3Ns.js +305 -0
- package/dist/rust-DKnYCg2f.cjs +1 -0
- package/dist/stories/AsyncAPI.stories.d.ts +6 -0
- package/dist/stories/AsyncAPIRenderer.stories.d.ts +6 -0
- package/dist/stories/Messages.stories.d.ts +1 -0
- package/dist/stories/Operations.stories.d.ts +6 -0
- package/dist/stories/SchemaTab.stories.d.ts +1 -0
- package/dist/stories/SchemaTree.stories.d.ts +1 -0
- package/dist/stories/Server.stories.d.ts +1 -0
- package/dist/stories/documentContextDecorator.d.ts +2 -2
- package/dist/stories/noCanvasDocsPage.d.ts +9 -0
- package/dist/swift-C35Eof-I.js +799 -0
- package/dist/swift-CAnH__EC.cjs +1 -0
- package/dist/types/openapi.d.ts +85 -0
- package/package.json +16 -3
- package/dist/components/Navigation.d.ts +0 -28
- package/dist/icons/SideBar.d.ts +0 -6
- package/dist/index-Bad1aEIj.js +0 -11352
- package/dist/index-CzcxQGxP.js +0 -25414
- package/dist/index-gn5KpvCL.cjs +0 -73
- package/dist/protoToJsonSchema-8Mm10CIx.cjs +0 -83
- package/dist/protoToJsonSchema-BJpwl2Am.js +0 -6174
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
function D(e) {
|
|
2
|
+
const t = e.regex, o = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", b = t.either(
|
|
3
|
+
/\b([A-Z]+[a-z0-9]+)+/,
|
|
4
|
+
// ends in caps
|
|
5
|
+
/\b([A-Z]+[a-z0-9]+)+[A-Z]+/
|
|
6
|
+
), a = t.concat(b, /(::\w+)*/), n = {
|
|
7
|
+
"variable.constant": [
|
|
8
|
+
"__FILE__",
|
|
9
|
+
"__LINE__",
|
|
10
|
+
"__ENCODING__"
|
|
11
|
+
],
|
|
12
|
+
"variable.language": [
|
|
13
|
+
"self",
|
|
14
|
+
"super"
|
|
15
|
+
],
|
|
16
|
+
keyword: [
|
|
17
|
+
"alias",
|
|
18
|
+
"and",
|
|
19
|
+
"begin",
|
|
20
|
+
"BEGIN",
|
|
21
|
+
"break",
|
|
22
|
+
"case",
|
|
23
|
+
"class",
|
|
24
|
+
"defined",
|
|
25
|
+
"do",
|
|
26
|
+
"else",
|
|
27
|
+
"elsif",
|
|
28
|
+
"end",
|
|
29
|
+
"END",
|
|
30
|
+
"ensure",
|
|
31
|
+
"for",
|
|
32
|
+
"if",
|
|
33
|
+
"in",
|
|
34
|
+
"module",
|
|
35
|
+
"next",
|
|
36
|
+
"not",
|
|
37
|
+
"or",
|
|
38
|
+
"redo",
|
|
39
|
+
"require",
|
|
40
|
+
"rescue",
|
|
41
|
+
"retry",
|
|
42
|
+
"return",
|
|
43
|
+
"then",
|
|
44
|
+
"undef",
|
|
45
|
+
"unless",
|
|
46
|
+
"until",
|
|
47
|
+
"when",
|
|
48
|
+
"while",
|
|
49
|
+
"yield",
|
|
50
|
+
...[
|
|
51
|
+
"include",
|
|
52
|
+
"extend",
|
|
53
|
+
"prepend",
|
|
54
|
+
"public",
|
|
55
|
+
"private",
|
|
56
|
+
"protected",
|
|
57
|
+
"raise",
|
|
58
|
+
"throw"
|
|
59
|
+
]
|
|
60
|
+
],
|
|
61
|
+
built_in: [
|
|
62
|
+
"proc",
|
|
63
|
+
"lambda",
|
|
64
|
+
"attr_accessor",
|
|
65
|
+
"attr_reader",
|
|
66
|
+
"attr_writer",
|
|
67
|
+
"define_method",
|
|
68
|
+
"private_constant",
|
|
69
|
+
"module_function"
|
|
70
|
+
],
|
|
71
|
+
literal: [
|
|
72
|
+
"true",
|
|
73
|
+
"false",
|
|
74
|
+
"nil"
|
|
75
|
+
]
|
|
76
|
+
}, _ = {
|
|
77
|
+
className: "doctag",
|
|
78
|
+
begin: "@[A-Za-z]+"
|
|
79
|
+
}, r = {
|
|
80
|
+
begin: "#<",
|
|
81
|
+
end: ">"
|
|
82
|
+
}, c = [
|
|
83
|
+
e.COMMENT(
|
|
84
|
+
"#",
|
|
85
|
+
"$",
|
|
86
|
+
{ contains: [_] }
|
|
87
|
+
),
|
|
88
|
+
e.COMMENT(
|
|
89
|
+
"^=begin",
|
|
90
|
+
"^=end",
|
|
91
|
+
{
|
|
92
|
+
contains: [_],
|
|
93
|
+
relevance: 10
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
e.COMMENT("^__END__", e.MATCH_NOTHING_RE)
|
|
97
|
+
], i = {
|
|
98
|
+
className: "subst",
|
|
99
|
+
begin: /#\{/,
|
|
100
|
+
end: /\}/,
|
|
101
|
+
keywords: n
|
|
102
|
+
}, E = {
|
|
103
|
+
className: "string",
|
|
104
|
+
contains: [
|
|
105
|
+
e.BACKSLASH_ESCAPE,
|
|
106
|
+
i
|
|
107
|
+
],
|
|
108
|
+
variants: [
|
|
109
|
+
{
|
|
110
|
+
begin: /'/,
|
|
111
|
+
end: /'/
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
begin: /"/,
|
|
115
|
+
end: /"/
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
begin: /`/,
|
|
119
|
+
end: /`/
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
begin: /%[qQwWx]?\(/,
|
|
123
|
+
end: /\)/
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
begin: /%[qQwWx]?\[/,
|
|
127
|
+
end: /\]/
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
begin: /%[qQwWx]?\{/,
|
|
131
|
+
end: /\}/
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
begin: /%[qQwWx]?</,
|
|
135
|
+
end: />/
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
begin: /%[qQwWx]?\//,
|
|
139
|
+
end: /\//
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
begin: /%[qQwWx]?%/,
|
|
143
|
+
end: /%/
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
begin: /%[qQwWx]?-/,
|
|
147
|
+
end: /-/
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
begin: /%[qQwWx]?\|/,
|
|
151
|
+
end: /\|/
|
|
152
|
+
},
|
|
153
|
+
// in the following expressions, \B in the beginning suppresses recognition of ?-sequences
|
|
154
|
+
// where ? is the last character of a preceding identifier, as in: `func?4`
|
|
155
|
+
{ begin: /\B\?(\\\d{1,3})/ },
|
|
156
|
+
{ begin: /\B\?(\\x[A-Fa-f0-9]{1,2})/ },
|
|
157
|
+
{ begin: /\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/ },
|
|
158
|
+
{ begin: /\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/ },
|
|
159
|
+
{ begin: /\B\?\\(c|C-)[\x20-\x7e]/ },
|
|
160
|
+
{ begin: /\B\?\\?\S/ },
|
|
161
|
+
// heredocs
|
|
162
|
+
{
|
|
163
|
+
// this guard makes sure that we have an entire heredoc and not a false
|
|
164
|
+
// positive (auto-detect, etc.)
|
|
165
|
+
begin: t.concat(
|
|
166
|
+
/<<[-~]?'?/,
|
|
167
|
+
t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)
|
|
168
|
+
),
|
|
169
|
+
contains: [
|
|
170
|
+
e.END_SAME_AS_BEGIN({
|
|
171
|
+
begin: /(\w+)/,
|
|
172
|
+
end: /(\w+)/,
|
|
173
|
+
contains: [
|
|
174
|
+
e.BACKSLASH_ESCAPE,
|
|
175
|
+
i
|
|
176
|
+
]
|
|
177
|
+
})
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}, g = "[1-9](_?[0-9])*|0", d = "[0-9](_?[0-9])*", N = {
|
|
182
|
+
className: "number",
|
|
183
|
+
relevance: 0,
|
|
184
|
+
variants: [
|
|
185
|
+
// decimal integer/float, optionally exponential or rational, optionally imaginary
|
|
186
|
+
{ begin: `\\b(${g})(\\.(${d}))?([eE][+-]?(${d})|r)?i?\\b` },
|
|
187
|
+
// explicit decimal/binary/octal/hexadecimal integer,
|
|
188
|
+
// optionally rational and/or imaginary
|
|
189
|
+
{ begin: "\\b0[dD][0-9](_?[0-9])*r?i?\\b" },
|
|
190
|
+
{ begin: "\\b0[bB][0-1](_?[0-1])*r?i?\\b" },
|
|
191
|
+
{ begin: "\\b0[oO][0-7](_?[0-7])*r?i?\\b" },
|
|
192
|
+
{ begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b" },
|
|
193
|
+
// 0-prefixed implicit octal integer, optionally rational and/or imaginary
|
|
194
|
+
{ begin: "\\b0(_?[0-7])+r?i?\\b" }
|
|
195
|
+
]
|
|
196
|
+
}, l = {
|
|
197
|
+
variants: [
|
|
198
|
+
{
|
|
199
|
+
match: /\(\)/
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
className: "params",
|
|
203
|
+
begin: /\(/,
|
|
204
|
+
end: /(?=\))/,
|
|
205
|
+
excludeBegin: !0,
|
|
206
|
+
endsParent: !0,
|
|
207
|
+
keywords: n
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
}, s = [
|
|
211
|
+
E,
|
|
212
|
+
{
|
|
213
|
+
variants: [
|
|
214
|
+
{
|
|
215
|
+
match: [
|
|
216
|
+
/class\s+/,
|
|
217
|
+
a,
|
|
218
|
+
/\s+<\s+/,
|
|
219
|
+
a
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
match: [
|
|
224
|
+
/\b(class|module)\s+/,
|
|
225
|
+
a
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
scope: {
|
|
230
|
+
2: "title.class",
|
|
231
|
+
4: "title.class.inherited"
|
|
232
|
+
},
|
|
233
|
+
keywords: n
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
match: [
|
|
237
|
+
/(include|extend)\s+/,
|
|
238
|
+
a
|
|
239
|
+
],
|
|
240
|
+
scope: {
|
|
241
|
+
2: "title.class"
|
|
242
|
+
},
|
|
243
|
+
keywords: n
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
relevance: 0,
|
|
247
|
+
match: [
|
|
248
|
+
a,
|
|
249
|
+
/\.new[. (]/
|
|
250
|
+
],
|
|
251
|
+
scope: {
|
|
252
|
+
1: "title.class"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
relevance: 0,
|
|
257
|
+
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
258
|
+
className: "variable.constant"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
relevance: 0,
|
|
262
|
+
match: b,
|
|
263
|
+
scope: "title.class"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
match: [
|
|
267
|
+
/def/,
|
|
268
|
+
/\s+/,
|
|
269
|
+
o
|
|
270
|
+
],
|
|
271
|
+
scope: {
|
|
272
|
+
1: "keyword",
|
|
273
|
+
3: "title.function"
|
|
274
|
+
},
|
|
275
|
+
contains: [
|
|
276
|
+
l
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
// swallow namespace qualifiers before symbols
|
|
281
|
+
begin: e.IDENT_RE + "::"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
className: "symbol",
|
|
285
|
+
begin: e.UNDERSCORE_IDENT_RE + "(!|\\?)?:",
|
|
286
|
+
relevance: 0
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
className: "symbol",
|
|
290
|
+
begin: ":(?!\\s)",
|
|
291
|
+
contains: [
|
|
292
|
+
E,
|
|
293
|
+
{ begin: o }
|
|
294
|
+
],
|
|
295
|
+
relevance: 0
|
|
296
|
+
},
|
|
297
|
+
N,
|
|
298
|
+
{
|
|
299
|
+
// negative-look forward attempts to prevent false matches like:
|
|
300
|
+
// @ident@ or $ident$ that might indicate this is not ruby at all
|
|
301
|
+
className: "variable",
|
|
302
|
+
begin: "(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
className: "params",
|
|
306
|
+
begin: /\|(?!=)/,
|
|
307
|
+
end: /\|/,
|
|
308
|
+
excludeBegin: !0,
|
|
309
|
+
excludeEnd: !0,
|
|
310
|
+
relevance: 0,
|
|
311
|
+
// this could be a lot of things (in other languages) other than params
|
|
312
|
+
keywords: n
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
// regexp container
|
|
316
|
+
begin: "(" + e.RE_STARTERS_RE + "|unless)\\s*",
|
|
317
|
+
keywords: "unless",
|
|
318
|
+
contains: [
|
|
319
|
+
{
|
|
320
|
+
className: "regexp",
|
|
321
|
+
contains: [
|
|
322
|
+
e.BACKSLASH_ESCAPE,
|
|
323
|
+
i
|
|
324
|
+
],
|
|
325
|
+
illegal: /\n/,
|
|
326
|
+
variants: [
|
|
327
|
+
{
|
|
328
|
+
begin: "/",
|
|
329
|
+
end: "/[a-z]*"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
begin: /%r\{/,
|
|
333
|
+
end: /\}[a-z]*/
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
begin: "%r\\(",
|
|
337
|
+
end: "\\)[a-z]*"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
begin: "%r!",
|
|
341
|
+
end: "![a-z]*"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
begin: "%r\\[",
|
|
345
|
+
end: "\\][a-z]*"
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
].concat(r, c),
|
|
350
|
+
relevance: 0
|
|
351
|
+
}
|
|
352
|
+
].concat(r, c);
|
|
353
|
+
i.contains = s, l.contains = s;
|
|
354
|
+
const A = [
|
|
355
|
+
{
|
|
356
|
+
begin: /^\s*=>/,
|
|
357
|
+
starts: {
|
|
358
|
+
end: "$",
|
|
359
|
+
contains: s
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
className: "meta.prompt",
|
|
364
|
+
begin: "^(" + "[>?]>" + "|" + "[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]" + "|" + "(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>" + ")(?=[ ])",
|
|
365
|
+
starts: {
|
|
366
|
+
end: "$",
|
|
367
|
+
keywords: n,
|
|
368
|
+
contains: s
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
];
|
|
372
|
+
return c.unshift(r), {
|
|
373
|
+
name: "Ruby",
|
|
374
|
+
aliases: [
|
|
375
|
+
"rb",
|
|
376
|
+
"gemspec",
|
|
377
|
+
"podspec",
|
|
378
|
+
"thor",
|
|
379
|
+
"irb"
|
|
380
|
+
],
|
|
381
|
+
keywords: n,
|
|
382
|
+
illegal: /\/\*/,
|
|
383
|
+
contains: [e.SHEBANG({ binary: "ruby" })].concat(A).concat(c).concat(s)
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
export {
|
|
387
|
+
D as default
|
|
388
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function S(e){const t=e.regex,o="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",b=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),a=t.concat(b,/(::\w+)*/),n={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},_={className:"doctag",begin:"@[A-Za-z]+"},r={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[_]}),e.COMMENT("^=begin","^=end",{contains:[_],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],i={className:"subst",begin:/#\{/,end:/\}/,keywords:n},E={className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,i]})]}]},g="[1-9](_?[0-9])*|0",d="[0-9](_?[0-9])*",N={className:"number",relevance:0,variants:[{begin:`\\b(${g})(\\.(${d}))?([eE][+-]?(${d})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},l={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:n}]},s=[E,{variants:[{match:[/class\s+/,a,/\s+<\s+/,a]},{match:[/\b(class|module)\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:n},{match:[/(include|extend)\s+/,a],scope:{2:"title.class"},keywords:n},{relevance:0,match:[a,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:b,scope:"title.class"},{match:[/def/,/\s+/,o],scope:{1:"keyword",3:"title.function"},contains:[l]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[E,{begin:o}],relevance:0},N,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:n},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(r,c),relevance:0}].concat(r,c);i.contains=s,l.contains=s;const A=[{begin:/^\s*=>/,starts:{end:"$",contains:s}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:n,contains:s}}];return c.unshift(r),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:n,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(A).concat(c).concat(s)}}exports.default=S;
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
function b(e) {
|
|
2
|
+
const n = e.regex, i = /(r#)?/, t = n.concat(i, e.UNDERSCORE_IDENT_RE), o = n.concat(i, e.IDENT_RE), c = {
|
|
3
|
+
className: "title.function.invoke",
|
|
4
|
+
relevance: 0,
|
|
5
|
+
begin: n.concat(
|
|
6
|
+
/\b/,
|
|
7
|
+
/(?!let|for|while|if|else|match\b)/,
|
|
8
|
+
o,
|
|
9
|
+
n.lookahead(/\s*\(/)
|
|
10
|
+
)
|
|
11
|
+
}, a = "([ui](8|16|32|64|128|size)|f(32|64))?", l = [
|
|
12
|
+
"abstract",
|
|
13
|
+
"as",
|
|
14
|
+
"async",
|
|
15
|
+
"await",
|
|
16
|
+
"become",
|
|
17
|
+
"box",
|
|
18
|
+
"break",
|
|
19
|
+
"const",
|
|
20
|
+
"continue",
|
|
21
|
+
"crate",
|
|
22
|
+
"do",
|
|
23
|
+
"dyn",
|
|
24
|
+
"else",
|
|
25
|
+
"enum",
|
|
26
|
+
"extern",
|
|
27
|
+
"false",
|
|
28
|
+
"final",
|
|
29
|
+
"fn",
|
|
30
|
+
"for",
|
|
31
|
+
"if",
|
|
32
|
+
"impl",
|
|
33
|
+
"in",
|
|
34
|
+
"let",
|
|
35
|
+
"loop",
|
|
36
|
+
"macro",
|
|
37
|
+
"match",
|
|
38
|
+
"mod",
|
|
39
|
+
"move",
|
|
40
|
+
"mut",
|
|
41
|
+
"override",
|
|
42
|
+
"priv",
|
|
43
|
+
"pub",
|
|
44
|
+
"ref",
|
|
45
|
+
"return",
|
|
46
|
+
"self",
|
|
47
|
+
"Self",
|
|
48
|
+
"static",
|
|
49
|
+
"struct",
|
|
50
|
+
"super",
|
|
51
|
+
"trait",
|
|
52
|
+
"true",
|
|
53
|
+
"try",
|
|
54
|
+
"type",
|
|
55
|
+
"typeof",
|
|
56
|
+
"union",
|
|
57
|
+
"unsafe",
|
|
58
|
+
"unsized",
|
|
59
|
+
"use",
|
|
60
|
+
"virtual",
|
|
61
|
+
"where",
|
|
62
|
+
"while",
|
|
63
|
+
"yield"
|
|
64
|
+
], u = [
|
|
65
|
+
"true",
|
|
66
|
+
"false",
|
|
67
|
+
"Some",
|
|
68
|
+
"None",
|
|
69
|
+
"Ok",
|
|
70
|
+
"Err"
|
|
71
|
+
], s = [
|
|
72
|
+
// functions
|
|
73
|
+
"drop ",
|
|
74
|
+
// traits
|
|
75
|
+
"Copy",
|
|
76
|
+
"Send",
|
|
77
|
+
"Sized",
|
|
78
|
+
"Sync",
|
|
79
|
+
"Drop",
|
|
80
|
+
"Fn",
|
|
81
|
+
"FnMut",
|
|
82
|
+
"FnOnce",
|
|
83
|
+
"ToOwned",
|
|
84
|
+
"Clone",
|
|
85
|
+
"Debug",
|
|
86
|
+
"PartialEq",
|
|
87
|
+
"PartialOrd",
|
|
88
|
+
"Eq",
|
|
89
|
+
"Ord",
|
|
90
|
+
"AsRef",
|
|
91
|
+
"AsMut",
|
|
92
|
+
"Into",
|
|
93
|
+
"From",
|
|
94
|
+
"Default",
|
|
95
|
+
"Iterator",
|
|
96
|
+
"Extend",
|
|
97
|
+
"IntoIterator",
|
|
98
|
+
"DoubleEndedIterator",
|
|
99
|
+
"ExactSizeIterator",
|
|
100
|
+
"SliceConcatExt",
|
|
101
|
+
"ToString",
|
|
102
|
+
// macros
|
|
103
|
+
"assert!",
|
|
104
|
+
"assert_eq!",
|
|
105
|
+
"bitflags!",
|
|
106
|
+
"bytes!",
|
|
107
|
+
"cfg!",
|
|
108
|
+
"col!",
|
|
109
|
+
"concat!",
|
|
110
|
+
"concat_idents!",
|
|
111
|
+
"debug_assert!",
|
|
112
|
+
"debug_assert_eq!",
|
|
113
|
+
"env!",
|
|
114
|
+
"eprintln!",
|
|
115
|
+
"panic!",
|
|
116
|
+
"file!",
|
|
117
|
+
"format!",
|
|
118
|
+
"format_args!",
|
|
119
|
+
"include_bytes!",
|
|
120
|
+
"include_str!",
|
|
121
|
+
"line!",
|
|
122
|
+
"local_data_key!",
|
|
123
|
+
"module_path!",
|
|
124
|
+
"option_env!",
|
|
125
|
+
"print!",
|
|
126
|
+
"println!",
|
|
127
|
+
"select!",
|
|
128
|
+
"stringify!",
|
|
129
|
+
"try!",
|
|
130
|
+
"unimplemented!",
|
|
131
|
+
"unreachable!",
|
|
132
|
+
"vec!",
|
|
133
|
+
"write!",
|
|
134
|
+
"writeln!",
|
|
135
|
+
"macro_rules!",
|
|
136
|
+
"assert_ne!",
|
|
137
|
+
"debug_assert_ne!"
|
|
138
|
+
], r = [
|
|
139
|
+
"i8",
|
|
140
|
+
"i16",
|
|
141
|
+
"i32",
|
|
142
|
+
"i64",
|
|
143
|
+
"i128",
|
|
144
|
+
"isize",
|
|
145
|
+
"u8",
|
|
146
|
+
"u16",
|
|
147
|
+
"u32",
|
|
148
|
+
"u64",
|
|
149
|
+
"u128",
|
|
150
|
+
"usize",
|
|
151
|
+
"f32",
|
|
152
|
+
"f64",
|
|
153
|
+
"str",
|
|
154
|
+
"char",
|
|
155
|
+
"bool",
|
|
156
|
+
"Box",
|
|
157
|
+
"Option",
|
|
158
|
+
"Result",
|
|
159
|
+
"String",
|
|
160
|
+
"Vec"
|
|
161
|
+
];
|
|
162
|
+
return {
|
|
163
|
+
name: "Rust",
|
|
164
|
+
aliases: ["rs"],
|
|
165
|
+
keywords: {
|
|
166
|
+
$pattern: e.IDENT_RE + "!?",
|
|
167
|
+
type: r,
|
|
168
|
+
keyword: l,
|
|
169
|
+
literal: u,
|
|
170
|
+
built_in: s
|
|
171
|
+
},
|
|
172
|
+
illegal: "</",
|
|
173
|
+
contains: [
|
|
174
|
+
e.C_LINE_COMMENT_MODE,
|
|
175
|
+
e.COMMENT("/\\*", "\\*/", { contains: ["self"] }),
|
|
176
|
+
e.inherit(e.QUOTE_STRING_MODE, {
|
|
177
|
+
begin: /b?"/,
|
|
178
|
+
illegal: null
|
|
179
|
+
}),
|
|
180
|
+
{
|
|
181
|
+
className: "symbol",
|
|
182
|
+
// negative lookahead to avoid matching `'`
|
|
183
|
+
begin: /'[a-zA-Z_][a-zA-Z0-9_]*(?!')/
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
scope: "string",
|
|
187
|
+
variants: [
|
|
188
|
+
{ begin: /b?r(#*)"(.|\n)*?"\1(?!#)/ },
|
|
189
|
+
{
|
|
190
|
+
begin: /b?'/,
|
|
191
|
+
end: /'/,
|
|
192
|
+
contains: [
|
|
193
|
+
{
|
|
194
|
+
scope: "char.escape",
|
|
195
|
+
match: /\\('|\w|x\w{2}|u\w{4}|U\w{8})/
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
className: "number",
|
|
203
|
+
variants: [
|
|
204
|
+
{ begin: "\\b0b([01_]+)" + a },
|
|
205
|
+
{ begin: "\\b0o([0-7_]+)" + a },
|
|
206
|
+
{ begin: "\\b0x([A-Fa-f0-9_]+)" + a },
|
|
207
|
+
{ begin: "\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)" + a }
|
|
208
|
+
],
|
|
209
|
+
relevance: 0
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
begin: [
|
|
213
|
+
/fn/,
|
|
214
|
+
/\s+/,
|
|
215
|
+
t
|
|
216
|
+
],
|
|
217
|
+
className: {
|
|
218
|
+
1: "keyword",
|
|
219
|
+
3: "title.function"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
className: "meta",
|
|
224
|
+
begin: "#!?\\[",
|
|
225
|
+
end: "\\]",
|
|
226
|
+
contains: [
|
|
227
|
+
{
|
|
228
|
+
className: "string",
|
|
229
|
+
begin: /"/,
|
|
230
|
+
end: /"/,
|
|
231
|
+
contains: [
|
|
232
|
+
e.BACKSLASH_ESCAPE
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
begin: [
|
|
239
|
+
/let/,
|
|
240
|
+
/\s+/,
|
|
241
|
+
/(?:mut\s+)?/,
|
|
242
|
+
t
|
|
243
|
+
],
|
|
244
|
+
className: {
|
|
245
|
+
1: "keyword",
|
|
246
|
+
3: "keyword",
|
|
247
|
+
4: "variable"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
// must come before impl/for rule later
|
|
251
|
+
{
|
|
252
|
+
begin: [
|
|
253
|
+
/for/,
|
|
254
|
+
/\s+/,
|
|
255
|
+
t,
|
|
256
|
+
/\s+/,
|
|
257
|
+
/in/
|
|
258
|
+
],
|
|
259
|
+
className: {
|
|
260
|
+
1: "keyword",
|
|
261
|
+
3: "variable",
|
|
262
|
+
5: "keyword"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
begin: [
|
|
267
|
+
/type/,
|
|
268
|
+
/\s+/,
|
|
269
|
+
t
|
|
270
|
+
],
|
|
271
|
+
className: {
|
|
272
|
+
1: "keyword",
|
|
273
|
+
3: "title.class"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
begin: [
|
|
278
|
+
/(?:trait|enum|struct|union|impl|for)/,
|
|
279
|
+
/\s+/,
|
|
280
|
+
t
|
|
281
|
+
],
|
|
282
|
+
className: {
|
|
283
|
+
1: "keyword",
|
|
284
|
+
3: "title.class"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
begin: e.IDENT_RE + "::",
|
|
289
|
+
keywords: {
|
|
290
|
+
keyword: "Self",
|
|
291
|
+
built_in: s,
|
|
292
|
+
type: r
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
className: "punctuation",
|
|
297
|
+
begin: "->"
|
|
298
|
+
},
|
|
299
|
+
c
|
|
300
|
+
]
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
export {
|
|
304
|
+
b as default
|
|
305
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function b(e){const n=e.regex,i=/(r#)?/,t=n.concat(i,e.UNDERSCORE_IDENT_RE),o=n.concat(i,e.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:n.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,n.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",l=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],u=["true","false","Some","None","Ok","Err"],r=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],s=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:s,keyword:l,literal:u,built_in:r},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,t],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,t],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,t,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,t],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,t],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:r,type:s}},{className:"punctuation",begin:"->"},c]}}exports.default=b;
|