@bluepic/embed 0.5.0 → 0.5.4
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/dist/bash-DI5WKoY1.cjs +1 -0
- package/dist/bash-SfqkqXwO.js +169 -0
- package/dist/bluepic-embed.iife.js +240 -271
- package/dist/bluepic-embed.umd.js +240 -271
- package/dist/c-Bwju34J8.js +176 -0
- package/dist/c-CxjdkDqU.cjs +1 -0
- package/dist/client-zip-Dl4jBUKQ.cjs +1 -0
- package/dist/client-zip-DscsL7SZ.js +254 -0
- package/dist/components/BxDatePickerPopover.vue.d.ts +1 -1
- package/dist/components/BxInput.vue.d.ts +1 -1
- package/dist/components/BxTag.vue.d.ts +1 -1
- package/dist/components/TemplateEditor/BatchEditor.vue.d.ts +14 -10
- package/dist/components/TemplateEditor/BxTemplateEditor.vue.d.ts +80 -64
- package/dist/components/TemplateEditor/TemplateView.vue.d.ts +20 -16
- package/dist/cpp-BNKWamrP.js +225 -0
- package/dist/cpp-BlYqzAb6.cjs +1 -0
- package/dist/css-C6p-exw3.cjs +1 -0
- package/dist/css-yWyfM7J9.js +140 -0
- package/dist/decompress-3ZSaG6Ii.cjs +15 -0
- package/dist/decompress-C88dmWOf.js +643 -0
- package/dist/embed/embed.d.ts +4416 -1454
- package/dist/go-DnIuztGs.js +140 -0
- package/dist/go-RBRkffhh.cjs +1 -0
- package/dist/java-CYbswnVa.js +169 -0
- package/dist/java-DiqBJCuC.cjs +1 -0
- package/dist/javascript-DaG6fU1i.js +436 -0
- package/dist/javascript-hWWC5YVO.cjs +1 -0
- package/dist/json-CW2SpMXu.cjs +1 -0
- package/dist/json-Cu6rbgWf.js +36 -0
- package/dist/main.cjs +118 -146
- package/dist/main.mjs +73680 -85828
- package/dist/markdown-BaDHGYjR.cjs +1 -0
- package/dist/markdown-D3Gs6FWn.js +181 -0
- package/dist/markdown-it-BOugFJd0.cjs +13 -0
- package/dist/markdown-it-bsR6HXzL.js +2875 -0
- package/dist/postal-mime-BnhFNwEJ.cjs +28 -0
- package/dist/postal-mime-Bsdi2kUR.js +3210 -0
- package/dist/python-D1ZXre9G.js +238 -0
- package/dist/python-DawLCmeM.cjs +1 -0
- package/dist/rolldown-runtime-CEFd7nDs.js +30 -0
- package/dist/rolldown-runtime-CPUxUITh.cjs +1 -0
- package/dist/rust-B47KpJg8.cjs +1 -0
- package/dist/rust-DV3X-6zd.js +169 -0
- package/dist/scss-BwEwJffF.cjs +1 -0
- package/dist/scss-DVPIh7kT.js +150 -0
- package/dist/sql-BsfEDS1M.cjs +1 -0
- package/dist/sql-CmVzGP4w.js +118 -0
- package/dist/style.css +2 -1
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +1394 -1273
- package/dist/typescript-CjqyVRRm.cjs +1 -0
- package/dist/typescript-DbET6Hbh.js +521 -0
- package/dist/unzipit.module-CWI6YKpy.js +697 -0
- package/dist/unzipit.module-DLgVBmhU.cjs +1 -0
- package/dist/util/gallery.d.ts +21 -37
- package/dist/xlsx-Bm1OL5B8.js +16261 -0
- package/dist/xlsx-C9EeNB50.cjs +38 -0
- package/dist/xml-Bh8MwSUt.cjs +1 -0
- package/dist/xml-Bxh-tO8n.js +166 -0
- package/dist/yaml-CIP4hiwy.cjs +1 -0
- package/dist/yaml-DT7UV549.js +144 -0
- package/package.json +9 -5
- package/dist/bash-BHkfQ7MG.cjs +0 -1
- package/dist/bash-CPB87Egg.js +0 -377
- package/dist/c-B4BAHWS4.cjs +0 -1
- package/dist/c-C0DTNf68.js +0 -336
- package/dist/cpp-BfO2fOQK.cjs +0 -1
- package/dist/cpp-DxGBPWa5.js +0 -538
- package/dist/css-Cx1gP-zj.js +0 -934
- package/dist/css-DTF39MN3.cjs +0 -1
- package/dist/decompress-BGiydwyp.cjs +0 -15
- package/dist/decompress-D5RzmD-2.js +0 -566
- package/dist/go-By8nj0Vi.cjs +0 -1
- package/dist/go-C8VcBUsu.js +0 -156
- package/dist/index-C99_zLhc.js +0 -175
- package/dist/index-D8N6IfRw.cjs +0 -1
- package/dist/java-BoRJOXvw.js +0 -249
- package/dist/java-DFXAwvvK.cjs +0 -1
- package/dist/javascript-C2jY0XE6.cjs +0 -1
- package/dist/javascript-CgRUYx2b.js +0 -660
- package/dist/json-C4rahuoJ.cjs +0 -1
- package/dist/json-DYK-YbD3.js +0 -44
- package/dist/markdown-BmL9j9cU.cjs +0 -1
- package/dist/markdown-D19noYwn.js +0 -215
- package/dist/markdown-it-5-ieF6Bh.js +0 -3790
- package/dist/markdown-it-CLB5Jta6.cjs +0 -16
- package/dist/postal-mime-Df-WB8Vq.js +0 -3337
- package/dist/postal-mime-_7WF5UBe.cjs +0 -28
- package/dist/python-BBUuE3AY.js +0 -404
- package/dist/python-Clt6L10q.cjs +0 -1
- package/dist/rust-DY-oA2gr.js +0 -319
- package/dist/rust-_vvcEGSJ.cjs +0 -1
- package/dist/scss-BWo_aR1L.js +0 -919
- package/dist/scss-ex7iHSUb.cjs +0 -1
- package/dist/sql-BSlOauVK.cjs +0 -1
- package/dist/sql-IeKX8fQ8.js +0 -615
- package/dist/typescript-BHqLHF13.js +0 -755
- package/dist/typescript-DYRnLHqF.cjs +0 -1
- package/dist/unzipit.module-4zGfAuq6.cjs +0 -1
- package/dist/unzipit.module-qN5XWVVT.js +0 -649
- package/dist/xlsx-BopDBbWb.js +0 -24176
- package/dist/xlsx-qn1xoUuv.cjs +0 -105
- package/dist/xml-Bse49fPV.js +0 -212
- package/dist/xml-CVmug_x4.cjs +0 -1
- package/dist/yaml-BslECvWp.js +0 -183
- package/dist/yaml-C6zsmLZx.cjs +0 -1
package/dist/cpp-DxGBPWa5.js
DELETED
|
@@ -1,538 +0,0 @@
|
|
|
1
|
-
function S(e) {
|
|
2
|
-
const n = e.regex, a = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), _ = "decltype\\(auto\\)", c = "[a-zA-Z_]\\w*::", m = "(?!struct)(" + _ + "|" + n.optional(c) + "[a-zA-Z_]\\w*" + n.optional("<[^<>]+>") + ")", s = {
|
|
3
|
-
className: "type",
|
|
4
|
-
begin: "\\b[a-z\\d_]*_t\\b"
|
|
5
|
-
}, r = {
|
|
6
|
-
className: "string",
|
|
7
|
-
variants: [
|
|
8
|
-
{
|
|
9
|
-
begin: '(u8?|U|L)?"',
|
|
10
|
-
end: '"',
|
|
11
|
-
illegal: "\\n",
|
|
12
|
-
contains: [e.BACKSLASH_ESCAPE]
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
begin: "(u8?|U|L)?'(" + "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)" + "|.)",
|
|
16
|
-
end: "'",
|
|
17
|
-
illegal: "."
|
|
18
|
-
},
|
|
19
|
-
// https://en.cppreference.com/w/cpp/language/string_literal
|
|
20
|
-
// a d-char-sequence never contains parentheses, backslashes or whitespace;
|
|
21
|
-
// quotes are excluded as well so the closing delimiter cannot swallow the
|
|
22
|
-
// quote that actually terminates the literal
|
|
23
|
-
e.END_SAME_AS_BEGIN({
|
|
24
|
-
begin: /(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,
|
|
25
|
-
end: /\)([^()\\\s"]{0,16})"/
|
|
26
|
-
})
|
|
27
|
-
]
|
|
28
|
-
}, i = {
|
|
29
|
-
className: "number",
|
|
30
|
-
variants: [
|
|
31
|
-
// Floating-point literal.
|
|
32
|
-
{
|
|
33
|
-
begin: "[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"
|
|
34
|
-
},
|
|
35
|
-
// Integer literal.
|
|
36
|
-
{
|
|
37
|
-
begin: "[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"
|
|
38
|
-
// Note: there are user-defined literal suffixes too, but perhaps having the custom suffix not part of the
|
|
39
|
-
// literal highlight actually makes it stand out more.
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
relevance: 0
|
|
43
|
-
}, E = {
|
|
44
|
-
scope: "meta",
|
|
45
|
-
begin: /#\s*include\b/,
|
|
46
|
-
end: /$/,
|
|
47
|
-
keywords: { keyword: "include" },
|
|
48
|
-
contains: [
|
|
49
|
-
{
|
|
50
|
-
// the `\` at the end of a line signaling continuation
|
|
51
|
-
begin: /\\\n/
|
|
52
|
-
},
|
|
53
|
-
r,
|
|
54
|
-
{
|
|
55
|
-
scope: "string",
|
|
56
|
-
begin: /<.*?>/
|
|
57
|
-
},
|
|
58
|
-
a,
|
|
59
|
-
e.C_BLOCK_COMMENT_MODE
|
|
60
|
-
]
|
|
61
|
-
}, f = {
|
|
62
|
-
className: "meta",
|
|
63
|
-
begin: /#\s*[a-z]+\b/,
|
|
64
|
-
end: /$/,
|
|
65
|
-
keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" },
|
|
66
|
-
contains: [
|
|
67
|
-
{
|
|
68
|
-
begin: /\\\n/,
|
|
69
|
-
relevance: 0
|
|
70
|
-
},
|
|
71
|
-
e.inherit(r, { className: "string" }),
|
|
72
|
-
a,
|
|
73
|
-
e.C_BLOCK_COMMENT_MODE
|
|
74
|
-
]
|
|
75
|
-
}, o = [
|
|
76
|
-
E,
|
|
77
|
-
f
|
|
78
|
-
], g = {
|
|
79
|
-
className: "title",
|
|
80
|
-
begin: n.optional(c) + e.IDENT_RE,
|
|
81
|
-
relevance: 0
|
|
82
|
-
}, u = n.optional(c) + e.IDENT_RE + "\\s*\\(", b = 12, d = [
|
|
83
|
-
"alignas",
|
|
84
|
-
"alignof",
|
|
85
|
-
"and",
|
|
86
|
-
"and_eq",
|
|
87
|
-
"asm",
|
|
88
|
-
"atomic_cancel",
|
|
89
|
-
"atomic_commit",
|
|
90
|
-
"atomic_noexcept",
|
|
91
|
-
"auto",
|
|
92
|
-
"bitand",
|
|
93
|
-
"bitor",
|
|
94
|
-
"break",
|
|
95
|
-
"case",
|
|
96
|
-
"catch",
|
|
97
|
-
"class",
|
|
98
|
-
"co_await",
|
|
99
|
-
"co_return",
|
|
100
|
-
"co_yield",
|
|
101
|
-
"compl",
|
|
102
|
-
"concept",
|
|
103
|
-
"const_cast|10",
|
|
104
|
-
"consteval",
|
|
105
|
-
"constexpr",
|
|
106
|
-
"constinit",
|
|
107
|
-
"continue",
|
|
108
|
-
"decltype",
|
|
109
|
-
"default",
|
|
110
|
-
"delete",
|
|
111
|
-
"do",
|
|
112
|
-
"dynamic_cast|10",
|
|
113
|
-
"else",
|
|
114
|
-
"enum",
|
|
115
|
-
"explicit",
|
|
116
|
-
"export",
|
|
117
|
-
"extern",
|
|
118
|
-
"false",
|
|
119
|
-
"final",
|
|
120
|
-
"for",
|
|
121
|
-
"friend",
|
|
122
|
-
"goto",
|
|
123
|
-
"if",
|
|
124
|
-
"import",
|
|
125
|
-
"inline",
|
|
126
|
-
"module",
|
|
127
|
-
"mutable",
|
|
128
|
-
"namespace",
|
|
129
|
-
"new",
|
|
130
|
-
"noexcept",
|
|
131
|
-
"not",
|
|
132
|
-
"not_eq",
|
|
133
|
-
"nullptr",
|
|
134
|
-
"operator",
|
|
135
|
-
"or",
|
|
136
|
-
"or_eq",
|
|
137
|
-
"override",
|
|
138
|
-
"private",
|
|
139
|
-
"protected",
|
|
140
|
-
"public",
|
|
141
|
-
"reflexpr",
|
|
142
|
-
"register",
|
|
143
|
-
"reinterpret_cast|10",
|
|
144
|
-
"requires",
|
|
145
|
-
"return",
|
|
146
|
-
"sizeof",
|
|
147
|
-
"static_assert",
|
|
148
|
-
"static_cast|10",
|
|
149
|
-
"struct",
|
|
150
|
-
"switch",
|
|
151
|
-
"synchronized",
|
|
152
|
-
"template",
|
|
153
|
-
"this",
|
|
154
|
-
"thread_local",
|
|
155
|
-
"throw",
|
|
156
|
-
"transaction_safe",
|
|
157
|
-
"transaction_safe_dynamic",
|
|
158
|
-
"true",
|
|
159
|
-
"try",
|
|
160
|
-
"typedef",
|
|
161
|
-
"typeid",
|
|
162
|
-
"typename",
|
|
163
|
-
"union",
|
|
164
|
-
"using",
|
|
165
|
-
"virtual",
|
|
166
|
-
"volatile",
|
|
167
|
-
"while",
|
|
168
|
-
"xor",
|
|
169
|
-
"xor_eq"
|
|
170
|
-
], N = [
|
|
171
|
-
"bool",
|
|
172
|
-
"char",
|
|
173
|
-
"char16_t",
|
|
174
|
-
"char32_t",
|
|
175
|
-
"char8_t",
|
|
176
|
-
"double",
|
|
177
|
-
"float",
|
|
178
|
-
"int",
|
|
179
|
-
"long",
|
|
180
|
-
"short",
|
|
181
|
-
"void",
|
|
182
|
-
"wchar_t",
|
|
183
|
-
"unsigned",
|
|
184
|
-
"signed",
|
|
185
|
-
"const",
|
|
186
|
-
"static"
|
|
187
|
-
], T = [
|
|
188
|
-
"any",
|
|
189
|
-
"auto_ptr",
|
|
190
|
-
"barrier",
|
|
191
|
-
"binary_semaphore",
|
|
192
|
-
"bitset",
|
|
193
|
-
"complex",
|
|
194
|
-
"condition_variable",
|
|
195
|
-
"condition_variable_any",
|
|
196
|
-
"counting_semaphore",
|
|
197
|
-
"deque",
|
|
198
|
-
"false_type",
|
|
199
|
-
"flat_map",
|
|
200
|
-
"flat_set",
|
|
201
|
-
"future",
|
|
202
|
-
"imaginary",
|
|
203
|
-
"initializer_list",
|
|
204
|
-
"istringstream",
|
|
205
|
-
"jthread",
|
|
206
|
-
"latch",
|
|
207
|
-
"lock_guard",
|
|
208
|
-
"multimap",
|
|
209
|
-
"multiset",
|
|
210
|
-
"mutex",
|
|
211
|
-
"optional",
|
|
212
|
-
"ostringstream",
|
|
213
|
-
"packaged_task",
|
|
214
|
-
"pair",
|
|
215
|
-
"promise",
|
|
216
|
-
"priority_queue",
|
|
217
|
-
"queue",
|
|
218
|
-
"recursive_mutex",
|
|
219
|
-
"recursive_timed_mutex",
|
|
220
|
-
"scoped_lock",
|
|
221
|
-
"set",
|
|
222
|
-
"shared_future",
|
|
223
|
-
"shared_lock",
|
|
224
|
-
"shared_mutex",
|
|
225
|
-
"shared_timed_mutex",
|
|
226
|
-
"shared_ptr",
|
|
227
|
-
"stack",
|
|
228
|
-
"string_view",
|
|
229
|
-
"stringstream",
|
|
230
|
-
"timed_mutex",
|
|
231
|
-
"thread",
|
|
232
|
-
"true_type",
|
|
233
|
-
"tuple",
|
|
234
|
-
"unique_lock",
|
|
235
|
-
"unique_ptr",
|
|
236
|
-
"unordered_map",
|
|
237
|
-
"unordered_multimap",
|
|
238
|
-
"unordered_multiset",
|
|
239
|
-
"unordered_set",
|
|
240
|
-
"variant",
|
|
241
|
-
"vector",
|
|
242
|
-
"weak_ptr",
|
|
243
|
-
"wstring",
|
|
244
|
-
"wstring_view"
|
|
245
|
-
], C = [
|
|
246
|
-
"abort",
|
|
247
|
-
"abs",
|
|
248
|
-
"acos",
|
|
249
|
-
"apply",
|
|
250
|
-
"as_const",
|
|
251
|
-
"asin",
|
|
252
|
-
"atan",
|
|
253
|
-
"atan2",
|
|
254
|
-
"calloc",
|
|
255
|
-
"ceil",
|
|
256
|
-
"cerr",
|
|
257
|
-
"cin",
|
|
258
|
-
"clog",
|
|
259
|
-
"cos",
|
|
260
|
-
"cosh",
|
|
261
|
-
"cout",
|
|
262
|
-
"declval",
|
|
263
|
-
"endl",
|
|
264
|
-
"exchange",
|
|
265
|
-
"exit",
|
|
266
|
-
"exp",
|
|
267
|
-
"fabs",
|
|
268
|
-
"floor",
|
|
269
|
-
"fmod",
|
|
270
|
-
"forward",
|
|
271
|
-
"fprintf",
|
|
272
|
-
"fputs",
|
|
273
|
-
"free",
|
|
274
|
-
"frexp",
|
|
275
|
-
"fscanf",
|
|
276
|
-
"future",
|
|
277
|
-
"invoke",
|
|
278
|
-
"isalnum",
|
|
279
|
-
"isalpha",
|
|
280
|
-
"iscntrl",
|
|
281
|
-
"isdigit",
|
|
282
|
-
"isgraph",
|
|
283
|
-
"islower",
|
|
284
|
-
"isprint",
|
|
285
|
-
"ispunct",
|
|
286
|
-
"isspace",
|
|
287
|
-
"isupper",
|
|
288
|
-
"isxdigit",
|
|
289
|
-
"labs",
|
|
290
|
-
"launder",
|
|
291
|
-
"ldexp",
|
|
292
|
-
"log",
|
|
293
|
-
"log10",
|
|
294
|
-
"make_pair",
|
|
295
|
-
"make_shared",
|
|
296
|
-
"make_shared_for_overwrite",
|
|
297
|
-
"make_tuple",
|
|
298
|
-
"make_unique",
|
|
299
|
-
"malloc",
|
|
300
|
-
"memchr",
|
|
301
|
-
"memcmp",
|
|
302
|
-
"memcpy",
|
|
303
|
-
"memset",
|
|
304
|
-
"modf",
|
|
305
|
-
"move",
|
|
306
|
-
"pow",
|
|
307
|
-
"printf",
|
|
308
|
-
"putchar",
|
|
309
|
-
"puts",
|
|
310
|
-
"realloc",
|
|
311
|
-
"scanf",
|
|
312
|
-
"sin",
|
|
313
|
-
"sinh",
|
|
314
|
-
"snprintf",
|
|
315
|
-
"sprintf",
|
|
316
|
-
"sqrt",
|
|
317
|
-
"sscanf",
|
|
318
|
-
"std",
|
|
319
|
-
"stderr",
|
|
320
|
-
"stdin",
|
|
321
|
-
"stdout",
|
|
322
|
-
"strcat",
|
|
323
|
-
"strchr",
|
|
324
|
-
"strcmp",
|
|
325
|
-
"strcpy",
|
|
326
|
-
"strcspn",
|
|
327
|
-
"strlen",
|
|
328
|
-
"strncat",
|
|
329
|
-
"strncmp",
|
|
330
|
-
"strncpy",
|
|
331
|
-
"strpbrk",
|
|
332
|
-
"strrchr",
|
|
333
|
-
"strspn",
|
|
334
|
-
"strstr",
|
|
335
|
-
"swap",
|
|
336
|
-
"tan",
|
|
337
|
-
"tanh",
|
|
338
|
-
"terminate",
|
|
339
|
-
"to_underlying",
|
|
340
|
-
"tolower",
|
|
341
|
-
"toupper",
|
|
342
|
-
"vfprintf",
|
|
343
|
-
"visit",
|
|
344
|
-
"vprintf",
|
|
345
|
-
"vsprintf"
|
|
346
|
-
], t = {
|
|
347
|
-
type: N,
|
|
348
|
-
keyword: d,
|
|
349
|
-
literal: [
|
|
350
|
-
"NULL",
|
|
351
|
-
"false",
|
|
352
|
-
"nullopt",
|
|
353
|
-
"nullptr",
|
|
354
|
-
"true"
|
|
355
|
-
],
|
|
356
|
-
built_in: ["_Pragma"],
|
|
357
|
-
_type_hints: T
|
|
358
|
-
}, p = {
|
|
359
|
-
className: "function.dispatch",
|
|
360
|
-
relevance: 0,
|
|
361
|
-
keywords: {
|
|
362
|
-
// Only for relevance, not highlighting.
|
|
363
|
-
_hint: C
|
|
364
|
-
},
|
|
365
|
-
begin: n.concat(
|
|
366
|
-
/\b/,
|
|
367
|
-
`(?!${d.join("|")})`,
|
|
368
|
-
e.IDENT_RE,
|
|
369
|
-
n.lookahead(/(<[^<>]+>|)\s*\(/)
|
|
370
|
-
)
|
|
371
|
-
}, l = [
|
|
372
|
-
p,
|
|
373
|
-
...o,
|
|
374
|
-
s,
|
|
375
|
-
a,
|
|
376
|
-
e.C_BLOCK_COMMENT_MODE,
|
|
377
|
-
i,
|
|
378
|
-
r
|
|
379
|
-
], y = {
|
|
380
|
-
// This mode covers expression context where we can't expect a function
|
|
381
|
-
// definition and shouldn't highlight anything that looks like one:
|
|
382
|
-
// `return some()`, `else if()`, `(x*sum(1, 2))`
|
|
383
|
-
variants: [
|
|
384
|
-
{
|
|
385
|
-
begin: /=/,
|
|
386
|
-
end: /;/
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
begin: /\(/,
|
|
390
|
-
end: /\)/
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
beginKeywords: "new throw return else",
|
|
394
|
-
end: /;/
|
|
395
|
-
}
|
|
396
|
-
],
|
|
397
|
-
keywords: t,
|
|
398
|
-
contains: l.concat([
|
|
399
|
-
{
|
|
400
|
-
begin: /\(/,
|
|
401
|
-
end: /\)/,
|
|
402
|
-
keywords: t,
|
|
403
|
-
contains: l.concat(["self"]),
|
|
404
|
-
relevance: 0
|
|
405
|
-
}
|
|
406
|
-
]),
|
|
407
|
-
relevance: 0
|
|
408
|
-
}, O = {
|
|
409
|
-
className: "function",
|
|
410
|
-
begin: "(" + m + "[\\*&\\s]+){1," + b + "}" + u,
|
|
411
|
-
returnBegin: !0,
|
|
412
|
-
end: /[{;=]/,
|
|
413
|
-
excludeEnd: !0,
|
|
414
|
-
keywords: t,
|
|
415
|
-
illegal: /[^\w\s\*&:<>.]/,
|
|
416
|
-
contains: [
|
|
417
|
-
{
|
|
418
|
-
// to prevent it from being confused as the function title
|
|
419
|
-
begin: _,
|
|
420
|
-
keywords: t,
|
|
421
|
-
relevance: 0
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
begin: u,
|
|
425
|
-
returnBegin: !0,
|
|
426
|
-
contains: [g],
|
|
427
|
-
relevance: 0
|
|
428
|
-
},
|
|
429
|
-
// needed because we do not have look-behind on the below rule
|
|
430
|
-
// to prevent it from grabbing the final : in a :: pair
|
|
431
|
-
{
|
|
432
|
-
begin: /::/,
|
|
433
|
-
relevance: 0
|
|
434
|
-
},
|
|
435
|
-
// initializers
|
|
436
|
-
{
|
|
437
|
-
begin: /:/,
|
|
438
|
-
endsWithParent: !0,
|
|
439
|
-
contains: [
|
|
440
|
-
r,
|
|
441
|
-
i
|
|
442
|
-
]
|
|
443
|
-
},
|
|
444
|
-
// allow for multiple declarations, e.g.:
|
|
445
|
-
// extern void f(int), g(char);
|
|
446
|
-
{
|
|
447
|
-
relevance: 0,
|
|
448
|
-
match: /,/
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
className: "params",
|
|
452
|
-
begin: /\(/,
|
|
453
|
-
end: /\)/,
|
|
454
|
-
keywords: t,
|
|
455
|
-
relevance: 0,
|
|
456
|
-
contains: [
|
|
457
|
-
a,
|
|
458
|
-
e.C_BLOCK_COMMENT_MODE,
|
|
459
|
-
r,
|
|
460
|
-
i,
|
|
461
|
-
s,
|
|
462
|
-
// Count matching parentheses.
|
|
463
|
-
{
|
|
464
|
-
begin: /\(/,
|
|
465
|
-
end: /\)/,
|
|
466
|
-
keywords: t,
|
|
467
|
-
relevance: 0,
|
|
468
|
-
contains: [
|
|
469
|
-
"self",
|
|
470
|
-
a,
|
|
471
|
-
e.C_BLOCK_COMMENT_MODE,
|
|
472
|
-
r,
|
|
473
|
-
i,
|
|
474
|
-
s
|
|
475
|
-
]
|
|
476
|
-
}
|
|
477
|
-
]
|
|
478
|
-
},
|
|
479
|
-
s,
|
|
480
|
-
a,
|
|
481
|
-
e.C_BLOCK_COMMENT_MODE,
|
|
482
|
-
...o
|
|
483
|
-
]
|
|
484
|
-
};
|
|
485
|
-
return {
|
|
486
|
-
name: "C++",
|
|
487
|
-
aliases: [
|
|
488
|
-
"cc",
|
|
489
|
-
"c++",
|
|
490
|
-
"h++",
|
|
491
|
-
"hpp",
|
|
492
|
-
"hh",
|
|
493
|
-
"hxx",
|
|
494
|
-
"cxx"
|
|
495
|
-
],
|
|
496
|
-
keywords: t,
|
|
497
|
-
illegal: "</",
|
|
498
|
-
classNameAliases: { "function.dispatch": "built_in" },
|
|
499
|
-
contains: [].concat(
|
|
500
|
-
y,
|
|
501
|
-
O,
|
|
502
|
-
p,
|
|
503
|
-
l,
|
|
504
|
-
[
|
|
505
|
-
...o,
|
|
506
|
-
{
|
|
507
|
-
// containers: ie, `vector <int> rooms (9);`
|
|
508
|
-
begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
|
|
509
|
-
end: ">",
|
|
510
|
-
keywords: t,
|
|
511
|
-
contains: [
|
|
512
|
-
"self",
|
|
513
|
-
s
|
|
514
|
-
]
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
begin: e.IDENT_RE + "::",
|
|
518
|
-
keywords: t
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
match: [
|
|
522
|
-
// extra complexity to deal with `enum class` and `enum struct`
|
|
523
|
-
/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,
|
|
524
|
-
/\s+/,
|
|
525
|
-
/\w+/
|
|
526
|
-
],
|
|
527
|
-
className: {
|
|
528
|
-
1: "keyword",
|
|
529
|
-
3: "title.class"
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
]
|
|
533
|
-
)
|
|
534
|
-
};
|
|
535
|
-
}
|
|
536
|
-
export {
|
|
537
|
-
S as default
|
|
538
|
-
};
|