@box/box-ai-content-answers 0.148.8 → 0.148.9
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/esm/lib/box-ai-content-answers.js +28 -26
- package/dist/esm/lib/components/answer/answer-content.js +33 -23
- package/dist/esm/lib/components/answer/answer.js +53 -51
- package/dist/esm/lib/components/api-wrapper/content-answers-component.js +65 -63
- package/dist/esm/lib/components/chat/chat.js +50 -48
- package/dist/esm/lib/components/common/markdown-react.js +99 -0
- package/dist/esm/lib/components/common/markdown.js +337 -339
- package/dist/types/lib/box-ai-content-answers.d.ts +2 -0
- package/dist/types/lib/components/answer/answer-content.d.ts +3 -1
- package/dist/types/lib/components/answer/answer.d.ts +2 -0
- package/dist/types/lib/components/api-wrapper/types.d.ts +2 -0
- package/dist/types/lib/components/chat/chat.d.ts +1 -1
- package/dist/types/lib/components/common/markdown-react.d.ts +26 -0
- package/dist/types/lib/types.d.ts +2 -0
- package/package.json +8 -4
|
@@ -8,8 +8,8 @@ function ut(n) {
|
|
|
8
8
|
} : n instanceof Set && (n.add = n.clear = n.delete = function() {
|
|
9
9
|
throw new Error("set is read-only");
|
|
10
10
|
}), Object.freeze(n), Object.getOwnPropertyNames(n).forEach((e) => {
|
|
11
|
-
const t = n[e],
|
|
12
|
-
(
|
|
11
|
+
const t = n[e], s = typeof t;
|
|
12
|
+
(s === "object" || s === "function") && !Object.isFrozen(t) && ut(t);
|
|
13
13
|
}), n;
|
|
14
14
|
}
|
|
15
15
|
class Tn {
|
|
@@ -28,11 +28,11 @@ function gt(n) {
|
|
|
28
28
|
}
|
|
29
29
|
function ue(n, ...e) {
|
|
30
30
|
const t = /* @__PURE__ */ Object.create(null);
|
|
31
|
-
for (const
|
|
32
|
-
t[
|
|
33
|
-
return e.forEach(function(
|
|
34
|
-
for (const l in
|
|
35
|
-
t[l] =
|
|
31
|
+
for (const s in n)
|
|
32
|
+
t[s] = n[s];
|
|
33
|
+
return e.forEach(function(s) {
|
|
34
|
+
for (const l in s)
|
|
35
|
+
t[l] = s[l];
|
|
36
36
|
}), /** @type {T} */
|
|
37
37
|
t;
|
|
38
38
|
}
|
|
@@ -43,7 +43,7 @@ const At = "</span>", Sn = (n) => !!n.scope, Mt = (n, { prefix: e }) => {
|
|
|
43
43
|
const t = n.split(".");
|
|
44
44
|
return [
|
|
45
45
|
`${e}${t.shift()}`,
|
|
46
|
-
...t.map((
|
|
46
|
+
...t.map((s, l) => `${s}${"_".repeat(l + 1)}`)
|
|
47
47
|
].join(" ");
|
|
48
48
|
}
|
|
49
49
|
return `${e}${n}`;
|
|
@@ -144,7 +144,7 @@ class fn {
|
|
|
144
144
|
* @param {Node} node
|
|
145
145
|
*/
|
|
146
146
|
static _walk(e, t) {
|
|
147
|
-
return typeof t == "string" ? e.addText(t) : t.children && (e.openNode(t), t.children.forEach((
|
|
147
|
+
return typeof t == "string" ? e.addText(t) : t.children && (e.openNode(t), t.children.forEach((s) => this._walk(e, s)), e.closeNode(t)), e;
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
150
|
* @param {Node} node
|
|
@@ -180,8 +180,8 @@ class It extends fn {
|
|
|
180
180
|
* @param {string} name
|
|
181
181
|
*/
|
|
182
182
|
__addSublanguage(e, t) {
|
|
183
|
-
const
|
|
184
|
-
t && (
|
|
183
|
+
const s = e.root;
|
|
184
|
+
t && (s.scope = `language:${t}`), this.add(s);
|
|
185
185
|
}
|
|
186
186
|
toHTML() {
|
|
187
187
|
return new Ct(this, this.options).value();
|
|
@@ -210,7 +210,7 @@ function Lt(n) {
|
|
|
210
210
|
return typeof e == "object" && e.constructor === Object ? (n.splice(n.length - 1, 1), e) : {};
|
|
211
211
|
}
|
|
212
212
|
function hn(...n) {
|
|
213
|
-
return "(" + (Lt(n).capture ? "" : "?:") + n.map((
|
|
213
|
+
return "(" + (Lt(n).capture ? "" : "?:") + n.map((s) => ye(s)).join("|") + ")";
|
|
214
214
|
}
|
|
215
215
|
function pt(n) {
|
|
216
216
|
return new RegExp(n.toString() + "|").exec("").length - 1;
|
|
@@ -222,20 +222,20 @@ function Dt(n, e) {
|
|
|
222
222
|
const Bt = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
223
223
|
function Nn(n, { joinWith: e }) {
|
|
224
224
|
let t = 0;
|
|
225
|
-
return n.map((
|
|
225
|
+
return n.map((s) => {
|
|
226
226
|
t += 1;
|
|
227
227
|
const l = t;
|
|
228
|
-
let o = ye(
|
|
228
|
+
let o = ye(s), i = "";
|
|
229
229
|
for (; o.length > 0; ) {
|
|
230
230
|
const r = Bt.exec(o);
|
|
231
231
|
if (!r) {
|
|
232
|
-
|
|
232
|
+
i += o;
|
|
233
233
|
break;
|
|
234
234
|
}
|
|
235
|
-
|
|
235
|
+
i += o.substring(0, r.index), o = o.substring(r.index + r[0].length), r[0][0] === "\\" && r[1] ? i += "\\" + String(Number(r[1]) + l) : (i += r[0], r[0] === "(" && t++);
|
|
236
236
|
}
|
|
237
|
-
return
|
|
238
|
-
}).map((
|
|
237
|
+
return i;
|
|
238
|
+
}).map((s) => `(${s})`).join(e);
|
|
239
239
|
}
|
|
240
240
|
const Ut = /\b\B/, _t = "[a-zA-Z]\\w*", yn = "[a-zA-Z_]\\w*", mt = "\\b\\d+(\\.\\d+)?", Et = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", ft = "\\b(0b[01]+)", Pt = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Ft = (n = {}) => {
|
|
241
241
|
const e = /^#![ ]*\//;
|
|
@@ -250,8 +250,8 @@ const Ut = /\b\B/, _t = "[a-zA-Z]\\w*", yn = "[a-zA-Z_]\\w*", mt = "\\b\\d+(\\.\
|
|
|
250
250
|
end: /$/,
|
|
251
251
|
relevance: 0,
|
|
252
252
|
/** @type {ModeCallback} */
|
|
253
|
-
"on:begin": (t,
|
|
254
|
-
t.index !== 0 &&
|
|
253
|
+
"on:begin": (t, s) => {
|
|
254
|
+
t.index !== 0 && s.ignoreMatch();
|
|
255
255
|
}
|
|
256
256
|
}, n);
|
|
257
257
|
}, Te = {
|
|
@@ -272,7 +272,7 @@ const Ut = /\b\B/, _t = "[a-zA-Z]\\w*", yn = "[a-zA-Z_]\\w*", mt = "\\b\\d+(\\.\
|
|
|
272
272
|
}, Kt = {
|
|
273
273
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
|
274
274
|
}, Ie = function(n, e, t = {}) {
|
|
275
|
-
const
|
|
275
|
+
const s = ue(
|
|
276
276
|
{
|
|
277
277
|
scope: "comment",
|
|
278
278
|
begin: n,
|
|
@@ -281,7 +281,7 @@ const Ut = /\b\B/, _t = "[a-zA-Z]\\w*", yn = "[a-zA-Z_]\\w*", mt = "\\b\\d+(\\.\
|
|
|
281
281
|
},
|
|
282
282
|
t
|
|
283
283
|
);
|
|
284
|
-
|
|
284
|
+
s.contains.push({
|
|
285
285
|
scope: "doctag",
|
|
286
286
|
// hack to avoid the space from being included. the space is necessary to
|
|
287
287
|
// match here to prevent the plain text rule below from gobbling up doctags
|
|
@@ -311,7 +311,7 @@ const Ut = /\b\B/, _t = "[a-zA-Z]\\w*", yn = "[a-zA-Z_]\\w*", mt = "\\b\\d+(\\.\
|
|
|
311
311
|
/[A-Za-z][a-z]{2,}/
|
|
312
312
|
// allow capitalized words at beginning of sentences
|
|
313
313
|
);
|
|
314
|
-
return
|
|
314
|
+
return s.contains.push(
|
|
315
315
|
{
|
|
316
316
|
// TODO: how to include ", (, ) without breaking grammars that use these for
|
|
317
317
|
// comment delimiters?
|
|
@@ -336,7 +336,7 @@ const Ut = /\b\B/, _t = "[a-zA-Z]\\w*", yn = "[a-zA-Z_]\\w*", mt = "\\b\\d+(\\.\
|
|
|
336
336
|
)
|
|
337
337
|
// look for 3 words in a row
|
|
338
338
|
}
|
|
339
|
-
),
|
|
339
|
+
), s;
|
|
340
340
|
}, qt = Ie("//", "$"), Gt = Ie("/\\*", "\\*/"), Ht = Ie("#", "$"), Wt = {
|
|
341
341
|
scope: "number",
|
|
342
342
|
begin: mt,
|
|
@@ -441,8 +441,8 @@ const sr = (n, e) => {
|
|
|
441
441
|
if (!n.beforeMatch) return;
|
|
442
442
|
if (n.starts) throw new Error("beforeMatch cannot be used with starts");
|
|
443
443
|
const t = Object.assign({}, n);
|
|
444
|
-
Object.keys(n).forEach((
|
|
445
|
-
delete n[
|
|
444
|
+
Object.keys(n).forEach((s) => {
|
|
445
|
+
delete n[s];
|
|
446
446
|
}), n.keywords = t.keywords, n.begin = pe(t.beforeMatch, bt(t.begin)), n.starts = {
|
|
447
447
|
relevance: 0,
|
|
448
448
|
contains: [
|
|
@@ -466,17 +466,17 @@ const sr = (n, e) => {
|
|
|
466
466
|
// common variable name
|
|
467
467
|
], cr = "keyword";
|
|
468
468
|
function ht(n, e, t = cr) {
|
|
469
|
-
const
|
|
469
|
+
const s = /* @__PURE__ */ Object.create(null);
|
|
470
470
|
return typeof n == "string" ? l(t, n.split(" ")) : Array.isArray(n) ? l(t, n) : Object.keys(n).forEach(function(o) {
|
|
471
471
|
Object.assign(
|
|
472
|
-
|
|
472
|
+
s,
|
|
473
473
|
ht(n[o], e, o)
|
|
474
474
|
);
|
|
475
|
-
}),
|
|
476
|
-
function l(o,
|
|
477
|
-
e && (
|
|
478
|
-
const
|
|
479
|
-
a[
|
|
475
|
+
}), s;
|
|
476
|
+
function l(o, i) {
|
|
477
|
+
e && (i = i.map((r) => r.toLowerCase())), i.forEach(function(r) {
|
|
478
|
+
const a = r.split("|");
|
|
479
|
+
s[a[0]] = [o, lr(a[0], a[1])];
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
482
|
}
|
|
@@ -494,11 +494,11 @@ const On = {}, be = (n) => {
|
|
|
494
494
|
On[`${n}/${e}`] || (console.log(`Deprecated as of ${n}. ${e}`), On[`${n}/${e}`] = !0);
|
|
495
495
|
}, Me = new Error();
|
|
496
496
|
function Nt(n, e, { key: t }) {
|
|
497
|
-
let
|
|
498
|
-
const l = n[t], o = {},
|
|
497
|
+
let s = 0;
|
|
498
|
+
const l = n[t], o = {}, i = {};
|
|
499
499
|
for (let r = 1; r <= e.length; r++)
|
|
500
|
-
|
|
501
|
-
n[t] =
|
|
500
|
+
i[r + s] = l[r], o[r + s] = !0, s += pt(e[r - 1]);
|
|
501
|
+
n[t] = i, n[t]._emit = o, n[t]._multi = !0;
|
|
502
502
|
}
|
|
503
503
|
function ur(n) {
|
|
504
504
|
if (Array.isArray(n.begin)) {
|
|
@@ -525,9 +525,9 @@ function pr(n) {
|
|
|
525
525
|
br(n), typeof n.beginScope == "string" && (n.beginScope = { _wrap: n.beginScope }), typeof n.endScope == "string" && (n.endScope = { _wrap: n.endScope }), ur(n), gr(n);
|
|
526
526
|
}
|
|
527
527
|
function _r(n) {
|
|
528
|
-
function e(
|
|
528
|
+
function e(i, r) {
|
|
529
529
|
return new RegExp(
|
|
530
|
-
ye(
|
|
530
|
+
ye(i),
|
|
531
531
|
"m" + (n.case_insensitive ? "i" : "") + (n.unicodeRegex ? "u" : "") + (r ? "g" : "")
|
|
532
532
|
);
|
|
533
533
|
}
|
|
@@ -536,33 +536,33 @@ function _r(n) {
|
|
|
536
536
|
this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
|
|
537
537
|
}
|
|
538
538
|
// @ts-ignore
|
|
539
|
-
addRule(r,
|
|
540
|
-
|
|
539
|
+
addRule(r, a) {
|
|
540
|
+
a.position = this.position++, this.matchIndexes[this.matchAt] = a, this.regexes.push([a, r]), this.matchAt += pt(r) + 1;
|
|
541
541
|
}
|
|
542
542
|
compile() {
|
|
543
543
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
544
|
-
const r = this.regexes.map((
|
|
544
|
+
const r = this.regexes.map((a) => a[1]);
|
|
545
545
|
this.matcherRe = e(Nn(r, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
546
546
|
}
|
|
547
547
|
/** @param {string} s */
|
|
548
548
|
exec(r) {
|
|
549
549
|
this.matcherRe.lastIndex = this.lastIndex;
|
|
550
|
-
const
|
|
551
|
-
if (!
|
|
550
|
+
const a = this.matcherRe.exec(r);
|
|
551
|
+
if (!a)
|
|
552
552
|
return null;
|
|
553
|
-
const d =
|
|
554
|
-
return
|
|
553
|
+
const d = a.findIndex((g, b) => b > 0 && g !== void 0), c = this.matchIndexes[d];
|
|
554
|
+
return a.splice(0, d), Object.assign(a, c);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
class
|
|
557
|
+
class s {
|
|
558
558
|
constructor() {
|
|
559
559
|
this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
|
|
560
560
|
}
|
|
561
561
|
// @ts-ignore
|
|
562
562
|
getMatcher(r) {
|
|
563
563
|
if (this.multiRegexes[r]) return this.multiRegexes[r];
|
|
564
|
-
const
|
|
565
|
-
return this.rules.slice(r).forEach(([d, c]) =>
|
|
564
|
+
const a = new t();
|
|
565
|
+
return this.rules.slice(r).forEach(([d, c]) => a.addRule(d, c)), a.compile(), this.multiRegexes[r] = a, a;
|
|
566
566
|
}
|
|
567
567
|
resumingScanAtSamePosition() {
|
|
568
568
|
return this.regexIndex !== 0;
|
|
@@ -571,14 +571,14 @@ function _r(n) {
|
|
|
571
571
|
this.regexIndex = 0;
|
|
572
572
|
}
|
|
573
573
|
// @ts-ignore
|
|
574
|
-
addRule(r,
|
|
575
|
-
this.rules.push([r,
|
|
574
|
+
addRule(r, a) {
|
|
575
|
+
this.rules.push([r, a]), a.type === "begin" && this.count++;
|
|
576
576
|
}
|
|
577
577
|
/** @param {string} s */
|
|
578
578
|
exec(r) {
|
|
579
|
-
const
|
|
580
|
-
|
|
581
|
-
let d =
|
|
579
|
+
const a = this.getMatcher(this.regexIndex);
|
|
580
|
+
a.lastIndex = this.lastIndex;
|
|
581
|
+
let d = a.exec(r);
|
|
582
582
|
if (this.resumingScanAtSamePosition() && !(d && d.index === this.lastIndex)) {
|
|
583
583
|
const c = this.getMatcher(0);
|
|
584
584
|
c.lastIndex = this.lastIndex + 1, d = c.exec(r);
|
|
@@ -586,16 +586,16 @@ function _r(n) {
|
|
|
586
586
|
return d && (this.regexIndex += d.position + 1, this.regexIndex === this.count && this.considerAll()), d;
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
function l(
|
|
590
|
-
const r = new
|
|
591
|
-
return
|
|
589
|
+
function l(i) {
|
|
590
|
+
const r = new s();
|
|
591
|
+
return i.contains.forEach((a) => r.addRule(a.begin, { rule: a, type: "begin" })), i.terminatorEnd && r.addRule(i.terminatorEnd, { type: "end" }), i.illegal && r.addRule(i.illegal, { type: "illegal" }), r;
|
|
592
592
|
}
|
|
593
|
-
function o(
|
|
594
|
-
const
|
|
593
|
+
function o(i, r) {
|
|
594
|
+
const a = (
|
|
595
595
|
/** @type CompiledMode */
|
|
596
|
-
|
|
596
|
+
i
|
|
597
597
|
);
|
|
598
|
-
if (
|
|
598
|
+
if (i.isCompiled) return a;
|
|
599
599
|
[
|
|
600
600
|
nr,
|
|
601
601
|
// do this early so compiler extensions generally don't have to worry about
|
|
@@ -603,27 +603,27 @@ function _r(n) {
|
|
|
603
603
|
ar,
|
|
604
604
|
pr,
|
|
605
605
|
sr
|
|
606
|
-
].forEach((c) => c(
|
|
606
|
+
].forEach((c) => c(i, r)), n.compilerExtensions.forEach((c) => c(i, r)), i.__beforeBegin = null, [
|
|
607
607
|
tr,
|
|
608
608
|
// do this later so compiler extensions that come earlier have access to the
|
|
609
609
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
610
610
|
rr,
|
|
611
611
|
// default to 1 relevance if not specified
|
|
612
612
|
ir
|
|
613
|
-
].forEach((c) => c(
|
|
613
|
+
].forEach((c) => c(i, r)), i.isCompiled = !0;
|
|
614
614
|
let d = null;
|
|
615
|
-
return typeof
|
|
615
|
+
return typeof i.keywords == "object" && i.keywords.$pattern && (i.keywords = Object.assign({}, i.keywords), d = i.keywords.$pattern, delete i.keywords.$pattern), d = d || /\w+/, i.keywords && (i.keywords = ht(i.keywords, n.case_insensitive)), a.keywordPatternRe = e(d, !0), r && (i.begin || (i.begin = /\B|\b/), a.beginRe = e(a.begin), !i.end && !i.endsWithParent && (i.end = /\B|\b/), i.end && (a.endRe = e(a.end)), a.terminatorEnd = ye(a.end) || "", i.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (i.end ? "|" : "") + r.terminatorEnd)), i.illegal && (a.illegalRe = e(
|
|
616
616
|
/** @type {RegExp | string} */
|
|
617
|
-
|
|
618
|
-
)),
|
|
619
|
-
return mr(c === "self" ?
|
|
620
|
-
})),
|
|
617
|
+
i.illegal
|
|
618
|
+
)), i.contains || (i.contains = []), i.contains = [].concat(...i.contains.map(function(c) {
|
|
619
|
+
return mr(c === "self" ? i : c);
|
|
620
|
+
})), i.contains.forEach(function(c) {
|
|
621
621
|
o(
|
|
622
622
|
/** @type Mode */
|
|
623
623
|
c,
|
|
624
|
-
|
|
624
|
+
a
|
|
625
625
|
);
|
|
626
|
-
}),
|
|
626
|
+
}), i.starts && o(i.starts, r), a.matcher = l(a), a;
|
|
627
627
|
}
|
|
628
628
|
if (n.compilerExtensions || (n.compilerExtensions = []), n.contains && n.contains.includes("self"))
|
|
629
629
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
@@ -647,9 +647,9 @@ class fr extends Error {
|
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
const Le = gt, Rn = ue, An = Symbol("nomatch"), hr = 7, Tt = function(n) {
|
|
650
|
-
const e = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null),
|
|
650
|
+
const e = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null), s = [];
|
|
651
651
|
let l = !0;
|
|
652
|
-
const o = "Could not find the language '{}', did you forget to load/include a language module?",
|
|
652
|
+
const o = "Could not find the language '{}', did you forget to load/include a language module?", i = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
653
653
|
let r = {
|
|
654
654
|
ignoreUnescapedHTML: !1,
|
|
655
655
|
throwUnescapedHTML: !1,
|
|
@@ -662,7 +662,7 @@ const Le = gt, Rn = ue, An = Symbol("nomatch"), hr = 7, Tt = function(n) {
|
|
|
662
662
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
|
663
663
|
__emitter: It
|
|
664
664
|
};
|
|
665
|
-
function
|
|
665
|
+
function a(u) {
|
|
666
666
|
return r.noHighlightRe.test(u);
|
|
667
667
|
}
|
|
668
668
|
function d(u) {
|
|
@@ -673,7 +673,7 @@ const Le = gt, Rn = ue, An = Symbol("nomatch"), hr = 7, Tt = function(n) {
|
|
|
673
673
|
const k = I(w[1]);
|
|
674
674
|
return k || (wn(o.replace("{}", w[1])), wn("Falling back to no-highlight mode for this block.", u)), k ? w[1] : "no-highlight";
|
|
675
675
|
}
|
|
676
|
-
return f.split(/\s+/).find((k) =>
|
|
676
|
+
return f.split(/\s+/).find((k) => a(k) || I(k));
|
|
677
677
|
}
|
|
678
678
|
function c(u, f, w) {
|
|
679
679
|
let k = "", U = "";
|
|
@@ -886,7 +886,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
|
886
886
|
value: Le(u),
|
|
887
887
|
illegal: !1,
|
|
888
888
|
relevance: 0,
|
|
889
|
-
_top:
|
|
889
|
+
_top: i,
|
|
890
890
|
_emitter: new r.__emitter(r)
|
|
891
891
|
};
|
|
892
892
|
return f._emitter.addText(u), f;
|
|
@@ -916,7 +916,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
|
916
916
|
function E(u) {
|
|
917
917
|
let f = null;
|
|
918
918
|
const w = d(u);
|
|
919
|
-
if (
|
|
919
|
+
if (a(w)) return;
|
|
920
920
|
if (B(
|
|
921
921
|
"before:highlightElement",
|
|
922
922
|
{ el: u, language: w }
|
|
@@ -971,7 +971,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
|
971
971
|
be(k);
|
|
972
972
|
else
|
|
973
973
|
throw k;
|
|
974
|
-
w =
|
|
974
|
+
w = i;
|
|
975
975
|
}
|
|
976
976
|
w.name || (w.name = u), e[u] = w, w.rawDefinition = f.bind(null, n), w.aliases && H(w.aliases, { languageName: u });
|
|
977
977
|
}
|
|
@@ -1007,15 +1007,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
|
1007
1007
|
});
|
|
1008
1008
|
}
|
|
1009
1009
|
function ae(u) {
|
|
1010
|
-
J(u),
|
|
1010
|
+
J(u), s.push(u);
|
|
1011
1011
|
}
|
|
1012
1012
|
function W(u) {
|
|
1013
|
-
const f =
|
|
1014
|
-
f !== -1 &&
|
|
1013
|
+
const f = s.indexOf(u);
|
|
1014
|
+
f !== -1 && s.splice(f, 1);
|
|
1015
1015
|
}
|
|
1016
1016
|
function B(u, f) {
|
|
1017
1017
|
const w = u;
|
|
1018
|
-
|
|
1018
|
+
s.forEach(function(k) {
|
|
1019
1019
|
k[w] && k[w](f);
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
@@ -1065,10 +1065,10 @@ function yr() {
|
|
|
1065
1065
|
if (Mn) return De;
|
|
1066
1066
|
Mn = 1;
|
|
1067
1067
|
function n(e) {
|
|
1068
|
-
const t = e.regex,
|
|
1068
|
+
const t = e.regex, s = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), l = /[\p{L}0-9._:-]+/u, o = {
|
|
1069
1069
|
className: "symbol",
|
|
1070
1070
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
1071
|
-
},
|
|
1071
|
+
}, i = {
|
|
1072
1072
|
begin: /\s/,
|
|
1073
1073
|
contains: [
|
|
1074
1074
|
{
|
|
@@ -1077,10 +1077,10 @@ function yr() {
|
|
|
1077
1077
|
illegal: /\n/
|
|
1078
1078
|
}
|
|
1079
1079
|
]
|
|
1080
|
-
}, r = e.inherit(
|
|
1080
|
+
}, r = e.inherit(i, {
|
|
1081
1081
|
begin: /\(/,
|
|
1082
1082
|
end: /\)/
|
|
1083
|
-
}),
|
|
1083
|
+
}), a = e.inherit(e.APOS_STRING_MODE, { className: "string" }), d = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }), c = {
|
|
1084
1084
|
endsWithParent: !0,
|
|
1085
1085
|
illegal: /</,
|
|
1086
1086
|
relevance: 0,
|
|
@@ -1138,9 +1138,9 @@ function yr() {
|
|
|
1138
1138
|
end: />/,
|
|
1139
1139
|
relevance: 10,
|
|
1140
1140
|
contains: [
|
|
1141
|
-
s,
|
|
1142
|
-
d,
|
|
1143
1141
|
i,
|
|
1142
|
+
d,
|
|
1143
|
+
a,
|
|
1144
1144
|
r,
|
|
1145
1145
|
{
|
|
1146
1146
|
begin: /\[/,
|
|
@@ -1151,10 +1151,10 @@ function yr() {
|
|
|
1151
1151
|
begin: /<![a-z]/,
|
|
1152
1152
|
end: />/,
|
|
1153
1153
|
contains: [
|
|
1154
|
-
|
|
1154
|
+
i,
|
|
1155
1155
|
r,
|
|
1156
1156
|
d,
|
|
1157
|
-
|
|
1157
|
+
a
|
|
1158
1158
|
]
|
|
1159
1159
|
}
|
|
1160
1160
|
]
|
|
@@ -1237,7 +1237,7 @@ function yr() {
|
|
|
1237
1237
|
begin: t.concat(
|
|
1238
1238
|
/</,
|
|
1239
1239
|
t.lookahead(t.concat(
|
|
1240
|
-
|
|
1240
|
+
s,
|
|
1241
1241
|
// <tag/>
|
|
1242
1242
|
// <tag>
|
|
1243
1243
|
// <tag ...
|
|
@@ -1248,7 +1248,7 @@ function yr() {
|
|
|
1248
1248
|
contains: [
|
|
1249
1249
|
{
|
|
1250
1250
|
className: "name",
|
|
1251
|
-
begin:
|
|
1251
|
+
begin: s,
|
|
1252
1252
|
relevance: 0,
|
|
1253
1253
|
starts: c
|
|
1254
1254
|
}
|
|
@@ -1260,14 +1260,14 @@ function yr() {
|
|
|
1260
1260
|
begin: t.concat(
|
|
1261
1261
|
/<\//,
|
|
1262
1262
|
t.lookahead(t.concat(
|
|
1263
|
-
|
|
1263
|
+
s,
|
|
1264
1264
|
/>/
|
|
1265
1265
|
))
|
|
1266
1266
|
),
|
|
1267
1267
|
contains: [
|
|
1268
1268
|
{
|
|
1269
1269
|
className: "name",
|
|
1270
|
-
begin:
|
|
1270
|
+
begin: s,
|
|
1271
1271
|
relevance: 0
|
|
1272
1272
|
},
|
|
1273
1273
|
{
|
|
@@ -1287,19 +1287,19 @@ function Tr() {
|
|
|
1287
1287
|
if (Cn) return Be;
|
|
1288
1288
|
Cn = 1;
|
|
1289
1289
|
function n(e) {
|
|
1290
|
-
const t = e.regex,
|
|
1290
|
+
const t = e.regex, s = {}, l = {
|
|
1291
1291
|
begin: /\$\{/,
|
|
1292
1292
|
end: /\}/,
|
|
1293
1293
|
contains: [
|
|
1294
1294
|
"self",
|
|
1295
1295
|
{
|
|
1296
1296
|
begin: /:-/,
|
|
1297
|
-
contains: [
|
|
1297
|
+
contains: [s]
|
|
1298
1298
|
}
|
|
1299
1299
|
// default values
|
|
1300
1300
|
]
|
|
1301
1301
|
};
|
|
1302
|
-
Object.assign(
|
|
1302
|
+
Object.assign(s, {
|
|
1303
1303
|
className: "variable",
|
|
1304
1304
|
variants: [
|
|
1305
1305
|
{ begin: t.concat(
|
|
@@ -1316,7 +1316,7 @@ function Tr() {
|
|
|
1316
1316
|
begin: /\$\(/,
|
|
1317
1317
|
end: /\)/,
|
|
1318
1318
|
contains: [e.BACKSLASH_ESCAPE]
|
|
1319
|
-
},
|
|
1319
|
+
}, i = {
|
|
1320
1320
|
begin: /<<-?\s*(?=\w+)/,
|
|
1321
1321
|
starts: { contains: [
|
|
1322
1322
|
e.END_SAME_AS_BEGIN({
|
|
@@ -1331,12 +1331,12 @@ function Tr() {
|
|
|
1331
1331
|
end: /"/,
|
|
1332
1332
|
contains: [
|
|
1333
1333
|
e.BACKSLASH_ESCAPE,
|
|
1334
|
-
|
|
1334
|
+
s,
|
|
1335
1335
|
o
|
|
1336
1336
|
]
|
|
1337
1337
|
};
|
|
1338
1338
|
o.contains.push(r);
|
|
1339
|
-
const
|
|
1339
|
+
const a = {
|
|
1340
1340
|
match: /\\"/
|
|
1341
1341
|
}, d = {
|
|
1342
1342
|
className: "string",
|
|
@@ -1353,7 +1353,7 @@ function Tr() {
|
|
|
1353
1353
|
className: "number"
|
|
1354
1354
|
},
|
|
1355
1355
|
e.NUMBER_MODE,
|
|
1356
|
-
|
|
1356
|
+
s
|
|
1357
1357
|
]
|
|
1358
1358
|
}, b = [
|
|
1359
1359
|
"fish",
|
|
@@ -1633,13 +1633,13 @@ function Tr() {
|
|
|
1633
1633
|
m,
|
|
1634
1634
|
g,
|
|
1635
1635
|
e.HASH_COMMENT_MODE,
|
|
1636
|
-
|
|
1636
|
+
i,
|
|
1637
1637
|
h,
|
|
1638
1638
|
r,
|
|
1639
|
-
|
|
1639
|
+
a,
|
|
1640
1640
|
d,
|
|
1641
1641
|
c,
|
|
1642
|
-
|
|
1642
|
+
s
|
|
1643
1643
|
]
|
|
1644
1644
|
};
|
|
1645
1645
|
}
|
|
@@ -1650,7 +1650,7 @@ function Sr() {
|
|
|
1650
1650
|
if (In) return Ue;
|
|
1651
1651
|
In = 1;
|
|
1652
1652
|
function n(e) {
|
|
1653
|
-
const t = e.regex,
|
|
1653
|
+
const t = e.regex, s = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), l = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", r = "(" + l + "|" + t.optional(o) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
|
|
1654
1654
|
className: "type",
|
|
1655
1655
|
variants: [
|
|
1656
1656
|
{ begin: "\\b[a-z\\d_]*_t\\b" },
|
|
@@ -1698,7 +1698,7 @@ function Sr() {
|
|
|
1698
1698
|
className: "string",
|
|
1699
1699
|
begin: /<.*?>/
|
|
1700
1700
|
},
|
|
1701
|
-
|
|
1701
|
+
s,
|
|
1702
1702
|
e.C_BLOCK_COMMENT_MODE
|
|
1703
1703
|
]
|
|
1704
1704
|
}, p = {
|
|
@@ -1777,8 +1777,8 @@ function Sr() {
|
|
|
1777
1777
|
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"
|
|
1778
1778
|
}, O = [
|
|
1779
1779
|
b,
|
|
1780
|
-
i,
|
|
1781
1780
|
a,
|
|
1781
|
+
s,
|
|
1782
1782
|
e.C_BLOCK_COMMENT_MODE,
|
|
1783
1783
|
g,
|
|
1784
1784
|
c
|
|
@@ -1844,11 +1844,11 @@ function Sr() {
|
|
|
1844
1844
|
keywords: h,
|
|
1845
1845
|
relevance: 0,
|
|
1846
1846
|
contains: [
|
|
1847
|
-
|
|
1847
|
+
s,
|
|
1848
1848
|
e.C_BLOCK_COMMENT_MODE,
|
|
1849
1849
|
c,
|
|
1850
1850
|
g,
|
|
1851
|
-
|
|
1851
|
+
a,
|
|
1852
1852
|
// Count matching parentheses.
|
|
1853
1853
|
{
|
|
1854
1854
|
begin: /\(/,
|
|
@@ -1857,17 +1857,17 @@ function Sr() {
|
|
|
1857
1857
|
relevance: 0,
|
|
1858
1858
|
contains: [
|
|
1859
1859
|
"self",
|
|
1860
|
-
|
|
1860
|
+
s,
|
|
1861
1861
|
e.C_BLOCK_COMMENT_MODE,
|
|
1862
1862
|
c,
|
|
1863
1863
|
g,
|
|
1864
|
-
|
|
1864
|
+
a
|
|
1865
1865
|
]
|
|
1866
1866
|
}
|
|
1867
1867
|
]
|
|
1868
1868
|
},
|
|
1869
|
-
i,
|
|
1870
1869
|
a,
|
|
1870
|
+
s,
|
|
1871
1871
|
e.C_BLOCK_COMMENT_MODE,
|
|
1872
1872
|
b
|
|
1873
1873
|
]
|
|
@@ -1915,7 +1915,7 @@ function vr() {
|
|
|
1915
1915
|
if (kn) return Pe;
|
|
1916
1916
|
kn = 1;
|
|
1917
1917
|
function n(e) {
|
|
1918
|
-
const t = e.regex,
|
|
1918
|
+
const t = e.regex, s = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), l = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", r = "(?!struct)(" + l + "|" + t.optional(o) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
|
|
1919
1919
|
className: "type",
|
|
1920
1920
|
begin: "\\b[a-z\\d_]*_t\\b"
|
|
1921
1921
|
}, c = {
|
|
@@ -1960,7 +1960,7 @@ function vr() {
|
|
|
1960
1960
|
className: "string",
|
|
1961
1961
|
begin: /<.*?>/
|
|
1962
1962
|
},
|
|
1963
|
-
|
|
1963
|
+
s,
|
|
1964
1964
|
e.C_BLOCK_COMMENT_MODE
|
|
1965
1965
|
]
|
|
1966
1966
|
}, p = {
|
|
@@ -2261,8 +2261,8 @@ function vr() {
|
|
|
2261
2261
|
}, D = [
|
|
2262
2262
|
L,
|
|
2263
2263
|
b,
|
|
2264
|
-
i,
|
|
2265
2264
|
a,
|
|
2265
|
+
s,
|
|
2266
2266
|
e.C_BLOCK_COMMENT_MODE,
|
|
2267
2267
|
g,
|
|
2268
2268
|
c
|
|
@@ -2344,11 +2344,11 @@ function vr() {
|
|
|
2344
2344
|
keywords: A,
|
|
2345
2345
|
relevance: 0,
|
|
2346
2346
|
contains: [
|
|
2347
|
-
|
|
2347
|
+
s,
|
|
2348
2348
|
e.C_BLOCK_COMMENT_MODE,
|
|
2349
2349
|
c,
|
|
2350
2350
|
g,
|
|
2351
|
-
|
|
2351
|
+
a,
|
|
2352
2352
|
// Count matching parentheses.
|
|
2353
2353
|
{
|
|
2354
2354
|
begin: /\(/,
|
|
@@ -2357,17 +2357,17 @@ function vr() {
|
|
|
2357
2357
|
relevance: 0,
|
|
2358
2358
|
contains: [
|
|
2359
2359
|
"self",
|
|
2360
|
-
|
|
2360
|
+
s,
|
|
2361
2361
|
e.C_BLOCK_COMMENT_MODE,
|
|
2362
2362
|
c,
|
|
2363
2363
|
g,
|
|
2364
|
-
|
|
2364
|
+
a
|
|
2365
2365
|
]
|
|
2366
2366
|
}
|
|
2367
2367
|
]
|
|
2368
2368
|
},
|
|
2369
|
-
i,
|
|
2370
2369
|
a,
|
|
2370
|
+
s,
|
|
2371
2371
|
e.C_BLOCK_COMMENT_MODE,
|
|
2372
2372
|
b
|
|
2373
2373
|
]
|
|
@@ -2400,7 +2400,7 @@ function vr() {
|
|
|
2400
2400
|
keywords: A,
|
|
2401
2401
|
contains: [
|
|
2402
2402
|
"self",
|
|
2403
|
-
|
|
2403
|
+
a
|
|
2404
2404
|
]
|
|
2405
2405
|
},
|
|
2406
2406
|
{
|
|
@@ -2451,7 +2451,7 @@ function Or() {
|
|
|
2451
2451
|
"ulong",
|
|
2452
2452
|
"uint",
|
|
2453
2453
|
"ushort"
|
|
2454
|
-
],
|
|
2454
|
+
], s = [
|
|
2455
2455
|
"public",
|
|
2456
2456
|
"private",
|
|
2457
2457
|
"protected",
|
|
@@ -2530,7 +2530,7 @@ function Or() {
|
|
|
2530
2530
|
"void",
|
|
2531
2531
|
"volatile",
|
|
2532
2532
|
"while"
|
|
2533
|
-
],
|
|
2533
|
+
], i = [
|
|
2534
2534
|
"add",
|
|
2535
2535
|
"alias",
|
|
2536
2536
|
"and",
|
|
@@ -2566,10 +2566,10 @@ function Or() {
|
|
|
2566
2566
|
"with",
|
|
2567
2567
|
"yield"
|
|
2568
2568
|
], r = {
|
|
2569
|
-
keyword: o.concat(
|
|
2569
|
+
keyword: o.concat(i),
|
|
2570
2570
|
built_in: t,
|
|
2571
2571
|
literal: l
|
|
2572
|
-
},
|
|
2572
|
+
}, a = e.inherit(e.TITLE_MODE, { begin: "[a-zA-Z](\\.?\\w)*" }), d = {
|
|
2573
2573
|
className: "number",
|
|
2574
2574
|
variants: [
|
|
2575
2575
|
{ begin: "\\b(0b[01']+)" },
|
|
@@ -2645,7 +2645,7 @@ function Or() {
|
|
|
2645
2645
|
end: ">",
|
|
2646
2646
|
contains: [
|
|
2647
2647
|
{ beginKeywords: "in out" },
|
|
2648
|
-
|
|
2648
|
+
a
|
|
2649
2649
|
]
|
|
2650
2650
|
}, C = e.IDENT_RE + "(<" + e.IDENT_RE + "(\\s*,\\s*" + e.IDENT_RE + ")*>)?(\\[\\])?", M = {
|
|
2651
2651
|
// prevents expressions like `@class` from incorrect flagging
|
|
@@ -2702,7 +2702,7 @@ function Or() {
|
|
|
2702
2702
|
illegal: /[^\s:,]/,
|
|
2703
2703
|
contains: [
|
|
2704
2704
|
{ beginKeywords: "where class" },
|
|
2705
|
-
|
|
2705
|
+
a,
|
|
2706
2706
|
O,
|
|
2707
2707
|
e.C_LINE_COMMENT_MODE,
|
|
2708
2708
|
e.C_BLOCK_COMMENT_MODE
|
|
@@ -2714,7 +2714,7 @@ function Or() {
|
|
|
2714
2714
|
end: /[{;=]/,
|
|
2715
2715
|
illegal: /[^\s:]/,
|
|
2716
2716
|
contains: [
|
|
2717
|
-
|
|
2717
|
+
a,
|
|
2718
2718
|
e.C_LINE_COMMENT_MODE,
|
|
2719
2719
|
e.C_BLOCK_COMMENT_MODE
|
|
2720
2720
|
]
|
|
@@ -2725,7 +2725,7 @@ function Or() {
|
|
|
2725
2725
|
end: /[{;=]/,
|
|
2726
2726
|
illegal: /[^\s:]/,
|
|
2727
2727
|
contains: [
|
|
2728
|
-
|
|
2728
|
+
a,
|
|
2729
2729
|
O,
|
|
2730
2730
|
e.C_LINE_COMMENT_MODE,
|
|
2731
2731
|
e.C_BLOCK_COMMENT_MODE
|
|
@@ -2762,7 +2762,7 @@ function Or() {
|
|
|
2762
2762
|
contains: [
|
|
2763
2763
|
// prevents these from being highlighted `title`
|
|
2764
2764
|
{
|
|
2765
|
-
beginKeywords:
|
|
2765
|
+
beginKeywords: s.join(" "),
|
|
2766
2766
|
relevance: 0
|
|
2767
2767
|
},
|
|
2768
2768
|
{
|
|
@@ -2944,7 +2944,7 @@ function wr() {
|
|
|
2944
2944
|
"max-width",
|
|
2945
2945
|
"min-height",
|
|
2946
2946
|
"max-height"
|
|
2947
|
-
],
|
|
2947
|
+
], s = [
|
|
2948
2948
|
"active",
|
|
2949
2949
|
"any-link",
|
|
2950
2950
|
"blank",
|
|
@@ -3396,8 +3396,8 @@ function wr() {
|
|
|
3396
3396
|
// reverse makes sure longer attributes `font-weight` are matched fully
|
|
3397
3397
|
// instead of getting false positives on say `font`
|
|
3398
3398
|
].reverse();
|
|
3399
|
-
function
|
|
3400
|
-
const
|
|
3399
|
+
function i(r) {
|
|
3400
|
+
const a = r.regex, d = n(r), c = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, g = "and or not only", b = /@-?\w[\w]*(-\w+)*/, p = "[a-zA-Z-][a-zA-Z0-9_-]*", m = [
|
|
3401
3401
|
r.APOS_STRING_MODE,
|
|
3402
3402
|
r.QUOTE_STRING_MODE
|
|
3403
3403
|
];
|
|
@@ -3431,7 +3431,7 @@ function wr() {
|
|
|
3431
3431
|
{
|
|
3432
3432
|
className: "selector-pseudo",
|
|
3433
3433
|
variants: [
|
|
3434
|
-
{ begin: ":(" +
|
|
3434
|
+
{ begin: ":(" + s.join("|") + ")" },
|
|
3435
3435
|
{ begin: ":(:)?(" + l.join("|") + ")" }
|
|
3436
3436
|
]
|
|
3437
3437
|
},
|
|
@@ -3481,7 +3481,7 @@ function wr() {
|
|
|
3481
3481
|
]
|
|
3482
3482
|
},
|
|
3483
3483
|
{
|
|
3484
|
-
begin:
|
|
3484
|
+
begin: a.lookahead(/@/),
|
|
3485
3485
|
end: "[{;]",
|
|
3486
3486
|
relevance: 0,
|
|
3487
3487
|
illegal: /:/,
|
|
@@ -3519,14 +3519,14 @@ function wr() {
|
|
|
3519
3519
|
]
|
|
3520
3520
|
};
|
|
3521
3521
|
}
|
|
3522
|
-
return $e =
|
|
3522
|
+
return $e = i, $e;
|
|
3523
3523
|
}
|
|
3524
3524
|
var ze, Dn;
|
|
3525
3525
|
function Rr() {
|
|
3526
3526
|
if (Dn) return ze;
|
|
3527
3527
|
Dn = 1;
|
|
3528
3528
|
function n(e) {
|
|
3529
|
-
const t = e.regex,
|
|
3529
|
+
const t = e.regex, s = {
|
|
3530
3530
|
begin: /<\/?[A-Za-z_]/,
|
|
3531
3531
|
end: ">",
|
|
3532
3532
|
subLanguage: "xml",
|
|
@@ -3563,7 +3563,7 @@ function Rr() {
|
|
|
3563
3563
|
relevance: 0
|
|
3564
3564
|
}
|
|
3565
3565
|
]
|
|
3566
|
-
},
|
|
3566
|
+
}, i = {
|
|
3567
3567
|
className: "bullet",
|
|
3568
3568
|
begin: "^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",
|
|
3569
3569
|
end: "\\s+",
|
|
@@ -3586,7 +3586,7 @@ function Rr() {
|
|
|
3586
3586
|
excludeBegin: !0
|
|
3587
3587
|
}
|
|
3588
3588
|
]
|
|
3589
|
-
},
|
|
3589
|
+
}, a = /[A-Za-z][A-Za-z0-9+.-]*/, d = {
|
|
3590
3590
|
variants: [
|
|
3591
3591
|
// too much like nested array access in so many languages
|
|
3592
3592
|
// to have any real relevance
|
|
@@ -3600,7 +3600,7 @@ function Rr() {
|
|
|
3600
3600
|
relevance: 2
|
|
3601
3601
|
},
|
|
3602
3602
|
{
|
|
3603
|
-
begin: t.concat(/\[.+?\]\(/,
|
|
3603
|
+
begin: t.concat(/\[.+?\]\(/, a, /:\/\/.*?\)/),
|
|
3604
3604
|
relevance: 2
|
|
3605
3605
|
},
|
|
3606
3606
|
// relative urls
|
|
@@ -3677,7 +3677,7 @@ function Rr() {
|
|
|
3677
3677
|
}, b = e.inherit(c, { contains: [] }), p = e.inherit(g, { contains: [] });
|
|
3678
3678
|
c.contains.push(p), g.contains.push(b);
|
|
3679
3679
|
let m = [
|
|
3680
|
-
|
|
3680
|
+
s,
|
|
3681
3681
|
d
|
|
3682
3682
|
];
|
|
3683
3683
|
return [
|
|
@@ -3716,8 +3716,8 @@ function Rr() {
|
|
|
3716
3716
|
}
|
|
3717
3717
|
]
|
|
3718
3718
|
},
|
|
3719
|
-
a,
|
|
3720
3719
|
s,
|
|
3720
|
+
i,
|
|
3721
3721
|
c,
|
|
3722
3722
|
g,
|
|
3723
3723
|
{
|
|
@@ -3797,7 +3797,7 @@ function Mr() {
|
|
|
3797
3797
|
if (Un) return qe;
|
|
3798
3798
|
Un = 1;
|
|
3799
3799
|
function n(e) {
|
|
3800
|
-
const t = e.regex,
|
|
3800
|
+
const t = e.regex, s = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", l = t.either(
|
|
3801
3801
|
/\b([A-Z]+[a-z0-9]+)+/,
|
|
3802
3802
|
// ends in caps
|
|
3803
3803
|
/\b([A-Z]+[a-z0-9]+)+[A-Z]+/
|
|
@@ -3871,7 +3871,7 @@ function Mr() {
|
|
|
3871
3871
|
"false",
|
|
3872
3872
|
"nil"
|
|
3873
3873
|
]
|
|
3874
|
-
},
|
|
3874
|
+
}, a = {
|
|
3875
3875
|
className: "doctag",
|
|
3876
3876
|
begin: "@[A-Za-z]+"
|
|
3877
3877
|
}, d = {
|
|
@@ -3881,13 +3881,13 @@ function Mr() {
|
|
|
3881
3881
|
e.COMMENT(
|
|
3882
3882
|
"#",
|
|
3883
3883
|
"$",
|
|
3884
|
-
{ contains: [
|
|
3884
|
+
{ contains: [a] }
|
|
3885
3885
|
),
|
|
3886
3886
|
e.COMMENT(
|
|
3887
3887
|
"^=begin",
|
|
3888
3888
|
"^=end",
|
|
3889
3889
|
{
|
|
3890
|
-
contains: [
|
|
3890
|
+
contains: [a],
|
|
3891
3891
|
relevance: 10
|
|
3892
3892
|
}
|
|
3893
3893
|
),
|
|
@@ -4064,7 +4064,7 @@ function Mr() {
|
|
|
4064
4064
|
match: [
|
|
4065
4065
|
/def/,
|
|
4066
4066
|
/\s+/,
|
|
4067
|
-
|
|
4067
|
+
s
|
|
4068
4068
|
],
|
|
4069
4069
|
scope: {
|
|
4070
4070
|
1: "keyword",
|
|
@@ -4088,7 +4088,7 @@ function Mr() {
|
|
|
4088
4088
|
begin: ":(?!\\s)",
|
|
4089
4089
|
contains: [
|
|
4090
4090
|
b,
|
|
4091
|
-
{ begin:
|
|
4091
|
+
{ begin: s }
|
|
4092
4092
|
],
|
|
4093
4093
|
relevance: 0
|
|
4094
4094
|
},
|
|
@@ -4188,7 +4188,7 @@ function Cr() {
|
|
|
4188
4188
|
if (Pn) return Ge;
|
|
4189
4189
|
Pn = 1;
|
|
4190
4190
|
function n(e) {
|
|
4191
|
-
const
|
|
4191
|
+
const i = {
|
|
4192
4192
|
keyword: [
|
|
4193
4193
|
"break",
|
|
4194
4194
|
"case",
|
|
@@ -4265,7 +4265,7 @@ function Cr() {
|
|
|
4265
4265
|
return {
|
|
4266
4266
|
name: "Go",
|
|
4267
4267
|
aliases: ["golang"],
|
|
4268
|
-
keywords:
|
|
4268
|
+
keywords: i,
|
|
4269
4269
|
illegal: "</",
|
|
4270
4270
|
contains: [
|
|
4271
4271
|
e.C_LINE_COMMENT_MODE,
|
|
@@ -4307,7 +4307,7 @@ function Cr() {
|
|
|
4307
4307
|
begin: /\(/,
|
|
4308
4308
|
end: /\)/,
|
|
4309
4309
|
endsParent: !0,
|
|
4310
|
-
keywords:
|
|
4310
|
+
keywords: i,
|
|
4311
4311
|
illegal: /["']/
|
|
4312
4312
|
}
|
|
4313
4313
|
]
|
|
@@ -4322,7 +4322,7 @@ function Ir() {
|
|
|
4322
4322
|
if (Fn) return He;
|
|
4323
4323
|
Fn = 1;
|
|
4324
4324
|
function n(e) {
|
|
4325
|
-
const t = e.regex,
|
|
4325
|
+
const t = e.regex, s = /[_A-Za-z][_0-9A-Za-z]*/;
|
|
4326
4326
|
return {
|
|
4327
4327
|
name: "GraphQL",
|
|
4328
4328
|
aliases: ["gql"],
|
|
@@ -4378,7 +4378,7 @@ function Ir() {
|
|
|
4378
4378
|
},
|
|
4379
4379
|
{
|
|
4380
4380
|
scope: "symbol",
|
|
4381
|
-
begin: t.concat(
|
|
4381
|
+
begin: t.concat(s, t.lookahead(/\s*:/)),
|
|
4382
4382
|
relevance: 0
|
|
4383
4383
|
}
|
|
4384
4384
|
],
|
|
@@ -4395,7 +4395,7 @@ function kr() {
|
|
|
4395
4395
|
if ($n) return We;
|
|
4396
4396
|
$n = 1;
|
|
4397
4397
|
function n(e) {
|
|
4398
|
-
const t = e.regex,
|
|
4398
|
+
const t = e.regex, s = {
|
|
4399
4399
|
className: "number",
|
|
4400
4400
|
relevance: 0,
|
|
4401
4401
|
variants: [
|
|
@@ -4419,7 +4419,7 @@ function kr() {
|
|
|
4419
4419
|
{ begin: /\$[\w\d"][\w\d_]*/ },
|
|
4420
4420
|
{ begin: /\$\{(.*?)\}/ }
|
|
4421
4421
|
]
|
|
4422
|
-
},
|
|
4422
|
+
}, i = {
|
|
4423
4423
|
className: "literal",
|
|
4424
4424
|
begin: /\bon|off|true|false|yes|no\b/
|
|
4425
4425
|
}, r = {
|
|
@@ -4445,15 +4445,15 @@ function kr() {
|
|
|
4445
4445
|
end: "'"
|
|
4446
4446
|
}
|
|
4447
4447
|
]
|
|
4448
|
-
},
|
|
4448
|
+
}, a = {
|
|
4449
4449
|
begin: /\[/,
|
|
4450
4450
|
end: /\]/,
|
|
4451
4451
|
contains: [
|
|
4452
4452
|
l,
|
|
4453
|
-
|
|
4453
|
+
i,
|
|
4454
4454
|
o,
|
|
4455
4455
|
r,
|
|
4456
|
-
|
|
4456
|
+
s,
|
|
4457
4457
|
"self"
|
|
4458
4458
|
],
|
|
4459
4459
|
relevance: 0
|
|
@@ -4487,11 +4487,11 @@ function kr() {
|
|
|
4487
4487
|
end: /$/,
|
|
4488
4488
|
contains: [
|
|
4489
4489
|
l,
|
|
4490
|
+
a,
|
|
4490
4491
|
i,
|
|
4491
|
-
s,
|
|
4492
4492
|
o,
|
|
4493
4493
|
r,
|
|
4494
|
-
|
|
4494
|
+
s
|
|
4495
4495
|
]
|
|
4496
4496
|
}
|
|
4497
4497
|
}
|
|
@@ -4504,7 +4504,7 @@ var Ye, zn;
|
|
|
4504
4504
|
function xr() {
|
|
4505
4505
|
if (zn) return Ye;
|
|
4506
4506
|
zn = 1;
|
|
4507
|
-
var n = "[0-9](_*[0-9])*", e = `\\.(${n})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*",
|
|
4507
|
+
var n = "[0-9](_*[0-9])*", e = `\\.(${n})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*", s = {
|
|
4508
4508
|
className: "number",
|
|
4509
4509
|
variants: [
|
|
4510
4510
|
// DecimalFloatingPointLiteral
|
|
@@ -4527,11 +4527,11 @@ function xr() {
|
|
|
4527
4527
|
],
|
|
4528
4528
|
relevance: 0
|
|
4529
4529
|
};
|
|
4530
|
-
function l(
|
|
4531
|
-
return
|
|
4530
|
+
function l(i, r, a) {
|
|
4531
|
+
return a === -1 ? "" : i.replace(r, (d) => l(i, r, a - 1));
|
|
4532
4532
|
}
|
|
4533
|
-
function o(
|
|
4534
|
-
const r =
|
|
4533
|
+
function o(i) {
|
|
4534
|
+
const r = i.regex, a = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", d = a + l("(?:<" + a + "~~~(?:\\s*,\\s*" + a + "~~~)*>)?", /~~~/g, 2), m = {
|
|
4535
4535
|
keyword: [
|
|
4536
4536
|
"synchronized",
|
|
4537
4537
|
"abstract",
|
|
@@ -4597,7 +4597,7 @@ function xr() {
|
|
|
4597
4597
|
]
|
|
4598
4598
|
}, E = {
|
|
4599
4599
|
className: "meta",
|
|
4600
|
-
begin: "@" +
|
|
4600
|
+
begin: "@" + a,
|
|
4601
4601
|
contains: [
|
|
4602
4602
|
{
|
|
4603
4603
|
begin: /\(/,
|
|
@@ -4612,7 +4612,7 @@ function xr() {
|
|
|
4612
4612
|
end: /\)/,
|
|
4613
4613
|
keywords: m,
|
|
4614
4614
|
relevance: 0,
|
|
4615
|
-
contains: [
|
|
4615
|
+
contains: [i.C_BLOCK_COMMENT_MODE],
|
|
4616
4616
|
endsParent: !0
|
|
4617
4617
|
};
|
|
4618
4618
|
return {
|
|
@@ -4621,7 +4621,7 @@ function xr() {
|
|
|
4621
4621
|
keywords: m,
|
|
4622
4622
|
illegal: /<\/|#/,
|
|
4623
4623
|
contains: [
|
|
4624
|
-
|
|
4624
|
+
i.COMMENT(
|
|
4625
4625
|
"/\\*\\*",
|
|
4626
4626
|
"\\*/",
|
|
4627
4627
|
{
|
|
@@ -4645,21 +4645,21 @@ function xr() {
|
|
|
4645
4645
|
keywords: "import",
|
|
4646
4646
|
relevance: 2
|
|
4647
4647
|
},
|
|
4648
|
-
|
|
4649
|
-
|
|
4648
|
+
i.C_LINE_COMMENT_MODE,
|
|
4649
|
+
i.C_BLOCK_COMMENT_MODE,
|
|
4650
4650
|
{
|
|
4651
4651
|
begin: /"""/,
|
|
4652
4652
|
end: /"""/,
|
|
4653
4653
|
className: "string",
|
|
4654
|
-
contains: [
|
|
4654
|
+
contains: [i.BACKSLASH_ESCAPE]
|
|
4655
4655
|
},
|
|
4656
|
-
|
|
4657
|
-
|
|
4656
|
+
i.APOS_STRING_MODE,
|
|
4657
|
+
i.QUOTE_STRING_MODE,
|
|
4658
4658
|
{
|
|
4659
4659
|
match: [
|
|
4660
4660
|
/\b(?:class|interface|enum|extends|implements|new)/,
|
|
4661
4661
|
/\s+/,
|
|
4662
|
-
|
|
4662
|
+
a
|
|
4663
4663
|
],
|
|
4664
4664
|
className: {
|
|
4665
4665
|
1: "keyword",
|
|
@@ -4673,9 +4673,9 @@ function xr() {
|
|
|
4673
4673
|
},
|
|
4674
4674
|
{
|
|
4675
4675
|
begin: [
|
|
4676
|
-
r.concat(/(?!else)/,
|
|
4676
|
+
r.concat(/(?!else)/, a),
|
|
4677
4677
|
/\s+/,
|
|
4678
|
-
|
|
4678
|
+
a,
|
|
4679
4679
|
/\s+/,
|
|
4680
4680
|
/=(?!=)/
|
|
4681
4681
|
],
|
|
@@ -4689,7 +4689,7 @@ function xr() {
|
|
|
4689
4689
|
begin: [
|
|
4690
4690
|
/record/,
|
|
4691
4691
|
/\s+/,
|
|
4692
|
-
|
|
4692
|
+
a
|
|
4693
4693
|
],
|
|
4694
4694
|
className: {
|
|
4695
4695
|
1: "keyword",
|
|
@@ -4697,8 +4697,8 @@ function xr() {
|
|
|
4697
4697
|
},
|
|
4698
4698
|
contains: [
|
|
4699
4699
|
N,
|
|
4700
|
-
|
|
4701
|
-
|
|
4700
|
+
i.C_LINE_COMMENT_MODE,
|
|
4701
|
+
i.C_BLOCK_COMMENT_MODE
|
|
4702
4702
|
]
|
|
4703
4703
|
},
|
|
4704
4704
|
{
|
|
@@ -4710,7 +4710,7 @@ function xr() {
|
|
|
4710
4710
|
{
|
|
4711
4711
|
begin: [
|
|
4712
4712
|
"(?:" + d + "\\s+)",
|
|
4713
|
-
|
|
4713
|
+
i.UNDERSCORE_IDENT_RE,
|
|
4714
4714
|
/\s*(?=\()/
|
|
4715
4715
|
],
|
|
4716
4716
|
className: { 2: "title.function" },
|
|
@@ -4724,17 +4724,17 @@ function xr() {
|
|
|
4724
4724
|
relevance: 0,
|
|
4725
4725
|
contains: [
|
|
4726
4726
|
E,
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4727
|
+
i.APOS_STRING_MODE,
|
|
4728
|
+
i.QUOTE_STRING_MODE,
|
|
4729
|
+
s,
|
|
4730
|
+
i.C_BLOCK_COMMENT_MODE
|
|
4731
4731
|
]
|
|
4732
4732
|
},
|
|
4733
|
-
|
|
4734
|
-
|
|
4733
|
+
i.C_LINE_COMMENT_MODE,
|
|
4734
|
+
i.C_BLOCK_COMMENT_MODE
|
|
4735
4735
|
]
|
|
4736
4736
|
},
|
|
4737
|
-
|
|
4737
|
+
s,
|
|
4738
4738
|
E
|
|
4739
4739
|
]
|
|
4740
4740
|
};
|
|
@@ -4795,7 +4795,7 @@ function Lr() {
|
|
|
4795
4795
|
"undefined",
|
|
4796
4796
|
"NaN",
|
|
4797
4797
|
"Infinity"
|
|
4798
|
-
],
|
|
4798
|
+
], s = [
|
|
4799
4799
|
// Fundamental objects
|
|
4800
4800
|
"Object",
|
|
4801
4801
|
"Function",
|
|
@@ -4872,7 +4872,7 @@ function Lr() {
|
|
|
4872
4872
|
"encodeURIComponent",
|
|
4873
4873
|
"escape",
|
|
4874
4874
|
"unescape"
|
|
4875
|
-
],
|
|
4875
|
+
], i = [
|
|
4876
4876
|
"arguments",
|
|
4877
4877
|
"this",
|
|
4878
4878
|
"super",
|
|
@@ -4886,10 +4886,10 @@ function Lr() {
|
|
|
4886
4886
|
// Node.js
|
|
4887
4887
|
], r = [].concat(
|
|
4888
4888
|
o,
|
|
4889
|
-
|
|
4889
|
+
s,
|
|
4890
4890
|
l
|
|
4891
4891
|
);
|
|
4892
|
-
function
|
|
4892
|
+
function a(d) {
|
|
4893
4893
|
const c = d.regex, g = (q, { after: K }) => {
|
|
4894
4894
|
const Q = "</" + q[0].slice(1);
|
|
4895
4895
|
return q.input.indexOf(Q, K) !== -1;
|
|
@@ -4933,7 +4933,7 @@ function Lr() {
|
|
|
4933
4933
|
keyword: e,
|
|
4934
4934
|
literal: t,
|
|
4935
4935
|
built_in: r,
|
|
4936
|
-
"variable.language":
|
|
4936
|
+
"variable.language": i
|
|
4937
4937
|
}, h = "[0-9](_?[0-9])*", O = `\\.(${h})`, C = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", M = {
|
|
4938
4938
|
className: "number",
|
|
4939
4939
|
variants: [
|
|
@@ -5140,7 +5140,7 @@ function Lr() {
|
|
|
5140
5140
|
keywords: {
|
|
5141
5141
|
_: [
|
|
5142
5142
|
// se we still get relevance credit for JS library classes
|
|
5143
|
-
...
|
|
5143
|
+
...s,
|
|
5144
5144
|
...l
|
|
5145
5145
|
]
|
|
5146
5146
|
}
|
|
@@ -5396,7 +5396,7 @@ function Lr() {
|
|
|
5396
5396
|
]
|
|
5397
5397
|
};
|
|
5398
5398
|
}
|
|
5399
|
-
return Ze =
|
|
5399
|
+
return Ze = a, Ze;
|
|
5400
5400
|
}
|
|
5401
5401
|
var Xe, qn;
|
|
5402
5402
|
function Dr() {
|
|
@@ -5407,7 +5407,7 @@ function Dr() {
|
|
|
5407
5407
|
className: "attr",
|
|
5408
5408
|
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
5409
5409
|
relevance: 1.01
|
|
5410
|
-
},
|
|
5410
|
+
}, s = {
|
|
5411
5411
|
match: /[{}[\],:]/,
|
|
5412
5412
|
className: "punctuation",
|
|
5413
5413
|
relevance: 0
|
|
@@ -5426,7 +5426,7 @@ function Dr() {
|
|
|
5426
5426
|
},
|
|
5427
5427
|
contains: [
|
|
5428
5428
|
t,
|
|
5429
|
-
|
|
5429
|
+
s,
|
|
5430
5430
|
e.QUOTE_STRING_MODE,
|
|
5431
5431
|
o,
|
|
5432
5432
|
e.C_NUMBER_MODE,
|
|
@@ -5442,7 +5442,7 @@ var Ve, Gn;
|
|
|
5442
5442
|
function Br() {
|
|
5443
5443
|
if (Gn) return Ve;
|
|
5444
5444
|
Gn = 1;
|
|
5445
|
-
var n = "[0-9](_*[0-9])*", e = `\\.(${n})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*",
|
|
5445
|
+
var n = "[0-9](_*[0-9])*", e = `\\.(${n})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*", s = {
|
|
5446
5446
|
className: "number",
|
|
5447
5447
|
variants: [
|
|
5448
5448
|
// DecimalFloatingPointLiteral
|
|
@@ -5466,7 +5466,7 @@ function Br() {
|
|
|
5466
5466
|
relevance: 0
|
|
5467
5467
|
};
|
|
5468
5468
|
function l(o) {
|
|
5469
|
-
const
|
|
5469
|
+
const i = {
|
|
5470
5470
|
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",
|
|
5471
5471
|
built_in: "Byte Short Char Int Long Boolean Float Double Void Unit Nothing",
|
|
5472
5472
|
literal: "true false null"
|
|
@@ -5479,7 +5479,7 @@ function Br() {
|
|
|
5479
5479
|
begin: /@\w+/
|
|
5480
5480
|
}
|
|
5481
5481
|
] }
|
|
5482
|
-
},
|
|
5482
|
+
}, a = {
|
|
5483
5483
|
className: "symbol",
|
|
5484
5484
|
begin: o.UNDERSCORE_IDENT_RE + "@"
|
|
5485
5485
|
}, d = {
|
|
@@ -5539,7 +5539,7 @@ function Br() {
|
|
|
5539
5539
|
]
|
|
5540
5540
|
}
|
|
5541
5541
|
]
|
|
5542
|
-
}, m =
|
|
5542
|
+
}, m = s, E = o.COMMENT(
|
|
5543
5543
|
"/\\*",
|
|
5544
5544
|
"\\*/",
|
|
5545
5545
|
{ contains: [o.C_BLOCK_COMMENT_MODE] }
|
|
@@ -5561,7 +5561,7 @@ function Br() {
|
|
|
5561
5561
|
"kt",
|
|
5562
5562
|
"kts"
|
|
5563
5563
|
],
|
|
5564
|
-
keywords:
|
|
5564
|
+
keywords: i,
|
|
5565
5565
|
contains: [
|
|
5566
5566
|
o.COMMENT(
|
|
5567
5567
|
"/\\*\\*",
|
|
@@ -5579,7 +5579,7 @@ function Br() {
|
|
|
5579
5579
|
o.C_LINE_COMMENT_MODE,
|
|
5580
5580
|
E,
|
|
5581
5581
|
r,
|
|
5582
|
-
|
|
5582
|
+
a,
|
|
5583
5583
|
b,
|
|
5584
5584
|
p,
|
|
5585
5585
|
{
|
|
@@ -5588,7 +5588,7 @@ function Br() {
|
|
|
5588
5588
|
end: "[(]|$",
|
|
5589
5589
|
returnBegin: !0,
|
|
5590
5590
|
excludeEnd: !0,
|
|
5591
|
-
keywords:
|
|
5591
|
+
keywords: i,
|
|
5592
5592
|
relevance: 5,
|
|
5593
5593
|
contains: [
|
|
5594
5594
|
{
|
|
@@ -5609,7 +5609,7 @@ function Br() {
|
|
|
5609
5609
|
begin: /\(/,
|
|
5610
5610
|
end: /\)/,
|
|
5611
5611
|
endsParent: !0,
|
|
5612
|
-
keywords:
|
|
5612
|
+
keywords: i,
|
|
5613
5613
|
relevance: 0,
|
|
5614
5614
|
contains: [
|
|
5615
5615
|
{
|
|
@@ -5687,12 +5687,12 @@ var Qe, Hn;
|
|
|
5687
5687
|
function Ur() {
|
|
5688
5688
|
if (Hn) return Qe;
|
|
5689
5689
|
Hn = 1;
|
|
5690
|
-
const n = (
|
|
5690
|
+
const n = (a) => ({
|
|
5691
5691
|
IMPORTANT: {
|
|
5692
5692
|
scope: "meta",
|
|
5693
5693
|
begin: "!important"
|
|
5694
5694
|
},
|
|
5695
|
-
BLOCK_COMMENT:
|
|
5695
|
+
BLOCK_COMMENT: a.C_BLOCK_COMMENT_MODE,
|
|
5696
5696
|
HEXCOLOR: {
|
|
5697
5697
|
scope: "number",
|
|
5698
5698
|
begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/
|
|
@@ -5707,13 +5707,13 @@ function Ur() {
|
|
|
5707
5707
|
end: /\]/,
|
|
5708
5708
|
illegal: "$",
|
|
5709
5709
|
contains: [
|
|
5710
|
-
|
|
5711
|
-
|
|
5710
|
+
a.APOS_STRING_MODE,
|
|
5711
|
+
a.QUOTE_STRING_MODE
|
|
5712
5712
|
]
|
|
5713
5713
|
},
|
|
5714
5714
|
CSS_NUMBER_MODE: {
|
|
5715
5715
|
scope: "number",
|
|
5716
|
-
begin:
|
|
5716
|
+
begin: a.NUMBER_RE + "(%|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)?",
|
|
5717
5717
|
relevance: 0
|
|
5718
5718
|
},
|
|
5719
5719
|
CSS_VARIABLE: {
|
|
@@ -5828,7 +5828,7 @@ function Ur() {
|
|
|
5828
5828
|
"max-width",
|
|
5829
5829
|
"min-height",
|
|
5830
5830
|
"max-height"
|
|
5831
|
-
],
|
|
5831
|
+
], s = [
|
|
5832
5832
|
"active",
|
|
5833
5833
|
"any-link",
|
|
5834
5834
|
"blank",
|
|
@@ -6279,9 +6279,9 @@ function Ur() {
|
|
|
6279
6279
|
"z-index"
|
|
6280
6280
|
// reverse makes sure longer attributes `font-weight` are matched fully
|
|
6281
6281
|
// instead of getting false positives on say `font`
|
|
6282
|
-
].reverse(),
|
|
6283
|
-
function r(
|
|
6284
|
-
const d = n(
|
|
6282
|
+
].reverse(), i = s.concat(l);
|
|
6283
|
+
function r(a) {
|
|
6284
|
+
const d = n(a), c = i, g = "and or not only", b = "[\\w-]+", p = "(" + b + "|@\\{" + b + "\\})", m = [], E = [], N = function(F) {
|
|
6285
6285
|
return {
|
|
6286
6286
|
// Less strings are not multiline (also include '~' for more consistent coloring of "escaped" strings)
|
|
6287
6287
|
className: "string",
|
|
@@ -6306,8 +6306,8 @@ function Ur() {
|
|
|
6306
6306
|
relevance: 0
|
|
6307
6307
|
};
|
|
6308
6308
|
E.push(
|
|
6309
|
-
|
|
6310
|
-
|
|
6309
|
+
a.C_LINE_COMMENT_MODE,
|
|
6310
|
+
a.C_BLOCK_COMMENT_MODE,
|
|
6311
6311
|
N("'"),
|
|
6312
6312
|
N('"'),
|
|
6313
6313
|
d.CSS_NUMBER_MODE,
|
|
@@ -6415,8 +6415,8 @@ function Ur() {
|
|
|
6415
6415
|
illegal: `[<='$"]`,
|
|
6416
6416
|
relevance: 0,
|
|
6417
6417
|
contains: [
|
|
6418
|
-
|
|
6419
|
-
|
|
6418
|
+
a.C_LINE_COMMENT_MODE,
|
|
6419
|
+
a.C_BLOCK_COMMENT_MODE,
|
|
6420
6420
|
A,
|
|
6421
6421
|
h("keyword", "all\\b"),
|
|
6422
6422
|
h("variable", "@\\{" + b + "\\}"),
|
|
@@ -6433,7 +6433,7 @@ function Ur() {
|
|
|
6433
6433
|
d.ATTRIBUTE_SELECTOR_MODE,
|
|
6434
6434
|
{
|
|
6435
6435
|
className: "selector-pseudo",
|
|
6436
|
-
begin: ":(" +
|
|
6436
|
+
begin: ":(" + s.join("|") + ")"
|
|
6437
6437
|
},
|
|
6438
6438
|
{
|
|
6439
6439
|
className: "selector-pseudo",
|
|
@@ -6456,8 +6456,8 @@ function Ur() {
|
|
|
6456
6456
|
contains: [I]
|
|
6457
6457
|
};
|
|
6458
6458
|
return m.push(
|
|
6459
|
-
|
|
6460
|
-
|
|
6459
|
+
a.C_LINE_COMMENT_MODE,
|
|
6460
|
+
a.C_BLOCK_COMMENT_MODE,
|
|
6461
6461
|
D,
|
|
6462
6462
|
T,
|
|
6463
6463
|
H,
|
|
@@ -6479,15 +6479,15 @@ function Pr() {
|
|
|
6479
6479
|
if (Wn) return Je;
|
|
6480
6480
|
Wn = 1;
|
|
6481
6481
|
function n(e) {
|
|
6482
|
-
const t = "\\[=*\\[",
|
|
6482
|
+
const t = "\\[=*\\[", s = "\\]=*\\]", l = {
|
|
6483
6483
|
begin: t,
|
|
6484
|
-
end:
|
|
6484
|
+
end: s,
|
|
6485
6485
|
contains: ["self"]
|
|
6486
6486
|
}, o = [
|
|
6487
6487
|
e.COMMENT("--(?!" + t + ")", "$"),
|
|
6488
6488
|
e.COMMENT(
|
|
6489
6489
|
"--" + t,
|
|
6490
|
-
|
|
6490
|
+
s,
|
|
6491
6491
|
{
|
|
6492
6492
|
contains: [l],
|
|
6493
6493
|
relevance: 10
|
|
@@ -6526,7 +6526,7 @@ function Pr() {
|
|
|
6526
6526
|
{
|
|
6527
6527
|
className: "string",
|
|
6528
6528
|
begin: t,
|
|
6529
|
-
end:
|
|
6529
|
+
end: s,
|
|
6530
6530
|
contains: [l],
|
|
6531
6531
|
relevance: 5
|
|
6532
6532
|
}
|
|
@@ -6549,7 +6549,7 @@ function Fr() {
|
|
|
6549
6549
|
},
|
|
6550
6550
|
{ begin: /\$[@%<?\^\+\*]/ }
|
|
6551
6551
|
]
|
|
6552
|
-
},
|
|
6552
|
+
}, s = {
|
|
6553
6553
|
className: "string",
|
|
6554
6554
|
begin: /"/,
|
|
6555
6555
|
end: /"/,
|
|
@@ -6563,7 +6563,7 @@ function Fr() {
|
|
|
6563
6563
|
end: /\)/,
|
|
6564
6564
|
keywords: { 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" },
|
|
6565
6565
|
contains: [t]
|
|
6566
|
-
}, o = { begin: "^" + e.UNDERSCORE_IDENT_RE + "\\s*(?=[:+?]?=)" },
|
|
6566
|
+
}, o = { begin: "^" + e.UNDERSCORE_IDENT_RE + "\\s*(?=[:+?]?=)" }, i = {
|
|
6567
6567
|
className: "meta",
|
|
6568
6568
|
begin: /^\.PHONY:/,
|
|
6569
6569
|
end: /$/,
|
|
@@ -6591,10 +6591,10 @@ function Fr() {
|
|
|
6591
6591
|
contains: [
|
|
6592
6592
|
e.HASH_COMMENT_MODE,
|
|
6593
6593
|
t,
|
|
6594
|
-
|
|
6594
|
+
s,
|
|
6595
6595
|
l,
|
|
6596
6596
|
o,
|
|
6597
|
-
|
|
6597
|
+
i,
|
|
6598
6598
|
r
|
|
6599
6599
|
]
|
|
6600
6600
|
};
|
|
@@ -6606,7 +6606,7 @@ function $r() {
|
|
|
6606
6606
|
if (Zn) return en;
|
|
6607
6607
|
Zn = 1;
|
|
6608
6608
|
function n(e) {
|
|
6609
|
-
const t = e.regex,
|
|
6609
|
+
const t = e.regex, s = [
|
|
6610
6610
|
"abs",
|
|
6611
6611
|
"accept",
|
|
6612
6612
|
"alarm",
|
|
@@ -6839,8 +6839,8 @@ function $r() {
|
|
|
6839
6839
|
"y|0"
|
|
6840
6840
|
], l = /[dualxmsipngr]{0,12}/, o = {
|
|
6841
6841
|
$pattern: /[\w.]+/,
|
|
6842
|
-
keyword:
|
|
6843
|
-
},
|
|
6842
|
+
keyword: s.join(" ")
|
|
6843
|
+
}, i = {
|
|
6844
6844
|
className: "subst",
|
|
6845
6845
|
begin: "[$@]\\{",
|
|
6846
6846
|
end: "\\}",
|
|
@@ -6849,7 +6849,7 @@ function $r() {
|
|
|
6849
6849
|
begin: /->\{/,
|
|
6850
6850
|
end: /\}/
|
|
6851
6851
|
// contains defined later
|
|
6852
|
-
},
|
|
6852
|
+
}, a = { variants: [
|
|
6853
6853
|
{ begin: /\$\d/ },
|
|
6854
6854
|
{ begin: t.concat(
|
|
6855
6855
|
/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,
|
|
@@ -6863,8 +6863,8 @@ function $r() {
|
|
|
6863
6863
|
}
|
|
6864
6864
|
] }, d = [
|
|
6865
6865
|
e.BACKSLASH_ESCAPE,
|
|
6866
|
-
|
|
6867
|
-
|
|
6866
|
+
i,
|
|
6867
|
+
a
|
|
6868
6868
|
], c = [
|
|
6869
6869
|
/!/,
|
|
6870
6870
|
/\//,
|
|
@@ -6893,7 +6893,7 @@ function $r() {
|
|
|
6893
6893
|
N,
|
|
6894
6894
|
l
|
|
6895
6895
|
), p = [
|
|
6896
|
-
|
|
6896
|
+
a,
|
|
6897
6897
|
e.HASH_COMMENT_MODE,
|
|
6898
6898
|
e.COMMENT(
|
|
6899
6899
|
/^=\w/,
|
|
@@ -7029,7 +7029,7 @@ function $r() {
|
|
|
7029
7029
|
]
|
|
7030
7030
|
}
|
|
7031
7031
|
];
|
|
7032
|
-
return
|
|
7032
|
+
return i.contains = p, r.contains = p, {
|
|
7033
7033
|
name: "Perl",
|
|
7034
7034
|
aliases: [
|
|
7035
7035
|
"pl",
|
|
@@ -7049,12 +7049,12 @@ function zr() {
|
|
|
7049
7049
|
const t = {
|
|
7050
7050
|
className: "built_in",
|
|
7051
7051
|
begin: "\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"
|
|
7052
|
-
},
|
|
7052
|
+
}, s = /[a-zA-Z@][a-zA-Z0-9_]*/, a = {
|
|
7053
7053
|
"variable.language": [
|
|
7054
7054
|
"this",
|
|
7055
7055
|
"super"
|
|
7056
7056
|
],
|
|
7057
|
-
$pattern:
|
|
7057
|
+
$pattern: s,
|
|
7058
7058
|
keyword: [
|
|
7059
7059
|
"while",
|
|
7060
7060
|
"export",
|
|
@@ -7206,7 +7206,7 @@ function zr() {
|
|
|
7206
7206
|
"_Bool"
|
|
7207
7207
|
]
|
|
7208
7208
|
}, d = {
|
|
7209
|
-
$pattern:
|
|
7209
|
+
$pattern: s,
|
|
7210
7210
|
keyword: [
|
|
7211
7211
|
"@interface",
|
|
7212
7212
|
"@class",
|
|
@@ -7223,7 +7223,7 @@ function zr() {
|
|
|
7223
7223
|
"obj-c++",
|
|
7224
7224
|
"objective-c++"
|
|
7225
7225
|
],
|
|
7226
|
-
keywords:
|
|
7226
|
+
keywords: a,
|
|
7227
7227
|
illegal: "</",
|
|
7228
7228
|
contains: [
|
|
7229
7229
|
t,
|
|
@@ -7286,13 +7286,13 @@ function Kr() {
|
|
|
7286
7286
|
if (Vn) return tn;
|
|
7287
7287
|
Vn = 1;
|
|
7288
7288
|
function n(e) {
|
|
7289
|
-
const t = e.regex,
|
|
7289
|
+
const t = e.regex, s = /(?![A-Za-z0-9])(?![$])/, l = t.concat(
|
|
7290
7290
|
/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,
|
|
7291
|
-
|
|
7291
|
+
s
|
|
7292
7292
|
), o = t.concat(
|
|
7293
7293
|
/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,
|
|
7294
|
-
|
|
7295
|
-
),
|
|
7294
|
+
s
|
|
7295
|
+
), i = {
|
|
7296
7296
|
scope: "variable",
|
|
7297
7297
|
match: "\\$+" + l
|
|
7298
7298
|
}, r = {
|
|
@@ -7306,7 +7306,7 @@ function Kr() {
|
|
|
7306
7306
|
{ begin: /\?>/ }
|
|
7307
7307
|
// end php tag
|
|
7308
7308
|
]
|
|
7309
|
-
},
|
|
7309
|
+
}, a = {
|
|
7310
7310
|
scope: "subst",
|
|
7311
7311
|
variants: [
|
|
7312
7312
|
{ begin: /\$\w+/ },
|
|
@@ -7317,11 +7317,11 @@ function Kr() {
|
|
|
7317
7317
|
]
|
|
7318
7318
|
}, d = e.inherit(e.APOS_STRING_MODE, { illegal: null }), c = e.inherit(e.QUOTE_STRING_MODE, {
|
|
7319
7319
|
illegal: null,
|
|
7320
|
-
contains: e.QUOTE_STRING_MODE.contains.concat(
|
|
7320
|
+
contains: e.QUOTE_STRING_MODE.contains.concat(a)
|
|
7321
7321
|
}), g = {
|
|
7322
7322
|
begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/,
|
|
7323
7323
|
end: /[ \t]*(\w+)\b/,
|
|
7324
|
-
contains: e.QUOTE_STRING_MODE.contains.concat(
|
|
7324
|
+
contains: e.QUOTE_STRING_MODE.contains.concat(a),
|
|
7325
7325
|
"on:begin": (W, B) => {
|
|
7326
7326
|
B.data._beginMatch = W[1] || W[2];
|
|
7327
7327
|
},
|
|
@@ -7638,7 +7638,7 @@ function Kr() {
|
|
|
7638
7638
|
keywords: M,
|
|
7639
7639
|
contains: [
|
|
7640
7640
|
I,
|
|
7641
|
-
|
|
7641
|
+
i,
|
|
7642
7642
|
T,
|
|
7643
7643
|
e.C_BLOCK_COMMENT_MODE,
|
|
7644
7644
|
m,
|
|
@@ -7738,7 +7738,7 @@ function Kr() {
|
|
|
7738
7738
|
scope: "variable.language",
|
|
7739
7739
|
match: /\$this\b/
|
|
7740
7740
|
},
|
|
7741
|
-
|
|
7741
|
+
i,
|
|
7742
7742
|
F,
|
|
7743
7743
|
T,
|
|
7744
7744
|
{
|
|
@@ -7777,7 +7777,7 @@ function Kr() {
|
|
|
7777
7777
|
keywords: M,
|
|
7778
7778
|
contains: [
|
|
7779
7779
|
"self",
|
|
7780
|
-
|
|
7780
|
+
i,
|
|
7781
7781
|
T,
|
|
7782
7782
|
e.C_BLOCK_COMMENT_MODE,
|
|
7783
7783
|
m,
|
|
@@ -7908,7 +7908,7 @@ function Hr() {
|
|
|
7908
7908
|
if (jn) return sn;
|
|
7909
7909
|
jn = 1;
|
|
7910
7910
|
function n(e) {
|
|
7911
|
-
const t = e.regex,
|
|
7911
|
+
const t = e.regex, s = new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*", "u"), l = [
|
|
7912
7912
|
"and",
|
|
7913
7913
|
"as",
|
|
7914
7914
|
"assert",
|
|
@@ -7943,7 +7943,7 @@ function Hr() {
|
|
|
7943
7943
|
"while",
|
|
7944
7944
|
"with",
|
|
7945
7945
|
"yield"
|
|
7946
|
-
],
|
|
7946
|
+
], a = {
|
|
7947
7947
|
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
7948
7948
|
keyword: l,
|
|
7949
7949
|
built_in: [
|
|
@@ -8047,7 +8047,7 @@ function Hr() {
|
|
|
8047
8047
|
className: "subst",
|
|
8048
8048
|
begin: /\{/,
|
|
8049
8049
|
end: /\}/,
|
|
8050
|
-
keywords:
|
|
8050
|
+
keywords: a,
|
|
8051
8051
|
illegal: /#/
|
|
8052
8052
|
}, g = {
|
|
8053
8053
|
begin: /\{\{/,
|
|
@@ -8181,7 +8181,7 @@ function Hr() {
|
|
|
8181
8181
|
className: "comment",
|
|
8182
8182
|
begin: t.lookahead(/# type:/),
|
|
8183
8183
|
end: /$/,
|
|
8184
|
-
keywords:
|
|
8184
|
+
keywords: a,
|
|
8185
8185
|
contains: [
|
|
8186
8186
|
{
|
|
8187
8187
|
// prevent keywords from coloring `type`
|
|
@@ -8208,7 +8208,7 @@ function Hr() {
|
|
|
8208
8208
|
end: /\)/,
|
|
8209
8209
|
excludeBegin: !0,
|
|
8210
8210
|
excludeEnd: !0,
|
|
8211
|
-
keywords:
|
|
8211
|
+
keywords: a,
|
|
8212
8212
|
contains: [
|
|
8213
8213
|
"self",
|
|
8214
8214
|
d,
|
|
@@ -8231,7 +8231,7 @@ function Hr() {
|
|
|
8231
8231
|
"ipython"
|
|
8232
8232
|
],
|
|
8233
8233
|
unicodeRegex: !0,
|
|
8234
|
-
keywords:
|
|
8234
|
+
keywords: a,
|
|
8235
8235
|
illegal: /(<\/|\?)|=>/,
|
|
8236
8236
|
contains: [
|
|
8237
8237
|
d,
|
|
@@ -8253,7 +8253,7 @@ function Hr() {
|
|
|
8253
8253
|
match: [
|
|
8254
8254
|
/\bdef/,
|
|
8255
8255
|
/\s+/,
|
|
8256
|
-
|
|
8256
|
+
s
|
|
8257
8257
|
],
|
|
8258
8258
|
scope: {
|
|
8259
8259
|
1: "keyword",
|
|
@@ -8267,10 +8267,10 @@ function Hr() {
|
|
|
8267
8267
|
match: [
|
|
8268
8268
|
/\bclass/,
|
|
8269
8269
|
/\s+/,
|
|
8270
|
-
|
|
8270
|
+
s,
|
|
8271
8271
|
/\s*/,
|
|
8272
8272
|
/\(\s*/,
|
|
8273
|
-
|
|
8273
|
+
s,
|
|
8274
8274
|
/\s*\)/
|
|
8275
8275
|
]
|
|
8276
8276
|
},
|
|
@@ -8278,7 +8278,7 @@ function Hr() {
|
|
|
8278
8278
|
match: [
|
|
8279
8279
|
/\bclass/,
|
|
8280
8280
|
/\s+/,
|
|
8281
|
-
|
|
8281
|
+
s
|
|
8282
8282
|
]
|
|
8283
8283
|
}
|
|
8284
8284
|
],
|
|
@@ -8337,14 +8337,14 @@ function Yr() {
|
|
|
8337
8337
|
if (nt) return cn;
|
|
8338
8338
|
nt = 1;
|
|
8339
8339
|
function n(e) {
|
|
8340
|
-
const t = e.regex,
|
|
8340
|
+
const t = e.regex, s = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, l = t.either(
|
|
8341
8341
|
// Special case: only hexadecimal binary powers can contain fractions
|
|
8342
8342
|
/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,
|
|
8343
8343
|
// Hexadecimal numbers without fraction and optional binary power
|
|
8344
8344
|
/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,
|
|
8345
8345
|
// Decimal numbers
|
|
8346
8346
|
/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/
|
|
8347
|
-
), o = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,
|
|
8347
|
+
), o = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/, i = t.either(
|
|
8348
8348
|
/[()]/,
|
|
8349
8349
|
/[{}]/,
|
|
8350
8350
|
/\[\[/,
|
|
@@ -8355,7 +8355,7 @@ function Yr() {
|
|
|
8355
8355
|
return {
|
|
8356
8356
|
name: "R",
|
|
8357
8357
|
keywords: {
|
|
8358
|
-
$pattern:
|
|
8358
|
+
$pattern: s,
|
|
8359
8359
|
keyword: "function if in break next repeat else for while",
|
|
8360
8360
|
literal: "NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",
|
|
8361
8361
|
built_in: (
|
|
@@ -8397,7 +8397,7 @@ function Yr() {
|
|
|
8397
8397
|
{
|
|
8398
8398
|
scope: "variable",
|
|
8399
8399
|
variants: [
|
|
8400
|
-
{ match:
|
|
8400
|
+
{ match: s },
|
|
8401
8401
|
{ match: /`(?:\\.|[^`\\])+`/ }
|
|
8402
8402
|
],
|
|
8403
8403
|
endsParent: !0
|
|
@@ -8493,7 +8493,7 @@ function Yr() {
|
|
|
8493
8493
|
2: "number"
|
|
8494
8494
|
},
|
|
8495
8495
|
match: [
|
|
8496
|
-
|
|
8496
|
+
i,
|
|
8497
8497
|
l
|
|
8498
8498
|
]
|
|
8499
8499
|
},
|
|
@@ -8512,7 +8512,7 @@ function Yr() {
|
|
|
8512
8512
|
// Relevance boost for the most common assignment form.
|
|
8513
8513
|
scope: { 3: "operator" },
|
|
8514
8514
|
match: [
|
|
8515
|
-
|
|
8515
|
+
s,
|
|
8516
8516
|
/\s+/,
|
|
8517
8517
|
/<-/,
|
|
8518
8518
|
/\s+/
|
|
@@ -8529,7 +8529,7 @@ function Yr() {
|
|
|
8529
8529
|
{
|
|
8530
8530
|
scope: "punctuation",
|
|
8531
8531
|
relevance: 0,
|
|
8532
|
-
match:
|
|
8532
|
+
match: i
|
|
8533
8533
|
},
|
|
8534
8534
|
{
|
|
8535
8535
|
// Escaped identifier
|
|
@@ -8547,7 +8547,7 @@ function Zr() {
|
|
|
8547
8547
|
if (tt) return ln;
|
|
8548
8548
|
tt = 1;
|
|
8549
8549
|
function n(e) {
|
|
8550
|
-
const t = e.regex,
|
|
8550
|
+
const t = e.regex, s = {
|
|
8551
8551
|
className: "title.function.invoke",
|
|
8552
8552
|
relevance: 0,
|
|
8553
8553
|
begin: t.concat(
|
|
@@ -8608,7 +8608,7 @@ function Zr() {
|
|
|
8608
8608
|
"where",
|
|
8609
8609
|
"while",
|
|
8610
8610
|
"yield"
|
|
8611
|
-
],
|
|
8611
|
+
], i = [
|
|
8612
8612
|
"true",
|
|
8613
8613
|
"false",
|
|
8614
8614
|
"Some",
|
|
@@ -8682,7 +8682,7 @@ function Zr() {
|
|
|
8682
8682
|
"macro_rules!",
|
|
8683
8683
|
"assert_ne!",
|
|
8684
8684
|
"debug_assert_ne!"
|
|
8685
|
-
],
|
|
8685
|
+
], a = [
|
|
8686
8686
|
"i8",
|
|
8687
8687
|
"i16",
|
|
8688
8688
|
"i32",
|
|
@@ -8711,9 +8711,9 @@ function Zr() {
|
|
|
8711
8711
|
aliases: ["rs"],
|
|
8712
8712
|
keywords: {
|
|
8713
8713
|
$pattern: e.IDENT_RE + "!?",
|
|
8714
|
-
type:
|
|
8714
|
+
type: a,
|
|
8715
8715
|
keyword: o,
|
|
8716
|
-
literal:
|
|
8716
|
+
literal: i,
|
|
8717
8717
|
built_in: r
|
|
8718
8718
|
},
|
|
8719
8719
|
illegal: "</",
|
|
@@ -8823,14 +8823,14 @@ function Zr() {
|
|
|
8823
8823
|
keywords: {
|
|
8824
8824
|
keyword: "Self",
|
|
8825
8825
|
built_in: r,
|
|
8826
|
-
type:
|
|
8826
|
+
type: a
|
|
8827
8827
|
}
|
|
8828
8828
|
},
|
|
8829
8829
|
{
|
|
8830
8830
|
className: "punctuation",
|
|
8831
8831
|
begin: "->"
|
|
8832
8832
|
},
|
|
8833
|
-
|
|
8833
|
+
s
|
|
8834
8834
|
]
|
|
8835
8835
|
};
|
|
8836
8836
|
}
|
|
@@ -8981,7 +8981,7 @@ function Xr() {
|
|
|
8981
8981
|
"max-width",
|
|
8982
8982
|
"min-height",
|
|
8983
8983
|
"max-height"
|
|
8984
|
-
],
|
|
8984
|
+
], s = [
|
|
8985
8985
|
"active",
|
|
8986
8986
|
"any-link",
|
|
8987
8987
|
"blank",
|
|
@@ -9433,8 +9433,8 @@ function Xr() {
|
|
|
9433
9433
|
// reverse makes sure longer attributes `font-weight` are matched fully
|
|
9434
9434
|
// instead of getting false positives on say `font`
|
|
9435
9435
|
].reverse();
|
|
9436
|
-
function
|
|
9437
|
-
const
|
|
9436
|
+
function i(r) {
|
|
9437
|
+
const a = n(r), d = l, c = s, g = "@[a-z-]+", b = "and or not only", m = {
|
|
9438
9438
|
className: "variable",
|
|
9439
9439
|
begin: "(\\$" + "[a-zA-Z-][a-zA-Z0-9_-]*" + ")\\b",
|
|
9440
9440
|
relevance: 0
|
|
@@ -9448,7 +9448,7 @@ function Xr() {
|
|
|
9448
9448
|
r.C_BLOCK_COMMENT_MODE,
|
|
9449
9449
|
// to recognize keyframe 40% etc which are outside the scope of our
|
|
9450
9450
|
// attribute value mode
|
|
9451
|
-
|
|
9451
|
+
a.CSS_NUMBER_MODE,
|
|
9452
9452
|
{
|
|
9453
9453
|
className: "selector-id",
|
|
9454
9454
|
begin: "#[A-Za-z0-9_-]+",
|
|
@@ -9459,7 +9459,7 @@ function Xr() {
|
|
|
9459
9459
|
begin: "\\.[A-Za-z0-9_-]+",
|
|
9460
9460
|
relevance: 0
|
|
9461
9461
|
},
|
|
9462
|
-
|
|
9462
|
+
a.ATTRIBUTE_SELECTOR_MODE,
|
|
9463
9463
|
{
|
|
9464
9464
|
className: "selector-tag",
|
|
9465
9465
|
begin: "\\b(" + e.join("|") + ")\\b",
|
|
@@ -9479,9 +9479,9 @@ function Xr() {
|
|
|
9479
9479
|
// pseudo-selector params
|
|
9480
9480
|
begin: /\(/,
|
|
9481
9481
|
end: /\)/,
|
|
9482
|
-
contains: [
|
|
9482
|
+
contains: [a.CSS_NUMBER_MODE]
|
|
9483
9483
|
},
|
|
9484
|
-
|
|
9484
|
+
a.CSS_VARIABLE,
|
|
9485
9485
|
{
|
|
9486
9486
|
className: "attribute",
|
|
9487
9487
|
begin: "\\b(" + o.join("|") + ")\\b"
|
|
@@ -9492,14 +9492,14 @@ function Xr() {
|
|
|
9492
9492
|
end: /[;}{]/,
|
|
9493
9493
|
relevance: 0,
|
|
9494
9494
|
contains: [
|
|
9495
|
-
|
|
9495
|
+
a.BLOCK_COMMENT,
|
|
9496
9496
|
m,
|
|
9497
|
-
|
|
9498
|
-
|
|
9497
|
+
a.HEXCOLOR,
|
|
9498
|
+
a.CSS_NUMBER_MODE,
|
|
9499
9499
|
r.QUOTE_STRING_MODE,
|
|
9500
9500
|
r.APOS_STRING_MODE,
|
|
9501
|
-
|
|
9502
|
-
|
|
9501
|
+
a.IMPORTANT,
|
|
9502
|
+
a.FUNCTION_DISPATCH
|
|
9503
9503
|
]
|
|
9504
9504
|
},
|
|
9505
9505
|
// matching these here allows us to treat them more like regular CSS
|
|
@@ -9533,15 +9533,15 @@ function Xr() {
|
|
|
9533
9533
|
m,
|
|
9534
9534
|
r.QUOTE_STRING_MODE,
|
|
9535
9535
|
r.APOS_STRING_MODE,
|
|
9536
|
-
|
|
9537
|
-
|
|
9536
|
+
a.HEXCOLOR,
|
|
9537
|
+
a.CSS_NUMBER_MODE
|
|
9538
9538
|
]
|
|
9539
9539
|
},
|
|
9540
|
-
|
|
9540
|
+
a.FUNCTION_DISPATCH
|
|
9541
9541
|
]
|
|
9542
9542
|
};
|
|
9543
9543
|
}
|
|
9544
|
-
return dn =
|
|
9544
|
+
return dn = i, dn;
|
|
9545
9545
|
}
|
|
9546
9546
|
var un, at;
|
|
9547
9547
|
function Vr() {
|
|
@@ -9576,7 +9576,7 @@ function Qr() {
|
|
|
9576
9576
|
if (it) return gn;
|
|
9577
9577
|
it = 1;
|
|
9578
9578
|
function n(e) {
|
|
9579
|
-
const t = e.regex,
|
|
9579
|
+
const t = e.regex, s = e.COMMENT("--", "$"), l = {
|
|
9580
9580
|
className: "string",
|
|
9581
9581
|
variants: [
|
|
9582
9582
|
{
|
|
@@ -9589,7 +9589,7 @@ function Qr() {
|
|
|
9589
9589
|
begin: /"/,
|
|
9590
9590
|
end: /"/,
|
|
9591
9591
|
contains: [{ begin: /""/ }]
|
|
9592
|
-
},
|
|
9592
|
+
}, i = [
|
|
9593
9593
|
"true",
|
|
9594
9594
|
"false",
|
|
9595
9595
|
// Not sure it's correct to call NULL literal, and clauses like IS [NOT] NULL look strange that way.
|
|
@@ -9600,7 +9600,7 @@ function Qr() {
|
|
|
9600
9600
|
"large object",
|
|
9601
9601
|
"with timezone",
|
|
9602
9602
|
"without timezone"
|
|
9603
|
-
],
|
|
9603
|
+
], a = [
|
|
9604
9604
|
"bigint",
|
|
9605
9605
|
"binary",
|
|
9606
9606
|
"blob",
|
|
@@ -10154,8 +10154,8 @@ function Qr() {
|
|
|
10154
10154
|
keywords: {
|
|
10155
10155
|
$pattern: /\b[\w\.]+/,
|
|
10156
10156
|
keyword: C(E, { when: (M) => M.length < 3 }),
|
|
10157
|
-
literal:
|
|
10158
|
-
type:
|
|
10157
|
+
literal: i,
|
|
10158
|
+
type: a,
|
|
10159
10159
|
built_in: b
|
|
10160
10160
|
},
|
|
10161
10161
|
contains: [
|
|
@@ -10165,8 +10165,8 @@ function Qr() {
|
|
|
10165
10165
|
keywords: {
|
|
10166
10166
|
$pattern: /[\w\.]+/,
|
|
10167
10167
|
keyword: E.concat(p),
|
|
10168
|
-
literal:
|
|
10169
|
-
type:
|
|
10168
|
+
literal: i,
|
|
10169
|
+
type: a
|
|
10170
10170
|
}
|
|
10171
10171
|
},
|
|
10172
10172
|
{
|
|
@@ -10179,7 +10179,7 @@ function Qr() {
|
|
|
10179
10179
|
o,
|
|
10180
10180
|
e.C_NUMBER_MODE,
|
|
10181
10181
|
e.C_BLOCK_COMMENT_MODE,
|
|
10182
|
-
|
|
10182
|
+
s,
|
|
10183
10183
|
h
|
|
10184
10184
|
]
|
|
10185
10185
|
};
|
|
@@ -10199,18 +10199,18 @@ function Jr() {
|
|
|
10199
10199
|
function t(...T) {
|
|
10200
10200
|
return T.map((H) => n(H)).join("");
|
|
10201
10201
|
}
|
|
10202
|
-
function
|
|
10202
|
+
function s(T) {
|
|
10203
10203
|
const I = T[T.length - 1];
|
|
10204
10204
|
return typeof I == "object" && I.constructor === Object ? (T.splice(T.length - 1, 1), I) : {};
|
|
10205
10205
|
}
|
|
10206
10206
|
function l(...T) {
|
|
10207
|
-
return "(" + (
|
|
10207
|
+
return "(" + (s(T).capture ? "" : "?:") + T.map((F) => n(F)).join("|") + ")";
|
|
10208
10208
|
}
|
|
10209
10209
|
const o = (T) => t(
|
|
10210
10210
|
/\b/,
|
|
10211
10211
|
T,
|
|
10212
10212
|
/\w$/.test(T) ? /\b/ : /\B/
|
|
10213
|
-
),
|
|
10213
|
+
), i = [
|
|
10214
10214
|
"Protocol",
|
|
10215
10215
|
// contextual
|
|
10216
10216
|
"Type"
|
|
@@ -10218,7 +10218,7 @@ function Jr() {
|
|
|
10218
10218
|
].map(o), r = [
|
|
10219
10219
|
"init",
|
|
10220
10220
|
"self"
|
|
10221
|
-
].map(o),
|
|
10221
|
+
].map(o), a = [
|
|
10222
10222
|
"Any",
|
|
10223
10223
|
"Self"
|
|
10224
10224
|
], d = [
|
|
@@ -10535,14 +10535,14 @@ function Jr() {
|
|
|
10535
10535
|
], J = {
|
|
10536
10536
|
match: [
|
|
10537
10537
|
/\./,
|
|
10538
|
-
l(...
|
|
10538
|
+
l(...i, ...r)
|
|
10539
10539
|
],
|
|
10540
10540
|
className: { 2: "keyword" }
|
|
10541
10541
|
}, ae = {
|
|
10542
10542
|
// Consume .keyword to prevent highlighting properties and methods as keywords.
|
|
10543
10543
|
match: t(/\./, l(...d)),
|
|
10544
10544
|
relevance: 0
|
|
10545
|
-
}, W = d.filter(($) => typeof $ == "string").concat(["_|0"]), B = d.filter(($) => typeof $ != "string").concat(
|
|
10545
|
+
}, W = d.filter(($) => typeof $ == "string").concat(["_|0"]), B = d.filter(($) => typeof $ != "string").concat(a).map(o), V = { variants: [
|
|
10546
10546
|
{
|
|
10547
10547
|
className: "keyword",
|
|
10548
10548
|
match: l(...B, ...r)
|
|
@@ -10950,7 +10950,7 @@ function jr() {
|
|
|
10950
10950
|
if (ot) return pn;
|
|
10951
10951
|
ot = 1;
|
|
10952
10952
|
function n(e) {
|
|
10953
|
-
const t = "true false yes no null",
|
|
10953
|
+
const t = "true false yes no null", s = "[\\w#;/?:@&=+$,.~*'()[\\]]+", l = {
|
|
10954
10954
|
className: "attr",
|
|
10955
10955
|
variants: [
|
|
10956
10956
|
{ begin: "\\w[\\w :\\/.-]*:(?=[ ]|$)" },
|
|
@@ -10977,7 +10977,7 @@ function jr() {
|
|
|
10977
10977
|
end: /\}/
|
|
10978
10978
|
}
|
|
10979
10979
|
]
|
|
10980
|
-
},
|
|
10980
|
+
}, i = {
|
|
10981
10981
|
className: "string",
|
|
10982
10982
|
relevance: 0,
|
|
10983
10983
|
variants: [
|
|
@@ -10995,7 +10995,7 @@ function jr() {
|
|
|
10995
10995
|
e.BACKSLASH_ESCAPE,
|
|
10996
10996
|
o
|
|
10997
10997
|
]
|
|
10998
|
-
}, r = e.inherit(
|
|
10998
|
+
}, r = e.inherit(i, { variants: [
|
|
10999
10999
|
{
|
|
11000
11000
|
begin: /'/,
|
|
11001
11001
|
end: /'/
|
|
@@ -11054,23 +11054,23 @@ function jr() {
|
|
|
11054
11054
|
{
|
|
11055
11055
|
// named tags
|
|
11056
11056
|
className: "type",
|
|
11057
|
-
begin: "!\\w+!" +
|
|
11057
|
+
begin: "!\\w+!" + s
|
|
11058
11058
|
},
|
|
11059
11059
|
// https://yaml.org/spec/1.2/spec.html#id2784064
|
|
11060
11060
|
{
|
|
11061
11061
|
// verbatim tags
|
|
11062
11062
|
className: "type",
|
|
11063
|
-
begin: "!<" +
|
|
11063
|
+
begin: "!<" + s + ">"
|
|
11064
11064
|
},
|
|
11065
11065
|
{
|
|
11066
11066
|
// primary tags
|
|
11067
11067
|
className: "type",
|
|
11068
|
-
begin: "!" +
|
|
11068
|
+
begin: "!" + s
|
|
11069
11069
|
},
|
|
11070
11070
|
{
|
|
11071
11071
|
// secondary tags
|
|
11072
11072
|
className: "type",
|
|
11073
|
-
begin: "!!" +
|
|
11073
|
+
begin: "!!" + s
|
|
11074
11074
|
},
|
|
11075
11075
|
{
|
|
11076
11076
|
// fragment id &ref
|
|
@@ -11104,7 +11104,7 @@ function jr() {
|
|
|
11104
11104
|
},
|
|
11105
11105
|
m,
|
|
11106
11106
|
E,
|
|
11107
|
-
|
|
11107
|
+
i
|
|
11108
11108
|
], h = [...N];
|
|
11109
11109
|
return h.pop(), h.push(r), p.contains = h, {
|
|
11110
11110
|
name: "YAML",
|
|
@@ -11169,7 +11169,7 @@ function ea() {
|
|
|
11169
11169
|
"undefined",
|
|
11170
11170
|
"NaN",
|
|
11171
11171
|
"Infinity"
|
|
11172
|
-
],
|
|
11172
|
+
], s = [
|
|
11173
11173
|
// Fundamental objects
|
|
11174
11174
|
"Object",
|
|
11175
11175
|
"Function",
|
|
@@ -11246,7 +11246,7 @@ function ea() {
|
|
|
11246
11246
|
"encodeURIComponent",
|
|
11247
11247
|
"escape",
|
|
11248
11248
|
"unescape"
|
|
11249
|
-
],
|
|
11249
|
+
], i = [
|
|
11250
11250
|
"arguments",
|
|
11251
11251
|
"this",
|
|
11252
11252
|
"super",
|
|
@@ -11260,10 +11260,10 @@ function ea() {
|
|
|
11260
11260
|
// Node.js
|
|
11261
11261
|
], r = [].concat(
|
|
11262
11262
|
o,
|
|
11263
|
-
|
|
11263
|
+
s,
|
|
11264
11264
|
l
|
|
11265
11265
|
);
|
|
11266
|
-
function
|
|
11266
|
+
function a(c) {
|
|
11267
11267
|
const g = c.regex, b = (K, { after: Q }) => {
|
|
11268
11268
|
const j = "</" + K[0].slice(1);
|
|
11269
11269
|
return K.input.indexOf(j, Q) !== -1;
|
|
@@ -11307,7 +11307,7 @@ function ea() {
|
|
|
11307
11307
|
keyword: e,
|
|
11308
11308
|
literal: t,
|
|
11309
11309
|
built_in: r,
|
|
11310
|
-
"variable.language":
|
|
11310
|
+
"variable.language": i
|
|
11311
11311
|
}, O = "[0-9](_?[0-9])*", C = `\\.(${O})`, M = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", A = {
|
|
11312
11312
|
className: "number",
|
|
11313
11313
|
variants: [
|
|
@@ -11514,7 +11514,7 @@ function ea() {
|
|
|
11514
11514
|
keywords: {
|
|
11515
11515
|
_: [
|
|
11516
11516
|
// se we still get relevance credit for JS library classes
|
|
11517
|
-
...
|
|
11517
|
+
...s,
|
|
11518
11518
|
...l
|
|
11519
11519
|
]
|
|
11520
11520
|
}
|
|
@@ -11771,7 +11771,7 @@ function ea() {
|
|
|
11771
11771
|
};
|
|
11772
11772
|
}
|
|
11773
11773
|
function d(c) {
|
|
11774
|
-
const g =
|
|
11774
|
+
const g = a(c), b = n, p = [
|
|
11775
11775
|
"any",
|
|
11776
11776
|
"void",
|
|
11777
11777
|
"number",
|
|
@@ -11818,7 +11818,7 @@ function ea() {
|
|
|
11818
11818
|
keyword: e.concat(h),
|
|
11819
11819
|
literal: t,
|
|
11820
11820
|
built_in: r.concat(p),
|
|
11821
|
-
"variable.language":
|
|
11821
|
+
"variable.language": i
|
|
11822
11822
|
}, C = {
|
|
11823
11823
|
className: "meta",
|
|
11824
11824
|
begin: "@" + b
|
|
@@ -11851,7 +11851,7 @@ function na() {
|
|
|
11851
11851
|
if (lt) return mn;
|
|
11852
11852
|
lt = 1;
|
|
11853
11853
|
function n(e) {
|
|
11854
|
-
const t = e.regex,
|
|
11854
|
+
const t = e.regex, s = {
|
|
11855
11855
|
className: "string",
|
|
11856
11856
|
begin: /"(""|[^/n])"C\b/
|
|
11857
11857
|
}, l = {
|
|
@@ -11865,16 +11865,16 @@ function na() {
|
|
|
11865
11865
|
begin: /""/
|
|
11866
11866
|
}
|
|
11867
11867
|
]
|
|
11868
|
-
}, o = /\d{1,2}\/\d{1,2}\/\d{4}/,
|
|
11868
|
+
}, o = /\d{1,2}\/\d{1,2}\/\d{4}/, i = /\d{4}-\d{1,2}-\d{1,2}/, r = /(\d|1[012])(:\d+){0,2} *(AM|PM)/, a = /\d{1,2}(:\d{1,2}){1,2}/, d = {
|
|
11869
11869
|
className: "literal",
|
|
11870
11870
|
variants: [
|
|
11871
11871
|
{
|
|
11872
11872
|
// #YYYY-MM-DD# (ISO-Date) or #M/D/YYYY# (US-Date)
|
|
11873
|
-
begin: t.concat(/# */, t.either(
|
|
11873
|
+
begin: t.concat(/# */, t.either(i, o), / *#/)
|
|
11874
11874
|
},
|
|
11875
11875
|
{
|
|
11876
11876
|
// #H:mm[:ss]# (24h Time)
|
|
11877
|
-
begin: t.concat(/# */,
|
|
11877
|
+
begin: t.concat(/# */, a, / *#/)
|
|
11878
11878
|
},
|
|
11879
11879
|
{
|
|
11880
11880
|
// #h[:mm[:ss]] A# (12h Time)
|
|
@@ -11884,9 +11884,9 @@ function na() {
|
|
|
11884
11884
|
// date plus time
|
|
11885
11885
|
begin: t.concat(
|
|
11886
11886
|
/# */,
|
|
11887
|
-
t.either(
|
|
11887
|
+
t.either(i, o),
|
|
11888
11888
|
/ +/,
|
|
11889
|
-
t.either(r,
|
|
11889
|
+
t.either(r, a),
|
|
11890
11890
|
/ *#/
|
|
11891
11891
|
)
|
|
11892
11892
|
}
|
|
@@ -11951,7 +11951,7 @@ function na() {
|
|
|
11951
11951
|
},
|
|
11952
11952
|
illegal: "//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",
|
|
11953
11953
|
contains: [
|
|
11954
|
-
|
|
11954
|
+
s,
|
|
11955
11955
|
l,
|
|
11956
11956
|
d,
|
|
11957
11957
|
c,
|
|
@@ -11979,7 +11979,7 @@ function ta() {
|
|
|
11979
11979
|
e.regex;
|
|
11980
11980
|
const t = e.COMMENT(/\(;/, /;\)/);
|
|
11981
11981
|
t.contains.push("self");
|
|
11982
|
-
const
|
|
11982
|
+
const s = e.COMMENT(/;;/, /$/), l = [
|
|
11983
11983
|
"anyfunc",
|
|
11984
11984
|
"block",
|
|
11985
11985
|
"br",
|
|
@@ -12035,14 +12035,14 @@ function ta() {
|
|
|
12035
12035
|
1: "keyword",
|
|
12036
12036
|
3: "title.function"
|
|
12037
12037
|
}
|
|
12038
|
-
},
|
|
12038
|
+
}, i = {
|
|
12039
12039
|
className: "variable",
|
|
12040
12040
|
begin: /\$[\w_]+/
|
|
12041
12041
|
}, r = {
|
|
12042
12042
|
match: /(\((?!;)|\))+/,
|
|
12043
12043
|
className: "punctuation",
|
|
12044
12044
|
relevance: 0
|
|
12045
|
-
},
|
|
12045
|
+
}, a = {
|
|
12046
12046
|
className: "number",
|
|
12047
12047
|
relevance: 0,
|
|
12048
12048
|
// borrowed from Prism, TODO: split out into variants
|
|
@@ -12063,7 +12063,7 @@ function ta() {
|
|
|
12063
12063
|
keyword: l
|
|
12064
12064
|
},
|
|
12065
12065
|
contains: [
|
|
12066
|
-
|
|
12066
|
+
s,
|
|
12067
12067
|
t,
|
|
12068
12068
|
{
|
|
12069
12069
|
match: [
|
|
@@ -12076,13 +12076,13 @@ function ta() {
|
|
|
12076
12076
|
3: "operator"
|
|
12077
12077
|
}
|
|
12078
12078
|
},
|
|
12079
|
-
|
|
12079
|
+
i,
|
|
12080
12080
|
r,
|
|
12081
12081
|
o,
|
|
12082
12082
|
e.QUOTE_STRING_MODE,
|
|
12083
12083
|
d,
|
|
12084
12084
|
c,
|
|
12085
|
-
|
|
12085
|
+
a
|
|
12086
12086
|
]
|
|
12087
12087
|
};
|
|
12088
12088
|
}
|
|
@@ -12143,11 +12143,11 @@ const Ae = /* @__PURE__ */ Rt(ra), aa = "_tableWrapper_15th0_1", ia = "_hljs_15t
|
|
|
12143
12143
|
typographer: !0,
|
|
12144
12144
|
xhtmlOut: !0,
|
|
12145
12145
|
highlight(n, e) {
|
|
12146
|
-
const t = (
|
|
12146
|
+
const t = (s) => s.trim().split(/\r?\n/).map((o, i) => `<div class="${fe.hljsLine}"><span class="${fe.hljsLineNumber}">${i + 1}</span><span class="${fe.hljsLineContent}">${o}</span></div>`).join(`
|
|
12147
12147
|
`);
|
|
12148
12148
|
try {
|
|
12149
|
-
const
|
|
12150
|
-
return `<pre class="${fe.hljs}" tabindex="0"><span class="${fe.hljsLanguage}">${l}</span><code>${t(
|
|
12149
|
+
const s = e && Ae.getLanguage(e) ? Ae.highlight(e, n).value : Ae.highlightAuto(n).value, l = e && Ae.getLanguage(e) ? e : "auto";
|
|
12150
|
+
return `<pre class="${fe.hljs}" tabindex="0"><span class="${fe.hljsLanguage}">${l}</span><code>${t(s)}</code></pre>`;
|
|
12151
12151
|
} catch {
|
|
12152
12152
|
}
|
|
12153
12153
|
return "";
|
|
@@ -12158,10 +12158,8 @@ Ce.renderer.rules.table_close = () => "</table></div>";
|
|
|
12158
12158
|
Ce.renderer.rules.link_open = (n, e) => {
|
|
12159
12159
|
const {
|
|
12160
12160
|
href: t
|
|
12161
|
-
} = n[e]
|
|
12162
|
-
|
|
12163
|
-
} = new URL(t);
|
|
12164
|
-
return a.endsWith(".box.com") || a.endsWith(".box.net") ? `<a href="${t}" target="_blank">` : (Ce.renderer.rules.link_close = () => ` (${t})`, "");
|
|
12161
|
+
} = n[e];
|
|
12162
|
+
return Ce.renderer.rules.link_close = () => ` (${t})`, "";
|
|
12165
12163
|
};
|
|
12166
12164
|
export {
|
|
12167
12165
|
Ce as default
|