lew-ui 1.0.21 → 1.0.24
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/highlight.min.js +695 -815
- package/dist/highlight.min.js.gz +0 -0
- package/dist/lew.es.ts +23 -25
- package/dist/lew.umd.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/package.json +1 -1
package/dist/highlight.min.js
CHANGED
|
@@ -3,25 +3,26 @@
|
|
|
3
3
|
(c) 2006-2022 Ivan Sagalaev and other contributors
|
|
4
4
|
License: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
var hljs = (function
|
|
6
|
+
var hljs = (function() {
|
|
7
7
|
'use strict';
|
|
8
8
|
var e = { exports: {} };
|
|
9
|
+
|
|
9
10
|
function n(e) {
|
|
10
11
|
return (
|
|
11
|
-
e instanceof Map
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
e instanceof Map ?
|
|
13
|
+
(e.clear =
|
|
14
|
+
e.delete =
|
|
15
|
+
e.set =
|
|
16
|
+
() => {
|
|
17
|
+
throw Error('map is read-only');
|
|
18
|
+
}) :
|
|
19
|
+
e instanceof Set &&
|
|
20
|
+
(e.add =
|
|
21
|
+
e.clear =
|
|
22
|
+
e.delete =
|
|
23
|
+
() => {
|
|
24
|
+
throw Error('set is read-only');
|
|
25
|
+
}),
|
|
25
26
|
Object.freeze(e),
|
|
26
27
|
Object.getOwnPropertyNames(e).forEach((t) => {
|
|
27
28
|
var a = e[t];
|
|
@@ -42,6 +43,7 @@ var hljs = (function () {
|
|
|
42
43
|
this.isMatchIgnored = !0;
|
|
43
44
|
}
|
|
44
45
|
}
|
|
46
|
+
|
|
45
47
|
function i(e) {
|
|
46
48
|
return e
|
|
47
49
|
.replace(/&/g, '&')
|
|
@@ -50,6 +52,7 @@ var hljs = (function () {
|
|
|
50
52
|
.replace(/"/g, '"')
|
|
51
53
|
.replace(/'/g, ''');
|
|
52
54
|
}
|
|
55
|
+
|
|
53
56
|
function r(e, ...n) {
|
|
54
57
|
const t = Object.create(null);
|
|
55
58
|
for (const n in e) t[n] = e[n];
|
|
@@ -64,8 +67,8 @@ var hljs = (function () {
|
|
|
64
67
|
class o {
|
|
65
68
|
constructor(e, n) {
|
|
66
69
|
(this.buffer = ''),
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
(this.classPrefix = n.classPrefix),
|
|
71
|
+
e.walk(this);
|
|
69
72
|
}
|
|
70
73
|
addText(e) {
|
|
71
74
|
this.buffer += i(e);
|
|
@@ -73,19 +76,19 @@ var hljs = (function () {
|
|
|
73
76
|
openNode(e) {
|
|
74
77
|
if (!s(e)) return;
|
|
75
78
|
let n = e.kind;
|
|
76
|
-
(n = e.sublanguage
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
79
|
+
(n = e.sublanguage ?
|
|
80
|
+
'language-' + n :
|
|
81
|
+
((e, { prefix: n }) => {
|
|
82
|
+
if (e.includes('.')) {
|
|
83
|
+
const t = e.split('.');
|
|
84
|
+
return [
|
|
85
|
+
`${n}${t.shift()}`,
|
|
86
|
+
...t.map((e, n) => `${e}${'_'.repeat(n + 1)}`),
|
|
87
|
+
].join(' ');
|
|
88
|
+
}
|
|
89
|
+
return `${n}${e}`;
|
|
90
|
+
})(n, { prefix: this.classPrefix })),
|
|
91
|
+
this.span(n);
|
|
89
92
|
}
|
|
90
93
|
closeNode(e) {
|
|
91
94
|
s(e) && (this.buffer += '</span>');
|
|
@@ -102,7 +105,7 @@ var hljs = (function () {
|
|
|
102
105
|
(this.rootNode = {
|
|
103
106
|
children: [],
|
|
104
107
|
}),
|
|
105
|
-
|
|
108
|
+
(this.stack = [this.rootNode]);
|
|
106
109
|
}
|
|
107
110
|
get top() {
|
|
108
111
|
return this.stack[this.stack.length - 1];
|
|
@@ -121,7 +124,7 @@ var hljs = (function () {
|
|
|
121
124
|
if (this.stack.length > 1) return this.stack.pop();
|
|
122
125
|
}
|
|
123
126
|
closeAllNodes() {
|
|
124
|
-
for (; this.closeNode();
|
|
127
|
+
for (; this.closeNode(););
|
|
125
128
|
}
|
|
126
129
|
toJSON() {
|
|
127
130
|
return JSON.stringify(this.rootNode, null, 4);
|
|
@@ -131,23 +134,23 @@ var hljs = (function () {
|
|
|
131
134
|
}
|
|
132
135
|
static _walk(e, n) {
|
|
133
136
|
return (
|
|
134
|
-
'string' == typeof n
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
'string' == typeof n ?
|
|
138
|
+
e.addText(n) :
|
|
139
|
+
n.children &&
|
|
140
|
+
(e.openNode(n),
|
|
141
|
+
n.children.forEach((n) => this._walk(e, n)),
|
|
142
|
+
e.closeNode(n)),
|
|
140
143
|
e
|
|
141
144
|
);
|
|
142
145
|
}
|
|
143
146
|
static _collapse(e) {
|
|
144
147
|
'string' != typeof e &&
|
|
145
148
|
e.children &&
|
|
146
|
-
(e.children.every((e) => 'string' == typeof e)
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
(e.children.every((e) => 'string' == typeof e) ?
|
|
150
|
+
(e.children = [e.children.join('')]) :
|
|
151
|
+
e.children.forEach((e) => {
|
|
152
|
+
l._collapse(e);
|
|
153
|
+
}));
|
|
151
154
|
}
|
|
152
155
|
}
|
|
153
156
|
class c extends l {
|
|
@@ -171,36 +174,44 @@ var hljs = (function () {
|
|
|
171
174
|
return !0;
|
|
172
175
|
}
|
|
173
176
|
}
|
|
177
|
+
|
|
174
178
|
function d(e) {
|
|
175
179
|
return e ? ('string' == typeof e ? e : e.source) : null;
|
|
176
180
|
}
|
|
181
|
+
|
|
177
182
|
function g(e) {
|
|
178
183
|
return m('(?=', e, ')');
|
|
179
184
|
}
|
|
185
|
+
|
|
180
186
|
function u(e) {
|
|
181
187
|
return m('(?:', e, ')*');
|
|
182
188
|
}
|
|
189
|
+
|
|
183
190
|
function b(e) {
|
|
184
191
|
return m('(?:', e, ')?');
|
|
185
192
|
}
|
|
193
|
+
|
|
186
194
|
function m(...e) {
|
|
187
195
|
return e.map((e) => d(e)).join('');
|
|
188
196
|
}
|
|
197
|
+
|
|
189
198
|
function p(...e) {
|
|
190
199
|
const n = ((e) => {
|
|
191
200
|
const n = e[e.length - 1];
|
|
192
|
-
return 'object' == typeof n && n.constructor === Object
|
|
193
|
-
|
|
194
|
-
|
|
201
|
+
return 'object' == typeof n && n.constructor === Object ?
|
|
202
|
+
(e.splice(e.length - 1, 1), n) :
|
|
203
|
+
{};
|
|
195
204
|
})(e);
|
|
196
205
|
return (
|
|
197
206
|
'(' + (n.capture ? '' : '?:') + e.map((e) => d(e)).join('|') + ')'
|
|
198
207
|
);
|
|
199
208
|
}
|
|
209
|
+
|
|
200
210
|
function _(e) {
|
|
201
211
|
return RegExp(e.toString() + '|').exec('').length - 1;
|
|
202
212
|
}
|
|
203
213
|
const h = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
214
|
+
|
|
204
215
|
function f(e, { joinWith: n }) {
|
|
205
216
|
let t = 0;
|
|
206
217
|
return e
|
|
@@ -209,17 +220,17 @@ var hljs = (function () {
|
|
|
209
220
|
const n = t;
|
|
210
221
|
let a = d(e),
|
|
211
222
|
i = '';
|
|
212
|
-
for (; a.length > 0;
|
|
223
|
+
for (; a.length > 0;) {
|
|
213
224
|
const e = h.exec(a);
|
|
214
225
|
if (!e) {
|
|
215
226
|
i += a;
|
|
216
227
|
break;
|
|
217
228
|
}
|
|
218
229
|
(i += a.substring(0, e.index)),
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
230
|
+
(a = a.substring(e.index + e[0].length)),
|
|
231
|
+
'\\' === e[0][0] && e[1] ?
|
|
232
|
+
(i += '\\' + (Number(e[1]) + n)) :
|
|
233
|
+
((i += e[0]), '(' === e[0] && t++);
|
|
223
234
|
}
|
|
224
235
|
return i;
|
|
225
236
|
})
|
|
@@ -230,7 +241,7 @@ var hljs = (function () {
|
|
|
230
241
|
y = '[a-zA-Z_]\\w*',
|
|
231
242
|
w = '\\b\\d+(\\.\\d+)?',
|
|
232
243
|
N =
|
|
233
|
-
|
|
244
|
+
'(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)',
|
|
234
245
|
v = '\\b(0b[01]+)',
|
|
235
246
|
k = {
|
|
236
247
|
begin: '\\\\[\\s\\S]',
|
|
@@ -251,8 +262,7 @@ var hljs = (function () {
|
|
|
251
262
|
contains: [k],
|
|
252
263
|
},
|
|
253
264
|
M = (e, n, t = {}) => {
|
|
254
|
-
const a = r(
|
|
255
|
-
{ scope: 'comment', begin: e, end: n, contains: [] },
|
|
265
|
+
const a = r({ scope: 'comment', begin: e, end: n, contains: [] },
|
|
256
266
|
t,
|
|
257
267
|
);
|
|
258
268
|
a.contains.push({
|
|
@@ -296,14 +306,12 @@ var hljs = (function () {
|
|
|
296
306
|
NUMBER_RE: w,
|
|
297
307
|
C_NUMBER_RE: N,
|
|
298
308
|
BINARY_NUMBER_RE: v,
|
|
299
|
-
RE_STARTERS_RE:
|
|
300
|
-
'!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~',
|
|
309
|
+
RE_STARTERS_RE: '!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~',
|
|
301
310
|
SHEBANG: (e = {}) => {
|
|
302
311
|
const n = /^#![ ]*\//;
|
|
303
312
|
return (
|
|
304
313
|
e.binary && (e.begin = m(n, /.*\b/, e.binary, /\b.*/)),
|
|
305
|
-
r(
|
|
306
|
-
{
|
|
314
|
+
r({
|
|
307
315
|
scope: 'meta',
|
|
308
316
|
begin: n,
|
|
309
317
|
end: /$/,
|
|
@@ -331,18 +339,16 @@ var hljs = (function () {
|
|
|
331
339
|
BINARY_NUMBER_MODE: { scope: 'number', begin: v, relevance: 0 },
|
|
332
340
|
REGEXP_MODE: {
|
|
333
341
|
begin: /(?=\/[^/\n]*\/)/,
|
|
334
|
-
contains: [
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
},
|
|
345
|
-
],
|
|
342
|
+
contains: [{
|
|
343
|
+
scope: 'regexp',
|
|
344
|
+
begin: /\//,
|
|
345
|
+
end: /\/[gimuy]*/,
|
|
346
|
+
illegal: /\n/,
|
|
347
|
+
contains: [
|
|
348
|
+
k,
|
|
349
|
+
{ begin: /\[/, end: /\]/, relevance: 0, contains: [k] },
|
|
350
|
+
],
|
|
351
|
+
}, ],
|
|
346
352
|
},
|
|
347
353
|
TITLE_MODE: { scope: 'title', begin: E, relevance: 0 },
|
|
348
354
|
UNDERSCORE_TITLE_MODE: { scope: 'title', begin: y, relevance: 0 },
|
|
@@ -360,27 +366,32 @@ var hljs = (function () {
|
|
|
360
366
|
},
|
|
361
367
|
}),
|
|
362
368
|
});
|
|
369
|
+
|
|
363
370
|
function R(e, n) {
|
|
364
371
|
'.' === e.input[e.index - 1] && n.ignoreMatch();
|
|
365
372
|
}
|
|
373
|
+
|
|
366
374
|
function D(e, n) {
|
|
367
375
|
void 0 !== e.className && ((e.scope = e.className), delete e.className);
|
|
368
376
|
}
|
|
377
|
+
|
|
369
378
|
function I(e, n) {
|
|
370
379
|
n &&
|
|
371
380
|
e.beginKeywords &&
|
|
372
381
|
((e.begin =
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
382
|
+
'\\b(' +
|
|
383
|
+
e.beginKeywords.split(' ').join('|') +
|
|
384
|
+
')(?!\\.)(?=\\b|\\s)'),
|
|
385
|
+
(e.__beforeBegin = R),
|
|
386
|
+
(e.keywords = e.keywords || e.beginKeywords),
|
|
387
|
+
delete e.beginKeywords,
|
|
388
|
+
void 0 === e.relevance && (e.relevance = 0));
|
|
380
389
|
}
|
|
390
|
+
|
|
381
391
|
function L(e, n) {
|
|
382
392
|
Array.isArray(e.illegal) && (e.illegal = p(...e.illegal));
|
|
383
393
|
}
|
|
394
|
+
|
|
384
395
|
function B(e, n) {
|
|
385
396
|
if (e.match) {
|
|
386
397
|
if (e.begin || e.end)
|
|
@@ -388,6 +399,7 @@ var hljs = (function () {
|
|
|
388
399
|
(e.begin = e.match), delete e.match;
|
|
389
400
|
}
|
|
390
401
|
}
|
|
402
|
+
|
|
391
403
|
function $(e, n) {
|
|
392
404
|
void 0 === e.relevance && (e.relevance = 1);
|
|
393
405
|
}
|
|
@@ -396,8 +408,8 @@ var hljs = (function () {
|
|
|
396
408
|
if (e.starts) throw Error('beforeMatch cannot be used with starts');
|
|
397
409
|
const t = Object.assign({}, e);
|
|
398
410
|
Object.keys(e).forEach((n) => {
|
|
399
|
-
|
|
400
|
-
|
|
411
|
+
delete e[n];
|
|
412
|
+
}),
|
|
401
413
|
(e.keywords = t.keywords),
|
|
402
414
|
(e.begin = m(t.beforeMatch, g(t.begin))),
|
|
403
415
|
(e.starts = {
|
|
@@ -420,18 +432,20 @@ var hljs = (function () {
|
|
|
420
432
|
'list',
|
|
421
433
|
'value',
|
|
422
434
|
];
|
|
435
|
+
|
|
423
436
|
function U(e, n, t = 'keyword') {
|
|
424
437
|
const a = Object.create(null);
|
|
425
438
|
return (
|
|
426
|
-
'string' == typeof e
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
439
|
+
'string' == typeof e ?
|
|
440
|
+
i(t, e.split(' ')) :
|
|
441
|
+
Array.isArray(e) ?
|
|
442
|
+
i(t, e) :
|
|
443
|
+
Object.keys(e).forEach((t) => {
|
|
444
|
+
Object.assign(a, U(e[t], n, t));
|
|
445
|
+
}),
|
|
433
446
|
a
|
|
434
447
|
);
|
|
448
|
+
|
|
435
449
|
function i(e, t) {
|
|
436
450
|
n && (t = t.map((e) => e.toLowerCase())),
|
|
437
451
|
t.forEach((n) => {
|
|
@@ -440,6 +454,7 @@ var hljs = (function () {
|
|
|
440
454
|
});
|
|
441
455
|
}
|
|
442
456
|
}
|
|
457
|
+
|
|
443
458
|
function j(e, n) {
|
|
444
459
|
return n ? Number(n) : ((e) => F.includes(e.toLowerCase()))(e) ? 0 : 1;
|
|
445
460
|
}
|
|
@@ -453,9 +468,10 @@ var hljs = (function () {
|
|
|
453
468
|
q = (e, n) => {
|
|
454
469
|
P[`${e}/${n}`] ||
|
|
455
470
|
(console.log(`Deprecated as of ${e}. ${n}`),
|
|
456
|
-
|
|
471
|
+
(P[`${e}/${n}`] = !0));
|
|
457
472
|
},
|
|
458
473
|
Z = Error();
|
|
474
|
+
|
|
459
475
|
function G(e, n, { key: t }) {
|
|
460
476
|
let a = 0;
|
|
461
477
|
const i = e[t],
|
|
@@ -465,6 +481,7 @@ var hljs = (function () {
|
|
|
465
481
|
(s[e + a] = i[e]), (r[e + a] = !0), (a += _(n[e - 1]));
|
|
466
482
|
(e[t] = s), (e[t]._emit = r), (e[t]._multi = !0);
|
|
467
483
|
}
|
|
484
|
+
|
|
468
485
|
function W(e) {
|
|
469
486
|
((e) => {
|
|
470
487
|
e.scope &&
|
|
@@ -472,20 +489,20 @@ var hljs = (function () {
|
|
|
472
489
|
null !== e.scope &&
|
|
473
490
|
((e.beginScope = e.scope), delete e.scope);
|
|
474
491
|
})(e),
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
492
|
+
'string' == typeof e.beginScope &&
|
|
493
|
+
(e.beginScope = {
|
|
494
|
+
_wrap: e.beginScope,
|
|
495
|
+
}),
|
|
479
496
|
'string' == typeof e.endScope &&
|
|
480
|
-
|
|
497
|
+
(e.endScope = { _wrap: e.endScope }),
|
|
481
498
|
((e) => {
|
|
482
499
|
if (Array.isArray(e.begin)) {
|
|
483
500
|
if (e.skip || e.excludeBegin || e.returnBegin)
|
|
484
501
|
throw (
|
|
485
502
|
(K(
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
503
|
+
'skip, excludeBegin, returnBegin not compatible with beginScope: {}',
|
|
504
|
+
),
|
|
505
|
+
Z)
|
|
489
506
|
);
|
|
490
507
|
if (
|
|
491
508
|
'object' != typeof e.beginScope ||
|
|
@@ -501,9 +518,9 @@ var hljs = (function () {
|
|
|
501
518
|
if (e.skip || e.excludeEnd || e.returnEnd)
|
|
502
519
|
throw (
|
|
503
520
|
(K(
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
521
|
+
'skip, excludeEnd, returnEnd not compatible with endScope: {}',
|
|
522
|
+
),
|
|
523
|
+
Z)
|
|
507
524
|
);
|
|
508
525
|
if ('object' != typeof e.endScope || null === e.endScope)
|
|
509
526
|
throw (K('endScope must be object'), Z);
|
|
@@ -512,34 +529,35 @@ var hljs = (function () {
|
|
|
512
529
|
}
|
|
513
530
|
})(e);
|
|
514
531
|
}
|
|
532
|
+
|
|
515
533
|
function Q(e) {
|
|
516
534
|
function n(n, t) {
|
|
517
535
|
return RegExp(
|
|
518
536
|
d(n),
|
|
519
537
|
'm' +
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
538
|
+
(e.case_insensitive ? 'i' : '') +
|
|
539
|
+
(e.unicodeRegex ? 'u' : '') +
|
|
540
|
+
(t ? 'g' : ''),
|
|
523
541
|
);
|
|
524
542
|
}
|
|
525
543
|
class t {
|
|
526
544
|
constructor() {
|
|
527
545
|
(this.matchIndexes = {}),
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
546
|
+
(this.regexes = []),
|
|
547
|
+
(this.matchAt = 1),
|
|
548
|
+
(this.position = 0);
|
|
531
549
|
}
|
|
532
550
|
addRule(e, n) {
|
|
533
551
|
(n.position = this.position++),
|
|
534
|
-
|
|
535
|
-
|
|
552
|
+
(this.matchIndexes[this.matchAt] = n),
|
|
553
|
+
this.regexes.push([n, e]),
|
|
536
554
|
(this.matchAt += _(e) + 1);
|
|
537
555
|
}
|
|
538
556
|
compile() {
|
|
539
557
|
0 === this.regexes.length && (this.exec = () => null);
|
|
540
558
|
const e = this.regexes.map((e) => e[1]);
|
|
541
559
|
(this.matcherRe = n(f(e, { joinWith: '|' }), !0)),
|
|
542
|
-
|
|
560
|
+
(this.lastIndex = 0);
|
|
543
561
|
}
|
|
544
562
|
exec(e) {
|
|
545
563
|
this.matcherRe.lastIndex = this.lastIndex;
|
|
@@ -553,10 +571,10 @@ var hljs = (function () {
|
|
|
553
571
|
class a {
|
|
554
572
|
constructor() {
|
|
555
573
|
(this.rules = []),
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
574
|
+
(this.multiRegexes = []),
|
|
575
|
+
(this.count = 0),
|
|
576
|
+
(this.lastIndex = 0),
|
|
577
|
+
(this.regexIndex = 0);
|
|
560
578
|
}
|
|
561
579
|
getMatcher(e) {
|
|
562
580
|
if (this.multiRegexes[e]) return this.multiRegexes[e];
|
|
@@ -589,7 +607,7 @@ var hljs = (function () {
|
|
|
589
607
|
}
|
|
590
608
|
return (
|
|
591
609
|
t &&
|
|
592
|
-
|
|
610
|
+
((this.regexIndex += t.position + 1),
|
|
593
611
|
this.regexIndex === this.count && this.considerAll()),
|
|
594
612
|
t
|
|
595
613
|
);
|
|
@@ -597,7 +615,7 @@ var hljs = (function () {
|
|
|
597
615
|
}
|
|
598
616
|
if (
|
|
599
617
|
(e.compilerExtensions || (e.compilerExtensions = []),
|
|
600
|
-
|
|
618
|
+
e.contains && e.contains.includes('self'))
|
|
601
619
|
)
|
|
602
620
|
throw Error(
|
|
603
621
|
'ERR: contains `self` is not supported at the top-level of a language. See documentation.',
|
|
@@ -609,55 +627,53 @@ var hljs = (function () {
|
|
|
609
627
|
if (i.isCompiled) return o;
|
|
610
628
|
[D, B, W, z].forEach((e) => e(i, s)),
|
|
611
629
|
e.compilerExtensions.forEach((e) => e(i, s)),
|
|
612
|
-
(i.__beforeBegin = null),
|
|
613
|
-
[I, L, $].forEach((e) => e(i, s)),
|
|
630
|
+
(i.__beforeBegin = null), [I, L, $].forEach((e) => e(i, s)),
|
|
614
631
|
(i.isCompiled = !0);
|
|
615
632
|
let l = null;
|
|
616
633
|
return (
|
|
617
634
|
'object' == typeof i.keywords &&
|
|
618
|
-
|
|
619
|
-
|
|
635
|
+
i.keywords.$pattern &&
|
|
636
|
+
((i.keywords = Object.assign({}, i.keywords)),
|
|
620
637
|
(l = i.keywords.$pattern),
|
|
621
638
|
delete i.keywords.$pattern),
|
|
622
639
|
(l = l || /\w+/),
|
|
623
640
|
i.keywords &&
|
|
624
|
-
|
|
641
|
+
(i.keywords = U(i.keywords, e.case_insensitive)),
|
|
625
642
|
(o.keywordPatternRe = n(l, !0)),
|
|
626
643
|
s &&
|
|
627
|
-
|
|
644
|
+
(i.begin || (i.begin = /\B|\b/),
|
|
628
645
|
(o.beginRe = n(o.begin)),
|
|
629
646
|
i.end || i.endsWithParent || (i.end = /\B|\b/),
|
|
630
647
|
i.end && (o.endRe = n(o.end)),
|
|
631
648
|
(o.terminatorEnd = d(o.end) || ''),
|
|
632
649
|
i.endsWithParent &&
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
650
|
+
s.terminatorEnd &&
|
|
651
|
+
(o.terminatorEnd +=
|
|
652
|
+
(i.end ? '|' : '') + s.terminatorEnd)),
|
|
636
653
|
i.illegal && (o.illegalRe = n(i.illegal)),
|
|
637
654
|
i.contains || (i.contains = []),
|
|
638
655
|
(i.contains = [].concat(
|
|
639
656
|
...i.contains.map((e) =>
|
|
640
657
|
((e) => (
|
|
641
658
|
e.variants &&
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
e.cachedVariants
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
? r(e,
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
: e
|
|
659
|
+
!e.cachedVariants &&
|
|
660
|
+
(e.cachedVariants = e.variants.map((n) =>
|
|
661
|
+
r(
|
|
662
|
+
e, {
|
|
663
|
+
variants: null,
|
|
664
|
+
},
|
|
665
|
+
n,
|
|
666
|
+
),
|
|
667
|
+
)),
|
|
668
|
+
e.cachedVariants ?
|
|
669
|
+
e.cachedVariants :
|
|
670
|
+
X(e) ?
|
|
671
|
+
r(e, {
|
|
672
|
+
starts: e.starts ? r(e.starts) : null,
|
|
673
|
+
}) :
|
|
674
|
+
Object.isFrozen(e) ?
|
|
675
|
+
r(e) :
|
|
676
|
+
e
|
|
661
677
|
))('self' === e ? i : e),
|
|
662
678
|
),
|
|
663
679
|
)),
|
|
@@ -672,9 +688,9 @@ var hljs = (function () {
|
|
|
672
688
|
n.addRule(e.begin, { rule: e, type: 'begin' }),
|
|
673
689
|
),
|
|
674
690
|
e.terminatorEnd &&
|
|
675
|
-
|
|
691
|
+
n.addRule(e.terminatorEnd, { type: 'end' }),
|
|
676
692
|
e.illegal &&
|
|
677
|
-
|
|
693
|
+
n.addRule(e.illegal, { type: 'illegal' }),
|
|
678
694
|
n
|
|
679
695
|
);
|
|
680
696
|
})(o)),
|
|
@@ -683,6 +699,7 @@ var hljs = (function () {
|
|
|
683
699
|
})(e)
|
|
684
700
|
);
|
|
685
701
|
}
|
|
702
|
+
|
|
686
703
|
function X(e) {
|
|
687
704
|
return !!e && (e.endsWithParent || X(e.starts));
|
|
688
705
|
}
|
|
@@ -700,7 +717,7 @@ var hljs = (function () {
|
|
|
700
717
|
r = [];
|
|
701
718
|
let s = !0;
|
|
702
719
|
const o =
|
|
703
|
-
|
|
720
|
+
"Could not find the language '{}', did you forget to load/include a language module?",
|
|
704
721
|
l = {
|
|
705
722
|
disableAutodetect: !0,
|
|
706
723
|
name: 'Plain text',
|
|
@@ -716,39 +733,44 @@ var hljs = (function () {
|
|
|
716
733
|
languages: null,
|
|
717
734
|
__emitter: c,
|
|
718
735
|
};
|
|
736
|
+
|
|
719
737
|
function _(e) {
|
|
720
738
|
return d.noHighlightRe.test(e);
|
|
721
739
|
}
|
|
740
|
+
|
|
722
741
|
function h(e, n, t) {
|
|
723
742
|
let a = '',
|
|
724
743
|
i = '';
|
|
725
744
|
'object' == typeof n
|
|
726
|
-
?
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
745
|
+
?
|
|
746
|
+
((a = e), (t = n.ignoreIllegals), (i = n.language)) :
|
|
747
|
+
(q(
|
|
748
|
+
'10.7.0',
|
|
749
|
+
'highlight(lang, code, ...args) has been deprecated.',
|
|
750
|
+
),
|
|
751
|
+
q(
|
|
752
|
+
'10.7.0',
|
|
753
|
+
'Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277',
|
|
754
|
+
),
|
|
755
|
+
(i = e),
|
|
756
|
+
(a = n)),
|
|
737
757
|
void 0 === t && (t = !0);
|
|
738
758
|
const r = { code: a, language: i };
|
|
739
759
|
x('before:highlight', r);
|
|
740
760
|
const s = r.result ? r.result : f(r.language, r.code, t);
|
|
741
761
|
return (s.code = r.code), x('after:highlight', s), s;
|
|
742
762
|
}
|
|
763
|
+
|
|
743
764
|
function f(e, t, i, r) {
|
|
744
765
|
const l = Object.create(null);
|
|
766
|
+
|
|
745
767
|
function c() {
|
|
746
768
|
if (!O.keywords) return void M.addText(S);
|
|
747
769
|
let e = 0;
|
|
748
770
|
O.keywordPatternRe.lastIndex = 0;
|
|
749
771
|
let n = O.keywordPatternRe.exec(S),
|
|
750
772
|
t = '';
|
|
751
|
-
for (; n;
|
|
773
|
+
for (; n;) {
|
|
752
774
|
t += S.substring(e, n.index);
|
|
753
775
|
const i = w.case_insensitive ? n[0].toLowerCase() : n[0],
|
|
754
776
|
r = ((a = i), O.keywords[a]);
|
|
@@ -756,10 +778,10 @@ var hljs = (function () {
|
|
|
756
778
|
const [e, a] = r;
|
|
757
779
|
if (
|
|
758
780
|
(M.addText(t),
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
781
|
+
(t = ''),
|
|
782
|
+
(l[i] = (l[i] || 0) + 1),
|
|
783
|
+
l[i] <= 7 && (A += a),
|
|
784
|
+
e.startsWith('_'))
|
|
763
785
|
)
|
|
764
786
|
t += n[0];
|
|
765
787
|
else {
|
|
@@ -768,35 +790,37 @@ var hljs = (function () {
|
|
|
768
790
|
}
|
|
769
791
|
} else t += n[0];
|
|
770
792
|
(e = O.keywordPatternRe.lastIndex),
|
|
771
|
-
|
|
793
|
+
(n = O.keywordPatternRe.exec(S));
|
|
772
794
|
}
|
|
773
795
|
var a;
|
|
774
796
|
(t += S.substr(e)), M.addText(t);
|
|
775
797
|
}
|
|
798
|
+
|
|
776
799
|
function g() {
|
|
777
|
-
null != O.subLanguage
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
800
|
+
null != O.subLanguage ?
|
|
801
|
+
(() => {
|
|
802
|
+
if ('' === S) return;
|
|
803
|
+
let e = null;
|
|
804
|
+
if ('string' == typeof O.subLanguage) {
|
|
805
|
+
if (!n[O.subLanguage]) return void M.addText(S);
|
|
806
|
+
(e = f(O.subLanguage, S, !0, x[O.subLanguage])),
|
|
807
|
+
(x[O.subLanguage] = e._top);
|
|
808
|
+
} else
|
|
809
|
+
e = E(
|
|
810
|
+
S,
|
|
811
|
+
O.subLanguage.length ? O.subLanguage : null,
|
|
812
|
+
);
|
|
813
|
+
O.relevance > 0 && (A += e.relevance),
|
|
814
|
+
M.addSublanguage(e._emitter, e.language);
|
|
815
|
+
})() :
|
|
816
|
+
c(),
|
|
794
817
|
(S = '');
|
|
795
818
|
}
|
|
819
|
+
|
|
796
820
|
function u(e, n) {
|
|
797
821
|
let t = 1;
|
|
798
822
|
const a = n.length - 1;
|
|
799
|
-
for (; t <= a;
|
|
823
|
+
for (; t <= a;) {
|
|
800
824
|
if (!e._emit[t]) {
|
|
801
825
|
t++;
|
|
802
826
|
continue;
|
|
@@ -806,21 +830,22 @@ var hljs = (function () {
|
|
|
806
830
|
a ? M.addKeyword(i, a) : ((S = i), c(), (S = '')), t++;
|
|
807
831
|
}
|
|
808
832
|
}
|
|
833
|
+
|
|
809
834
|
function b(e, n) {
|
|
810
835
|
return (
|
|
811
836
|
e.scope &&
|
|
812
|
-
|
|
813
|
-
|
|
837
|
+
'string' == typeof e.scope &&
|
|
838
|
+
M.openNode(w.classNameAliases[e.scope] || e.scope),
|
|
814
839
|
e.beginScope &&
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
840
|
+
(e.beginScope._wrap ?
|
|
841
|
+
(M.addKeyword(
|
|
842
|
+
S,
|
|
843
|
+
w.classNameAliases[e.beginScope._wrap] ||
|
|
844
|
+
e.beginScope._wrap,
|
|
845
|
+
),
|
|
846
|
+
(S = '')) :
|
|
847
|
+
e.beginScope._multi &&
|
|
848
|
+
(u(e.beginScope, n), (S = ''))),
|
|
824
849
|
(O = Object.create(e, {
|
|
825
850
|
parent: {
|
|
826
851
|
value: O,
|
|
@@ -829,6 +854,7 @@ var hljs = (function () {
|
|
|
829
854
|
O
|
|
830
855
|
);
|
|
831
856
|
}
|
|
857
|
+
|
|
832
858
|
function m(e, n, t) {
|
|
833
859
|
let i = ((e, n) => {
|
|
834
860
|
const t = e && e.exec(n);
|
|
@@ -840,32 +866,34 @@ var hljs = (function () {
|
|
|
840
866
|
e['on:end'](n, t), t.isMatchIgnored && (i = !1);
|
|
841
867
|
}
|
|
842
868
|
if (i) {
|
|
843
|
-
for (; e.endsParent && e.parent;
|
|
869
|
+
for (; e.endsParent && e.parent;) e = e.parent;
|
|
844
870
|
return e;
|
|
845
871
|
}
|
|
846
872
|
}
|
|
847
873
|
if (e.endsWithParent) return m(e.parent, n, t);
|
|
848
874
|
}
|
|
875
|
+
|
|
849
876
|
function p(e) {
|
|
850
|
-
return 0 === O.matcher.regexIndex
|
|
851
|
-
|
|
852
|
-
|
|
877
|
+
return 0 === O.matcher.regexIndex ?
|
|
878
|
+
((S += e[0]), 1) :
|
|
879
|
+
((R = !0), 0);
|
|
853
880
|
}
|
|
881
|
+
|
|
854
882
|
function _(e) {
|
|
855
883
|
const n = e[0],
|
|
856
884
|
a = t.substr(e.index),
|
|
857
885
|
i = m(O, e, a);
|
|
858
886
|
if (!i) return ee;
|
|
859
887
|
const r = O;
|
|
860
|
-
O.endScope && O.endScope._wrap
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
888
|
+
O.endScope && O.endScope._wrap ?
|
|
889
|
+
(g(), M.addKeyword(n, O.endScope._wrap)) :
|
|
890
|
+
O.endScope && O.endScope._multi ?
|
|
891
|
+
(g(), u(O.endScope, e)) :
|
|
892
|
+
r.skip ?
|
|
893
|
+
(S += n) :
|
|
894
|
+
(r.returnEnd || r.excludeEnd || (S += n),
|
|
895
|
+
g(),
|
|
896
|
+
r.excludeEnd && (S = n));
|
|
869
897
|
do {
|
|
870
898
|
O.scope && M.closeNode(),
|
|
871
899
|
O.skip || O.subLanguage || (A += O.relevance),
|
|
@@ -874,6 +902,7 @@ var hljs = (function () {
|
|
|
874
902
|
return i.starts && b(i.starts, e), r.returnEnd ? 0 : n.length;
|
|
875
903
|
}
|
|
876
904
|
let h = {};
|
|
905
|
+
|
|
877
906
|
function y(n, r) {
|
|
878
907
|
const o = r && r[0];
|
|
879
908
|
if (((S += n), null == o)) return g(), 0;
|
|
@@ -898,11 +927,11 @@ var hljs = (function () {
|
|
|
898
927
|
for (const t of r)
|
|
899
928
|
if (t && (t(e, i), i.isMatchIgnored)) return p(n);
|
|
900
929
|
return (
|
|
901
|
-
t.skip
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
930
|
+
t.skip ?
|
|
931
|
+
(S += n) :
|
|
932
|
+
(t.excludeBegin && (S += n),
|
|
933
|
+
g(),
|
|
934
|
+
t.returnBegin || t.excludeBegin || (S = n)),
|
|
906
935
|
b(t, e),
|
|
907
936
|
t.returnBegin ? 0 : n.length
|
|
908
937
|
);
|
|
@@ -910,10 +939,10 @@ var hljs = (function () {
|
|
|
910
939
|
if ('illegal' === r.type && !i) {
|
|
911
940
|
const e = Error(
|
|
912
941
|
'Illegal lexeme "' +
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
942
|
+
o +
|
|
943
|
+
'" for mode "' +
|
|
944
|
+
(O.scope || '<unnamed>') +
|
|
945
|
+
'"',
|
|
917
946
|
);
|
|
918
947
|
throw ((e.mode = O), e);
|
|
919
948
|
}
|
|
@@ -932,7 +961,7 @@ var hljs = (function () {
|
|
|
932
961
|
if (!w)
|
|
933
962
|
throw (
|
|
934
963
|
(K(o.replace('{}', e)),
|
|
935
|
-
|
|
964
|
+
Error('Unknown language: "' + e + '"'))
|
|
936
965
|
);
|
|
937
966
|
const N = Q(w);
|
|
938
967
|
let k = '',
|
|
@@ -951,9 +980,9 @@ var hljs = (function () {
|
|
|
951
980
|
T = 0,
|
|
952
981
|
R = !1;
|
|
953
982
|
try {
|
|
954
|
-
for (O.matcher.considerAll()
|
|
983
|
+
for (O.matcher.considerAll();;) {
|
|
955
984
|
T++,
|
|
956
|
-
|
|
985
|
+
R ? (R = !1) : O.matcher.considerAll(),
|
|
957
986
|
(O.matcher.lastIndex = C);
|
|
958
987
|
const e = O.matcher.exec(t);
|
|
959
988
|
if (!e) break;
|
|
@@ -964,8 +993,7 @@ var hljs = (function () {
|
|
|
964
993
|
y(t.substr(C)),
|
|
965
994
|
M.closeAllNodes(),
|
|
966
995
|
M.finalize(),
|
|
967
|
-
(k = M.toHTML()),
|
|
968
|
-
{
|
|
996
|
+
(k = M.toHTML()), {
|
|
969
997
|
language: e,
|
|
970
998
|
value: k,
|
|
971
999
|
relevance: A,
|
|
@@ -1003,6 +1031,7 @@ var hljs = (function () {
|
|
|
1003
1031
|
throw n;
|
|
1004
1032
|
}
|
|
1005
1033
|
}
|
|
1034
|
+
|
|
1006
1035
|
function E(e, t) {
|
|
1007
1036
|
t = t || d.languages || Object.keys(n);
|
|
1008
1037
|
const a = ((e) => {
|
|
@@ -1016,9 +1045,9 @@ var hljs = (function () {
|
|
|
1016
1045
|
return n._emitter.addText(e), n;
|
|
1017
1046
|
})(e),
|
|
1018
1047
|
i = t
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1048
|
+
.filter(v)
|
|
1049
|
+
.filter(O)
|
|
1050
|
+
.map((n) => f(n, e, !1));
|
|
1022
1051
|
i.unshift(a);
|
|
1023
1052
|
const r = i.sort((e, n) => {
|
|
1024
1053
|
if (e.relevance !== n.relevance)
|
|
@@ -1033,6 +1062,7 @@ var hljs = (function () {
|
|
|
1033
1062
|
c = s;
|
|
1034
1063
|
return (c.secondBest = o), c;
|
|
1035
1064
|
}
|
|
1065
|
+
|
|
1036
1066
|
function y(e) {
|
|
1037
1067
|
let n = null;
|
|
1038
1068
|
const t = ((e) => {
|
|
@@ -1043,7 +1073,7 @@ var hljs = (function () {
|
|
|
1043
1073
|
const n = v(t[1]);
|
|
1044
1074
|
return (
|
|
1045
1075
|
n ||
|
|
1046
|
-
|
|
1076
|
+
(H(o.replace('{}', t[1])),
|
|
1047
1077
|
H(
|
|
1048
1078
|
'Falling back to no-highlight mode for this block.',
|
|
1049
1079
|
e,
|
|
@@ -1056,17 +1086,17 @@ var hljs = (function () {
|
|
|
1056
1086
|
if (_(t)) return;
|
|
1057
1087
|
if (
|
|
1058
1088
|
(x('before:highlightElement', { el: e, language: t }),
|
|
1059
|
-
|
|
1089
|
+
e.children.length > 0 &&
|
|
1060
1090
|
(d.ignoreUnescapedHTML ||
|
|
1061
1091
|
(console.warn(
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1092
|
+
'One of your code blocks includes unescaped HTML. This is a potentially serious security risk.',
|
|
1093
|
+
),
|
|
1094
|
+
console.warn(
|
|
1095
|
+
'https://github.com/highlightjs/highlight.js/wiki/security',
|
|
1096
|
+
),
|
|
1097
|
+
console.warn('The element with unescaped HTML:'),
|
|
1098
|
+
console.warn(e)),
|
|
1099
|
+
d.throwUnescapedHTML))
|
|
1070
1100
|
)
|
|
1071
1101
|
throw new V(
|
|
1072
1102
|
'One of your code blocks includes unescaped HTML.',
|
|
@@ -1076,41 +1106,46 @@ var hljs = (function () {
|
|
|
1076
1106
|
const a = n.textContent,
|
|
1077
1107
|
r = t ? h(a, { language: t, ignoreIllegals: !0 }) : E(a);
|
|
1078
1108
|
(e.innerHTML = r.value),
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1109
|
+
((e, n, t) => {
|
|
1110
|
+
const a = (n && i[n]) || t;
|
|
1111
|
+
e.classList.add('hljs'), e.classList.add('language-' + a);
|
|
1112
|
+
})(e, t, r.language),
|
|
1113
|
+
(e.result = {
|
|
1114
|
+
language: r.language,
|
|
1115
|
+
re: r.relevance,
|
|
1116
|
+
relevance: r.relevance,
|
|
1117
|
+
}),
|
|
1118
|
+
r.secondBest &&
|
|
1119
|
+
(e.secondBest = {
|
|
1120
|
+
language: r.secondBest.language,
|
|
1121
|
+
relevance: r.secondBest.relevance,
|
|
1087
1122
|
}),
|
|
1088
|
-
r.secondBest &&
|
|
1089
|
-
(e.secondBest = {
|
|
1090
|
-
language: r.secondBest.language,
|
|
1091
|
-
relevance: r.secondBest.relevance,
|
|
1092
|
-
}),
|
|
1093
1123
|
x('after:highlightElement', { el: e, result: r, text: a });
|
|
1094
1124
|
}
|
|
1095
1125
|
let w = !1;
|
|
1126
|
+
|
|
1096
1127
|
function N() {
|
|
1097
|
-
'loading' !== document.readyState
|
|
1098
|
-
|
|
1099
|
-
|
|
1128
|
+
'loading' !== document.readyState ?
|
|
1129
|
+
document.querySelectorAll(d.cssSelector).forEach(y) :
|
|
1130
|
+
(w = !0);
|
|
1100
1131
|
}
|
|
1132
|
+
|
|
1101
1133
|
function v(e) {
|
|
1102
1134
|
return (e = (e || '').toLowerCase()), n[e] || n[i[e]];
|
|
1103
1135
|
}
|
|
1136
|
+
|
|
1104
1137
|
function k(e, { languageName: n }) {
|
|
1105
1138
|
'string' == typeof e && (e = [e]),
|
|
1106
1139
|
e.forEach((e) => {
|
|
1107
1140
|
i[e.toLowerCase()] = n;
|
|
1108
1141
|
});
|
|
1109
1142
|
}
|
|
1143
|
+
|
|
1110
1144
|
function O(e) {
|
|
1111
1145
|
const n = v(e);
|
|
1112
1146
|
return n && !n.disableAutodetect;
|
|
1113
1147
|
}
|
|
1148
|
+
|
|
1114
1149
|
function x(e, n) {
|
|
1115
1150
|
const t = e;
|
|
1116
1151
|
r.forEach((e) => {
|
|
@@ -1123,8 +1158,7 @@ var hljs = (function () {
|
|
|
1123
1158
|
'DOMContentLoaded',
|
|
1124
1159
|
() => {
|
|
1125
1160
|
w && N();
|
|
1126
|
-
},
|
|
1127
|
-
!1,
|
|
1161
|
+
}, !1,
|
|
1128
1162
|
),
|
|
1129
1163
|
Object.assign(e, {
|
|
1130
1164
|
highlight: h,
|
|
@@ -1167,8 +1201,7 @@ var hljs = (function () {
|
|
|
1167
1201
|
'{}',
|
|
1168
1202
|
t,
|
|
1169
1203
|
),
|
|
1170
|
-
),
|
|
1171
|
-
!s)
|
|
1204
|
+
), !s)
|
|
1172
1205
|
)
|
|
1173
1206
|
throw e;
|
|
1174
1207
|
K(e), (i = l);
|
|
@@ -1177,9 +1210,9 @@ var hljs = (function () {
|
|
|
1177
1210
|
(n[t] = i),
|
|
1178
1211
|
(i.rawDefinition = a.bind(null, e)),
|
|
1179
1212
|
i.aliases &&
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1213
|
+
k(i.aliases, {
|
|
1214
|
+
languageName: t,
|
|
1215
|
+
});
|
|
1183
1216
|
},
|
|
1184
1217
|
unregisterLanguage: (e) => {
|
|
1185
1218
|
delete n[e];
|
|
@@ -1200,14 +1233,14 @@ var hljs = (function () {
|
|
|
1200
1233
|
);
|
|
1201
1234
|
}),
|
|
1202
1235
|
e['after:highlightBlock'] &&
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1236
|
+
!e['after:highlightElement'] &&
|
|
1237
|
+
(e['after:highlightElement'] = (n) => {
|
|
1238
|
+
e['after:highlightBlock'](
|
|
1239
|
+
Object.assign({ block: n.el }, n),
|
|
1240
|
+
);
|
|
1241
|
+
});
|
|
1209
1242
|
})(e),
|
|
1210
|
-
|
|
1243
|
+
r.push(e);
|
|
1211
1244
|
},
|
|
1212
1245
|
}),
|
|
1213
1246
|
(e.debugMode = () => {
|
|
@@ -1244,8 +1277,7 @@ var hljs = (function () {
|
|
|
1244
1277
|
},
|
|
1245
1278
|
CSS_NUMBER_MODE: {
|
|
1246
1279
|
scope: 'number',
|
|
1247
|
-
begin:
|
|
1248
|
-
e.NUMBER_RE +
|
|
1280
|
+
begin: e.NUMBER_RE +
|
|
1249
1281
|
'(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?',
|
|
1250
1282
|
relevance: 0,
|
|
1251
1283
|
},
|
|
@@ -1805,8 +1837,7 @@ var hljs = (function () {
|
|
|
1805
1837
|
de = '[0-9a-fA-F](_*[0-9a-fA-F])*',
|
|
1806
1838
|
ge = {
|
|
1807
1839
|
className: 'number',
|
|
1808
|
-
variants: [
|
|
1809
|
-
{
|
|
1840
|
+
variants: [{
|
|
1810
1841
|
begin: `(\\b([0-9](_*[0-9])*)((${ce})|\\.)?|(${ce}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`,
|
|
1811
1842
|
},
|
|
1812
1843
|
{
|
|
@@ -1828,6 +1859,7 @@ var hljs = (function () {
|
|
|
1828
1859
|
],
|
|
1829
1860
|
relevance: 0,
|
|
1830
1861
|
};
|
|
1862
|
+
|
|
1831
1863
|
function ue(e, n, t) {
|
|
1832
1864
|
return -1 === t ? '' : e.replace(n, (a) => ue(e, n, t - 1));
|
|
1833
1865
|
}
|
|
@@ -1955,6 +1987,7 @@ var hljs = (function () {
|
|
|
1955
1987
|
'global',
|
|
1956
1988
|
],
|
|
1957
1989
|
ye = [].concat(fe, _e, he);
|
|
1990
|
+
|
|
1958
1991
|
function we(e) {
|
|
1959
1992
|
const n = e.regex,
|
|
1960
1993
|
t = be,
|
|
@@ -1968,13 +2001,13 @@ var hljs = (function () {
|
|
|
1968
2001
|
let i;
|
|
1969
2002
|
'>' === a &&
|
|
1970
2003
|
(((e, { after: n }) => {
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
2004
|
+
const t = '</' + e[0].slice(1);
|
|
2005
|
+
return -1 !== e.input.indexOf(t, n);
|
|
2006
|
+
})(e, { after: t }) ||
|
|
1974
2007
|
n.ignoreMatch()),
|
|
1975
2008
|
(i = e.input.substr(t).match(/^\s+extends\s+/)) &&
|
|
1976
|
-
|
|
1977
|
-
|
|
2009
|
+
0 === i.index &&
|
|
2010
|
+
n.ignoreMatch();
|
|
1978
2011
|
},
|
|
1979
2012
|
},
|
|
1980
2013
|
i = {
|
|
@@ -1988,8 +2021,7 @@ var hljs = (function () {
|
|
|
1988
2021
|
s = '0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*',
|
|
1989
2022
|
o = {
|
|
1990
2023
|
className: 'number',
|
|
1991
|
-
variants: [
|
|
1992
|
-
{
|
|
2024
|
+
variants: [{
|
|
1993
2025
|
begin: `(\\b(${s})((${r})|\\.)?|(${r}))[eE][+-]?([0-9](_?[0-9])*)\\b`,
|
|
1994
2026
|
},
|
|
1995
2027
|
{
|
|
@@ -2049,33 +2081,30 @@ var hljs = (function () {
|
|
|
2049
2081
|
variants: [
|
|
2050
2082
|
e.COMMENT(/\/\*\*(?!\/)/, '\\*/', {
|
|
2051
2083
|
relevance: 0,
|
|
2052
|
-
contains: [
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
{
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
],
|
|
2077
|
-
},
|
|
2078
|
-
],
|
|
2084
|
+
contains: [{
|
|
2085
|
+
begin: '(?=@[A-Za-z]+)',
|
|
2086
|
+
relevance: 0,
|
|
2087
|
+
contains: [{
|
|
2088
|
+
className: 'doctag',
|
|
2089
|
+
begin: '@[A-Za-z]+',
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
className: 'type',
|
|
2093
|
+
begin: '\\{',
|
|
2094
|
+
end: '\\}',
|
|
2095
|
+
excludeEnd: !0,
|
|
2096
|
+
excludeBegin: !0,
|
|
2097
|
+
relevance: 0,
|
|
2098
|
+
},
|
|
2099
|
+
{
|
|
2100
|
+
className: 'variable',
|
|
2101
|
+
begin: t + '(?=\\s*(-)|$)',
|
|
2102
|
+
endsParent: !0,
|
|
2103
|
+
relevance: 0,
|
|
2104
|
+
},
|
|
2105
|
+
{ begin: /(?=[^\n])\s/, relevance: 0 },
|
|
2106
|
+
],
|
|
2107
|
+
}, ],
|
|
2079
2108
|
}),
|
|
2080
2109
|
e.C_BLOCK_COMMENT_MODE,
|
|
2081
2110
|
e.C_LINE_COMMENT_MODE,
|
|
@@ -2089,14 +2118,12 @@ var hljs = (function () {
|
|
|
2089
2118
|
contains: ['self'].concat(b),
|
|
2090
2119
|
});
|
|
2091
2120
|
const m = [].concat(u, l.contains),
|
|
2092
|
-
p = m.concat([
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
},
|
|
2099
|
-
]),
|
|
2121
|
+
p = m.concat([{
|
|
2122
|
+
begin: /\(/,
|
|
2123
|
+
end: /\)/,
|
|
2124
|
+
keywords: i,
|
|
2125
|
+
contains: ['self'].concat(m),
|
|
2126
|
+
}, ]),
|
|
2100
2127
|
_ = {
|
|
2101
2128
|
className: 'params',
|
|
2102
2129
|
begin: /\(/,
|
|
@@ -2107,8 +2134,7 @@ var hljs = (function () {
|
|
|
2107
2134
|
contains: p,
|
|
2108
2135
|
},
|
|
2109
2136
|
h = {
|
|
2110
|
-
variants: [
|
|
2111
|
-
{
|
|
2137
|
+
variants: [{
|
|
2112
2138
|
match: [
|
|
2113
2139
|
/class/,
|
|
2114
2140
|
/\s+/,
|
|
@@ -2143,8 +2169,7 @@ var hljs = (function () {
|
|
|
2143
2169
|
keywords: { _: [..._e, ...he] },
|
|
2144
2170
|
},
|
|
2145
2171
|
E = {
|
|
2146
|
-
variants: [
|
|
2147
|
-
{
|
|
2172
|
+
variants: [{
|
|
2148
2173
|
match: [/function/, /\s+/, t, /(?=\s*\()/],
|
|
2149
2174
|
},
|
|
2150
2175
|
{ match: [/function/, /\s*(?=\()/] },
|
|
@@ -2182,9 +2207,9 @@ var hljs = (function () {
|
|
|
2182
2207
|
contains: [{ begin: /\(\)/ }, _],
|
|
2183
2208
|
},
|
|
2184
2209
|
k =
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2210
|
+
'(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|' +
|
|
2211
|
+
e.UNDERSCORE_IDENT_RE +
|
|
2212
|
+
')\\s*=>',
|
|
2188
2213
|
O = {
|
|
2189
2214
|
match: [
|
|
2190
2215
|
/const|var|let/,
|
|
@@ -2231,8 +2256,7 @@ var hljs = (function () {
|
|
|
2231
2256
|
},
|
|
2232
2257
|
O,
|
|
2233
2258
|
{
|
|
2234
|
-
begin:
|
|
2235
|
-
'(' +
|
|
2259
|
+
begin: '(' +
|
|
2236
2260
|
e.RE_STARTERS_RE +
|
|
2237
2261
|
'|\\b(case|return|throw)\\b)\\s*',
|
|
2238
2262
|
keywords: 'return throw case',
|
|
@@ -2245,30 +2269,27 @@ var hljs = (function () {
|
|
|
2245
2269
|
begin: k,
|
|
2246
2270
|
returnBegin: !0,
|
|
2247
2271
|
end: '\\s*=>',
|
|
2248
|
-
contains: [
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
],
|
|
2270
|
-
},
|
|
2271
|
-
],
|
|
2272
|
+
contains: [{
|
|
2273
|
+
className: 'params',
|
|
2274
|
+
variants: [{
|
|
2275
|
+
begin: e.UNDERSCORE_IDENT_RE,
|
|
2276
|
+
relevance: 0,
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
className: null,
|
|
2280
|
+
begin: /\(\s*\)/,
|
|
2281
|
+
skip: !0,
|
|
2282
|
+
},
|
|
2283
|
+
{
|
|
2284
|
+
begin: /\(/,
|
|
2285
|
+
end: /\)/,
|
|
2286
|
+
excludeBegin: !0,
|
|
2287
|
+
excludeEnd: !0,
|
|
2288
|
+
keywords: i,
|
|
2289
|
+
contains: p,
|
|
2290
|
+
},
|
|
2291
|
+
],
|
|
2292
|
+
}, ],
|
|
2272
2293
|
},
|
|
2273
2294
|
{ begin: /,/, relevance: 0 },
|
|
2274
2295
|
{ match: /\s+/, relevance: 0 },
|
|
@@ -2285,14 +2306,12 @@ var hljs = (function () {
|
|
|
2285
2306
|
},
|
|
2286
2307
|
],
|
|
2287
2308
|
subLanguage: 'xml',
|
|
2288
|
-
contains: [
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
},
|
|
2295
|
-
],
|
|
2309
|
+
contains: [{
|
|
2310
|
+
begin: a.begin,
|
|
2311
|
+
end: a.end,
|
|
2312
|
+
skip: !0,
|
|
2313
|
+
contains: ['self'],
|
|
2314
|
+
}, ],
|
|
2296
2315
|
},
|
|
2297
2316
|
],
|
|
2298
2317
|
},
|
|
@@ -2301,8 +2320,7 @@ var hljs = (function () {
|
|
|
2301
2320
|
beginKeywords: 'while if switch catch for',
|
|
2302
2321
|
},
|
|
2303
2322
|
{
|
|
2304
|
-
begin:
|
|
2305
|
-
'\\b(?!function)' +
|
|
2323
|
+
begin: '\\b(?!function)' +
|
|
2306
2324
|
e.UNDERSCORE_IDENT_RE +
|
|
2307
2325
|
'\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{',
|
|
2308
2326
|
returnBegin: !0,
|
|
@@ -2599,8 +2617,7 @@ var hljs = (function () {
|
|
|
2599
2617
|
};
|
|
2600
2618
|
Object.assign(t, {
|
|
2601
2619
|
className: 'variable',
|
|
2602
|
-
variants: [
|
|
2603
|
-
{
|
|
2620
|
+
variants: [{
|
|
2604
2621
|
begin: n.concat(
|
|
2605
2622
|
/\$[\w\d#@][\w\d_]*/,
|
|
2606
2623
|
'(?![\\w\\d])(?![$])',
|
|
@@ -2913,11 +2930,11 @@ var hljs = (function () {
|
|
|
2913
2930
|
t = e.COMMENT('//', '$', { contains: [{ begin: /\\\n/ }] }),
|
|
2914
2931
|
a = '[a-zA-Z_]\\w*::',
|
|
2915
2932
|
i =
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2933
|
+
'(decltype\\(auto\\)|' +
|
|
2934
|
+
n.optional(a) +
|
|
2935
|
+
'[a-zA-Z_]\\w*' +
|
|
2936
|
+
n.optional('<[^<>]+>') +
|
|
2937
|
+
')',
|
|
2921
2938
|
r = {
|
|
2922
2939
|
className: 'type',
|
|
2923
2940
|
variants: [
|
|
@@ -2929,8 +2946,7 @@ var hljs = (function () {
|
|
|
2929
2946
|
},
|
|
2930
2947
|
s = {
|
|
2931
2948
|
className: 'string',
|
|
2932
|
-
variants: [
|
|
2933
|
-
{
|
|
2949
|
+
variants: [{
|
|
2934
2950
|
begin: '(u8?|U|L)?"',
|
|
2935
2951
|
end: '"',
|
|
2936
2952
|
illegal: '\\n',
|
|
@@ -2965,8 +2981,7 @@ var hljs = (function () {
|
|
|
2965
2981
|
begin: /#\s*[a-z]+\b/,
|
|
2966
2982
|
end: /$/,
|
|
2967
2983
|
keywords: {
|
|
2968
|
-
keyword:
|
|
2969
|
-
'if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include',
|
|
2984
|
+
keyword: 'if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include',
|
|
2970
2985
|
},
|
|
2971
2986
|
contains: [
|
|
2972
2987
|
{ begin: /\\\n/, relevance: 0 },
|
|
@@ -3049,8 +3064,7 @@ var hljs = (function () {
|
|
|
3049
3064
|
'imaginary',
|
|
3050
3065
|
],
|
|
3051
3066
|
literal: 'true false NULL',
|
|
3052
|
-
built_in:
|
|
3053
|
-
'std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr',
|
|
3067
|
+
built_in: 'std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr',
|
|
3054
3068
|
},
|
|
3055
3069
|
u = [l, r, t, e.C_BLOCK_COMMENT_MODE, o, s],
|
|
3056
3070
|
b = {
|
|
@@ -3063,15 +3077,13 @@ var hljs = (function () {
|
|
|
3063
3077
|
{ beginKeywords: 'new throw return else', end: /;/ },
|
|
3064
3078
|
],
|
|
3065
3079
|
keywords: g,
|
|
3066
|
-
contains: u.concat([
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
},
|
|
3074
|
-
]),
|
|
3080
|
+
contains: u.concat([{
|
|
3081
|
+
begin: /\(/,
|
|
3082
|
+
end: /\)/,
|
|
3083
|
+
keywords: g,
|
|
3084
|
+
contains: u.concat(['self']),
|
|
3085
|
+
relevance: 0,
|
|
3086
|
+
}, ]),
|
|
3075
3087
|
relevance: 0,
|
|
3076
3088
|
},
|
|
3077
3089
|
m = {
|
|
@@ -3081,8 +3093,7 @@ var hljs = (function () {
|
|
|
3081
3093
|
excludeEnd: !0,
|
|
3082
3094
|
keywords: g,
|
|
3083
3095
|
illegal: /[^\w\s\*&:<>.]/,
|
|
3084
|
-
contains: [
|
|
3085
|
-
{
|
|
3096
|
+
contains: [{
|
|
3086
3097
|
begin: 'decltype\\(auto\\)',
|
|
3087
3098
|
keywords: g,
|
|
3088
3099
|
relevance: 0,
|
|
@@ -3148,8 +3159,7 @@ var hljs = (function () {
|
|
|
3148
3159
|
className: 'class',
|
|
3149
3160
|
beginKeywords: 'enum class struct union',
|
|
3150
3161
|
end: /[{;:<>=]/,
|
|
3151
|
-
contains: [
|
|
3152
|
-
{
|
|
3162
|
+
contains: [{
|
|
3153
3163
|
beginKeywords: 'final class struct',
|
|
3154
3164
|
},
|
|
3155
3165
|
e.TITLE_MODE,
|
|
@@ -3166,19 +3176,18 @@ var hljs = (function () {
|
|
|
3166
3176
|
}),
|
|
3167
3177
|
a = '[a-zA-Z_]\\w*::',
|
|
3168
3178
|
i =
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3179
|
+
'(?!struct)(decltype\\(auto\\)|' +
|
|
3180
|
+
n.optional(a) +
|
|
3181
|
+
'[a-zA-Z_]\\w*' +
|
|
3182
|
+
n.optional('<[^<>]+>') +
|
|
3183
|
+
')',
|
|
3174
3184
|
r = {
|
|
3175
3185
|
className: 'type',
|
|
3176
3186
|
begin: '\\b[a-z\\d_]*_t\\b',
|
|
3177
3187
|
},
|
|
3178
3188
|
s = {
|
|
3179
3189
|
className: 'string',
|
|
3180
|
-
variants: [
|
|
3181
|
-
{
|
|
3190
|
+
variants: [{
|
|
3182
3191
|
begin: '(u8?|U|L)?"',
|
|
3183
3192
|
end: '"',
|
|
3184
3193
|
illegal: '\\n',
|
|
@@ -3213,8 +3222,7 @@ var hljs = (function () {
|
|
|
3213
3222
|
begin: /#\s*[a-z]+\b/,
|
|
3214
3223
|
end: /$/,
|
|
3215
3224
|
keywords: {
|
|
3216
|
-
keyword:
|
|
3217
|
-
'if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include',
|
|
3225
|
+
keyword: 'if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include',
|
|
3218
3226
|
},
|
|
3219
3227
|
contains: [
|
|
3220
3228
|
{ begin: /\\\n/, relevance: 0 },
|
|
@@ -3530,15 +3538,13 @@ var hljs = (function () {
|
|
|
3530
3538
|
{ beginKeywords: 'new throw return else', end: /;/ },
|
|
3531
3539
|
],
|
|
3532
3540
|
keywords: g,
|
|
3533
|
-
contains: b.concat([
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
},
|
|
3541
|
-
]),
|
|
3541
|
+
contains: b.concat([{
|
|
3542
|
+
begin: /\(/,
|
|
3543
|
+
end: /\)/,
|
|
3544
|
+
keywords: g,
|
|
3545
|
+
contains: b.concat(['self']),
|
|
3546
|
+
relevance: 0,
|
|
3547
|
+
}, ]),
|
|
3542
3548
|
relevance: 0,
|
|
3543
3549
|
},
|
|
3544
3550
|
p = {
|
|
@@ -3549,8 +3555,7 @@ var hljs = (function () {
|
|
|
3549
3555
|
excludeEnd: !0,
|
|
3550
3556
|
keywords: g,
|
|
3551
3557
|
illegal: /[^\w\s\*&:<>.]/,
|
|
3552
|
-
contains: [
|
|
3553
|
-
{
|
|
3558
|
+
contains: [{
|
|
3554
3559
|
begin: 'decltype\\(auto\\)',
|
|
3555
3560
|
keywords: g,
|
|
3556
3561
|
relevance: 0,
|
|
@@ -3754,8 +3759,7 @@ var hljs = (function () {
|
|
|
3754
3759
|
}),
|
|
3755
3760
|
a = {
|
|
3756
3761
|
className: 'number',
|
|
3757
|
-
variants: [
|
|
3758
|
-
{
|
|
3762
|
+
variants: [{
|
|
3759
3763
|
begin: "\\b(0b[01']+)",
|
|
3760
3764
|
},
|
|
3761
3765
|
{
|
|
@@ -3792,8 +3796,7 @@ var hljs = (function () {
|
|
|
3792
3796
|
className: 'string',
|
|
3793
3797
|
begin: /\$@"/,
|
|
3794
3798
|
end: '"',
|
|
3795
|
-
contains: [
|
|
3796
|
-
{
|
|
3799
|
+
contains: [{
|
|
3797
3800
|
begin: /\{\{/,
|
|
3798
3801
|
},
|
|
3799
3802
|
{ begin: /\}\}/ },
|
|
@@ -3819,17 +3822,17 @@ var hljs = (function () {
|
|
|
3819
3822
|
a,
|
|
3820
3823
|
e.C_BLOCK_COMMENT_MODE,
|
|
3821
3824
|
]),
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3825
|
+
(o.contains = [
|
|
3826
|
+
d,
|
|
3827
|
+
l,
|
|
3828
|
+
r,
|
|
3829
|
+
e.APOS_STRING_MODE,
|
|
3830
|
+
e.QUOTE_STRING_MODE,
|
|
3831
|
+
a,
|
|
3832
|
+
e.inherit(e.C_BLOCK_COMMENT_MODE, {
|
|
3833
|
+
illegal: /\n/,
|
|
3834
|
+
}),
|
|
3835
|
+
]);
|
|
3833
3836
|
const g = {
|
|
3834
3837
|
variants: [
|
|
3835
3838
|
c,
|
|
@@ -3845,12 +3848,12 @@ var hljs = (function () {
|
|
|
3845
3848
|
contains: [{ beginKeywords: 'in out' }, t],
|
|
3846
3849
|
},
|
|
3847
3850
|
b =
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3851
|
+
e.IDENT_RE +
|
|
3852
|
+
'(<' +
|
|
3853
|
+
e.IDENT_RE +
|
|
3854
|
+
'(\\s*,\\s*' +
|
|
3855
|
+
e.IDENT_RE +
|
|
3856
|
+
')*>)?(\\[\\])?',
|
|
3854
3857
|
m = {
|
|
3855
3858
|
begin: '@' + e.IDENT_RE,
|
|
3856
3859
|
relevance: 0,
|
|
@@ -3863,18 +3866,16 @@ var hljs = (function () {
|
|
|
3863
3866
|
contains: [
|
|
3864
3867
|
e.COMMENT('///', '$', {
|
|
3865
3868
|
returnBegin: !0,
|
|
3866
|
-
contains: [
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
},
|
|
3877
|
-
],
|
|
3869
|
+
contains: [{
|
|
3870
|
+
className: 'doctag',
|
|
3871
|
+
variants: [
|
|
3872
|
+
{ begin: '///', relevance: 0 },
|
|
3873
|
+
{
|
|
3874
|
+
begin: '\x3c!--|--\x3e',
|
|
3875
|
+
},
|
|
3876
|
+
{ begin: '</?', end: '>' },
|
|
3877
|
+
],
|
|
3878
|
+
}, ],
|
|
3878
3879
|
}),
|
|
3879
3880
|
e.C_LINE_COMMENT_MODE,
|
|
3880
3881
|
e.C_BLOCK_COMMENT_MODE,
|
|
@@ -3883,8 +3884,7 @@ var hljs = (function () {
|
|
|
3883
3884
|
begin: '#',
|
|
3884
3885
|
end: '$',
|
|
3885
3886
|
keywords: {
|
|
3886
|
-
keyword:
|
|
3887
|
-
'if else elif endif define undef warning error line region endregion pragma checksum',
|
|
3887
|
+
keyword: 'if else elif endif define undef warning error line region endregion pragma checksum',
|
|
3888
3888
|
},
|
|
3889
3889
|
},
|
|
3890
3890
|
g,
|
|
@@ -3931,13 +3931,11 @@ var hljs = (function () {
|
|
|
3931
3931
|
excludeBegin: !0,
|
|
3932
3932
|
end: '\\]',
|
|
3933
3933
|
excludeEnd: !0,
|
|
3934
|
-
contains: [
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
},
|
|
3940
|
-
],
|
|
3934
|
+
contains: [{
|
|
3935
|
+
className: 'string',
|
|
3936
|
+
begin: /"/,
|
|
3937
|
+
end: /"/,
|
|
3938
|
+
}, ],
|
|
3941
3939
|
},
|
|
3942
3940
|
{
|
|
3943
3941
|
beginKeywords: 'new return throw await else',
|
|
@@ -3945,8 +3943,7 @@ var hljs = (function () {
|
|
|
3945
3943
|
},
|
|
3946
3944
|
{
|
|
3947
3945
|
className: 'function',
|
|
3948
|
-
begin:
|
|
3949
|
-
'(' +
|
|
3946
|
+
begin: '(' +
|
|
3950
3947
|
b +
|
|
3951
3948
|
'\\s+)+' +
|
|
3952
3949
|
e.IDENT_RE +
|
|
@@ -3955,10 +3952,8 @@ var hljs = (function () {
|
|
|
3955
3952
|
end: /\s*[{;=]/,
|
|
3956
3953
|
excludeEnd: !0,
|
|
3957
3954
|
keywords: n,
|
|
3958
|
-
contains: [
|
|
3959
|
-
|
|
3960
|
-
beginKeywords:
|
|
3961
|
-
'public private protected static internal protected abstract async extern override unsafe virtual new sealed partial',
|
|
3955
|
+
contains: [{
|
|
3956
|
+
beginKeywords: 'public private protected static internal protected abstract async extern override unsafe virtual new sealed partial',
|
|
3962
3957
|
relevance: 0,
|
|
3963
3958
|
},
|
|
3964
3959
|
{
|
|
@@ -4015,8 +4010,7 @@ var hljs = (function () {
|
|
|
4015
4010
|
t.ATTRIBUTE_SELECTOR_MODE,
|
|
4016
4011
|
{
|
|
4017
4012
|
className: 'selector-pseudo',
|
|
4018
|
-
variants: [
|
|
4019
|
-
{
|
|
4013
|
+
variants: [{
|
|
4020
4014
|
begin: ':(' + re.join('|') + ')',
|
|
4021
4015
|
},
|
|
4022
4016
|
{ begin: ':(:)?(' + se.join('|') + ')' },
|
|
@@ -4041,14 +4035,12 @@ var hljs = (function () {
|
|
|
4041
4035
|
end: /\)/,
|
|
4042
4036
|
relevance: 0,
|
|
4043
4037
|
keywords: { built_in: 'url data-uri' },
|
|
4044
|
-
contains: [
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
},
|
|
4051
|
-
],
|
|
4038
|
+
contains: [{
|
|
4039
|
+
className: 'string',
|
|
4040
|
+
begin: /[^)]/,
|
|
4041
|
+
endsWithParent: !0,
|
|
4042
|
+
excludeEnd: !0,
|
|
4043
|
+
}, ],
|
|
4052
4044
|
},
|
|
4053
4045
|
t.FUNCTION_DISPATCH,
|
|
4054
4046
|
],
|
|
@@ -4058,8 +4050,7 @@ var hljs = (function () {
|
|
|
4058
4050
|
end: '[{;]',
|
|
4059
4051
|
relevance: 0,
|
|
4060
4052
|
illegal: /:/,
|
|
4061
|
-
contains: [
|
|
4062
|
-
{
|
|
4053
|
+
contains: [{
|
|
4063
4054
|
className: 'keyword',
|
|
4064
4055
|
begin: /@-?\w[\w]*(-\w+)*/,
|
|
4065
4056
|
},
|
|
@@ -4073,8 +4064,7 @@ var hljs = (function () {
|
|
|
4073
4064
|
keyword: 'and or not only',
|
|
4074
4065
|
attribute: ie.join(' '),
|
|
4075
4066
|
},
|
|
4076
|
-
contains: [
|
|
4077
|
-
{
|
|
4067
|
+
contains: [{
|
|
4078
4068
|
begin: /[a-z-]+(?=:)/,
|
|
4079
4069
|
className: 'attribute',
|
|
4080
4070
|
},
|
|
@@ -4096,8 +4086,7 @@ var hljs = (function () {
|
|
|
4096
4086
|
return {
|
|
4097
4087
|
name: 'Diff',
|
|
4098
4088
|
aliases: ['patch'],
|
|
4099
|
-
contains: [
|
|
4100
|
-
{
|
|
4089
|
+
contains: [{
|
|
4101
4090
|
className: 'meta',
|
|
4102
4091
|
relevance: 10,
|
|
4103
4092
|
match: n.either(
|
|
@@ -4108,8 +4097,7 @@ var hljs = (function () {
|
|
|
4108
4097
|
},
|
|
4109
4098
|
{
|
|
4110
4099
|
className: 'comment',
|
|
4111
|
-
variants: [
|
|
4112
|
-
{
|
|
4100
|
+
variants: [{
|
|
4113
4101
|
begin: n.either(
|
|
4114
4102
|
/Index: /,
|
|
4115
4103
|
/^index/,
|
|
@@ -4253,16 +4241,14 @@ var hljs = (function () {
|
|
|
4253
4241
|
t = {
|
|
4254
4242
|
className: 'number',
|
|
4255
4243
|
relevance: 0,
|
|
4256
|
-
variants: [
|
|
4257
|
-
{
|
|
4244
|
+
variants: [{
|
|
4258
4245
|
begin: /([+-]+)?[\d]+_[\d_]+/,
|
|
4259
4246
|
},
|
|
4260
4247
|
{ begin: e.NUMBER_RE },
|
|
4261
4248
|
],
|
|
4262
4249
|
},
|
|
4263
4250
|
a = e.COMMENT();
|
|
4264
|
-
a.variants = [
|
|
4265
|
-
{
|
|
4251
|
+
a.variants = [{
|
|
4266
4252
|
begin: /;/,
|
|
4267
4253
|
end: /$/,
|
|
4268
4254
|
},
|
|
@@ -4326,12 +4312,12 @@ var hljs = (function () {
|
|
|
4326
4312
|
const n = e.regex,
|
|
4327
4313
|
t = '[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*',
|
|
4328
4314
|
a =
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4315
|
+
t +
|
|
4316
|
+
ue(
|
|
4317
|
+
'(?:<' + t + '~~~(?:\\s*,\\s*' + t + '~~~)*>)?',
|
|
4318
|
+
/~~~/g,
|
|
4319
|
+
2,
|
|
4320
|
+
),
|
|
4335
4321
|
i = {
|
|
4336
4322
|
keyword: [
|
|
4337
4323
|
'synchronized',
|
|
@@ -4391,13 +4377,11 @@ var hljs = (function () {
|
|
|
4391
4377
|
r = {
|
|
4392
4378
|
className: 'meta',
|
|
4393
4379
|
begin: '@' + t,
|
|
4394
|
-
contains: [
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
},
|
|
4400
|
-
],
|
|
4380
|
+
contains: [{
|
|
4381
|
+
begin: /\(/,
|
|
4382
|
+
end: /\)/,
|
|
4383
|
+
contains: ['self'],
|
|
4384
|
+
}, ],
|
|
4401
4385
|
},
|
|
4402
4386
|
s = {
|
|
4403
4387
|
className: 'params',
|
|
@@ -4475,8 +4459,7 @@ var hljs = (function () {
|
|
|
4475
4459
|
2: 'title.function',
|
|
4476
4460
|
},
|
|
4477
4461
|
keywords: i,
|
|
4478
|
-
contains: [
|
|
4479
|
-
{
|
|
4462
|
+
contains: [{
|
|
4480
4463
|
className: 'params',
|
|
4481
4464
|
begin: /\(/,
|
|
4482
4465
|
end: /\)/,
|
|
@@ -4502,8 +4485,7 @@ var hljs = (function () {
|
|
|
4502
4485
|
grmr_javascript: we,
|
|
4503
4486
|
grmr_json: (e) => ({
|
|
4504
4487
|
name: 'JSON',
|
|
4505
|
-
contains: [
|
|
4506
|
-
{
|
|
4488
|
+
contains: [{
|
|
4507
4489
|
className: 'attr',
|
|
4508
4490
|
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
4509
4491
|
relevance: 1.01,
|
|
@@ -4521,10 +4503,8 @@ var hljs = (function () {
|
|
|
4521
4503
|
}),
|
|
4522
4504
|
grmr_kotlin: (e) => {
|
|
4523
4505
|
const n = {
|
|
4524
|
-
keyword:
|
|
4525
|
-
|
|
4526
|
-
built_in:
|
|
4527
|
-
'Byte Short Char Int Long Boolean Float Double Void Unit Nothing',
|
|
4506
|
+
keyword: 'abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual',
|
|
4507
|
+
built_in: 'Byte Short Char Int Long Boolean Float Double Void Unit Nothing',
|
|
4528
4508
|
literal: 'true false null',
|
|
4529
4509
|
},
|
|
4530
4510
|
t = { className: 'symbol', begin: e.UNDERSCORE_IDENT_RE + '@' },
|
|
@@ -4559,21 +4539,18 @@ var hljs = (function () {
|
|
|
4559
4539
|
a.contains.push(r);
|
|
4560
4540
|
const s = {
|
|
4561
4541
|
className: 'meta',
|
|
4562
|
-
begin:
|
|
4563
|
-
'@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*' +
|
|
4542
|
+
begin: '@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*' +
|
|
4564
4543
|
e.UNDERSCORE_IDENT_RE +
|
|
4565
4544
|
')?',
|
|
4566
4545
|
},
|
|
4567
4546
|
o = {
|
|
4568
4547
|
className: 'meta',
|
|
4569
4548
|
begin: '@' + e.UNDERSCORE_IDENT_RE,
|
|
4570
|
-
contains: [
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
},
|
|
4576
|
-
],
|
|
4549
|
+
contains: [{
|
|
4550
|
+
begin: /\(/,
|
|
4551
|
+
end: /\)/,
|
|
4552
|
+
contains: [e.inherit(r, { className: 'string' })],
|
|
4553
|
+
}, ],
|
|
4577
4554
|
},
|
|
4578
4555
|
l = ge,
|
|
4579
4556
|
c = e.COMMENT('/\\*', '\\*/', {
|
|
@@ -4588,8 +4565,7 @@ var hljs = (function () {
|
|
|
4588
4565
|
g = d;
|
|
4589
4566
|
return (
|
|
4590
4567
|
(g.variants[1].contains = [d]),
|
|
4591
|
-
(d.variants[1].contains = [g]),
|
|
4592
|
-
{
|
|
4568
|
+
(d.variants[1].contains = [g]), {
|
|
4593
4569
|
name: 'Kotlin',
|
|
4594
4570
|
aliases: ['kt', 'kts'],
|
|
4595
4571
|
keywords: n,
|
|
@@ -4622,8 +4598,7 @@ var hljs = (function () {
|
|
|
4622
4598
|
excludeEnd: !0,
|
|
4623
4599
|
keywords: n,
|
|
4624
4600
|
relevance: 5,
|
|
4625
|
-
contains: [
|
|
4626
|
-
{
|
|
4601
|
+
contains: [{
|
|
4627
4602
|
begin: e.UNDERSCORE_IDENT_RE + '\\s*\\(',
|
|
4628
4603
|
returnBegin: !0,
|
|
4629
4604
|
relevance: 0,
|
|
@@ -4643,8 +4618,7 @@ var hljs = (function () {
|
|
|
4643
4618
|
endsParent: !0,
|
|
4644
4619
|
keywords: n,
|
|
4645
4620
|
relevance: 0,
|
|
4646
|
-
contains: [
|
|
4647
|
-
{
|
|
4621
|
+
contains: [{
|
|
4648
4622
|
begin: /:/,
|
|
4649
4623
|
end: /[=,\/]/,
|
|
4650
4624
|
endsWithParent: !0,
|
|
@@ -4672,10 +4646,8 @@ var hljs = (function () {
|
|
|
4672
4646
|
end: /[:\{(]|$/,
|
|
4673
4647
|
excludeEnd: !0,
|
|
4674
4648
|
illegal: 'extends implements',
|
|
4675
|
-
contains: [
|
|
4676
|
-
|
|
4677
|
-
beginKeywords:
|
|
4678
|
-
'public protected internal private constructor',
|
|
4649
|
+
contains: [{
|
|
4650
|
+
beginKeywords: 'public protected internal private constructor',
|
|
4679
4651
|
},
|
|
4680
4652
|
e.UNDERSCORE_TITLE_MODE,
|
|
4681
4653
|
{
|
|
@@ -4737,8 +4709,7 @@ var hljs = (function () {
|
|
|
4737
4709
|
e.C_BLOCK_COMMENT_MODE,
|
|
4738
4710
|
s("'"),
|
|
4739
4711
|
s('"'),
|
|
4740
|
-
n.CSS_NUMBER_MODE,
|
|
4741
|
-
{
|
|
4712
|
+
n.CSS_NUMBER_MODE, {
|
|
4742
4713
|
begin: '(url|data-uri)\\(',
|
|
4743
4714
|
starts: {
|
|
4744
4715
|
className: 'string',
|
|
@@ -4750,8 +4721,7 @@ var hljs = (function () {
|
|
|
4750
4721
|
c,
|
|
4751
4722
|
o('variable', '@@?[\\w-]+', 10),
|
|
4752
4723
|
o('variable', '@\\{[\\w-]+\\}'),
|
|
4753
|
-
o('built_in', '~?`[^`]*?`'),
|
|
4754
|
-
{
|
|
4724
|
+
o('built_in', '~?`[^`]*?`'), {
|
|
4755
4725
|
className: 'attribute',
|
|
4756
4726
|
begin: '[\\w-]+\\s*:',
|
|
4757
4727
|
end: ':',
|
|
@@ -4809,8 +4779,7 @@ var hljs = (function () {
|
|
|
4809
4779
|
starts: { end: '[;}]', returnEnd: !0, contains: d },
|
|
4810
4780
|
},
|
|
4811
4781
|
p = {
|
|
4812
|
-
variants: [
|
|
4813
|
-
{
|
|
4782
|
+
variants: [{
|
|
4814
4783
|
begin: '[\\.#:&\\[>]',
|
|
4815
4784
|
end: '[;{}]',
|
|
4816
4785
|
},
|
|
@@ -4863,8 +4832,7 @@ var hljs = (function () {
|
|
|
4863
4832
|
_,
|
|
4864
4833
|
u,
|
|
4865
4834
|
p,
|
|
4866
|
-
),
|
|
4867
|
-
{
|
|
4835
|
+
), {
|
|
4868
4836
|
name: 'Less',
|
|
4869
4837
|
case_insensitive: !0,
|
|
4870
4838
|
illegal: '[=>\'/<($"]',
|
|
@@ -4888,13 +4856,10 @@ var hljs = (function () {
|
|
|
4888
4856
|
keywords: {
|
|
4889
4857
|
$pattern: e.UNDERSCORE_IDENT_RE,
|
|
4890
4858
|
literal: 'true false nil',
|
|
4891
|
-
keyword:
|
|
4892
|
-
|
|
4893
|
-
built_in:
|
|
4894
|
-
'_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove',
|
|
4859
|
+
keyword: 'and break do else elseif end for goto if in local not or repeat return then until while',
|
|
4860
|
+
built_in: '_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove',
|
|
4895
4861
|
},
|
|
4896
|
-
contains: i.concat([
|
|
4897
|
-
{
|
|
4862
|
+
contains: i.concat([{
|
|
4898
4863
|
className: 'function',
|
|
4899
4864
|
beginKeywords: 'function',
|
|
4900
4865
|
end: '\\)',
|
|
@@ -4926,8 +4891,7 @@ var hljs = (function () {
|
|
|
4926
4891
|
grmr_makefile: (e) => {
|
|
4927
4892
|
const n = {
|
|
4928
4893
|
className: 'variable',
|
|
4929
|
-
variants: [
|
|
4930
|
-
{
|
|
4894
|
+
variants: [{
|
|
4931
4895
|
begin: '\\$\\(' + e.UNDERSCORE_IDENT_RE + '\\)',
|
|
4932
4896
|
contains: [e.BACKSLASH_ESCAPE],
|
|
4933
4897
|
},
|
|
@@ -4945,8 +4909,7 @@ var hljs = (function () {
|
|
|
4945
4909
|
begin: /\$\([\w-]+\s/,
|
|
4946
4910
|
end: /\)/,
|
|
4947
4911
|
keywords: {
|
|
4948
|
-
built_in:
|
|
4949
|
-
'subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value',
|
|
4912
|
+
built_in: 'subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value',
|
|
4950
4913
|
},
|
|
4951
4914
|
contains: [n],
|
|
4952
4915
|
},
|
|
@@ -4962,8 +4925,7 @@ var hljs = (function () {
|
|
|
4962
4925
|
aliases: ['mk', 'mak', 'make'],
|
|
4963
4926
|
keywords: {
|
|
4964
4927
|
$pattern: /[\w-]+/,
|
|
4965
|
-
keyword:
|
|
4966
|
-
'define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath',
|
|
4928
|
+
keyword: 'define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath',
|
|
4967
4929
|
},
|
|
4968
4930
|
contains: [
|
|
4969
4931
|
e.HASH_COMMENT_MODE,
|
|
@@ -4994,13 +4956,11 @@ var hljs = (function () {
|
|
|
4994
4956
|
},
|
|
4995
4957
|
i = {
|
|
4996
4958
|
begin: /\s/,
|
|
4997
|
-
contains: [
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
},
|
|
5003
|
-
],
|
|
4959
|
+
contains: [{
|
|
4960
|
+
className: 'keyword',
|
|
4961
|
+
begin: /#?[a-z_][a-z1-9_-]+/,
|
|
4962
|
+
illegal: /\n/,
|
|
4963
|
+
}, ],
|
|
5004
4964
|
},
|
|
5005
4965
|
r = e.inherit(i, { begin: /\(/, end: /\)/ }),
|
|
5006
4966
|
s = e.inherit(e.APOS_STRING_MODE, {
|
|
@@ -5011,8 +4971,7 @@ var hljs = (function () {
|
|
|
5011
4971
|
endsWithParent: !0,
|
|
5012
4972
|
illegal: /</,
|
|
5013
4973
|
relevance: 0,
|
|
5014
|
-
contains: [
|
|
5015
|
-
{
|
|
4974
|
+
contains: [{
|
|
5016
4975
|
className: 'attr',
|
|
5017
4976
|
begin: /[A-Za-z0-9._:-]+/,
|
|
5018
4977
|
relevance: 0,
|
|
@@ -5020,21 +4979,19 @@ var hljs = (function () {
|
|
|
5020
4979
|
{
|
|
5021
4980
|
begin: /=\s*/,
|
|
5022
4981
|
relevance: 0,
|
|
5023
|
-
contains: [
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
},
|
|
5037
|
-
],
|
|
4982
|
+
contains: [{
|
|
4983
|
+
className: 'string',
|
|
4984
|
+
endsParent: !0,
|
|
4985
|
+
variants: [
|
|
4986
|
+
{ begin: /"/, end: /"/, contains: [a] },
|
|
4987
|
+
{
|
|
4988
|
+
begin: /'/,
|
|
4989
|
+
end: /'/,
|
|
4990
|
+
contains: [a],
|
|
4991
|
+
},
|
|
4992
|
+
{ begin: /[^\s"'=<>`]+/ },
|
|
4993
|
+
],
|
|
4994
|
+
}, ],
|
|
5038
4995
|
},
|
|
5039
4996
|
],
|
|
5040
4997
|
};
|
|
@@ -5053,8 +5010,7 @@ var hljs = (function () {
|
|
|
5053
5010
|
'svg',
|
|
5054
5011
|
],
|
|
5055
5012
|
case_insensitive: !0,
|
|
5056
|
-
contains: [
|
|
5057
|
-
{
|
|
5013
|
+
contains: [{
|
|
5058
5014
|
className: 'meta',
|
|
5059
5015
|
begin: /<![a-z]/,
|
|
5060
5016
|
end: />/,
|
|
@@ -5067,14 +5023,12 @@ var hljs = (function () {
|
|
|
5067
5023
|
{
|
|
5068
5024
|
begin: /\[/,
|
|
5069
5025
|
end: /\]/,
|
|
5070
|
-
contains: [
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
},
|
|
5077
|
-
],
|
|
5026
|
+
contains: [{
|
|
5027
|
+
className: 'meta',
|
|
5028
|
+
begin: /<![a-z]/,
|
|
5029
|
+
end: />/,
|
|
5030
|
+
contains: [i, r, o, s],
|
|
5031
|
+
}, ],
|
|
5078
5032
|
},
|
|
5079
5033
|
],
|
|
5080
5034
|
},
|
|
@@ -5095,7 +5049,7 @@ var hljs = (function () {
|
|
|
5095
5049
|
className: 'tag',
|
|
5096
5050
|
begin: /<style(?=\s|>)/,
|
|
5097
5051
|
end: />/,
|
|
5098
|
-
keywords: {
|
|
5052
|
+
keywords: { label: 'style' },
|
|
5099
5053
|
contains: [l],
|
|
5100
5054
|
starts: {
|
|
5101
5055
|
end: /<\/style>/,
|
|
@@ -5107,7 +5061,7 @@ var hljs = (function () {
|
|
|
5107
5061
|
className: 'tag',
|
|
5108
5062
|
begin: /<script(?=\s|>)/,
|
|
5109
5063
|
end: />/,
|
|
5110
|
-
keywords: {
|
|
5064
|
+
keywords: { label: 'script' },
|
|
5111
5065
|
contains: [l],
|
|
5112
5066
|
starts: {
|
|
5113
5067
|
end: /<\/script>/,
|
|
@@ -5125,20 +5079,17 @@ var hljs = (function () {
|
|
|
5125
5079
|
),
|
|
5126
5080
|
),
|
|
5127
5081
|
end: /\/?>/,
|
|
5128
|
-
contains: [
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
},
|
|
5135
|
-
],
|
|
5082
|
+
contains: [{
|
|
5083
|
+
className: 'name',
|
|
5084
|
+
begin: t,
|
|
5085
|
+
relevance: 0,
|
|
5086
|
+
starts: l,
|
|
5087
|
+
}, ],
|
|
5136
5088
|
},
|
|
5137
5089
|
{
|
|
5138
5090
|
className: 'tag',
|
|
5139
5091
|
begin: n.concat(/<\//, n.lookahead(n.concat(t, />/))),
|
|
5140
|
-
contains: [
|
|
5141
|
-
{
|
|
5092
|
+
contains: [{
|
|
5142
5093
|
className: 'name',
|
|
5143
5094
|
begin: t,
|
|
5144
5095
|
relevance: 0,
|
|
@@ -5234,12 +5185,10 @@ var hljs = (function () {
|
|
|
5234
5185
|
[a, i, r, s].forEach((e) => {
|
|
5235
5186
|
e.contains = e.contains.concat(o);
|
|
5236
5187
|
}),
|
|
5237
|
-
(o = o.concat(a, i)),
|
|
5238
|
-
{
|
|
5188
|
+
(o = o.concat(a, i)), {
|
|
5239
5189
|
name: 'Markdown',
|
|
5240
5190
|
aliases: ['md', 'mkdown', 'mkd'],
|
|
5241
|
-
contains: [
|
|
5242
|
-
{
|
|
5191
|
+
contains: [{
|
|
5243
5192
|
className: 'section',
|
|
5244
5193
|
variants: [
|
|
5245
5194
|
{ begin: '^#{1,6}', end: '$', contains: o },
|
|
@@ -5297,8 +5246,7 @@ var hljs = (function () {
|
|
|
5297
5246
|
{
|
|
5298
5247
|
begin: /^\[[^\n]+\]:/,
|
|
5299
5248
|
returnBegin: !0,
|
|
5300
|
-
contains: [
|
|
5301
|
-
{
|
|
5249
|
+
contains: [{
|
|
5302
5250
|
className: 'symbol',
|
|
5303
5251
|
begin: /\[/,
|
|
5304
5252
|
end: /\]/,
|
|
@@ -5486,8 +5434,7 @@ var hljs = (function () {
|
|
|
5486
5434
|
],
|
|
5487
5435
|
},
|
|
5488
5436
|
illegal: '</',
|
|
5489
|
-
contains: [
|
|
5490
|
-
{
|
|
5437
|
+
contains: [{
|
|
5491
5438
|
className: 'built_in',
|
|
5492
5439
|
begin: '\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+',
|
|
5493
5440
|
},
|
|
@@ -5498,22 +5445,19 @@ var hljs = (function () {
|
|
|
5498
5445
|
e.APOS_STRING_MODE,
|
|
5499
5446
|
{
|
|
5500
5447
|
className: 'string',
|
|
5501
|
-
variants: [
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
},
|
|
5508
|
-
],
|
|
5448
|
+
variants: [{
|
|
5449
|
+
begin: '@"',
|
|
5450
|
+
end: '"',
|
|
5451
|
+
illegal: '\\n',
|
|
5452
|
+
contains: [e.BACKSLASH_ESCAPE],
|
|
5453
|
+
}, ],
|
|
5509
5454
|
},
|
|
5510
5455
|
{
|
|
5511
5456
|
className: 'meta',
|
|
5512
5457
|
begin: /#\s*[a-z]+\b/,
|
|
5513
5458
|
end: /$/,
|
|
5514
5459
|
keywords: {
|
|
5515
|
-
keyword:
|
|
5516
|
-
'if else elif endif define undef warning error line pragma ifdef ifndef include',
|
|
5460
|
+
keyword: 'if else elif endif define undef warning error line pragma ifdef ifndef include',
|
|
5517
5461
|
},
|
|
5518
5462
|
contains: [
|
|
5519
5463
|
{ begin: /\\\n/, relevance: 0 },
|
|
@@ -5547,8 +5491,7 @@ var hljs = (function () {
|
|
|
5547
5491
|
t = /[dualxmsipngr]{0,12}/,
|
|
5548
5492
|
a = {
|
|
5549
5493
|
$pattern: /[\w.]+/,
|
|
5550
|
-
keyword:
|
|
5551
|
-
'abs accept alarm and atan2 bind binmode bless break caller chdir chmod chomp chop chown chr chroot close closedir connect continue cos crypt dbmclose dbmopen defined delete die do dump each else elsif endgrent endhostent endnetent endprotoent endpwent endservent eof eval exec exists exit exp fcntl fileno flock for foreach fork format formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt given glob gmtime goto grep gt hex if index int ioctl join keys kill last lc lcfirst length link listen local localtime log lstat lt ma map mkdir msgctl msgget msgrcv msgsnd my ne next no not oct open opendir or ord our pack package pipe pop pos print printf prototype push q|0 qq quotemeta qw qx rand read readdir readline readlink readpipe recv redo ref rename require reset return reverse rewinddir rindex rmdir say scalar seek seekdir select semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat state study sub substr symlink syscall sysopen sysread sysseek system syswrite tell telldir tie tied time times tr truncate uc ucfirst umask undef unless unlink unpack unshift untie until use utime values vec wait waitpid wantarray warn when while write x|0 xor y|0',
|
|
5494
|
+
keyword: 'abs accept alarm and atan2 bind binmode bless break caller chdir chmod chomp chop chown chr chroot close closedir connect continue cos crypt dbmclose dbmopen defined delete die do dump each else elsif endgrent endhostent endnetent endprotoent endpwent endservent eof eval exec exists exit exp fcntl fileno flock for foreach fork format formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt given glob gmtime goto grep gt hex if index int ioctl join keys kill last lc lcfirst length link listen local localtime log lstat lt ma map mkdir msgctl msgget msgrcv msgsnd my ne next no not oct open opendir or ord our pack package pipe pop pos print printf prototype push q|0 qq quotemeta qw qx rand read readdir readline readlink readpipe recv redo ref rename require reset return reverse rewinddir rindex rmdir say scalar seek seekdir select semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat state study sub substr symlink syscall sysopen sysread sysseek system syswrite tell telldir tie tied time times tr truncate uc ucfirst umask undef unless unlink unpack unshift untie until use utime values vec wait waitpid wantarray warn when while write x|0 xor y|0',
|
|
5552
5495
|
},
|
|
5553
5496
|
i = {
|
|
5554
5497
|
className: 'subst',
|
|
@@ -5584,13 +5527,13 @@ var hljs = (function () {
|
|
|
5584
5527
|
);
|
|
5585
5528
|
},
|
|
5586
5529
|
d = (e, a, i) =>
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5530
|
+
n.concat(
|
|
5531
|
+
n.concat('(?:', e, ')'),
|
|
5532
|
+
a,
|
|
5533
|
+
/(?:\\.|[^\\\/])*?/,
|
|
5534
|
+
i,
|
|
5535
|
+
t,
|
|
5536
|
+
),
|
|
5594
5537
|
g = [
|
|
5595
5538
|
s,
|
|
5596
5539
|
e.HASH_COMMENT_MODE,
|
|
@@ -5601,8 +5544,7 @@ var hljs = (function () {
|
|
|
5601
5544
|
{
|
|
5602
5545
|
className: 'string',
|
|
5603
5546
|
contains: o,
|
|
5604
|
-
variants: [
|
|
5605
|
-
{
|
|
5547
|
+
variants: [{
|
|
5606
5548
|
begin: 'q[qwxr]?\\s*\\(',
|
|
5607
5549
|
end: '\\)',
|
|
5608
5550
|
relevance: 5,
|
|
@@ -5648,8 +5590,7 @@ var hljs = (function () {
|
|
|
5648
5590
|
relevance: 0,
|
|
5649
5591
|
},
|
|
5650
5592
|
{
|
|
5651
|
-
begin:
|
|
5652
|
-
'(\\/\\/|' +
|
|
5593
|
+
begin: '(\\/\\/|' +
|
|
5653
5594
|
e.RE_STARTERS_RE +
|
|
5654
5595
|
'|\\b(split|return|print|reverse|grep)\\b)\\s*',
|
|
5655
5596
|
keywords: 'split return print reverse grep',
|
|
@@ -5658,8 +5599,7 @@ var hljs = (function () {
|
|
|
5658
5599
|
e.HASH_COMMENT_MODE,
|
|
5659
5600
|
{
|
|
5660
5601
|
className: 'regexp',
|
|
5661
|
-
variants: [
|
|
5662
|
-
{
|
|
5602
|
+
variants: [{
|
|
5663
5603
|
begin: c(
|
|
5664
5604
|
's|tr|y',
|
|
5665
5605
|
n.either(...l, { capture: !0 }),
|
|
@@ -5719,8 +5659,7 @@ var hljs = (function () {
|
|
|
5719
5659
|
];
|
|
5720
5660
|
return (
|
|
5721
5661
|
(i.contains = g),
|
|
5722
|
-
(r.contains = g),
|
|
5723
|
-
{
|
|
5662
|
+
(r.contains = g), {
|
|
5724
5663
|
name: 'Perl',
|
|
5725
5664
|
aliases: ['pl', 'pm'],
|
|
5726
5665
|
keywords: a,
|
|
@@ -5973,9 +5912,9 @@ var hljs = (function () {
|
|
|
5973
5912
|
return (
|
|
5974
5913
|
e.forEach((e) => {
|
|
5975
5914
|
n.push(e),
|
|
5976
|
-
e.toLowerCase() === e
|
|
5977
|
-
|
|
5978
|
-
|
|
5915
|
+
e.toLowerCase() === e ?
|
|
5916
|
+
n.push(e.toUpperCase()) :
|
|
5917
|
+
n.push(e.toLowerCase());
|
|
5979
5918
|
}),
|
|
5980
5919
|
n
|
|
5981
5920
|
);
|
|
@@ -5984,25 +5923,22 @@ var hljs = (function () {
|
|
|
5984
5923
|
},
|
|
5985
5924
|
p = (e) => e.map((e) => e.replace(/\|\d+$/, '')),
|
|
5986
5925
|
_ = {
|
|
5987
|
-
variants: [
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
4: 'title.class',
|
|
5998
|
-
},
|
|
5926
|
+
variants: [{
|
|
5927
|
+
match: [
|
|
5928
|
+
/new/,
|
|
5929
|
+
n.concat(l, '+'),
|
|
5930
|
+
n.concat('(?!', p(b).join('\\b|'), '\\b)'),
|
|
5931
|
+
i,
|
|
5932
|
+
],
|
|
5933
|
+
scope: {
|
|
5934
|
+
1: 'keyword',
|
|
5935
|
+
4: 'title.class',
|
|
5999
5936
|
},
|
|
6000
|
-
],
|
|
5937
|
+
}, ],
|
|
6001
5938
|
},
|
|
6002
5939
|
h = n.concat(a, '\\b(?!\\()'),
|
|
6003
5940
|
f = {
|
|
6004
|
-
variants: [
|
|
6005
|
-
{
|
|
5941
|
+
variants: [{
|
|
6006
5942
|
match: [
|
|
6007
5943
|
n.concat(/::/, n.lookahead(/(?!class\b)/)),
|
|
6008
5944
|
h,
|
|
@@ -6068,15 +6004,13 @@ var hljs = (function () {
|
|
|
6068
6004
|
return {
|
|
6069
6005
|
case_insensitive: !1,
|
|
6070
6006
|
keywords: m,
|
|
6071
|
-
contains: [
|
|
6072
|
-
{
|
|
6007
|
+
contains: [{
|
|
6073
6008
|
begin: n.concat(/#\[\s*/, i),
|
|
6074
6009
|
beginScope: 'meta',
|
|
6075
6010
|
end: /]/,
|
|
6076
6011
|
endScope: 'meta',
|
|
6077
6012
|
keywords: { literal: g, keyword: ['new', 'array'] },
|
|
6078
|
-
contains: [
|
|
6079
|
-
{
|
|
6013
|
+
contains: [{
|
|
6080
6014
|
begin: /\[/,
|
|
6081
6015
|
end: /]/,
|
|
6082
6016
|
keywords: {
|
|
@@ -6092,12 +6026,10 @@ var hljs = (function () {
|
|
|
6092
6026
|
e.HASH_COMMENT_MODE,
|
|
6093
6027
|
e.COMMENT('//', '$'),
|
|
6094
6028
|
e.COMMENT('/\\*', '\\*/', {
|
|
6095
|
-
contains: [
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
},
|
|
6100
|
-
],
|
|
6029
|
+
contains: [{
|
|
6030
|
+
scope: 'doctag',
|
|
6031
|
+
match: '@[A-Za-z]+',
|
|
6032
|
+
}, ],
|
|
6101
6033
|
}),
|
|
6102
6034
|
{
|
|
6103
6035
|
match: /__halt_compiler\(\);/,
|
|
@@ -6112,8 +6044,7 @@ var hljs = (function () {
|
|
|
6112
6044
|
},
|
|
6113
6045
|
{
|
|
6114
6046
|
scope: 'meta',
|
|
6115
|
-
variants: [
|
|
6116
|
-
{
|
|
6047
|
+
variants: [{
|
|
6117
6048
|
begin: /<\?php/,
|
|
6118
6049
|
relevance: 10,
|
|
6119
6050
|
},
|
|
@@ -6164,8 +6095,7 @@ var hljs = (function () {
|
|
|
6164
6095
|
},
|
|
6165
6096
|
{
|
|
6166
6097
|
scope: 'class',
|
|
6167
|
-
variants: [
|
|
6168
|
-
{
|
|
6098
|
+
variants: [{
|
|
6169
6099
|
beginKeywords: 'enum',
|
|
6170
6100
|
illegal: /[($"]/,
|
|
6171
6101
|
},
|
|
@@ -6177,8 +6107,7 @@ var hljs = (function () {
|
|
|
6177
6107
|
relevance: 0,
|
|
6178
6108
|
end: /\{/,
|
|
6179
6109
|
excludeEnd: !0,
|
|
6180
|
-
contains: [
|
|
6181
|
-
{
|
|
6110
|
+
contains: [{
|
|
6182
6111
|
beginKeywords: 'extends implements',
|
|
6183
6112
|
},
|
|
6184
6113
|
e.UNDERSCORE_TITLE_MODE,
|
|
@@ -6199,8 +6128,7 @@ var hljs = (function () {
|
|
|
6199
6128
|
beginKeywords: 'use',
|
|
6200
6129
|
relevance: 0,
|
|
6201
6130
|
end: ';',
|
|
6202
|
-
contains: [
|
|
6203
|
-
{
|
|
6131
|
+
contains: [{
|
|
6204
6132
|
match: /\b(as|const|function)\b/,
|
|
6205
6133
|
scope: 'keyword',
|
|
6206
6134
|
},
|
|
@@ -6215,30 +6143,28 @@ var hljs = (function () {
|
|
|
6215
6143
|
grmr_php_template: (e) => ({
|
|
6216
6144
|
name: 'PHP template',
|
|
6217
6145
|
subLanguage: 'xml',
|
|
6218
|
-
contains: [
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
},
|
|
6241
|
-
],
|
|
6146
|
+
contains: [{
|
|
6147
|
+
begin: /<\?(php|=)?/,
|
|
6148
|
+
end: /\?>/,
|
|
6149
|
+
subLanguage: 'php',
|
|
6150
|
+
contains: [
|
|
6151
|
+
{ begin: '/\\*', end: '\\*/', skip: !0 },
|
|
6152
|
+
{ begin: 'b"', end: '"', skip: !0 },
|
|
6153
|
+
{ begin: "b'", end: "'", skip: !0 },
|
|
6154
|
+
e.inherit(e.APOS_STRING_MODE, {
|
|
6155
|
+
illegal: null,
|
|
6156
|
+
className: null,
|
|
6157
|
+
contains: null,
|
|
6158
|
+
skip: !0,
|
|
6159
|
+
}),
|
|
6160
|
+
e.inherit(e.QUOTE_STRING_MODE, {
|
|
6161
|
+
illegal: null,
|
|
6162
|
+
className: null,
|
|
6163
|
+
contains: null,
|
|
6164
|
+
skip: !0,
|
|
6165
|
+
}),
|
|
6166
|
+
],
|
|
6167
|
+
}, ],
|
|
6242
6168
|
}),
|
|
6243
6169
|
grmr_plaintext: (e) => ({
|
|
6244
6170
|
name: 'Plain text',
|
|
@@ -6392,8 +6318,7 @@ var hljs = (function () {
|
|
|
6392
6318
|
l = {
|
|
6393
6319
|
className: 'string',
|
|
6394
6320
|
contains: [e.BACKSLASH_ESCAPE],
|
|
6395
|
-
variants: [
|
|
6396
|
-
{
|
|
6321
|
+
variants: [{
|
|
6397
6322
|
begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,
|
|
6398
6323
|
end: /'''/,
|
|
6399
6324
|
contains: [e.BACKSLASH_ESCAPE, r],
|
|
@@ -6442,8 +6367,7 @@ var hljs = (function () {
|
|
|
6442
6367
|
u = {
|
|
6443
6368
|
className: 'number',
|
|
6444
6369
|
relevance: 0,
|
|
6445
|
-
variants: [
|
|
6446
|
-
{
|
|
6370
|
+
variants: [{
|
|
6447
6371
|
begin: `(\\b(${c})|(${d}))[eE][+-]?(${c})[jJ]?(?=${g})`,
|
|
6448
6372
|
},
|
|
6449
6373
|
{ begin: `(${d})[jJ]?` },
|
|
@@ -6483,8 +6407,7 @@ var hljs = (function () {
|
|
|
6483
6407
|
],
|
|
6484
6408
|
};
|
|
6485
6409
|
return (
|
|
6486
|
-
(s.contains = [l, u, r]),
|
|
6487
|
-
{
|
|
6410
|
+
(s.contains = [l, u, r]), {
|
|
6488
6411
|
name: 'Python',
|
|
6489
6412
|
aliases: ['py', 'gyp', 'ipython'],
|
|
6490
6413
|
unicodeRegex: !0,
|
|
@@ -6507,8 +6430,7 @@ var hljs = (function () {
|
|
|
6507
6430
|
contains: [m],
|
|
6508
6431
|
},
|
|
6509
6432
|
{
|
|
6510
|
-
variants: [
|
|
6511
|
-
{
|
|
6433
|
+
variants: [{
|
|
6512
6434
|
match: [
|
|
6513
6435
|
/\bclass/,
|
|
6514
6436
|
/\s+/,
|
|
@@ -6539,21 +6461,18 @@ var hljs = (function () {
|
|
|
6539
6461
|
},
|
|
6540
6462
|
grmr_python_repl: (e) => ({
|
|
6541
6463
|
aliases: ['pycon'],
|
|
6542
|
-
contains: [
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
starts: { end: '$', subLanguage: 'python' },
|
|
6548
|
-
},
|
|
6549
|
-
variants: [
|
|
6550
|
-
{
|
|
6551
|
-
begin: /^>>>(?=[ ]|$)/,
|
|
6552
|
-
},
|
|
6553
|
-
{ begin: /^\.\.\.(?=[ ]|$)/ },
|
|
6554
|
-
],
|
|
6464
|
+
contains: [{
|
|
6465
|
+
className: 'meta.prompt',
|
|
6466
|
+
starts: {
|
|
6467
|
+
end: / |$/,
|
|
6468
|
+
starts: { end: '$', subLanguage: 'python' },
|
|
6555
6469
|
},
|
|
6556
|
-
|
|
6470
|
+
variants: [{
|
|
6471
|
+
begin: /^>>>(?=[ ]|$)/,
|
|
6472
|
+
},
|
|
6473
|
+
{ begin: /^\.\.\.(?=[ ]|$)/ },
|
|
6474
|
+
],
|
|
6475
|
+
}, ],
|
|
6557
6476
|
}),
|
|
6558
6477
|
grmr_r: (e) => {
|
|
6559
6478
|
const n = e.regex,
|
|
@@ -6564,22 +6483,19 @@ var hljs = (function () {
|
|
|
6564
6483
|
/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/,
|
|
6565
6484
|
),
|
|
6566
6485
|
i =
|
|
6567
|
-
|
|
6486
|
+
/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,
|
|
6568
6487
|
r = n.either(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
|
|
6569
6488
|
return {
|
|
6570
6489
|
name: 'R',
|
|
6571
6490
|
keywords: {
|
|
6572
6491
|
$pattern: t,
|
|
6573
6492
|
keyword: 'function if in break next repeat else for while',
|
|
6574
|
-
literal:
|
|
6575
|
-
|
|
6576
|
-
built_in:
|
|
6577
|
-
'LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm',
|
|
6493
|
+
literal: 'NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10',
|
|
6494
|
+
built_in: 'LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm',
|
|
6578
6495
|
},
|
|
6579
6496
|
contains: [
|
|
6580
6497
|
e.COMMENT(/#'/, /$/, {
|
|
6581
|
-
contains: [
|
|
6582
|
-
{
|
|
6498
|
+
contains: [{
|
|
6583
6499
|
scope: 'doctag',
|
|
6584
6500
|
match: /@examples/,
|
|
6585
6501
|
starts: {
|
|
@@ -6596,16 +6512,14 @@ var hljs = (function () {
|
|
|
6596
6512
|
scope: 'doctag',
|
|
6597
6513
|
begin: '@param',
|
|
6598
6514
|
end: /$/,
|
|
6599
|
-
contains: [
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
},
|
|
6608
|
-
],
|
|
6515
|
+
contains: [{
|
|
6516
|
+
scope: 'variable',
|
|
6517
|
+
variants: [
|
|
6518
|
+
{ match: t },
|
|
6519
|
+
{ match: /`(?:\\.|[^`\\])+`/ },
|
|
6520
|
+
],
|
|
6521
|
+
endsParent: !0,
|
|
6522
|
+
}, ],
|
|
6609
6523
|
},
|
|
6610
6524
|
{ scope: 'doctag', match: /@[a-zA-Z]+/ },
|
|
6611
6525
|
{ scope: 'keyword', match: /\\[a-zA-Z]+/ },
|
|
@@ -6646,8 +6560,7 @@ var hljs = (function () {
|
|
|
6646
6560
|
},
|
|
6647
6561
|
{
|
|
6648
6562
|
relevance: 0,
|
|
6649
|
-
variants: [
|
|
6650
|
-
{
|
|
6563
|
+
variants: [{
|
|
6651
6564
|
scope: {
|
|
6652
6565
|
1: 'operator',
|
|
6653
6566
|
2: 'number',
|
|
@@ -6692,7 +6605,7 @@ var hljs = (function () {
|
|
|
6692
6605
|
grmr_ruby: (e) => {
|
|
6693
6606
|
const n = e.regex,
|
|
6694
6607
|
t =
|
|
6695
|
-
|
|
6608
|
+
'([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)',
|
|
6696
6609
|
a = n.either(
|
|
6697
6610
|
/\b([A-Z]+[a-z0-9]+)+/,
|
|
6698
6611
|
/\b([A-Z]+[a-z0-9]+)+[A-Z]+/,
|
|
@@ -6813,8 +6726,7 @@ var hljs = (function () {
|
|
|
6813
6726
|
u = {
|
|
6814
6727
|
className: 'number',
|
|
6815
6728
|
relevance: 0,
|
|
6816
|
-
variants: [
|
|
6817
|
-
{
|
|
6729
|
+
variants: [{
|
|
6818
6730
|
begin: `\\b([1-9](_?[0-9])*|0)(\\.(${g}))?([eE][+-]?(${g})|r)?i?\\b`,
|
|
6819
6731
|
},
|
|
6820
6732
|
{
|
|
@@ -6901,23 +6813,21 @@ var hljs = (function () {
|
|
|
6901
6813
|
{
|
|
6902
6814
|
begin: '(' + e.RE_STARTERS_RE + '|unless)\\s*',
|
|
6903
6815
|
keywords: 'unless',
|
|
6904
|
-
contains: [
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
},
|
|
6920
|
-
].concat(o, l),
|
|
6816
|
+
contains: [{
|
|
6817
|
+
className: 'regexp',
|
|
6818
|
+
contains: [e.BACKSLASH_ESCAPE, c],
|
|
6819
|
+
illegal: /\n/,
|
|
6820
|
+
variants: [
|
|
6821
|
+
{ begin: '/', end: '/[a-z]*' },
|
|
6822
|
+
{ begin: /%r\{/, end: /\}[a-z]*/ },
|
|
6823
|
+
{
|
|
6824
|
+
begin: '%r\\(',
|
|
6825
|
+
end: '\\)[a-z]*',
|
|
6826
|
+
},
|
|
6827
|
+
{ begin: '%r!', end: '![a-z]*' },
|
|
6828
|
+
{ begin: '%r\\[', end: '\\][a-z]*' },
|
|
6829
|
+
],
|
|
6830
|
+
}, ].concat(o, l),
|
|
6921
6831
|
relevance: 0,
|
|
6922
6832
|
},
|
|
6923
6833
|
].concat(o, l);
|
|
@@ -6931,8 +6841,7 @@ var hljs = (function () {
|
|
|
6931
6841
|
},
|
|
6932
6842
|
];
|
|
6933
6843
|
return (
|
|
6934
|
-
l.unshift(o),
|
|
6935
|
-
{
|
|
6844
|
+
l.unshift(o), {
|
|
6936
6845
|
name: 'Ruby',
|
|
6937
6846
|
aliases: ['rb', 'gemspec', 'podspec', 'thor', 'irb'],
|
|
6938
6847
|
keywords: r,
|
|
@@ -7126,8 +7035,7 @@ var hljs = (function () {
|
|
|
7126
7035
|
{ className: 'symbol', begin: /'[a-zA-Z_][a-zA-Z0-9_]*/ },
|
|
7127
7036
|
{
|
|
7128
7037
|
className: 'number',
|
|
7129
|
-
variants: [
|
|
7130
|
-
{
|
|
7038
|
+
variants: [{
|
|
7131
7039
|
begin: '\\b0b([01_]+)' + a,
|
|
7132
7040
|
},
|
|
7133
7041
|
{ begin: '\\b0o([0-7_]+)' + a },
|
|
@@ -7135,8 +7043,7 @@ var hljs = (function () {
|
|
|
7135
7043
|
begin: '\\b0x([A-Fa-f0-9_]+)' + a,
|
|
7136
7044
|
},
|
|
7137
7045
|
{
|
|
7138
|
-
begin:
|
|
7139
|
-
'\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)' +
|
|
7046
|
+
begin: '\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)' +
|
|
7140
7047
|
a,
|
|
7141
7048
|
},
|
|
7142
7049
|
],
|
|
@@ -7150,13 +7057,11 @@ var hljs = (function () {
|
|
|
7150
7057
|
className: 'meta',
|
|
7151
7058
|
begin: '#!?\\[',
|
|
7152
7059
|
end: '\\]',
|
|
7153
|
-
contains: [
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
},
|
|
7159
|
-
],
|
|
7060
|
+
contains: [{
|
|
7061
|
+
className: 'string',
|
|
7062
|
+
begin: /"/,
|
|
7063
|
+
end: /"/,
|
|
7064
|
+
}, ],
|
|
7160
7065
|
},
|
|
7161
7066
|
{
|
|
7162
7067
|
begin: [
|
|
@@ -7304,13 +7209,11 @@ var hljs = (function () {
|
|
|
7304
7209
|
grmr_shell: (e) => ({
|
|
7305
7210
|
name: 'Shell Session',
|
|
7306
7211
|
aliases: ['console', 'shellsession'],
|
|
7307
|
-
contains: [
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
},
|
|
7313
|
-
],
|
|
7212
|
+
contains: [{
|
|
7213
|
+
className: 'meta.prompt',
|
|
7214
|
+
begin: /^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,
|
|
7215
|
+
starts: { end: /[^\\](?=\s*$)/, subLanguage: 'bash' },
|
|
7216
|
+
}, ],
|
|
7314
7217
|
}),
|
|
7315
7218
|
grmr_sql: (e) => {
|
|
7316
7219
|
const n = e.regex,
|
|
@@ -7843,11 +7746,11 @@ var hljs = (function () {
|
|
|
7843
7746
|
return (
|
|
7844
7747
|
(n = n || []),
|
|
7845
7748
|
e.map((e) =>
|
|
7846
|
-
e.match(/\|\d+$/) || n.includes(e)
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7749
|
+
e.match(/\|\d+$/) || n.includes(e) ?
|
|
7750
|
+
e :
|
|
7751
|
+
a(e) ?
|
|
7752
|
+
e + '|0' :
|
|
7753
|
+
e,
|
|
7851
7754
|
)
|
|
7852
7755
|
);
|
|
7853
7756
|
})(l, { when: (e) => e.length < 3 }),
|
|
@@ -7871,8 +7774,7 @@ var hljs = (function () {
|
|
|
7871
7774
|
'localtimestamp',
|
|
7872
7775
|
],
|
|
7873
7776
|
},
|
|
7874
|
-
contains: [
|
|
7875
|
-
{
|
|
7777
|
+
contains: [{
|
|
7876
7778
|
begin: n.either(...s),
|
|
7877
7779
|
relevance: 0,
|
|
7878
7780
|
keywords: {
|
|
@@ -7895,22 +7797,18 @@ var hljs = (function () {
|
|
|
7895
7797
|
{ className: 'variable', begin: /@[a-z0-9]+/ },
|
|
7896
7798
|
{
|
|
7897
7799
|
className: 'string',
|
|
7898
|
-
variants: [
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
},
|
|
7904
|
-
],
|
|
7800
|
+
variants: [{
|
|
7801
|
+
begin: /'/,
|
|
7802
|
+
end: /'/,
|
|
7803
|
+
contains: [{ begin: /''/ }],
|
|
7804
|
+
}, ],
|
|
7905
7805
|
},
|
|
7906
7806
|
{
|
|
7907
7807
|
begin: /"/,
|
|
7908
7808
|
end: /"/,
|
|
7909
|
-
contains: [
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
},
|
|
7913
|
-
],
|
|
7809
|
+
contains: [{
|
|
7810
|
+
begin: /""/,
|
|
7811
|
+
}, ],
|
|
7914
7812
|
},
|
|
7915
7813
|
e.C_NUMBER_MODE,
|
|
7916
7814
|
e.C_BLOCK_COMMENT_MODE,
|
|
@@ -7936,18 +7834,16 @@ var hljs = (function () {
|
|
|
7936
7834
|
r = { match: m(/\./, p(...xe)), relevance: 0 },
|
|
7937
7835
|
s = xe.filter((e) => 'string' == typeof e).concat(['_|0']),
|
|
7938
7836
|
o = {
|
|
7939
|
-
variants: [
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
},
|
|
7950
|
-
],
|
|
7837
|
+
variants: [{
|
|
7838
|
+
className: 'keyword',
|
|
7839
|
+
match: p(
|
|
7840
|
+
...xe
|
|
7841
|
+
.filter((e) => 'string' != typeof e)
|
|
7842
|
+
.concat(Oe)
|
|
7843
|
+
.map(Ne),
|
|
7844
|
+
...ke,
|
|
7845
|
+
),
|
|
7846
|
+
}, ],
|
|
7951
7847
|
},
|
|
7952
7848
|
l = {
|
|
7953
7849
|
$pattern: p(/\b\w+/, /#\w+/),
|
|
@@ -7955,8 +7851,7 @@ var hljs = (function () {
|
|
|
7955
7851
|
literal: Me,
|
|
7956
7852
|
},
|
|
7957
7853
|
c = [i, r, o],
|
|
7958
|
-
d = [
|
|
7959
|
-
{
|
|
7854
|
+
d = [{
|
|
7960
7855
|
match: m(/\./, p(...Ce)),
|
|
7961
7856
|
relevance: 0,
|
|
7962
7857
|
},
|
|
@@ -7978,8 +7873,7 @@ var hljs = (function () {
|
|
|
7978
7873
|
h = {
|
|
7979
7874
|
className: 'number',
|
|
7980
7875
|
relevance: 0,
|
|
7981
|
-
variants: [
|
|
7982
|
-
{
|
|
7876
|
+
variants: [{
|
|
7983
7877
|
match: '\\b(([0-9]_*)+)(\\.(([0-9]_*)+))?([eE][+-]?(([0-9]_*)+))?\\b',
|
|
7984
7878
|
},
|
|
7985
7879
|
{
|
|
@@ -8044,19 +7938,16 @@ var hljs = (function () {
|
|
|
8044
7938
|
match: `\\$${Le}+`,
|
|
8045
7939
|
},
|
|
8046
7940
|
],
|
|
8047
|
-
x = [
|
|
8048
|
-
{
|
|
7941
|
+
x = [{
|
|
8049
7942
|
match: /(@|#(un)?)available/,
|
|
8050
7943
|
className: 'keyword',
|
|
8051
7944
|
starts: {
|
|
8052
|
-
contains: [
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
},
|
|
8059
|
-
],
|
|
7945
|
+
contains: [{
|
|
7946
|
+
begin: /\(/,
|
|
7947
|
+
end: /\)/,
|
|
7948
|
+
keywords: Fe,
|
|
7949
|
+
contains: [...b, h, v],
|
|
7950
|
+
}, ],
|
|
8060
7951
|
},
|
|
8061
7952
|
},
|
|
8062
7953
|
{ className: 'keyword', match: m(/@/, p(...ze)) },
|
|
@@ -8068,8 +7959,7 @@ var hljs = (function () {
|
|
|
8068
7959
|
M = {
|
|
8069
7960
|
match: g(/\b[A-Z]/),
|
|
8070
7961
|
relevance: 0,
|
|
8071
|
-
contains: [
|
|
8072
|
-
{
|
|
7962
|
+
contains: [{
|
|
8073
7963
|
className: 'type',
|
|
8074
7964
|
match: m(
|
|
8075
7965
|
/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,
|
|
@@ -8121,8 +8011,7 @@ var hljs = (function () {
|
|
|
8121
8011
|
begin: /\(/,
|
|
8122
8012
|
end: /\)/,
|
|
8123
8013
|
keywords: l,
|
|
8124
|
-
contains: [
|
|
8125
|
-
{
|
|
8014
|
+
contains: [{
|
|
8126
8015
|
begin: p(
|
|
8127
8016
|
g(m(Be, /\s*:/)),
|
|
8128
8017
|
g(m(Be, /\s+/, Be, /\s*:/)),
|
|
@@ -8192,8 +8081,7 @@ var hljs = (function () {
|
|
|
8192
8081
|
R,
|
|
8193
8082
|
D,
|
|
8194
8083
|
{
|
|
8195
|
-
beginKeywords:
|
|
8196
|
-
'struct protocol class extension enum actor',
|
|
8084
|
+
beginKeywords: 'struct protocol class extension enum actor',
|
|
8197
8085
|
end: '\\{',
|
|
8198
8086
|
excludeEnd: !0,
|
|
8199
8087
|
keywords: l,
|
|
@@ -8335,16 +8223,13 @@ var hljs = (function () {
|
|
|
8335
8223
|
case_insensitive: !0,
|
|
8336
8224
|
classNameAliases: { label: 'symbol' },
|
|
8337
8225
|
keywords: {
|
|
8338
|
-
keyword:
|
|
8339
|
-
|
|
8340
|
-
built_in:
|
|
8341
|
-
'addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort',
|
|
8226
|
+
keyword: 'addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield',
|
|
8227
|
+
built_in: 'addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort',
|
|
8342
8228
|
type: 'boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort',
|
|
8343
8229
|
literal: 'true false nothing',
|
|
8344
8230
|
},
|
|
8345
8231
|
illegal: '//|\\{|\\}|endif|gosub|variant|wend|^\\$ ',
|
|
8346
|
-
contains: [
|
|
8347
|
-
{
|
|
8232
|
+
contains: [{
|
|
8348
8233
|
className: 'string',
|
|
8349
8234
|
begin: /"(""|[^/n])"C\b/,
|
|
8350
8235
|
},
|
|
@@ -8359,8 +8244,7 @@ var hljs = (function () {
|
|
|
8359
8244
|
{
|
|
8360
8245
|
className: 'number',
|
|
8361
8246
|
relevance: 0,
|
|
8362
|
-
variants: [
|
|
8363
|
-
{
|
|
8247
|
+
variants: [{
|
|
8364
8248
|
begin: /\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/,
|
|
8365
8249
|
},
|
|
8366
8250
|
{ begin: /\b\d[\d_]*((U?[SIL])|[%&])?/ },
|
|
@@ -8382,8 +8266,7 @@ var hljs = (function () {
|
|
|
8382
8266
|
begin: /[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,
|
|
8383
8267
|
end: /$/,
|
|
8384
8268
|
keywords: {
|
|
8385
|
-
keyword:
|
|
8386
|
-
'const disable else elseif enable end externalsource if region then',
|
|
8269
|
+
keyword: 'const disable else elseif enable end externalsource if region then',
|
|
8387
8270
|
},
|
|
8388
8271
|
contains: [l],
|
|
8389
8272
|
},
|
|
@@ -8440,11 +8323,9 @@ var hljs = (function () {
|
|
|
8440
8323
|
illegal: '\\n',
|
|
8441
8324
|
relevance: 0,
|
|
8442
8325
|
},
|
|
8443
|
-
l = [
|
|
8444
|
-
{
|
|
8326
|
+
l = [{
|
|
8445
8327
|
className: 'attr',
|
|
8446
|
-
variants: [
|
|
8447
|
-
{
|
|
8328
|
+
variants: [{
|
|
8448
8329
|
begin: '\\w[\\w :\\/.-]*:(?=[ \t]|$)',
|
|
8449
8330
|
},
|
|
8450
8331
|
{ begin: '"\\w[\\w :\\/.-]*":(?=[ \t]|$)' },
|
|
@@ -8498,8 +8379,7 @@ var hljs = (function () {
|
|
|
8498
8379
|
return (
|
|
8499
8380
|
c.pop(),
|
|
8500
8381
|
c.push(i),
|
|
8501
|
-
(r.contains = c),
|
|
8502
|
-
{
|
|
8382
|
+
(r.contains = c), {
|
|
8503
8383
|
name: 'YAML',
|
|
8504
8384
|
case_insensitive: !0,
|
|
8505
8385
|
aliases: ['yml'],
|
|
@@ -8517,4 +8397,4 @@ var hljs = (function () {
|
|
|
8517
8397
|
})();
|
|
8518
8398
|
'object' == typeof exports &&
|
|
8519
8399
|
'undefined' != typeof module &&
|
|
8520
|
-
(module.exports = hljs);
|
|
8400
|
+
(module.exports = hljs);
|