@itshixun/qckeditor-vue2 1.2.4 → 1.2.5
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/index.css +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +814 -784
- package/dist/src/components/CKEditor.d.ts.map +1 -1
- package/dist/src/components/QCKContent.d.ts +22 -0
- package/dist/src/components/QCKContent.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -211,64 +211,75 @@ const Ms = fr({
|
|
|
211
211
|
), d = Ae(r.modelValue || r.value);
|
|
212
212
|
Ot(
|
|
213
213
|
() => r.modelValue,
|
|
214
|
-
(
|
|
215
|
-
if (
|
|
216
|
-
d.value =
|
|
217
|
-
const
|
|
218
|
-
i.value &&
|
|
214
|
+
(b) => {
|
|
215
|
+
if (b !== void 0 && b !== d.value) {
|
|
216
|
+
d.value = b;
|
|
217
|
+
const C = r.dataNormalizer;
|
|
218
|
+
i.value && b !== o.value && i.value.data.set(C(b));
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
), Ot(
|
|
222
222
|
() => r.value,
|
|
223
|
-
(
|
|
224
|
-
if (
|
|
225
|
-
d.value =
|
|
226
|
-
const
|
|
227
|
-
i.value &&
|
|
223
|
+
(b) => {
|
|
224
|
+
if (b !== void 0 && b !== d.value) {
|
|
225
|
+
d.value = b;
|
|
226
|
+
const C = r.dataNormalizer;
|
|
227
|
+
i.value && b !== o.value && i.value.data.set(C(b));
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
), Ot(
|
|
231
231
|
() => r.disabled,
|
|
232
|
-
(
|
|
233
|
-
i.value && (
|
|
232
|
+
(b) => {
|
|
233
|
+
i.value && (b ? i.value.enableReadOnlyMode(t) : i.value.disableReadOnlyMode(t));
|
|
234
234
|
}
|
|
235
235
|
);
|
|
236
236
|
function u() {
|
|
237
|
-
const
|
|
238
|
-
if (!
|
|
237
|
+
const b = window.CKEDITOR_VERSION;
|
|
238
|
+
if (!b) {
|
|
239
239
|
console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
|
-
const [
|
|
243
|
-
|
|
242
|
+
const [C] = b.split(".").map(Number);
|
|
243
|
+
C >= 42 || b.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
244
244
|
}
|
|
245
|
-
function p(
|
|
246
|
-
const
|
|
247
|
-
(
|
|
245
|
+
function p(b) {
|
|
246
|
+
const C = tp(
|
|
247
|
+
(O) => {
|
|
248
248
|
if (r.disableTwoWayDataBinding)
|
|
249
249
|
return;
|
|
250
|
-
const
|
|
251
|
-
d.value =
|
|
250
|
+
const y = o.value = b.data.get();
|
|
251
|
+
d.value = y, e("update:modelValue", y), e("input", y, O, b);
|
|
252
252
|
},
|
|
253
253
|
300,
|
|
254
254
|
{ leading: !0 }
|
|
255
255
|
);
|
|
256
|
-
|
|
257
|
-
e("focus",
|
|
258
|
-
}),
|
|
259
|
-
e("blur",
|
|
256
|
+
b.model.document.on("change:data", C), b.editing.view.document.on("focus", (O) => {
|
|
257
|
+
e("focus", O, b);
|
|
258
|
+
}), b.editing.view.document.on("blur", (O) => {
|
|
259
|
+
e("blur", O, b);
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
|
+
function g(b) {
|
|
263
|
+
var I;
|
|
264
|
+
const C = i.value;
|
|
265
|
+
if (!C || r.disableTwoWayDataBinding)
|
|
266
|
+
return;
|
|
267
|
+
const O = b.target;
|
|
268
|
+
if (O && ((I = a.value) != null && I.contains(O) || O.closest(".ck, .ck-body-wrapper, .ck-balloon-panel")))
|
|
269
|
+
return;
|
|
270
|
+
const y = C.data.get();
|
|
271
|
+
y !== o.value && (o.value = y, d.value = y, e("update:modelValue", y), e("input", y, b, C));
|
|
272
|
+
}
|
|
262
273
|
u();
|
|
263
|
-
let
|
|
264
|
-
function
|
|
274
|
+
let S = 0;
|
|
275
|
+
function f() {
|
|
265
276
|
s.value && (s.value.destroy(), s.value = void 0), i.value && (i.value.destroy(), i.value = void 0);
|
|
266
277
|
}
|
|
267
|
-
async function b
|
|
268
|
-
const
|
|
269
|
-
if (
|
|
278
|
+
async function v(b) {
|
|
279
|
+
const C = ++S, O = await op(r.locale);
|
|
280
|
+
if (C !== S)
|
|
270
281
|
return;
|
|
271
|
-
const
|
|
282
|
+
const y = on(r.locale), I = {
|
|
272
283
|
licenseKey: "GPL",
|
|
273
284
|
ui: {
|
|
274
285
|
poweredBy: {
|
|
@@ -276,33 +287,33 @@ const Ms = fr({
|
|
|
276
287
|
}
|
|
277
288
|
}
|
|
278
289
|
};
|
|
279
|
-
|
|
280
|
-
let
|
|
281
|
-
const
|
|
282
|
-
|
|
290
|
+
O && y && (I.language = y, I.translations = O);
|
|
291
|
+
let D = Object.assign({}, em(I, r.config));
|
|
292
|
+
const A = r.dataNormalizer, w = b !== void 0 ? b : d.value;
|
|
293
|
+
w && (D.initialData = A(w));
|
|
283
294
|
try {
|
|
284
|
-
const
|
|
285
|
-
if (
|
|
286
|
-
|
|
295
|
+
const x = await r.editor.create(a.value, D);
|
|
296
|
+
if (C !== S) {
|
|
297
|
+
x.destroy();
|
|
287
298
|
return;
|
|
288
299
|
}
|
|
289
|
-
i.value = ju(
|
|
290
|
-
} catch (
|
|
291
|
-
console.error(
|
|
300
|
+
i.value = ju(x), p(x), A(d.value) !== D.initialData && x.data.set(A(d.value)), r.disabled && x.enableReadOnlyMode(t), s.value = sp(a.value), e("ready", x);
|
|
301
|
+
} catch (x) {
|
|
302
|
+
console.error(x);
|
|
292
303
|
}
|
|
293
304
|
}
|
|
294
305
|
return Ot(
|
|
295
306
|
() => r.locale,
|
|
296
|
-
async (
|
|
297
|
-
if (on(
|
|
307
|
+
async (b, C) => {
|
|
308
|
+
if (on(b) === on(C))
|
|
298
309
|
return;
|
|
299
|
-
const
|
|
300
|
-
o.value =
|
|
310
|
+
const O = i.value ? i.value.data.get() : d.value;
|
|
311
|
+
o.value = O, S++, f(), await v(O);
|
|
301
312
|
}
|
|
302
313
|
), Ju(() => {
|
|
303
|
-
|
|
314
|
+
document.addEventListener("mousedown", g, !0), v();
|
|
304
315
|
}), Js(() => {
|
|
305
|
-
g++,
|
|
316
|
+
document.removeEventListener("mousedown", g, !0), S++, f(), e("destroy");
|
|
306
317
|
}), {
|
|
307
318
|
element: a,
|
|
308
319
|
instance: i,
|
|
@@ -518,12 +529,12 @@ const Ps = fr({
|
|
|
518
529
|
editorClass: n,
|
|
519
530
|
onEditorReady: (g) => {
|
|
520
531
|
if (t.value === "document") {
|
|
521
|
-
const
|
|
522
|
-
|
|
532
|
+
const v = o == null ? void 0 : o.proxy.$refs.toolbarRef;
|
|
533
|
+
v && (v.replaceChildren(), v.appendChild(g.ui.view.toolbar.element));
|
|
523
534
|
}
|
|
524
535
|
a = g, r.fitHeight && (i = Pl(g, t.value));
|
|
525
|
-
const S = g.editing.view.getDomRoot(),
|
|
526
|
-
S &&
|
|
536
|
+
const S = g.editing.view.getDomRoot(), f = ws(r.imageRetry);
|
|
537
|
+
S && f && (d(), c = Ls(S, f)), e("ready", g);
|
|
527
538
|
},
|
|
528
539
|
onEditorDestroy: () => {
|
|
529
540
|
s(), d(), a = null, e("destroy");
|
|
@@ -4723,23 +4734,23 @@ var jr = [
|
|
|
4723
4734
|
if (En(i, p, a).metrics)
|
|
4724
4735
|
return nt(i, p, a, t, o.concat(g));
|
|
4725
4736
|
if (om.hasOwnProperty(i) && p.slice(0, 10) === "Typewriter") {
|
|
4726
|
-
for (var
|
|
4727
|
-
|
|
4728
|
-
return zt(
|
|
4737
|
+
for (var f = [], v = 0; v < i.length; v++)
|
|
4738
|
+
f.push(nt(i[v], p, a, t, o.concat(g)));
|
|
4739
|
+
return zt(f);
|
|
4729
4740
|
}
|
|
4730
4741
|
}
|
|
4731
4742
|
if (n === "mathord")
|
|
4732
4743
|
return nt(i, "Math-Italic", a, t, o.concat(["mathnormal"]));
|
|
4733
4744
|
if (n === "textord") {
|
|
4734
|
-
var
|
|
4735
|
-
if (
|
|
4745
|
+
var b = Ie[a][i] && Ie[a][i].font;
|
|
4746
|
+
if (b === "ams") {
|
|
4736
4747
|
var C = en("amsrm", t.fontWeight, t.fontShape);
|
|
4737
4748
|
return nt(i, C, a, t, o.concat("amsrm", t.fontWeight, t.fontShape));
|
|
4738
|
-
} else if (
|
|
4749
|
+
} else if (b === "main" || !b) {
|
|
4739
4750
|
var O = en("textrm", t.fontWeight, t.fontShape);
|
|
4740
4751
|
return nt(i, O, a, t, o.concat(t.fontWeight, t.fontShape));
|
|
4741
4752
|
} else {
|
|
4742
|
-
var y = en(
|
|
4753
|
+
var y = en(b, t.fontWeight, t.fontShape);
|
|
4743
4754
|
return nt(i, y, a, t, o.concat(y, t.fontWeight, t.fontShape));
|
|
4744
4755
|
}
|
|
4745
4756
|
} else
|
|
@@ -4837,13 +4848,13 @@ var jr = [
|
|
|
4837
4848
|
i += 2;
|
|
4838
4849
|
var d = P(["pstrut"], []);
|
|
4839
4850
|
d.style.height = G(i);
|
|
4840
|
-
for (var u = [], p = a, g = a, S = a,
|
|
4841
|
-
var
|
|
4842
|
-
if (
|
|
4843
|
-
S +=
|
|
4851
|
+
for (var u = [], p = a, g = a, S = a, f = 0; f < n.length; f++) {
|
|
4852
|
+
var v = n[f];
|
|
4853
|
+
if (v.type === "kern")
|
|
4854
|
+
S += v.size;
|
|
4844
4855
|
else {
|
|
4845
|
-
var
|
|
4846
|
-
y.style.top = G(-i - S -
|
|
4856
|
+
var b = v.elem, C = v.wrapperClasses || [], O = v.wrapperStyle || {}, y = P(C, [d, b], void 0, O);
|
|
4857
|
+
y.style.top = G(-i - S - b.depth), v.marginLeft && (y.style.marginLeft = v.marginLeft), v.marginRight && (y.style.marginRight = v.marginRight), u.push(y), S += b.height + b.depth;
|
|
4847
4858
|
}
|
|
4848
4859
|
p = Math.min(p, S), g = Math.max(g, S);
|
|
4849
4860
|
}
|
|
@@ -4851,10 +4862,10 @@ var jr = [
|
|
|
4851
4862
|
I.style.height = G(g);
|
|
4852
4863
|
var D;
|
|
4853
4864
|
if (p < 0) {
|
|
4854
|
-
var A = P([], []),
|
|
4855
|
-
|
|
4856
|
-
var
|
|
4857
|
-
D = [P(["vlist-r"], [I,
|
|
4865
|
+
var A = P([], []), w = P(["vlist"], [A]);
|
|
4866
|
+
w.style.height = G(-p);
|
|
4867
|
+
var x = P(["vlist-s"], [new _t("")]);
|
|
4868
|
+
D = [P(["vlist-r"], [I, x]), P(["vlist-r"], [w])];
|
|
4858
4869
|
} else
|
|
4859
4870
|
D = [P(["vlist-r"], [I])];
|
|
4860
4871
|
var B = P(["vlist-t"], D);
|
|
@@ -5111,13 +5122,13 @@ var mn = function(e) {
|
|
|
5111
5122
|
u.type === "sizing" ? d = t.havingSize(u.size) : u.type === "styling" && (d = t.havingStyle(r0[u.style]));
|
|
5112
5123
|
}
|
|
5113
5124
|
var p = P([a[0] || "leftmost"], [], t), g = P([a[1] || "rightmost"], [], t), S = n === "root";
|
|
5114
|
-
return zs(i, (
|
|
5115
|
-
var
|
|
5116
|
-
|
|
5125
|
+
return zs(i, (f, v) => {
|
|
5126
|
+
var b = v.classes[0], C = f.classes[0];
|
|
5127
|
+
b === "mbin" && t0.has(C) ? v.classes[0] = "mord" : C === "mbin" && e0.has(b) && (f.classes[0] = "mord");
|
|
5117
5128
|
}, {
|
|
5118
5129
|
node: p
|
|
5119
|
-
}, g, S), zs(i, (
|
|
5120
|
-
var
|
|
5130
|
+
}, g, S), zs(i, (f, v) => {
|
|
5131
|
+
var b, C, O = Vs(v), y = Vs(f), I = O && y ? f.hasClass("mtight") ? (b = jp[O]) == null ? void 0 : b[y] : (C = Jp[O]) == null ? void 0 : C[y] : null;
|
|
5121
5132
|
if (I)
|
|
5122
5133
|
return lm(I, d);
|
|
5123
5134
|
}, {
|
|
@@ -5770,40 +5781,40 @@ var Em = function(e) {
|
|
|
5770
5781
|
if (u > 5)
|
|
5771
5782
|
c === "widehat" || c === "widecheck" ? (p = 420, s = 2364, S = 0.42, g = c + "4") : (p = 312, s = 2340, S = 0.34, g = "tilde4");
|
|
5772
5783
|
else {
|
|
5773
|
-
var
|
|
5774
|
-
c === "widehat" || c === "widecheck" ? (s = [0, 1062, 2364, 2364, 2364][
|
|
5784
|
+
var f = [1, 1, 2, 2, 3, 3][u];
|
|
5785
|
+
c === "widehat" || c === "widecheck" ? (s = [0, 1062, 2364, 2364, 2364][f], p = [0, 239, 300, 360, 420][f], S = [0, 0.24, 0.3, 0.3, 0.36, 0.42][f], g = c + f) : (s = [0, 600, 1033, 2339, 2340][f], p = [0, 260, 286, 306, 312][f], S = [0, 0.26, 0.286, 0.3, 0.306, 0.34][f], g = "tilde" + f);
|
|
5775
5786
|
}
|
|
5776
|
-
var
|
|
5787
|
+
var v = new Zt(g), b = new Gt([v], {
|
|
5777
5788
|
width: "100%",
|
|
5778
5789
|
height: G(S),
|
|
5779
5790
|
viewBox: "0 0 " + s + " " + p,
|
|
5780
5791
|
preserveAspectRatio: "none"
|
|
5781
5792
|
});
|
|
5782
5793
|
return {
|
|
5783
|
-
span: Jt([], [
|
|
5794
|
+
span: Jt([], [b], t),
|
|
5784
5795
|
minWidth: 0,
|
|
5785
5796
|
height: S
|
|
5786
5797
|
};
|
|
5787
5798
|
} else {
|
|
5788
|
-
var C = [], O = _0[c], [y, I, D] = O, A = D / 1e3,
|
|
5789
|
-
if (
|
|
5799
|
+
var C = [], O = _0[c], [y, I, D] = O, A = D / 1e3, w = y.length, x, B;
|
|
5800
|
+
if (w === 1) {
|
|
5790
5801
|
var X = O[3];
|
|
5791
|
-
|
|
5792
|
-
} else if (
|
|
5793
|
-
|
|
5794
|
-
else if (
|
|
5795
|
-
|
|
5802
|
+
x = ["hide-tail"], B = [X];
|
|
5803
|
+
} else if (w === 2)
|
|
5804
|
+
x = ["halfarrow-left", "halfarrow-right"], B = ["xMinYMin", "xMaxYMin"];
|
|
5805
|
+
else if (w === 3)
|
|
5806
|
+
x = ["brace-left", "brace-center", "brace-right"], B = ["xMinYMin", "xMidYMin", "xMaxYMin"];
|
|
5796
5807
|
else
|
|
5797
5808
|
throw new Error(`Correct katexImagesData or update code here to support
|
|
5798
|
-
` +
|
|
5799
|
-
for (var q = 0; q <
|
|
5809
|
+
` + w + " children.");
|
|
5810
|
+
for (var q = 0; q < w; q++) {
|
|
5800
5811
|
var Y = new Zt(y[q]), V = new Gt([Y], {
|
|
5801
5812
|
width: "400em",
|
|
5802
5813
|
height: G(A),
|
|
5803
5814
|
viewBox: "0 0 " + s + " " + D,
|
|
5804
5815
|
preserveAspectRatio: B[q] + " slice"
|
|
5805
|
-
}), W = Jt([
|
|
5806
|
-
if (
|
|
5816
|
+
}), W = Jt([x[q]], [V], t);
|
|
5817
|
+
if (w === 1)
|
|
5807
5818
|
return {
|
|
5808
5819
|
span: W,
|
|
5809
5820
|
minWidth: I,
|
|
@@ -5899,15 +5910,15 @@ var Sm = (r) => {
|
|
|
5899
5910
|
}]
|
|
5900
5911
|
});
|
|
5901
5912
|
else {
|
|
5902
|
-
var S,
|
|
5903
|
-
n.label === "\\vec" ? (S = _m("vec", e),
|
|
5913
|
+
var S, f;
|
|
5914
|
+
n.label === "\\vec" ? (S = _m("vec", e), f = cm.vec[1]) : (S = gn({
|
|
5904
5915
|
mode: n.mode,
|
|
5905
5916
|
text: n.label
|
|
5906
|
-
}, e, "textord"), S = Gp(S), S.italic = 0,
|
|
5907
|
-
var
|
|
5908
|
-
|
|
5909
|
-
var
|
|
5910
|
-
|
|
5917
|
+
}, e, "textord"), S = Gp(S), S.italic = 0, f = S.width, u && (p += S.depth)), g = P(["accent-body"], [S]);
|
|
5918
|
+
var v = n.label === "\\textcircled";
|
|
5919
|
+
v && (g.classes.push("accent-full"), p = i.height);
|
|
5920
|
+
var b = s;
|
|
5921
|
+
v || (b -= f / 2), g.style.left = G(b), n.label === "\\textcircled" && (g.style.top = ".2em"), g = Se({
|
|
5911
5922
|
positionType: "firstBaseline",
|
|
5912
5923
|
children: [{
|
|
5913
5924
|
type: "elem",
|
|
@@ -6342,19 +6353,19 @@ function S0(r) {
|
|
|
6342
6353
|
}
|
|
6343
6354
|
else
|
|
6344
6355
|
throw new k('Expected one of "<>AV=|." after @', o[c]);
|
|
6345
|
-
var
|
|
6356
|
+
var f = g0(d, u, r), v = {
|
|
6346
6357
|
type: "styling",
|
|
6347
|
-
body: [
|
|
6358
|
+
body: [f],
|
|
6348
6359
|
mode: "math",
|
|
6349
6360
|
style: "display"
|
|
6350
6361
|
// CD is always displaystyle.
|
|
6351
6362
|
};
|
|
6352
|
-
n.push(
|
|
6363
|
+
n.push(v), s = Ql();
|
|
6353
6364
|
}
|
|
6354
6365
|
i % 2 === 0 ? n.push(s) : n.shift(), n = [], a.push(n);
|
|
6355
6366
|
}
|
|
6356
6367
|
r.gullet.endGroup(), r.gullet.endGroup();
|
|
6357
|
-
var
|
|
6368
|
+
var b = new Array(a[0].length).fill({
|
|
6358
6369
|
type: "align",
|
|
6359
6370
|
align: "c",
|
|
6360
6371
|
pregap: 0.25,
|
|
@@ -6369,7 +6380,7 @@ function S0(r) {
|
|
|
6369
6380
|
arraystretch: 1,
|
|
6370
6381
|
addJot: !0,
|
|
6371
6382
|
rowGaps: [null],
|
|
6372
|
-
cols:
|
|
6383
|
+
cols: b,
|
|
6373
6384
|
colSeparationType: "CD",
|
|
6374
6385
|
hLinesBeforeRow: new Array(a.length + 1).fill([])
|
|
6375
6386
|
};
|
|
@@ -6726,16 +6737,16 @@ var wr = function(e, t, n) {
|
|
|
6726
6737
|
s = d = u = e, c = null;
|
|
6727
6738
|
var S = "Size1-Regular";
|
|
6728
6739
|
e === "\\uparrow" ? d = u = "⏐" : e === "\\Uparrow" ? d = u = "‖" : e === "\\downarrow" ? s = d = "⏐" : e === "\\Downarrow" ? s = d = "‖" : e === "\\updownarrow" ? (s = "\\uparrow", d = "⏐", u = "\\downarrow") : e === "\\Updownarrow" ? (s = "\\Uparrow", d = "‖", u = "\\Downarrow") : h0.has(e) ? (d = "∣", p = "vert", g = 333) : v0.has(e) ? (d = "∥", p = "doublevert", g = 556) : e === "[" || e === "\\lbrack" ? (s = "⎡", d = "⎢", u = "⎣", S = "Size4-Regular", p = "lbrack", g = 667) : e === "]" || e === "\\rbrack" ? (s = "⎤", d = "⎥", u = "⎦", S = "Size4-Regular", p = "rbrack", g = 667) : e === "\\lfloor" || e === "⌊" ? (d = s = "⎢", u = "⎣", S = "Size4-Regular", p = "lfloor", g = 667) : e === "\\lceil" || e === "⌈" ? (s = "⎡", d = u = "⎢", S = "Size4-Regular", p = "lceil", g = 667) : e === "\\rfloor" || e === "⌋" ? (d = s = "⎥", u = "⎦", S = "Size4-Regular", p = "rfloor", g = 667) : e === "\\rceil" || e === "⌉" ? (s = "⎤", d = u = "⎥", S = "Size4-Regular", p = "rceil", g = 667) : e === "(" || e === "\\lparen" ? (s = "⎛", d = "⎜", u = "⎝", S = "Size4-Regular", p = "lparen", g = 875) : e === ")" || e === "\\rparen" ? (s = "⎞", d = "⎟", u = "⎠", S = "Size4-Regular", p = "rparen", g = 875) : e === "\\{" || e === "\\lbrace" ? (s = "⎧", c = "⎨", u = "⎩", d = "⎪", S = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (s = "⎫", c = "⎬", u = "⎭", d = "⎪", S = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (s = "⎧", u = "⎩", d = "⎪", S = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (s = "⎫", u = "⎭", d = "⎪", S = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (s = "⎧", u = "⎭", d = "⎪", S = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (s = "⎫", u = "⎩", d = "⎪", S = "Size4-Regular");
|
|
6729
|
-
var
|
|
6740
|
+
var f = wr(s, S, i), v = f.height + f.depth, b = wr(d, S, i), C = b.height + b.depth, O = wr(u, S, i), y = O.height + O.depth, I = 0, D = 1;
|
|
6730
6741
|
if (c !== null) {
|
|
6731
6742
|
var A = wr(c, S, i);
|
|
6732
6743
|
I = A.height + A.depth, D = 2;
|
|
6733
6744
|
}
|
|
6734
|
-
var
|
|
6745
|
+
var w = v + y + I, x = Math.max(0, Math.ceil((t - w) / (D * C))), B = w + x * D * C, X = a.fontMetrics().axisHeight;
|
|
6735
6746
|
n && (X *= a.sizeMultiplier);
|
|
6736
6747
|
var q = B / 2 - X, Y = [];
|
|
6737
6748
|
if (p.length > 0) {
|
|
6738
|
-
var V = B -
|
|
6749
|
+
var V = B - v - y, W = Math.round(B * 1e3), j = Pp(p, Math.round(V * 1e3)), re = new Zt(p, j), le = G(g / 1e3), de = G(W / 1e3), xe = new Gt([re], {
|
|
6739
6750
|
width: le,
|
|
6740
6751
|
height: de,
|
|
6741
6752
|
viewBox: "0 0 " + g + " " + W
|
|
@@ -6746,10 +6757,10 @@ var wr = function(e, t, n) {
|
|
|
6746
6757
|
});
|
|
6747
6758
|
} else {
|
|
6748
6759
|
if (Y.push(Gn(u, S, i)), Y.push(nn), c === null) {
|
|
6749
|
-
var Ne = B -
|
|
6760
|
+
var Ne = B - v - y + 2 * Ks;
|
|
6750
6761
|
Y.push(Yn(d, Ne, a));
|
|
6751
6762
|
} else {
|
|
6752
|
-
var Fe = (B -
|
|
6763
|
+
var Fe = (B - v - y - I) / 2 + 2 * Ks;
|
|
6753
6764
|
Y.push(Yn(d, Fe, a)), Y.push(nn), Y.push(Gn(c, S, i)), Y.push(nn), Y.push(Yn(d, Fe, a));
|
|
6754
6765
|
}
|
|
6755
6766
|
Y.push(nn), Y.push(Gn(s, S, i));
|
|
@@ -7115,21 +7126,21 @@ var Rn = (r, e) => {
|
|
|
7115
7126
|
a = a / u.sizeMultiplier;
|
|
7116
7127
|
var p = t.height + t.depth + c + d;
|
|
7117
7128
|
t.style.paddingLeft = G(p / 2 + c);
|
|
7118
|
-
var g = Math.floor(1e3 * p * a), S = xp(g),
|
|
7129
|
+
var g = Math.floor(1e3 * p * a), S = xp(g), f = new Gt([new Zt("phase", S)], {
|
|
7119
7130
|
width: "400em",
|
|
7120
7131
|
height: G(g / 1e3),
|
|
7121
7132
|
viewBox: "0 0 400000 " + g,
|
|
7122
7133
|
preserveAspectRatio: "xMinYMin slice"
|
|
7123
7134
|
});
|
|
7124
|
-
i = Jt(["hide-tail"], [
|
|
7135
|
+
i = Jt(["hide-tail"], [f], e), i.style.height = G(p), o = t.depth + c + d;
|
|
7125
7136
|
} else {
|
|
7126
7137
|
/cancel/.test(n) ? s || t.classes.push("cancel-pad") : n === "angl" ? t.classes.push("anglpad") : t.classes.push("boxpad");
|
|
7127
|
-
var
|
|
7138
|
+
var v = 0, b = 0, C = 0;
|
|
7128
7139
|
/box/.test(n) ? (C = Math.max(
|
|
7129
7140
|
e.fontMetrics().fboxrule,
|
|
7130
7141
|
// default
|
|
7131
7142
|
e.minRuleThickness
|
|
7132
|
-
),
|
|
7143
|
+
), v = e.fontMetrics().fboxsep + (n === "colorbox" ? 0 : C), b = v) : n === "angl" ? (C = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), v = 4 * C, b = Math.max(0, 0.25 - t.depth)) : (v = s ? 0.2 : 0, b = v), i = u0(t, n, v, b, e), /fbox|boxed|fcolorbox/.test(n) ? (i.style.borderStyle = "solid", i.style.borderWidth = G(C)) : n === "angl" && C !== 0.049 && (i.style.borderTopWidth = G(C), i.style.borderRightWidth = G(C)), o = t.depth + b, r.backgroundColor && (i.style.backgroundColor = r.backgroundColor, r.borderColor && (i.style.borderColor = r.borderColor));
|
|
7133
7144
|
}
|
|
7134
7145
|
var O;
|
|
7135
7146
|
if (r.backgroundColor)
|
|
@@ -7437,7 +7448,7 @@ function er(r, e, t) {
|
|
|
7437
7448
|
throw new k("Invalid \\arraystretch: " + S);
|
|
7438
7449
|
}
|
|
7439
7450
|
r.gullet.beginGroup();
|
|
7440
|
-
var
|
|
7451
|
+
var f = [], v = [f], b = [], C = [], O = c != null ? [] : void 0;
|
|
7441
7452
|
function y() {
|
|
7442
7453
|
c && r.gullet.macros.set("\\@eqnsw", "1", !0);
|
|
7443
7454
|
}
|
|
@@ -7457,22 +7468,22 @@ function er(r, e, t) {
|
|
|
7457
7468
|
mode: r.mode,
|
|
7458
7469
|
style: t,
|
|
7459
7470
|
body: [A]
|
|
7460
|
-
}),
|
|
7461
|
-
var
|
|
7462
|
-
if (
|
|
7463
|
-
if (p &&
|
|
7471
|
+
}), f.push(A);
|
|
7472
|
+
var w = r.fetch().text;
|
|
7473
|
+
if (w === "&") {
|
|
7474
|
+
if (p && f.length === p) {
|
|
7464
7475
|
if (d || s)
|
|
7465
7476
|
throw new k("Too many tab characters: &", r.nextToken);
|
|
7466
7477
|
r.settings.reportNonstrict("textEnv", "Too few columns specified in the {array} column argument.");
|
|
7467
7478
|
}
|
|
7468
7479
|
r.consume();
|
|
7469
|
-
} else if (
|
|
7470
|
-
I(),
|
|
7480
|
+
} else if (w === "\\end") {
|
|
7481
|
+
I(), f.length === 1 && A.type === "styling" && A.body.length === 1 && A.body[0].type === "ordgroup" && A.body[0].body.length === 0 && (v.length > 1 || !u) && v.pop(), C.length < v.length + 1 && C.push([]);
|
|
7471
7482
|
break;
|
|
7472
|
-
} else if (
|
|
7483
|
+
} else if (w === "\\\\") {
|
|
7473
7484
|
r.consume();
|
|
7474
|
-
var
|
|
7475
|
-
r.gullet.future().text !== " " && (
|
|
7485
|
+
var x = void 0;
|
|
7486
|
+
r.gullet.future().text !== " " && (x = r.parseSizeGroup(!0)), b.push(x ? x.value : null), I(), C.push(jl(r)), f = [], v.push(f), y();
|
|
7476
7487
|
} else
|
|
7477
7488
|
throw new k("Expected & or \\\\ or \\cr or \\end", r.nextToken);
|
|
7478
7489
|
}
|
|
@@ -7481,9 +7492,9 @@ function er(r, e, t) {
|
|
|
7481
7492
|
mode: r.mode,
|
|
7482
7493
|
addJot: a,
|
|
7483
7494
|
arraystretch: o,
|
|
7484
|
-
body:
|
|
7495
|
+
body: v,
|
|
7485
7496
|
cols: i,
|
|
7486
|
-
rowGaps:
|
|
7497
|
+
rowGaps: b,
|
|
7487
7498
|
hskipBeforeAndAfter: n,
|
|
7488
7499
|
hLinesBeforeRow: C,
|
|
7489
7500
|
colSeparationType: s,
|
|
@@ -7504,10 +7515,10 @@ var It = function(e, t) {
|
|
|
7504
7515
|
var S = t.havingStyle(se.SCRIPT).sizeMultiplier;
|
|
7505
7516
|
g = 0.2778 * (S / t.sizeMultiplier);
|
|
7506
7517
|
}
|
|
7507
|
-
var
|
|
7518
|
+
var f = e.colSeparationType === "CD" ? Pe({
|
|
7508
7519
|
number: 3,
|
|
7509
7520
|
unit: "ex"
|
|
7510
|
-
}, t) : 12 * p,
|
|
7521
|
+
}, t) : 12 * p, v = 3 * p, b = e.arraystretch * f, C = 0.7 * b, O = 0.3 * b, y = 0;
|
|
7511
7522
|
function I(vt) {
|
|
7512
7523
|
for (var Rt = 0; Rt < vt.length; ++Rt)
|
|
7513
7524
|
Rt > 0 && (y += 0.25), d.push({
|
|
@@ -7516,15 +7527,15 @@ var It = function(e, t) {
|
|
|
7516
7527
|
});
|
|
7517
7528
|
}
|
|
7518
7529
|
for (I(o[0]), n = 0; n < e.body.length; ++n) {
|
|
7519
|
-
var D = e.body[n], A = C,
|
|
7530
|
+
var D = e.body[n], A = C, w = O;
|
|
7520
7531
|
s < D.length && (s = D.length);
|
|
7521
|
-
var
|
|
7532
|
+
var x = new Array(D.length);
|
|
7522
7533
|
for (a = 0; a < D.length; ++a) {
|
|
7523
7534
|
var B = fe(D[a], t);
|
|
7524
|
-
|
|
7535
|
+
w < B.depth && (w = B.depth), A < B.height && (A = B.height), x[a] = B;
|
|
7525
7536
|
}
|
|
7526
7537
|
var X = e.rowGaps[n], q = 0;
|
|
7527
|
-
X && (q = Pe(X, t), q > 0 && (q += O,
|
|
7538
|
+
X && (q = Pe(X, t), q > 0 && (q += O, w < q && (w = q), q = 0)), e.addJot && n < e.body.length - 1 && (w += v), x.height = A, x.depth = w, y += A, x.pos = y, y += w + q, c[n] = x, I(o[n + 1]);
|
|
7528
7539
|
}
|
|
7529
7540
|
var Y = y / 2 + t.fontMetrics().axisHeight, V = e.cols || [], W = [], j, re, le = [];
|
|
7530
7541
|
if (e.tags && e.tags.some((vt) => vt))
|
|
@@ -7626,24 +7637,24 @@ var It = function(e, t) {
|
|
|
7626
7637
|
u.setAttribute("rowspacing", G(p));
|
|
7627
7638
|
var g = "", S = "";
|
|
7628
7639
|
if (e.cols && e.cols.length > 0) {
|
|
7629
|
-
var
|
|
7630
|
-
|
|
7640
|
+
var f = e.cols, v = "", b = !1, C = 0, O = f.length;
|
|
7641
|
+
f[0].type === "separator" && (g += "top ", C = 1), f[f.length - 1].type === "separator" && (g += "bottom ", O -= 1);
|
|
7631
7642
|
for (var y = C; y < O; y++) {
|
|
7632
|
-
var I =
|
|
7633
|
-
I.type === "align" ? (S += D0[I.align],
|
|
7643
|
+
var I = f[y];
|
|
7644
|
+
I.type === "align" ? (S += D0[I.align], b && (v += "none "), b = !0) : I.type === "separator" && b && (v += I.separator === "|" ? "solid " : "dashed ", b = !1);
|
|
7634
7645
|
}
|
|
7635
|
-
u.setAttribute("columnalign", S.trim()), /[sd]/.test(
|
|
7646
|
+
u.setAttribute("columnalign", S.trim()), /[sd]/.test(v) && u.setAttribute("columnlines", v.trim());
|
|
7636
7647
|
}
|
|
7637
7648
|
if (e.colSeparationType === "align") {
|
|
7638
|
-
for (var D = e.cols || [], A = "",
|
|
7639
|
-
A +=
|
|
7649
|
+
for (var D = e.cols || [], A = "", w = 1; w < D.length; w++)
|
|
7650
|
+
A += w % 2 ? "0em " : "1em ";
|
|
7640
7651
|
u.setAttribute("columnspacing", A.trim());
|
|
7641
7652
|
} else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? u.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? u.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? u.setAttribute("columnspacing", "0.5em") : u.setAttribute("columnspacing", "1em");
|
|
7642
|
-
var
|
|
7653
|
+
var x = "", B = e.hLinesBeforeRow;
|
|
7643
7654
|
g += B[0].length > 0 ? "left " : "", g += B[B.length - 1].length > 0 ? "right " : "";
|
|
7644
7655
|
for (var X = 1; X < B.length - 1; X++)
|
|
7645
|
-
|
|
7646
|
-
return /[sd]/.test(
|
|
7656
|
+
x += B[X].length === 0 ? "none " : B[X][0] ? "dashed " : "solid ";
|
|
7657
|
+
return /[sd]/.test(x) && u.setAttribute("rowlines", x.trim()), g !== "" && (u = new U("menclose", [u]), u.setAttribute("notation", g.trim())), e.arraystretch && e.arraystretch < 1 && (u = new U("mstyle", [u]), u.setAttribute("scriptlevel", "1")), u;
|
|
7647
7658
|
}, Pm = function(e, t) {
|
|
7648
7659
|
e.envName.includes("ed") || Nn(e);
|
|
7649
7660
|
var n = [], a = e.envName.includes("at") ? "alignat" : "align", i = e.envName === "split", o = er(e.parser, {
|
|
@@ -7680,12 +7691,12 @@ var It = function(e, t) {
|
|
|
7680
7691
|
throw new k("Too many math in a row: " + ("expected " + s + ", but got " + D), C[0]);
|
|
7681
7692
|
}
|
|
7682
7693
|
});
|
|
7683
|
-
for (var
|
|
7684
|
-
var
|
|
7685
|
-
|
|
7694
|
+
for (var f = 0; f < c; ++f) {
|
|
7695
|
+
var v = "r", b = 0;
|
|
7696
|
+
f % 2 === 1 ? v = "l" : f > 0 && S && (b = 1), n[f] = {
|
|
7686
7697
|
type: "align",
|
|
7687
|
-
align:
|
|
7688
|
-
pregap:
|
|
7698
|
+
align: v,
|
|
7699
|
+
pregap: b,
|
|
7689
7700
|
postgap: 0
|
|
7690
7701
|
};
|
|
7691
7702
|
}
|
|
@@ -8108,19 +8119,19 @@ var x0 = (r, e) => {
|
|
|
8108
8119
|
i = e.havingStyle(a);
|
|
8109
8120
|
var d = fe(r.denom, i, e), u, p, g;
|
|
8110
8121
|
r.hasBarLine ? (r.barSize ? (p = Pe(r.barSize, e), u = gr("frac-line", e, p)) : u = gr("frac-line", e), p = u.height, g = u.height) : (u = null, p = 0, g = e.fontMetrics().defaultRuleThickness);
|
|
8111
|
-
var S,
|
|
8112
|
-
t.size === se.DISPLAY.size ? (S = e.fontMetrics().num1, p > 0 ?
|
|
8113
|
-
var
|
|
8122
|
+
var S, f, v;
|
|
8123
|
+
t.size === se.DISPLAY.size ? (S = e.fontMetrics().num1, p > 0 ? f = 3 * g : f = 7 * g, v = e.fontMetrics().denom1) : (p > 0 ? (S = e.fontMetrics().num2, f = g) : (S = e.fontMetrics().num3, f = 3 * g), v = e.fontMetrics().denom2);
|
|
8124
|
+
var b;
|
|
8114
8125
|
if (u) {
|
|
8115
8126
|
var O = e.fontMetrics().axisHeight;
|
|
8116
|
-
S - o.depth - (O + 0.5 * p) <
|
|
8127
|
+
S - o.depth - (O + 0.5 * p) < f && (S += f - (S - o.depth - (O + 0.5 * p))), O - 0.5 * p - (d.height - v) < f && (v += f - (O - 0.5 * p - (d.height - v)));
|
|
8117
8128
|
var y = -(O - 0.5 * p);
|
|
8118
|
-
|
|
8129
|
+
b = Se({
|
|
8119
8130
|
positionType: "individualShift",
|
|
8120
8131
|
children: [{
|
|
8121
8132
|
type: "elem",
|
|
8122
8133
|
elem: d,
|
|
8123
|
-
shift:
|
|
8134
|
+
shift: v
|
|
8124
8135
|
}, {
|
|
8125
8136
|
type: "elem",
|
|
8126
8137
|
elem: u,
|
|
@@ -8132,13 +8143,13 @@ var x0 = (r, e) => {
|
|
|
8132
8143
|
}]
|
|
8133
8144
|
});
|
|
8134
8145
|
} else {
|
|
8135
|
-
var C = S - o.depth - (d.height -
|
|
8136
|
-
C <
|
|
8146
|
+
var C = S - o.depth - (d.height - v);
|
|
8147
|
+
C < f && (S += 0.5 * (f - C), v += 0.5 * (f - C)), b = Se({
|
|
8137
8148
|
positionType: "individualShift",
|
|
8138
8149
|
children: [{
|
|
8139
8150
|
type: "elem",
|
|
8140
8151
|
elem: d,
|
|
8141
|
-
shift:
|
|
8152
|
+
shift: v
|
|
8142
8153
|
}, {
|
|
8143
8154
|
type: "elem",
|
|
8144
8155
|
elem: o,
|
|
@@ -8146,11 +8157,11 @@ var x0 = (r, e) => {
|
|
|
8146
8157
|
}]
|
|
8147
8158
|
});
|
|
8148
8159
|
}
|
|
8149
|
-
i = e.havingStyle(t),
|
|
8160
|
+
i = e.havingStyle(t), b.height *= i.sizeMultiplier / e.sizeMultiplier, b.depth *= i.sizeMultiplier / e.sizeMultiplier;
|
|
8150
8161
|
var I;
|
|
8151
8162
|
t.size === se.DISPLAY.size ? I = e.fontMetrics().delim1 : t.size === se.SCRIPTSCRIPT.size ? I = e.havingStyle(se.SCRIPT).fontMetrics().delim2 : I = e.fontMetrics().delim2;
|
|
8152
8163
|
var D, A;
|
|
8153
|
-
return r.leftDelim == null ? D = kr(e, ["mopen"]) : D = Qs(r.leftDelim, I, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? A = P([]) : r.rightDelim == null ? A = kr(e, ["mclose"]) : A = Qs(r.rightDelim, I, !0, e.havingStyle(t), r.mode, ["mclose"]), P(["mord"].concat(i.sizingClasses(e)), [D, P(["mfrac"], [
|
|
8164
|
+
return r.leftDelim == null ? D = kr(e, ["mopen"]) : D = Qs(r.leftDelim, I, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? A = P([]) : r.rightDelim == null ? A = kr(e, ["mclose"]) : A = Qs(r.rightDelim, I, !0, e.havingStyle(t), r.mode, ["mclose"]), P(["mord"].concat(i.sizingClasses(e)), [D, P(["mfrac"], [b]), A], e);
|
|
8154
8165
|
}, M0 = (r, e) => {
|
|
8155
8166
|
var t = new U("mfrac", [Ce(r.numer, e), Ce(r.denom, e)]);
|
|
8156
8167
|
if (!r.hasBarLine)
|
|
@@ -8308,8 +8319,8 @@ $({
|
|
|
8308
8319
|
var g = null, S = e[3];
|
|
8309
8320
|
if (S.type === "ordgroup") {
|
|
8310
8321
|
if (S.body.length > 0) {
|
|
8311
|
-
var
|
|
8312
|
-
g = rc[Number(
|
|
8322
|
+
var f = _e(S.body[0], "textord");
|
|
8323
|
+
g = rc[Number(f.text)];
|
|
8313
8324
|
}
|
|
8314
8325
|
} else
|
|
8315
8326
|
S = _e(S, "textord"), g = rc[Number(S.text)];
|
|
@@ -8599,8 +8610,8 @@ $({
|
|
|
8599
8610
|
var p = d[u], g = p.indexOf("=");
|
|
8600
8611
|
if (g < 0)
|
|
8601
8612
|
throw new k("\\htmlData key/value '" + p + "' missing equals sign");
|
|
8602
|
-
var S = p.slice(0, g),
|
|
8603
|
-
c["data-" + S.trim()] =
|
|
8613
|
+
var S = p.slice(0, g), f = p.slice(g + 1);
|
|
8614
|
+
c["data-" + S.trim()] = f;
|
|
8604
8615
|
}
|
|
8605
8616
|
s = {
|
|
8606
8617
|
command: "\\htmlData",
|
|
@@ -8947,10 +8958,10 @@ var Gm = (r, e, t, n, a, i, o) => {
|
|
|
8947
8958
|
}]
|
|
8948
8959
|
});
|
|
8949
8960
|
} else if (c) {
|
|
8950
|
-
var
|
|
8961
|
+
var f = r.height - o;
|
|
8951
8962
|
g = Se({
|
|
8952
8963
|
positionType: "top",
|
|
8953
|
-
positionData:
|
|
8964
|
+
positionData: f,
|
|
8954
8965
|
children: [{
|
|
8955
8966
|
type: "kern",
|
|
8956
8967
|
size: n.fontMetrics().bigOpSpacing5
|
|
@@ -8967,10 +8978,10 @@ var Gm = (r, e, t, n, a, i, o) => {
|
|
|
8967
8978
|
}]
|
|
8968
8979
|
});
|
|
8969
8980
|
} else if (d) {
|
|
8970
|
-
var
|
|
8981
|
+
var v = r.depth + o;
|
|
8971
8982
|
g = Se({
|
|
8972
8983
|
positionType: "bottom",
|
|
8973
|
-
positionData:
|
|
8984
|
+
positionData: v,
|
|
8974
8985
|
children: [{
|
|
8975
8986
|
type: "elem",
|
|
8976
8987
|
elem: r
|
|
@@ -8988,12 +8999,12 @@ var Gm = (r, e, t, n, a, i, o) => {
|
|
|
8988
8999
|
});
|
|
8989
9000
|
} else
|
|
8990
9001
|
return r;
|
|
8991
|
-
var
|
|
9002
|
+
var b = [g];
|
|
8992
9003
|
if (c && i !== 0 && !s) {
|
|
8993
9004
|
var C = P(["mspace"], [], n);
|
|
8994
|
-
C.style.marginRight = G(i),
|
|
9005
|
+
C.style.marginRight = G(i), b.unshift(C);
|
|
8995
9006
|
}
|
|
8996
|
-
return P(["mop", "op-limits"],
|
|
9007
|
+
return P(["mop", "op-limits"], b, n);
|
|
8997
9008
|
}, Ym = /* @__PURE__ */ new Set(["\\smallint"]), vr = (r, e) => {
|
|
8998
9009
|
var t, n, a = !1, i;
|
|
8999
9010
|
r.type === "supsub" ? (t = r.sup, n = r.sub, i = _e(r.base, "op"), a = !0) : i = _e(r, "op");
|
|
@@ -9021,12 +9032,12 @@ var Gm = (r, e, t, n, a, i, o) => {
|
|
|
9021
9032
|
var S = Ze(i.body, e, !0);
|
|
9022
9033
|
S.length === 1 && S[0] instanceof _t ? (c = S[0], c.classes[0] = "mop") : c = P(["mop"], S, e);
|
|
9023
9034
|
} else {
|
|
9024
|
-
for (var
|
|
9025
|
-
|
|
9026
|
-
c = P(["mop"],
|
|
9035
|
+
for (var f = [], v = 1; v < i.name.length; v++)
|
|
9036
|
+
f.push(nl(i.name[v], i.mode, e));
|
|
9037
|
+
c = P(["mop"], f, e);
|
|
9027
9038
|
}
|
|
9028
|
-
var
|
|
9029
|
-
return (c instanceof _t || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (
|
|
9039
|
+
var b = 0, C = 0;
|
|
9040
|
+
return (c instanceof _t || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (b = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, C = c.italic || 0), a ? Gm(c, t, n, e, o, C, b) : (b && (c.style.position = "relative", c.style.top = G(b)), c);
|
|
9030
9041
|
}, Br = (r, e) => {
|
|
9031
9042
|
var t;
|
|
9032
9043
|
if (r.symbol)
|
|
@@ -9587,12 +9598,12 @@ $({
|
|
|
9587
9598
|
}]
|
|
9588
9599
|
});
|
|
9589
9600
|
if (r.index) {
|
|
9590
|
-
var
|
|
9601
|
+
var f = e.havingStyle(se.SCRIPTSCRIPT), v = fe(r.index, f, e), b = 0.6 * (S.height - S.depth), C = Se({
|
|
9591
9602
|
positionType: "shift",
|
|
9592
|
-
positionData: -
|
|
9603
|
+
positionData: -b,
|
|
9593
9604
|
children: [{
|
|
9594
9605
|
type: "elem",
|
|
9595
|
-
elem:
|
|
9606
|
+
elem: v
|
|
9596
9607
|
}]
|
|
9597
9608
|
}), O = P(["root"], [C]);
|
|
9598
9609
|
return P(["mord", "sqrt"], [O, S], e);
|
|
@@ -9686,26 +9697,26 @@ sr({
|
|
|
9686
9697
|
s = fe(a, S, e), g || (u = o.height - S.fontMetrics().supDrop * S.sizeMultiplier / e.sizeMultiplier);
|
|
9687
9698
|
}
|
|
9688
9699
|
if (i) {
|
|
9689
|
-
var
|
|
9690
|
-
c = fe(i,
|
|
9700
|
+
var f = e.havingStyle(e.style.sub());
|
|
9701
|
+
c = fe(i, f, e), g || (p = o.depth + f.fontMetrics().subDrop * f.sizeMultiplier / e.sizeMultiplier);
|
|
9691
9702
|
}
|
|
9692
|
-
var
|
|
9693
|
-
e.style === se.DISPLAY ?
|
|
9694
|
-
var
|
|
9703
|
+
var v;
|
|
9704
|
+
e.style === se.DISPLAY ? v = d.sup1 : e.style.cramped ? v = d.sup3 : v = d.sup2;
|
|
9705
|
+
var b = e.sizeMultiplier, C = G(0.5 / d.ptPerEm / b), O = null;
|
|
9695
9706
|
if (c) {
|
|
9696
9707
|
var y = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
|
|
9697
9708
|
(o instanceof _t || y) && (O = G(-o.italic));
|
|
9698
9709
|
}
|
|
9699
9710
|
var I;
|
|
9700
9711
|
if (s && c) {
|
|
9701
|
-
u = Math.max(u,
|
|
9712
|
+
u = Math.max(u, v, s.depth + 0.25 * d.xHeight), p = Math.max(p, d.sub2);
|
|
9702
9713
|
var D = d.defaultRuleThickness, A = 4 * D;
|
|
9703
9714
|
if (u - s.depth - (c.height - p) < A) {
|
|
9704
9715
|
p = A - (u - s.depth) + c.height;
|
|
9705
|
-
var
|
|
9706
|
-
|
|
9716
|
+
var w = 0.8 * d.xHeight - (u - s.depth);
|
|
9717
|
+
w > 0 && (u += w, p -= w);
|
|
9707
9718
|
}
|
|
9708
|
-
var
|
|
9719
|
+
var x = [{
|
|
9709
9720
|
type: "elem",
|
|
9710
9721
|
elem: c,
|
|
9711
9722
|
shift: p,
|
|
@@ -9719,7 +9730,7 @@ sr({
|
|
|
9719
9730
|
}];
|
|
9720
9731
|
I = Se({
|
|
9721
9732
|
positionType: "individualShift",
|
|
9722
|
-
children:
|
|
9733
|
+
children: x
|
|
9723
9734
|
});
|
|
9724
9735
|
} else if (c) {
|
|
9725
9736
|
p = Math.max(p, d.sub1, c.height - 0.8 * d.xHeight);
|
|
@@ -9735,7 +9746,7 @@ sr({
|
|
|
9735
9746
|
children: B
|
|
9736
9747
|
});
|
|
9737
9748
|
} else if (s)
|
|
9738
|
-
u = Math.max(u,
|
|
9749
|
+
u = Math.max(u, v, s.depth + 0.25 * d.xHeight), I = Se({
|
|
9739
9750
|
positionType: "shift",
|
|
9740
9751
|
positionData: -u,
|
|
9741
9752
|
children: [{
|
|
@@ -10646,8 +10657,8 @@ var $m = (r) => (e) => {
|
|
|
10646
10657
|
r && (g.macros.set("|", o), a.length && g.macros.set("\\|", s));
|
|
10647
10658
|
var S = p;
|
|
10648
10659
|
if (!p && a.length) {
|
|
10649
|
-
var
|
|
10650
|
-
|
|
10660
|
+
var f = g.future();
|
|
10661
|
+
f.text === "|" && (g.popToken(), S = !0);
|
|
10651
10662
|
}
|
|
10652
10663
|
return {
|
|
10653
10664
|
tokens: S ? a : n,
|
|
@@ -12258,8 +12269,8 @@ function rE() {
|
|
|
12258
12269
|
throw new Error("map is read-only");
|
|
12259
12270
|
} : R instanceof Set && (R.add = R.clear = R.delete = function() {
|
|
12260
12271
|
throw new Error("set is read-only");
|
|
12261
|
-
}), Object.freeze(R), Object.getOwnPropertyNames(R).forEach((
|
|
12262
|
-
const z = R[
|
|
12272
|
+
}), Object.freeze(R), Object.getOwnPropertyNames(R).forEach((M) => {
|
|
12273
|
+
const z = R[M], ie = typeof z;
|
|
12263
12274
|
(ie === "object" || ie === "function") && !Object.isFrozen(z) && r(z);
|
|
12264
12275
|
}), R;
|
|
12265
12276
|
}
|
|
@@ -12267,8 +12278,8 @@ function rE() {
|
|
|
12267
12278
|
/**
|
|
12268
12279
|
* @param {CompiledMode} mode
|
|
12269
12280
|
*/
|
|
12270
|
-
constructor(
|
|
12271
|
-
|
|
12281
|
+
constructor(M) {
|
|
12282
|
+
M.data === void 0 && (M.data = {}), this.data = M.data, this.isMatchIgnored = !1;
|
|
12272
12283
|
}
|
|
12273
12284
|
ignoreMatch() {
|
|
12274
12285
|
this.isMatchIgnored = !0;
|
|
@@ -12277,27 +12288,27 @@ function rE() {
|
|
|
12277
12288
|
function t(R) {
|
|
12278
12289
|
return R.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
12279
12290
|
}
|
|
12280
|
-
function n(R, ...
|
|
12291
|
+
function n(R, ...M) {
|
|
12281
12292
|
const z = /* @__PURE__ */ Object.create(null);
|
|
12282
12293
|
for (const ie in R)
|
|
12283
12294
|
z[ie] = R[ie];
|
|
12284
|
-
return
|
|
12295
|
+
return M.forEach(function(ie) {
|
|
12285
12296
|
for (const ke in ie)
|
|
12286
12297
|
z[ke] = ie[ke];
|
|
12287
12298
|
}), /** @type {T} */
|
|
12288
12299
|
z;
|
|
12289
12300
|
}
|
|
12290
|
-
const a = "</span>", i = (R) => !!R.scope, o = (R, { prefix:
|
|
12301
|
+
const a = "</span>", i = (R) => !!R.scope, o = (R, { prefix: M }) => {
|
|
12291
12302
|
if (R.startsWith("language:"))
|
|
12292
12303
|
return R.replace("language:", "language-");
|
|
12293
12304
|
if (R.includes(".")) {
|
|
12294
12305
|
const z = R.split(".");
|
|
12295
12306
|
return [
|
|
12296
|
-
`${
|
|
12307
|
+
`${M}${z.shift()}`,
|
|
12297
12308
|
...z.map((ie, ke) => `${ie}${"_".repeat(ke + 1)}`)
|
|
12298
12309
|
].join(" ");
|
|
12299
12310
|
}
|
|
12300
|
-
return `${
|
|
12311
|
+
return `${M}${R}`;
|
|
12301
12312
|
};
|
|
12302
12313
|
class s {
|
|
12303
12314
|
/**
|
|
@@ -12306,24 +12317,24 @@ function rE() {
|
|
|
12306
12317
|
* @param {Tree} parseTree - the parse tree (must support `walk` API)
|
|
12307
12318
|
* @param {{classPrefix: string}} options
|
|
12308
12319
|
*/
|
|
12309
|
-
constructor(
|
|
12310
|
-
this.buffer = "", this.classPrefix = z.classPrefix,
|
|
12320
|
+
constructor(M, z) {
|
|
12321
|
+
this.buffer = "", this.classPrefix = z.classPrefix, M.walk(this);
|
|
12311
12322
|
}
|
|
12312
12323
|
/**
|
|
12313
12324
|
* Adds texts to the output stream
|
|
12314
12325
|
*
|
|
12315
12326
|
* @param {string} text */
|
|
12316
|
-
addText(
|
|
12317
|
-
this.buffer += t(
|
|
12327
|
+
addText(M) {
|
|
12328
|
+
this.buffer += t(M);
|
|
12318
12329
|
}
|
|
12319
12330
|
/**
|
|
12320
12331
|
* Adds a node open to the output stream (if needed)
|
|
12321
12332
|
*
|
|
12322
12333
|
* @param {Node} node */
|
|
12323
|
-
openNode(
|
|
12324
|
-
if (!i(
|
|
12334
|
+
openNode(M) {
|
|
12335
|
+
if (!i(M)) return;
|
|
12325
12336
|
const z = o(
|
|
12326
|
-
|
|
12337
|
+
M.scope,
|
|
12327
12338
|
{ prefix: this.classPrefix }
|
|
12328
12339
|
);
|
|
12329
12340
|
this.span(z);
|
|
@@ -12332,8 +12343,8 @@ function rE() {
|
|
|
12332
12343
|
* Adds a node close to the output stream (if needed)
|
|
12333
12344
|
*
|
|
12334
12345
|
* @param {Node} node */
|
|
12335
|
-
closeNode(
|
|
12336
|
-
i(
|
|
12346
|
+
closeNode(M) {
|
|
12347
|
+
i(M) && (this.buffer += a);
|
|
12337
12348
|
}
|
|
12338
12349
|
/**
|
|
12339
12350
|
* returns the accumulated buffer
|
|
@@ -12346,13 +12357,13 @@ function rE() {
|
|
|
12346
12357
|
* Builds a span element
|
|
12347
12358
|
*
|
|
12348
12359
|
* @param {string} className */
|
|
12349
|
-
span(
|
|
12350
|
-
this.buffer += `<span class="${
|
|
12360
|
+
span(M) {
|
|
12361
|
+
this.buffer += `<span class="${M}">`;
|
|
12351
12362
|
}
|
|
12352
12363
|
}
|
|
12353
12364
|
const c = (R = {}) => {
|
|
12354
|
-
const
|
|
12355
|
-
return Object.assign(
|
|
12365
|
+
const M = { children: [] };
|
|
12366
|
+
return Object.assign(M, R), M;
|
|
12356
12367
|
};
|
|
12357
12368
|
class d {
|
|
12358
12369
|
constructor() {
|
|
@@ -12365,12 +12376,12 @@ function rE() {
|
|
|
12365
12376
|
return this.rootNode;
|
|
12366
12377
|
}
|
|
12367
12378
|
/** @param {Node} node */
|
|
12368
|
-
add(
|
|
12369
|
-
this.top.children.push(
|
|
12379
|
+
add(M) {
|
|
12380
|
+
this.top.children.push(M);
|
|
12370
12381
|
}
|
|
12371
12382
|
/** @param {string} scope */
|
|
12372
|
-
openNode(
|
|
12373
|
-
const z = c({ scope:
|
|
12383
|
+
openNode(M) {
|
|
12384
|
+
const z = c({ scope: M });
|
|
12374
12385
|
this.add(z), this.stack.push(z);
|
|
12375
12386
|
}
|
|
12376
12387
|
closeNode() {
|
|
@@ -12387,21 +12398,21 @@ function rE() {
|
|
|
12387
12398
|
* @typedef { import("./html_renderer").Renderer } Renderer
|
|
12388
12399
|
* @param {Renderer} builder
|
|
12389
12400
|
*/
|
|
12390
|
-
walk(
|
|
12391
|
-
return this.constructor._walk(
|
|
12401
|
+
walk(M) {
|
|
12402
|
+
return this.constructor._walk(M, this.rootNode);
|
|
12392
12403
|
}
|
|
12393
12404
|
/**
|
|
12394
12405
|
* @param {Renderer} builder
|
|
12395
12406
|
* @param {Node} node
|
|
12396
12407
|
*/
|
|
12397
|
-
static _walk(
|
|
12398
|
-
return typeof z == "string" ?
|
|
12408
|
+
static _walk(M, z) {
|
|
12409
|
+
return typeof z == "string" ? M.addText(z) : z.children && (M.openNode(z), z.children.forEach((ie) => this._walk(M, ie)), M.closeNode(z)), M;
|
|
12399
12410
|
}
|
|
12400
12411
|
/**
|
|
12401
12412
|
* @param {Node} node
|
|
12402
12413
|
*/
|
|
12403
|
-
static _collapse(
|
|
12404
|
-
typeof
|
|
12414
|
+
static _collapse(M) {
|
|
12415
|
+
typeof M != "string" && M.children && (M.children.every((z) => typeof z == "string") ? M.children = [M.children.join("")] : M.children.forEach((z) => {
|
|
12405
12416
|
d._collapse(z);
|
|
12406
12417
|
}));
|
|
12407
12418
|
}
|
|
@@ -12410,18 +12421,18 @@ function rE() {
|
|
|
12410
12421
|
/**
|
|
12411
12422
|
* @param {*} options
|
|
12412
12423
|
*/
|
|
12413
|
-
constructor(
|
|
12414
|
-
super(), this.options =
|
|
12424
|
+
constructor(M) {
|
|
12425
|
+
super(), this.options = M;
|
|
12415
12426
|
}
|
|
12416
12427
|
/**
|
|
12417
12428
|
* @param {string} text
|
|
12418
12429
|
*/
|
|
12419
|
-
addText(
|
|
12420
|
-
|
|
12430
|
+
addText(M) {
|
|
12431
|
+
M !== "" && this.add(M);
|
|
12421
12432
|
}
|
|
12422
12433
|
/** @param {string} scope */
|
|
12423
|
-
startScope(
|
|
12424
|
-
this.openNode(
|
|
12434
|
+
startScope(M) {
|
|
12435
|
+
this.openNode(M);
|
|
12425
12436
|
}
|
|
12426
12437
|
endScope() {
|
|
12427
12438
|
this.closeNode();
|
|
@@ -12430,8 +12441,8 @@ function rE() {
|
|
|
12430
12441
|
* @param {Emitter & {root: DataNode}} emitter
|
|
12431
12442
|
* @param {string} name
|
|
12432
12443
|
*/
|
|
12433
|
-
__addSublanguage(
|
|
12434
|
-
const ie =
|
|
12444
|
+
__addSublanguage(M, z) {
|
|
12445
|
+
const ie = M.root;
|
|
12435
12446
|
z && (ie.scope = `language:${z}`), this.add(ie);
|
|
12436
12447
|
}
|
|
12437
12448
|
toHTML() {
|
|
@@ -12445,33 +12456,33 @@ function rE() {
|
|
|
12445
12456
|
return R ? typeof R == "string" ? R : R.source : null;
|
|
12446
12457
|
}
|
|
12447
12458
|
function g(R) {
|
|
12448
|
-
return
|
|
12459
|
+
return v("(?=", R, ")");
|
|
12449
12460
|
}
|
|
12450
12461
|
function S(R) {
|
|
12451
|
-
return
|
|
12462
|
+
return v("(?:", R, ")*");
|
|
12452
12463
|
}
|
|
12453
|
-
function
|
|
12454
|
-
return
|
|
12464
|
+
function f(R) {
|
|
12465
|
+
return v("(?:", R, ")?");
|
|
12455
12466
|
}
|
|
12456
|
-
function
|
|
12467
|
+
function v(...R) {
|
|
12457
12468
|
return R.map((z) => p(z)).join("");
|
|
12458
12469
|
}
|
|
12459
|
-
function
|
|
12460
|
-
const
|
|
12461
|
-
return typeof
|
|
12470
|
+
function b(R) {
|
|
12471
|
+
const M = R[R.length - 1];
|
|
12472
|
+
return typeof M == "object" && M.constructor === Object ? (R.splice(R.length - 1, 1), M) : {};
|
|
12462
12473
|
}
|
|
12463
12474
|
function C(...R) {
|
|
12464
|
-
return "(" + (
|
|
12475
|
+
return "(" + (b(R).capture ? "" : "?:") + R.map((ie) => p(ie)).join("|") + ")";
|
|
12465
12476
|
}
|
|
12466
12477
|
function O(R) {
|
|
12467
12478
|
return new RegExp(R.toString() + "|").exec("").length - 1;
|
|
12468
12479
|
}
|
|
12469
|
-
function y(R,
|
|
12470
|
-
const z = R && R.exec(
|
|
12480
|
+
function y(R, M) {
|
|
12481
|
+
const z = R && R.exec(M);
|
|
12471
12482
|
return z && z.index === 0;
|
|
12472
12483
|
}
|
|
12473
12484
|
const I = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
12474
|
-
function D(R, { joinWith:
|
|
12485
|
+
function D(R, { joinWith: M }) {
|
|
12475
12486
|
let z = 0;
|
|
12476
12487
|
return R.map((ie) => {
|
|
12477
12488
|
z += 1;
|
|
@@ -12486,18 +12497,18 @@ function rE() {
|
|
|
12486
12497
|
J += Ue.substring(0, Q.index), Ue = Ue.substring(Q.index + Q[0].length), Q[0][0] === "\\" && Q[1] ? J += "\\" + String(Number(Q[1]) + ke) : (J += Q[0], Q[0] === "(" && z++);
|
|
12487
12498
|
}
|
|
12488
12499
|
return J;
|
|
12489
|
-
}).map((ie) => `(${ie})`).join(
|
|
12500
|
+
}).map((ie) => `(${ie})`).join(M);
|
|
12490
12501
|
}
|
|
12491
|
-
const A = /\b\B/,
|
|
12492
|
-
const
|
|
12493
|
-
return R.binary && (R.begin =
|
|
12494
|
-
|
|
12502
|
+
const A = /\b\B/, w = "[a-zA-Z]\\w*", x = "[a-zA-Z_]\\w*", B = "\\b\\d+(\\.\\d+)?", X = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", q = "\\b(0b[01]+)", Y = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", V = (R = {}) => {
|
|
12503
|
+
const M = /^#![ ]*\//;
|
|
12504
|
+
return R.binary && (R.begin = v(
|
|
12505
|
+
M,
|
|
12495
12506
|
/.*\b/,
|
|
12496
12507
|
R.binary,
|
|
12497
12508
|
/\b.*/
|
|
12498
12509
|
)), n({
|
|
12499
12510
|
scope: "meta",
|
|
12500
|
-
begin:
|
|
12511
|
+
begin: M,
|
|
12501
12512
|
end: /$/,
|
|
12502
12513
|
relevance: 0,
|
|
12503
12514
|
/** @type {ModeCallback} */
|
|
@@ -12522,12 +12533,12 @@ function rE() {
|
|
|
12522
12533
|
contains: [W]
|
|
12523
12534
|
}, le = {
|
|
12524
12535
|
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/
|
|
12525
|
-
}, de = function(R,
|
|
12536
|
+
}, de = function(R, M, z = {}) {
|
|
12526
12537
|
const ie = n(
|
|
12527
12538
|
{
|
|
12528
12539
|
scope: "comment",
|
|
12529
12540
|
begin: R,
|
|
12530
|
-
end:
|
|
12541
|
+
end: M,
|
|
12531
12542
|
contains: []
|
|
12532
12543
|
},
|
|
12533
12544
|
z
|
|
@@ -12577,7 +12588,7 @@ function rE() {
|
|
|
12577
12588
|
//
|
|
12578
12589
|
// for a visual example please see:
|
|
12579
12590
|
// https://github.com/highlightjs/highlight.js/issues/2827
|
|
12580
|
-
begin:
|
|
12591
|
+
begin: v(
|
|
12581
12592
|
/[ ]+/,
|
|
12582
12593
|
// necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
|
|
12583
12594
|
"(",
|
|
@@ -12615,15 +12626,15 @@ function rE() {
|
|
|
12615
12626
|
]
|
|
12616
12627
|
}, Ge = {
|
|
12617
12628
|
scope: "title",
|
|
12618
|
-
begin:
|
|
12629
|
+
begin: w,
|
|
12619
12630
|
relevance: 0
|
|
12620
12631
|
}, me = {
|
|
12621
12632
|
scope: "title",
|
|
12622
|
-
begin:
|
|
12633
|
+
begin: x,
|
|
12623
12634
|
relevance: 0
|
|
12624
12635
|
}, pe = {
|
|
12625
12636
|
// excludes method names from keyword processing
|
|
12626
|
-
begin: "\\.\\s*" +
|
|
12637
|
+
begin: "\\.\\s*" + x,
|
|
12627
12638
|
relevance: 0
|
|
12628
12639
|
};
|
|
12629
12640
|
var Oe = /* @__PURE__ */ Object.freeze({
|
|
@@ -12642,18 +12653,18 @@ function rE() {
|
|
|
12642
12653
|
R,
|
|
12643
12654
|
{
|
|
12644
12655
|
/** @type {ModeCallback} */
|
|
12645
|
-
"on:begin": (
|
|
12646
|
-
z.data._beginMatch =
|
|
12656
|
+
"on:begin": (M, z) => {
|
|
12657
|
+
z.data._beginMatch = M[1];
|
|
12647
12658
|
},
|
|
12648
12659
|
/** @type {ModeCallback} */
|
|
12649
|
-
"on:end": (
|
|
12650
|
-
z.data._beginMatch !==
|
|
12660
|
+
"on:end": (M, z) => {
|
|
12661
|
+
z.data._beginMatch !== M[1] && z.ignoreMatch();
|
|
12651
12662
|
}
|
|
12652
12663
|
}
|
|
12653
12664
|
);
|
|
12654
12665
|
},
|
|
12655
12666
|
HASH_COMMENT_MODE: Ne,
|
|
12656
|
-
IDENT_RE:
|
|
12667
|
+
IDENT_RE: w,
|
|
12657
12668
|
MATCH_NOTHING_RE: A,
|
|
12658
12669
|
METHOD_GUARD: pe,
|
|
12659
12670
|
NUMBER_MODE: Fe,
|
|
@@ -12664,37 +12675,37 @@ function rE() {
|
|
|
12664
12675
|
RE_STARTERS_RE: Y,
|
|
12665
12676
|
SHEBANG: V,
|
|
12666
12677
|
TITLE_MODE: Ge,
|
|
12667
|
-
UNDERSCORE_IDENT_RE:
|
|
12678
|
+
UNDERSCORE_IDENT_RE: x,
|
|
12668
12679
|
UNDERSCORE_TITLE_MODE: me
|
|
12669
12680
|
});
|
|
12670
|
-
function we(R,
|
|
12671
|
-
R.input[R.index - 1] === "." &&
|
|
12681
|
+
function we(R, M) {
|
|
12682
|
+
R.input[R.index - 1] === "." && M.ignoreMatch();
|
|
12672
12683
|
}
|
|
12673
|
-
function We(R,
|
|
12684
|
+
function We(R, M) {
|
|
12674
12685
|
R.className !== void 0 && (R.scope = R.className, delete R.className);
|
|
12675
12686
|
}
|
|
12676
|
-
function Je(R,
|
|
12677
|
-
|
|
12687
|
+
function Je(R, M) {
|
|
12688
|
+
M && R.beginKeywords && (R.begin = "\\b(" + R.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", R.__beforeBegin = we, R.keywords = R.keywords || R.beginKeywords, delete R.beginKeywords, R.relevance === void 0 && (R.relevance = 0));
|
|
12678
12689
|
}
|
|
12679
|
-
function Tt(R,
|
|
12690
|
+
function Tt(R, M) {
|
|
12680
12691
|
Array.isArray(R.illegal) && (R.illegal = C(...R.illegal));
|
|
12681
12692
|
}
|
|
12682
|
-
function lr(R,
|
|
12693
|
+
function lr(R, M) {
|
|
12683
12694
|
if (R.match) {
|
|
12684
12695
|
if (R.begin || R.end) throw new Error("begin & end are not supported with match");
|
|
12685
12696
|
R.begin = R.match, delete R.match;
|
|
12686
12697
|
}
|
|
12687
12698
|
}
|
|
12688
|
-
function Ht(R,
|
|
12699
|
+
function Ht(R, M) {
|
|
12689
12700
|
R.relevance === void 0 && (R.relevance = 1);
|
|
12690
12701
|
}
|
|
12691
|
-
const tr = (R,
|
|
12702
|
+
const tr = (R, M) => {
|
|
12692
12703
|
if (!R.beforeMatch) return;
|
|
12693
12704
|
if (R.starts) throw new Error("beforeMatch cannot be used with starts");
|
|
12694
12705
|
const z = Object.assign({}, R);
|
|
12695
12706
|
Object.keys(R).forEach((ie) => {
|
|
12696
12707
|
delete R[ie];
|
|
12697
|
-
}), R.keywords = z.keywords, R.begin =
|
|
12708
|
+
}), R.keywords = z.keywords, R.begin = v(z.beforeMatch, g(z.begin)), R.starts = {
|
|
12698
12709
|
relevance: 0,
|
|
12699
12710
|
contains: [
|
|
12700
12711
|
Object.assign(z, { endsParent: !0 })
|
|
@@ -12716,39 +12727,39 @@ function rE() {
|
|
|
12716
12727
|
"value"
|
|
12717
12728
|
// common variable name
|
|
12718
12729
|
], rr = "keyword";
|
|
12719
|
-
function ht(R,
|
|
12730
|
+
function ht(R, M, z = rr) {
|
|
12720
12731
|
const ie = /* @__PURE__ */ Object.create(null);
|
|
12721
12732
|
return typeof R == "string" ? ke(z, R.split(" ")) : Array.isArray(R) ? ke(z, R) : Object.keys(R).forEach(function(Ue) {
|
|
12722
12733
|
Object.assign(
|
|
12723
12734
|
ie,
|
|
12724
|
-
ht(R[Ue],
|
|
12735
|
+
ht(R[Ue], M, Ue)
|
|
12725
12736
|
);
|
|
12726
12737
|
}), ie;
|
|
12727
12738
|
function ke(Ue, J) {
|
|
12728
|
-
|
|
12739
|
+
M && (J = J.map((Q) => Q.toLowerCase())), J.forEach(function(Q) {
|
|
12729
12740
|
const ae = Q.split("|");
|
|
12730
12741
|
ie[ae[0]] = [Ue, Wt(ae[0], ae[1])];
|
|
12731
12742
|
});
|
|
12732
12743
|
}
|
|
12733
12744
|
}
|
|
12734
|
-
function Wt(R,
|
|
12735
|
-
return
|
|
12745
|
+
function Wt(R, M) {
|
|
12746
|
+
return M ? Number(M) : cr(R) ? 0 : 1;
|
|
12736
12747
|
}
|
|
12737
12748
|
function cr(R) {
|
|
12738
12749
|
return Vt.includes(R.toLowerCase());
|
|
12739
12750
|
}
|
|
12740
12751
|
const xt = {}, lt = (R) => {
|
|
12741
12752
|
console.error(R);
|
|
12742
|
-
}, ft = (R, ...
|
|
12743
|
-
console.log(`WARN: ${R}`, ...
|
|
12744
|
-
}, je = (R,
|
|
12745
|
-
xt[`${R}/${
|
|
12753
|
+
}, ft = (R, ...M) => {
|
|
12754
|
+
console.log(`WARN: ${R}`, ...M);
|
|
12755
|
+
}, je = (R, M) => {
|
|
12756
|
+
xt[`${R}/${M}`] || (console.log(`Deprecated as of ${R}. ${M}`), xt[`${R}/${M}`] = !0);
|
|
12746
12757
|
}, Mt = new Error();
|
|
12747
|
-
function vt(R,
|
|
12758
|
+
function vt(R, M, { key: z }) {
|
|
12748
12759
|
let ie = 0;
|
|
12749
12760
|
const ke = R[z], Ue = {}, J = {};
|
|
12750
|
-
for (let Q = 1; Q <=
|
|
12751
|
-
J[Q + ie] = ke[Q], Ue[Q + ie] = !0, ie += O(
|
|
12761
|
+
for (let Q = 1; Q <= M.length; Q++)
|
|
12762
|
+
J[Q + ie] = ke[Q], Ue[Q + ie] = !0, ie += O(M[Q - 1]);
|
|
12752
12763
|
R[z] = J, R[z]._emit = Ue, R[z]._multi = !0;
|
|
12753
12764
|
}
|
|
12754
12765
|
function Rt(R) {
|
|
@@ -12776,7 +12787,7 @@ function rE() {
|
|
|
12776
12787
|
Fr(R), typeof R.beginScope == "string" && (R.beginScope = { _wrap: R.beginScope }), typeof R.endScope == "string" && (R.endScope = { _wrap: R.endScope }), Rt(R), _r(R);
|
|
12777
12788
|
}
|
|
12778
12789
|
function Gr(R) {
|
|
12779
|
-
function
|
|
12790
|
+
function M(J, Q) {
|
|
12780
12791
|
return new RegExp(
|
|
12781
12792
|
p(J),
|
|
12782
12793
|
"m" + (R.case_insensitive ? "i" : "") + (R.unicodeRegex ? "u" : "") + (Q ? "g" : "")
|
|
@@ -12793,7 +12804,7 @@ function rE() {
|
|
|
12793
12804
|
compile() {
|
|
12794
12805
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
12795
12806
|
const Q = this.regexes.map((ae) => ae[1]);
|
|
12796
|
-
this.matcherRe =
|
|
12807
|
+
this.matcherRe = M(D(Q, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
12797
12808
|
}
|
|
12798
12809
|
/** @param {string} s */
|
|
12799
12810
|
exec(Q) {
|
|
@@ -12863,7 +12874,7 @@ function rE() {
|
|
|
12863
12874
|
Ht
|
|
12864
12875
|
].forEach((Ye) => Ye(J, Q)), J.isCompiled = !0;
|
|
12865
12876
|
let $e = null;
|
|
12866
|
-
return typeof J.keywords == "object" && J.keywords.$pattern && (J.keywords = Object.assign({}, J.keywords), $e = J.keywords.$pattern, delete J.keywords.$pattern), $e = $e || /\w+/, J.keywords && (J.keywords = ht(J.keywords, R.case_insensitive)), ae.keywordPatternRe =
|
|
12877
|
+
return typeof J.keywords == "object" && J.keywords.$pattern && (J.keywords = Object.assign({}, J.keywords), $e = J.keywords.$pattern, delete J.keywords.$pattern), $e = $e || /\w+/, J.keywords && (J.keywords = ht(J.keywords, R.case_insensitive)), ae.keywordPatternRe = M($e, !0), Q && (J.begin || (J.begin = /\B|\b/), ae.beginRe = M(ae.begin), !J.end && !J.endsWithParent && (J.end = /\B|\b/), J.end && (ae.endRe = M(ae.end)), ae.terminatorEnd = p(ae.end) || "", J.endsWithParent && Q.terminatorEnd && (ae.terminatorEnd += (J.end ? "|" : "") + Q.terminatorEnd)), J.illegal && (ae.illegalRe = M(
|
|
12867
12878
|
/** @type {RegExp | string} */
|
|
12868
12879
|
J.illegal
|
|
12869
12880
|
)), J.contains || (J.contains = []), J.contains = [].concat(...J.contains.map(function(Ye) {
|
|
@@ -12887,18 +12898,18 @@ function rE() {
|
|
|
12887
12898
|
return R ? R.endsWithParent || Cr(R.starts) : !1;
|
|
12888
12899
|
}
|
|
12889
12900
|
function Yr(R) {
|
|
12890
|
-
return R.variants && !R.cachedVariants && (R.cachedVariants = R.variants.map(function(
|
|
12891
|
-
return n(R, { variants: null },
|
|
12901
|
+
return R.variants && !R.cachedVariants && (R.cachedVariants = R.variants.map(function(M) {
|
|
12902
|
+
return n(R, { variants: null }, M);
|
|
12892
12903
|
})), R.cachedVariants ? R.cachedVariants : Cr(R) ? n(R, { starts: R.starts ? n(R.starts) : null }) : Object.isFrozen(R) ? n(R) : R;
|
|
12893
12904
|
}
|
|
12894
12905
|
var qr = "11.11.1";
|
|
12895
12906
|
class zr extends Error {
|
|
12896
|
-
constructor(
|
|
12897
|
-
super(
|
|
12907
|
+
constructor(M, z) {
|
|
12908
|
+
super(M), this.name = "HTMLInjectionError", this.html = z;
|
|
12898
12909
|
}
|
|
12899
12910
|
}
|
|
12900
12911
|
const dr = t, Nr = n, be = Symbol("nomatch"), nr = 7, wt = function(R) {
|
|
12901
|
-
const
|
|
12912
|
+
const M = /* @__PURE__ */ Object.create(null), z = /* @__PURE__ */ Object.create(null), ie = [];
|
|
12902
12913
|
let ke = !0;
|
|
12903
12914
|
const Ue = "Could not find the language '{}', did you forget to load/include a language module?", J = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
12904
12915
|
let Q = {
|
|
@@ -12972,7 +12983,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), qe = F, Re = ee), ue
|
|
|
12972
12983
|
if (he === "") return;
|
|
12973
12984
|
let H = null;
|
|
12974
12985
|
if (typeof oe.subLanguage == "string") {
|
|
12975
|
-
if (!
|
|
12986
|
+
if (!M[oe.subLanguage]) {
|
|
12976
12987
|
Ke.addText(he);
|
|
12977
12988
|
return;
|
|
12978
12989
|
}
|
|
@@ -13144,7 +13155,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), qe = F, Re = ee), ue
|
|
|
13144
13155
|
return ee._emitter.addText(F), ee;
|
|
13145
13156
|
}
|
|
13146
13157
|
function Vr(F, ee) {
|
|
13147
|
-
ee = ee || Q.languages || Object.keys(
|
|
13158
|
+
ee = ee || Q.languages || Object.keys(M);
|
|
13148
13159
|
const ue = Hr(F), Re = ee.filter(Pt).filter(In).map(
|
|
13149
13160
|
(ot) => ur(ot, F, !1)
|
|
13150
13161
|
);
|
|
@@ -13224,18 +13235,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), qe = F, Re = ee), ue
|
|
|
13224
13235
|
throw Re;
|
|
13225
13236
|
ue = J;
|
|
13226
13237
|
}
|
|
13227
|
-
ue.name || (ue.name = F),
|
|
13238
|
+
ue.name || (ue.name = F), M[F] = ue, ue.rawDefinition = ee.bind(null, R), ue.aliases && An(ue.aliases, { languageName: F });
|
|
13228
13239
|
}
|
|
13229
13240
|
function Tl(F) {
|
|
13230
|
-
delete
|
|
13241
|
+
delete M[F];
|
|
13231
13242
|
for (const ee of Object.keys(z))
|
|
13232
13243
|
z[ee] === F && delete z[ee];
|
|
13233
13244
|
}
|
|
13234
13245
|
function hl() {
|
|
13235
|
-
return Object.keys(
|
|
13246
|
+
return Object.keys(M);
|
|
13236
13247
|
}
|
|
13237
13248
|
function Pt(F) {
|
|
13238
|
-
return F = (F || "").toLowerCase(),
|
|
13249
|
+
return F = (F || "").toLowerCase(), M[F] || M[z[F]];
|
|
13239
13250
|
}
|
|
13240
13251
|
function An(F, { languageName: ee }) {
|
|
13241
13252
|
typeof F == "string" && (F = [F]), F.forEach((ue) => {
|
|
@@ -13297,10 +13308,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), qe = F, Re = ee), ue
|
|
|
13297
13308
|
}, R.safeMode = function() {
|
|
13298
13309
|
ke = !0;
|
|
13299
13310
|
}, R.versionString = qr, R.regex = {
|
|
13300
|
-
concat:
|
|
13311
|
+
concat: v,
|
|
13301
13312
|
lookahead: g,
|
|
13302
13313
|
either: C,
|
|
13303
|
-
optional:
|
|
13314
|
+
optional: f,
|
|
13304
13315
|
anyNumberOfTimes: S
|
|
13305
13316
|
};
|
|
13306
13317
|
for (const F in Oe)
|
|
@@ -14772,11 +14783,11 @@ function uE() {
|
|
|
14772
14783
|
a,
|
|
14773
14784
|
t.C_BLOCK_COMMENT_MODE
|
|
14774
14785
|
]
|
|
14775
|
-
},
|
|
14786
|
+
}, f = {
|
|
14776
14787
|
className: "title",
|
|
14777
14788
|
begin: n.optional(o) + t.IDENT_RE,
|
|
14778
14789
|
relevance: 0
|
|
14779
|
-
},
|
|
14790
|
+
}, v = n.optional(o) + t.IDENT_RE + "\\s*\\(", b = [
|
|
14780
14791
|
"alignas",
|
|
14781
14792
|
"alignof",
|
|
14782
14793
|
"and",
|
|
@@ -15042,7 +15053,7 @@ function uE() {
|
|
|
15042
15053
|
"vsprintf"
|
|
15043
15054
|
], A = {
|
|
15044
15055
|
type: C,
|
|
15045
|
-
keyword:
|
|
15056
|
+
keyword: b,
|
|
15046
15057
|
literal: [
|
|
15047
15058
|
"NULL",
|
|
15048
15059
|
"false",
|
|
@@ -15052,7 +15063,7 @@ function uE() {
|
|
|
15052
15063
|
],
|
|
15053
15064
|
built_in: ["_Pragma"],
|
|
15054
15065
|
_type_hints: O
|
|
15055
|
-
},
|
|
15066
|
+
}, w = {
|
|
15056
15067
|
className: "function.dispatch",
|
|
15057
15068
|
relevance: 0,
|
|
15058
15069
|
keywords: {
|
|
@@ -15069,8 +15080,8 @@ function uE() {
|
|
|
15069
15080
|
t.IDENT_RE,
|
|
15070
15081
|
n.lookahead(/(<[^<>]+>|)\s*\(/)
|
|
15071
15082
|
)
|
|
15072
|
-
},
|
|
15073
|
-
|
|
15083
|
+
}, x = [
|
|
15084
|
+
w,
|
|
15074
15085
|
S,
|
|
15075
15086
|
d,
|
|
15076
15087
|
a,
|
|
@@ -15096,19 +15107,19 @@ function uE() {
|
|
|
15096
15107
|
}
|
|
15097
15108
|
],
|
|
15098
15109
|
keywords: A,
|
|
15099
|
-
contains:
|
|
15110
|
+
contains: x.concat([
|
|
15100
15111
|
{
|
|
15101
15112
|
begin: /\(/,
|
|
15102
15113
|
end: /\)/,
|
|
15103
15114
|
keywords: A,
|
|
15104
|
-
contains:
|
|
15115
|
+
contains: x.concat(["self"]),
|
|
15105
15116
|
relevance: 0
|
|
15106
15117
|
}
|
|
15107
15118
|
]),
|
|
15108
15119
|
relevance: 0
|
|
15109
15120
|
}, X = {
|
|
15110
15121
|
className: "function",
|
|
15111
|
-
begin: "(" + c + "[\\*&\\s]+)+" +
|
|
15122
|
+
begin: "(" + c + "[\\*&\\s]+)+" + v,
|
|
15112
15123
|
returnBegin: !0,
|
|
15113
15124
|
end: /[{;=]/,
|
|
15114
15125
|
excludeEnd: !0,
|
|
@@ -15122,9 +15133,9 @@ function uE() {
|
|
|
15122
15133
|
relevance: 0
|
|
15123
15134
|
},
|
|
15124
15135
|
{
|
|
15125
|
-
begin:
|
|
15136
|
+
begin: v,
|
|
15126
15137
|
returnBegin: !0,
|
|
15127
|
-
contains: [
|
|
15138
|
+
contains: [f],
|
|
15128
15139
|
relevance: 0
|
|
15129
15140
|
},
|
|
15130
15141
|
// needed because we do not have look-behind on the below rule
|
|
@@ -15200,8 +15211,8 @@ function uE() {
|
|
|
15200
15211
|
contains: [].concat(
|
|
15201
15212
|
B,
|
|
15202
15213
|
X,
|
|
15203
|
-
M,
|
|
15204
15214
|
w,
|
|
15215
|
+
x,
|
|
15205
15216
|
[
|
|
15206
15217
|
S,
|
|
15207
15218
|
{
|
|
@@ -17008,16 +17019,16 @@ function vE() {
|
|
|
17008
17019
|
"tcsh",
|
|
17009
17020
|
"dash",
|
|
17010
17021
|
"scsh"
|
|
17011
|
-
],
|
|
17022
|
+
], f = e.SHEBANG({
|
|
17012
17023
|
binary: `(${S.join("|")})`,
|
|
17013
17024
|
relevance: 10
|
|
17014
|
-
}),
|
|
17025
|
+
}), v = {
|
|
17015
17026
|
className: "function",
|
|
17016
17027
|
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
|
|
17017
17028
|
returnBegin: !0,
|
|
17018
17029
|
contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
|
|
17019
17030
|
relevance: 0
|
|
17020
|
-
},
|
|
17031
|
+
}, b = [
|
|
17021
17032
|
"if",
|
|
17022
17033
|
"then",
|
|
17023
17034
|
"else",
|
|
@@ -17262,7 +17273,7 @@ function vE() {
|
|
|
17262
17273
|
],
|
|
17263
17274
|
keywords: {
|
|
17264
17275
|
$pattern: /\b[a-z][a-z0-9._-]+\b/,
|
|
17265
|
-
keyword:
|
|
17276
|
+
keyword: b,
|
|
17266
17277
|
literal: C,
|
|
17267
17278
|
built_in: [
|
|
17268
17279
|
...y,
|
|
@@ -17275,11 +17286,11 @@ function vE() {
|
|
|
17275
17286
|
]
|
|
17276
17287
|
},
|
|
17277
17288
|
contains: [
|
|
17278
|
-
|
|
17289
|
+
f,
|
|
17279
17290
|
// to catch known shells and boost relevancy
|
|
17280
17291
|
e.SHEBANG(),
|
|
17281
17292
|
// to catch unknown shells but still highlight the shebang
|
|
17282
|
-
|
|
17293
|
+
v,
|
|
17283
17294
|
g,
|
|
17284
17295
|
o,
|
|
17285
17296
|
s,
|
|
@@ -17670,7 +17681,7 @@ function OE() {
|
|
|
17670
17681
|
className: "title",
|
|
17671
17682
|
begin: t.optional(i) + e.IDENT_RE,
|
|
17672
17683
|
relevance: 0
|
|
17673
|
-
},
|
|
17684
|
+
}, f = t.optional(i) + e.IDENT_RE + "\\s*\\(", C = {
|
|
17674
17685
|
keyword: [
|
|
17675
17686
|
"asm",
|
|
17676
17687
|
"auto",
|
|
@@ -17791,7 +17802,7 @@ function OE() {
|
|
|
17791
17802
|
]),
|
|
17792
17803
|
relevance: 0
|
|
17793
17804
|
}, I = {
|
|
17794
|
-
begin: "(" + s + "[\\*&\\s]+)+" +
|
|
17805
|
+
begin: "(" + s + "[\\*&\\s]+)+" + f,
|
|
17795
17806
|
returnBegin: !0,
|
|
17796
17807
|
end: /[{;=]/,
|
|
17797
17808
|
excludeEnd: !0,
|
|
@@ -17805,7 +17816,7 @@ function OE() {
|
|
|
17805
17816
|
relevance: 0
|
|
17806
17817
|
},
|
|
17807
17818
|
{
|
|
17808
|
-
begin:
|
|
17819
|
+
begin: f,
|
|
17809
17820
|
returnBegin: !0,
|
|
17810
17821
|
contains: [e.inherit(S, { className: "title.function" })],
|
|
17811
17822
|
relevance: 0
|
|
@@ -18372,14 +18383,14 @@ function xE() {
|
|
|
18372
18383
|
), S = {
|
|
18373
18384
|
className: "literal",
|
|
18374
18385
|
begin: /\b(true|false|nil)\b/
|
|
18375
|
-
},
|
|
18386
|
+
}, f = {
|
|
18376
18387
|
begin: "\\[|(#::?" + n + ")?\\{",
|
|
18377
18388
|
end: "[\\]\\}]",
|
|
18378
18389
|
relevance: 0
|
|
18379
|
-
},
|
|
18390
|
+
}, v = {
|
|
18380
18391
|
className: "symbol",
|
|
18381
18392
|
begin: "[:]{1,2}" + n
|
|
18382
|
-
},
|
|
18393
|
+
}, b = {
|
|
18383
18394
|
begin: "\\(",
|
|
18384
18395
|
end: "\\)"
|
|
18385
18396
|
}, C = {
|
|
@@ -18393,13 +18404,13 @@ function xE() {
|
|
|
18393
18404
|
starts: C
|
|
18394
18405
|
}, y = [
|
|
18395
18406
|
p,
|
|
18396
|
-
|
|
18407
|
+
b,
|
|
18397
18408
|
c,
|
|
18398
18409
|
d,
|
|
18399
18410
|
u,
|
|
18400
18411
|
g,
|
|
18412
|
+
v,
|
|
18401
18413
|
f,
|
|
18402
|
-
b,
|
|
18403
18414
|
s,
|
|
18404
18415
|
S,
|
|
18405
18416
|
o
|
|
@@ -18421,11 +18432,11 @@ function xE() {
|
|
|
18421
18432
|
}
|
|
18422
18433
|
].concat(y)
|
|
18423
18434
|
};
|
|
18424
|
-
return
|
|
18435
|
+
return b.contains = [
|
|
18425
18436
|
I,
|
|
18426
18437
|
O,
|
|
18427
18438
|
C
|
|
18428
|
-
], C.contains = y,
|
|
18439
|
+
], C.contains = y, f.contains = y, {
|
|
18429
18440
|
name: "Clojure",
|
|
18430
18441
|
aliases: [
|
|
18431
18442
|
"clj",
|
|
@@ -18434,13 +18445,13 @@ function xE() {
|
|
|
18434
18445
|
illegal: /\S/,
|
|
18435
18446
|
contains: [
|
|
18436
18447
|
p,
|
|
18437
|
-
|
|
18448
|
+
b,
|
|
18438
18449
|
c,
|
|
18439
18450
|
d,
|
|
18440
18451
|
u,
|
|
18441
18452
|
g,
|
|
18453
|
+
v,
|
|
18442
18454
|
f,
|
|
18443
|
-
b,
|
|
18444
18455
|
s,
|
|
18445
18456
|
S
|
|
18446
18457
|
]
|
|
@@ -18666,12 +18677,12 @@ function LE() {
|
|
|
18666
18677
|
keyword: r.concat(u).filter(g(p)),
|
|
18667
18678
|
literal: e.concat(d),
|
|
18668
18679
|
built_in: i.concat(c)
|
|
18669
|
-
},
|
|
18680
|
+
}, f = "[A-Za-z$_][0-9A-Za-z$_]*", v = {
|
|
18670
18681
|
className: "subst",
|
|
18671
18682
|
begin: /#\{/,
|
|
18672
18683
|
end: /\}/,
|
|
18673
18684
|
keywords: S
|
|
18674
|
-
},
|
|
18685
|
+
}, b = [
|
|
18675
18686
|
s.BINARY_NUMBER_MODE,
|
|
18676
18687
|
s.inherit(s.C_NUMBER_MODE, { starts: {
|
|
18677
18688
|
end: "(\\s*/)?",
|
|
@@ -18696,7 +18707,7 @@ function LE() {
|
|
|
18696
18707
|
end: /"""/,
|
|
18697
18708
|
contains: [
|
|
18698
18709
|
s.BACKSLASH_ESCAPE,
|
|
18699
|
-
|
|
18710
|
+
v
|
|
18700
18711
|
]
|
|
18701
18712
|
},
|
|
18702
18713
|
{
|
|
@@ -18704,7 +18715,7 @@ function LE() {
|
|
|
18704
18715
|
end: /"/,
|
|
18705
18716
|
contains: [
|
|
18706
18717
|
s.BACKSLASH_ESCAPE,
|
|
18707
|
-
|
|
18718
|
+
v
|
|
18708
18719
|
]
|
|
18709
18720
|
}
|
|
18710
18721
|
]
|
|
@@ -18716,7 +18727,7 @@ function LE() {
|
|
|
18716
18727
|
begin: "///",
|
|
18717
18728
|
end: "///",
|
|
18718
18729
|
contains: [
|
|
18719
|
-
|
|
18730
|
+
v,
|
|
18720
18731
|
s.HASH_COMMENT_MODE
|
|
18721
18732
|
]
|
|
18722
18733
|
},
|
|
@@ -18732,7 +18743,7 @@ function LE() {
|
|
|
18732
18743
|
]
|
|
18733
18744
|
},
|
|
18734
18745
|
{
|
|
18735
|
-
begin: "@" +
|
|
18746
|
+
begin: "@" + f
|
|
18736
18747
|
// relevance booster
|
|
18737
18748
|
},
|
|
18738
18749
|
{
|
|
@@ -18751,8 +18762,8 @@ function LE() {
|
|
|
18751
18762
|
]
|
|
18752
18763
|
}
|
|
18753
18764
|
];
|
|
18754
|
-
|
|
18755
|
-
const C = s.inherit(s.TITLE_MODE, { begin:
|
|
18765
|
+
v.contains = b;
|
|
18766
|
+
const C = s.inherit(s.TITLE_MODE, { begin: f }), O = "(\\(.*\\)\\s*)?\\B[-=]>", y = {
|
|
18756
18767
|
className: "params",
|
|
18757
18768
|
begin: "\\([^\\(]",
|
|
18758
18769
|
returnBegin: !0,
|
|
@@ -18763,20 +18774,20 @@ function LE() {
|
|
|
18763
18774
|
begin: /\(/,
|
|
18764
18775
|
end: /\)/,
|
|
18765
18776
|
keywords: S,
|
|
18766
|
-
contains: ["self"].concat(
|
|
18777
|
+
contains: ["self"].concat(b)
|
|
18767
18778
|
}
|
|
18768
18779
|
]
|
|
18769
18780
|
}, I = {
|
|
18770
18781
|
variants: [
|
|
18771
18782
|
{ match: [
|
|
18772
18783
|
/class\s+/,
|
|
18773
|
-
|
|
18784
|
+
f,
|
|
18774
18785
|
/\s+extends\s+/,
|
|
18775
|
-
|
|
18786
|
+
f
|
|
18776
18787
|
] },
|
|
18777
18788
|
{ match: [
|
|
18778
18789
|
/class\s+/,
|
|
18779
|
-
|
|
18790
|
+
f
|
|
18780
18791
|
] }
|
|
18781
18792
|
],
|
|
18782
18793
|
scope: {
|
|
@@ -18795,12 +18806,12 @@ function LE() {
|
|
|
18795
18806
|
keywords: S,
|
|
18796
18807
|
illegal: /\/\*/,
|
|
18797
18808
|
contains: [
|
|
18798
|
-
...
|
|
18809
|
+
...b,
|
|
18799
18810
|
s.COMMENT("###", "###"),
|
|
18800
18811
|
s.HASH_COMMENT_MODE,
|
|
18801
18812
|
{
|
|
18802
18813
|
className: "function",
|
|
18803
|
-
begin: "^\\s*" +
|
|
18814
|
+
begin: "^\\s*" + f + "\\s*=\\s*" + O,
|
|
18804
18815
|
end: "[-=]>",
|
|
18805
18816
|
returnBegin: !0,
|
|
18806
18817
|
contains: [
|
|
@@ -18824,7 +18835,7 @@ function LE() {
|
|
|
18824
18835
|
},
|
|
18825
18836
|
I,
|
|
18826
18837
|
{
|
|
18827
|
-
begin:
|
|
18838
|
+
begin: f + ":",
|
|
18828
18839
|
end: ":",
|
|
18829
18840
|
returnBegin: !0,
|
|
18830
18841
|
returnEnd: !0,
|
|
@@ -19432,7 +19443,7 @@ function UE() {
|
|
|
19432
19443
|
className: "title",
|
|
19433
19444
|
begin: t.optional(i) + e.IDENT_RE,
|
|
19434
19445
|
relevance: 0
|
|
19435
|
-
},
|
|
19446
|
+
}, f = t.optional(i) + e.IDENT_RE + "\\s*\\(", v = [
|
|
19436
19447
|
"alignas",
|
|
19437
19448
|
"alignof",
|
|
19438
19449
|
"and",
|
|
@@ -19520,7 +19531,7 @@ function UE() {
|
|
|
19520
19531
|
"while",
|
|
19521
19532
|
"xor",
|
|
19522
19533
|
"xor_eq"
|
|
19523
|
-
],
|
|
19534
|
+
], b = [
|
|
19524
19535
|
"bool",
|
|
19525
19536
|
"char",
|
|
19526
19537
|
"char16_t",
|
|
@@ -19697,8 +19708,8 @@ function UE() {
|
|
|
19697
19708
|
"vprintf",
|
|
19698
19709
|
"vsprintf"
|
|
19699
19710
|
], D = {
|
|
19700
|
-
type:
|
|
19701
|
-
keyword:
|
|
19711
|
+
type: b,
|
|
19712
|
+
keyword: v,
|
|
19702
19713
|
literal: [
|
|
19703
19714
|
"NULL",
|
|
19704
19715
|
"false",
|
|
@@ -19725,7 +19736,7 @@ function UE() {
|
|
|
19725
19736
|
e.IDENT_RE,
|
|
19726
19737
|
t.lookahead(/(<[^<>]+>|)\s*\(/)
|
|
19727
19738
|
)
|
|
19728
|
-
},
|
|
19739
|
+
}, w = [
|
|
19729
19740
|
A,
|
|
19730
19741
|
g,
|
|
19731
19742
|
c,
|
|
@@ -19733,7 +19744,7 @@ function UE() {
|
|
|
19733
19744
|
e.C_BLOCK_COMMENT_MODE,
|
|
19734
19745
|
p,
|
|
19735
19746
|
u
|
|
19736
|
-
],
|
|
19747
|
+
], x = {
|
|
19737
19748
|
// This mode covers expression context where we can't expect a function
|
|
19738
19749
|
// definition and shouldn't highlight anything that looks like one:
|
|
19739
19750
|
// `return some()`, `else if()`, `(x*sum(1, 2))`
|
|
@@ -19752,19 +19763,19 @@ function UE() {
|
|
|
19752
19763
|
}
|
|
19753
19764
|
],
|
|
19754
19765
|
keywords: D,
|
|
19755
|
-
contains:
|
|
19766
|
+
contains: w.concat([
|
|
19756
19767
|
{
|
|
19757
19768
|
begin: /\(/,
|
|
19758
19769
|
end: /\)/,
|
|
19759
19770
|
keywords: D,
|
|
19760
|
-
contains:
|
|
19771
|
+
contains: w.concat(["self"]),
|
|
19761
19772
|
relevance: 0
|
|
19762
19773
|
}
|
|
19763
19774
|
]),
|
|
19764
19775
|
relevance: 0
|
|
19765
19776
|
}, B = {
|
|
19766
19777
|
className: "function",
|
|
19767
|
-
begin: "(" + s + "[\\*&\\s]+)+" +
|
|
19778
|
+
begin: "(" + s + "[\\*&\\s]+)+" + f,
|
|
19768
19779
|
returnBegin: !0,
|
|
19769
19780
|
end: /[{;=]/,
|
|
19770
19781
|
excludeEnd: !0,
|
|
@@ -19778,7 +19789,7 @@ function UE() {
|
|
|
19778
19789
|
relevance: 0
|
|
19779
19790
|
},
|
|
19780
19791
|
{
|
|
19781
|
-
begin:
|
|
19792
|
+
begin: f,
|
|
19782
19793
|
returnBegin: !0,
|
|
19783
19794
|
contains: [S],
|
|
19784
19795
|
relevance: 0
|
|
@@ -19854,10 +19865,10 @@ function UE() {
|
|
|
19854
19865
|
illegal: "</",
|
|
19855
19866
|
classNameAliases: { "function.dispatch": "built_in" },
|
|
19856
19867
|
contains: [].concat(
|
|
19857
|
-
|
|
19868
|
+
x,
|
|
19858
19869
|
B,
|
|
19859
19870
|
A,
|
|
19860
|
-
|
|
19871
|
+
w,
|
|
19861
19872
|
[
|
|
19862
19873
|
g,
|
|
19863
19874
|
{
|
|
@@ -20100,7 +20111,7 @@ function FE() {
|
|
|
20100
20111
|
}
|
|
20101
20112
|
],
|
|
20102
20113
|
relevance: 0
|
|
20103
|
-
},
|
|
20114
|
+
}, f = {
|
|
20104
20115
|
begin: "(?!%\\})(" + e.RE_STARTERS_RE + "|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",
|
|
20105
20116
|
keywords: "case if select unless until when while",
|
|
20106
20117
|
contains: [
|
|
@@ -20123,7 +20134,7 @@ function FE() {
|
|
|
20123
20134
|
}
|
|
20124
20135
|
],
|
|
20125
20136
|
relevance: 0
|
|
20126
|
-
},
|
|
20137
|
+
}, v = {
|
|
20127
20138
|
className: "regexp",
|
|
20128
20139
|
contains: [
|
|
20129
20140
|
e.BACKSLASH_ESCAPE,
|
|
@@ -20156,7 +20167,7 @@ function FE() {
|
|
|
20156
20167
|
}
|
|
20157
20168
|
],
|
|
20158
20169
|
relevance: 0
|
|
20159
|
-
},
|
|
20170
|
+
}, b = {
|
|
20160
20171
|
className: "meta",
|
|
20161
20172
|
begin: "@\\[",
|
|
20162
20173
|
end: "\\]",
|
|
@@ -20165,9 +20176,9 @@ function FE() {
|
|
|
20165
20176
|
u,
|
|
20166
20177
|
g,
|
|
20167
20178
|
S,
|
|
20179
|
+
v,
|
|
20168
20180
|
f,
|
|
20169
20181
|
b,
|
|
20170
|
-
v,
|
|
20171
20182
|
d,
|
|
20172
20183
|
e.HASH_COMMENT_MODE,
|
|
20173
20184
|
{
|
|
@@ -20434,7 +20445,7 @@ function GE() {
|
|
|
20434
20445
|
begin: /\{/,
|
|
20435
20446
|
end: /\}/,
|
|
20436
20447
|
keywords: s
|
|
20437
|
-
},
|
|
20448
|
+
}, f = e.inherit(S, { illegal: /\n/ }), v = {
|
|
20438
20449
|
className: "string",
|
|
20439
20450
|
begin: /\$"/,
|
|
20440
20451
|
end: '"',
|
|
@@ -20443,9 +20454,9 @@ function GE() {
|
|
|
20443
20454
|
{ begin: /\{\{/ },
|
|
20444
20455
|
{ begin: /\}\}/ },
|
|
20445
20456
|
e.BACKSLASH_ESCAPE,
|
|
20446
|
-
|
|
20457
|
+
f
|
|
20447
20458
|
]
|
|
20448
|
-
},
|
|
20459
|
+
}, b = {
|
|
20449
20460
|
className: "string",
|
|
20450
20461
|
begin: /\$@"/,
|
|
20451
20462
|
end: '"',
|
|
@@ -20455,26 +20466,26 @@ function GE() {
|
|
|
20455
20466
|
{ begin: '""' },
|
|
20456
20467
|
S
|
|
20457
20468
|
]
|
|
20458
|
-
}, C = e.inherit(
|
|
20469
|
+
}, C = e.inherit(b, {
|
|
20459
20470
|
illegal: /\n/,
|
|
20460
20471
|
contains: [
|
|
20461
20472
|
{ begin: /\{\{/ },
|
|
20462
20473
|
{ begin: /\}\}/ },
|
|
20463
20474
|
{ begin: '""' },
|
|
20464
|
-
|
|
20475
|
+
f
|
|
20465
20476
|
]
|
|
20466
20477
|
});
|
|
20467
20478
|
S.contains = [
|
|
20479
|
+
b,
|
|
20468
20480
|
v,
|
|
20469
|
-
f,
|
|
20470
20481
|
p,
|
|
20471
20482
|
e.APOS_STRING_MODE,
|
|
20472
20483
|
e.QUOTE_STRING_MODE,
|
|
20473
20484
|
d,
|
|
20474
20485
|
e.C_BLOCK_COMMENT_MODE
|
|
20475
|
-
],
|
|
20486
|
+
], f.contains = [
|
|
20476
20487
|
C,
|
|
20477
|
-
|
|
20488
|
+
v,
|
|
20478
20489
|
g,
|
|
20479
20490
|
e.APOS_STRING_MODE,
|
|
20480
20491
|
e.QUOTE_STRING_MODE,
|
|
@@ -20483,8 +20494,8 @@ function GE() {
|
|
|
20483
20494
|
];
|
|
20484
20495
|
const O = { variants: [
|
|
20485
20496
|
u,
|
|
20497
|
+
b,
|
|
20486
20498
|
v,
|
|
20487
|
-
f,
|
|
20488
20499
|
p,
|
|
20489
20500
|
e.APOS_STRING_MODE,
|
|
20490
20501
|
e.QUOTE_STRING_MODE
|
|
@@ -21499,7 +21510,7 @@ function qE() {
|
|
|
21499
21510
|
"zoom"
|
|
21500
21511
|
].sort().reverse();
|
|
21501
21512
|
function c(d) {
|
|
21502
|
-
const u = d.regex, p = r(d), g = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, S = "and or not only",
|
|
21513
|
+
const u = d.regex, p = r(d), g = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, S = "and or not only", f = /@-?\w[\w]*(-\w+)*/, v = "[a-zA-Z-][a-zA-Z0-9_-]*", b = [
|
|
21503
21514
|
d.APOS_STRING_MODE,
|
|
21504
21515
|
d.QUOTE_STRING_MODE
|
|
21505
21516
|
];
|
|
@@ -21526,7 +21537,7 @@ function qE() {
|
|
|
21526
21537
|
},
|
|
21527
21538
|
{
|
|
21528
21539
|
className: "selector-class",
|
|
21529
|
-
begin: "\\." +
|
|
21540
|
+
begin: "\\." + v,
|
|
21530
21541
|
relevance: 0
|
|
21531
21542
|
},
|
|
21532
21543
|
p.ATTRIBUTE_SELECTOR_MODE,
|
|
@@ -21557,7 +21568,7 @@ function qE() {
|
|
|
21557
21568
|
p.HEXCOLOR,
|
|
21558
21569
|
p.IMPORTANT,
|
|
21559
21570
|
p.CSS_NUMBER_MODE,
|
|
21560
|
-
...
|
|
21571
|
+
...b,
|
|
21561
21572
|
// needed to highlight these as strings and to avoid issues with
|
|
21562
21573
|
// illegal characters that might be inside urls that would tigger the
|
|
21563
21574
|
// languages illegal stack
|
|
@@ -21568,7 +21579,7 @@ function qE() {
|
|
|
21568
21579
|
// from keywords
|
|
21569
21580
|
keywords: { built_in: "url data-uri" },
|
|
21570
21581
|
contains: [
|
|
21571
|
-
...
|
|
21582
|
+
...b,
|
|
21572
21583
|
{
|
|
21573
21584
|
className: "string",
|
|
21574
21585
|
// any character other than `)` as in `url()` will be the start
|
|
@@ -21591,7 +21602,7 @@ function qE() {
|
|
|
21591
21602
|
contains: [
|
|
21592
21603
|
{
|
|
21593
21604
|
className: "keyword",
|
|
21594
|
-
begin:
|
|
21605
|
+
begin: f
|
|
21595
21606
|
},
|
|
21596
21607
|
{
|
|
21597
21608
|
begin: /\s/,
|
|
@@ -21608,7 +21619,7 @@ function qE() {
|
|
|
21608
21619
|
begin: /[a-z-]+(?=:)/,
|
|
21609
21620
|
className: "attribute"
|
|
21610
21621
|
},
|
|
21611
|
-
...
|
|
21622
|
+
...b,
|
|
21612
21623
|
p.CSS_NUMBER_MODE
|
|
21613
21624
|
]
|
|
21614
21625
|
}
|
|
@@ -21633,15 +21644,15 @@ function zE() {
|
|
|
21633
21644
|
keyword: "abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",
|
|
21634
21645
|
built_in: "bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",
|
|
21635
21646
|
literal: "false null true"
|
|
21636
|
-
}, n = "(0|[1-9][\\d_]*)", a = "(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)", i = "0[bB][01_]+", o = "([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)", s = "0[xX]" + o, c = "([eE][+-]?" + a + ")", d = "(" + a + "(\\.\\d*|" + c + ")|\\d+\\." + a + "|\\." + n + c + "?)", u = "(0[xX](" + o + "\\." + o + "|\\.?" + o + ")[pP][+-]?" + a + ")", p = "(" + n + "|" + i + "|" + s + ")", g = "(" + u + "|" + d + ")", S = `\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,
|
|
21647
|
+
}, n = "(0|[1-9][\\d_]*)", a = "(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)", i = "0[bB][01_]+", o = "([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)", s = "0[xX]" + o, c = "([eE][+-]?" + a + ")", d = "(" + a + "(\\.\\d*|" + c + ")|\\d+\\." + a + "|\\." + n + c + "?)", u = "(0[xX](" + o + "\\." + o + "|\\.?" + o + ")[pP][+-]?" + a + ")", p = "(" + n + "|" + i + "|" + s + ")", g = "(" + u + "|" + d + ")", S = `\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`, f = {
|
|
21637
21648
|
className: "number",
|
|
21638
21649
|
begin: "\\b" + p + "(L|u|U|Lu|LU|uL|UL)?",
|
|
21639
21650
|
relevance: 0
|
|
21640
|
-
},
|
|
21651
|
+
}, v = {
|
|
21641
21652
|
className: "number",
|
|
21642
21653
|
begin: "\\b(" + g + "([fF]|L|i|[fF]i|Li)?|" + p + "(i|[fF]i|Li))",
|
|
21643
21654
|
relevance: 0
|
|
21644
|
-
},
|
|
21655
|
+
}, b = {
|
|
21645
21656
|
className: "string",
|
|
21646
21657
|
begin: "'(" + S + "|.)",
|
|
21647
21658
|
end: "'",
|
|
@@ -21671,12 +21682,12 @@ function zE() {
|
|
|
21671
21682
|
className: "string",
|
|
21672
21683
|
begin: 'q"\\{',
|
|
21673
21684
|
end: '\\}"'
|
|
21674
|
-
},
|
|
21685
|
+
}, w = {
|
|
21675
21686
|
className: "meta",
|
|
21676
21687
|
begin: "^#!",
|
|
21677
21688
|
end: "$",
|
|
21678
21689
|
relevance: 5
|
|
21679
|
-
},
|
|
21690
|
+
}, x = {
|
|
21680
21691
|
className: "meta",
|
|
21681
21692
|
begin: "#(line)",
|
|
21682
21693
|
end: "$",
|
|
@@ -21704,11 +21715,11 @@ function zE() {
|
|
|
21704
21715
|
y,
|
|
21705
21716
|
I,
|
|
21706
21717
|
A,
|
|
21718
|
+
v,
|
|
21707
21719
|
f,
|
|
21708
21720
|
b,
|
|
21709
|
-
v,
|
|
21710
|
-
M,
|
|
21711
21721
|
w,
|
|
21722
|
+
x,
|
|
21712
21723
|
B
|
|
21713
21724
|
]
|
|
21714
21725
|
};
|
|
@@ -21870,7 +21881,7 @@ function HE() {
|
|
|
21870
21881
|
]
|
|
21871
21882
|
}, g = e.inherit(u, { contains: [] }), S = e.inherit(p, { contains: [] });
|
|
21872
21883
|
u.contains.push(S), p.contains.push(g);
|
|
21873
|
-
let
|
|
21884
|
+
let f = [
|
|
21874
21885
|
n,
|
|
21875
21886
|
d
|
|
21876
21887
|
];
|
|
@@ -21880,8 +21891,8 @@ function HE() {
|
|
|
21880
21891
|
g,
|
|
21881
21892
|
S
|
|
21882
21893
|
].forEach((O) => {
|
|
21883
|
-
O.contains = O.contains.concat(
|
|
21884
|
-
}),
|
|
21894
|
+
O.contains = O.contains.concat(f);
|
|
21895
|
+
}), f = f.concat(u, p), {
|
|
21885
21896
|
name: "Markdown",
|
|
21886
21897
|
aliases: [
|
|
21887
21898
|
"md",
|
|
@@ -21895,7 +21906,7 @@ function HE() {
|
|
|
21895
21906
|
{
|
|
21896
21907
|
begin: "^#{1,6}",
|
|
21897
21908
|
end: "$",
|
|
21898
|
-
contains:
|
|
21909
|
+
contains: f
|
|
21899
21910
|
},
|
|
21900
21911
|
{
|
|
21901
21912
|
begin: "(?=^.+?\\n[=-]{2,}$)",
|
|
@@ -21904,7 +21915,7 @@ function HE() {
|
|
|
21904
21915
|
{
|
|
21905
21916
|
begin: "^",
|
|
21906
21917
|
end: "\\n",
|
|
21907
|
-
contains:
|
|
21918
|
+
contains: f
|
|
21908
21919
|
}
|
|
21909
21920
|
]
|
|
21910
21921
|
}
|
|
@@ -21917,7 +21928,7 @@ function HE() {
|
|
|
21917
21928
|
{
|
|
21918
21929
|
className: "quote",
|
|
21919
21930
|
begin: "^>\\s+",
|
|
21920
|
-
contains:
|
|
21931
|
+
contains: f,
|
|
21921
21932
|
end: "$"
|
|
21922
21933
|
},
|
|
21923
21934
|
i,
|
|
@@ -23162,27 +23173,27 @@ function rg() {
|
|
|
23162
23173
|
begin: /</,
|
|
23163
23174
|
end: />/
|
|
23164
23175
|
}
|
|
23165
|
-
],
|
|
23176
|
+
], f = (A) => ({
|
|
23166
23177
|
scope: "char.escape",
|
|
23167
23178
|
begin: t.concat(/\\/, A),
|
|
23168
23179
|
relevance: 0
|
|
23169
|
-
}),
|
|
23180
|
+
}), v = {
|
|
23170
23181
|
className: "string",
|
|
23171
23182
|
begin: "~[a-z](?=" + g + ")",
|
|
23172
23183
|
contains: S.map((A) => e.inherit(
|
|
23173
23184
|
A,
|
|
23174
23185
|
{ contains: [
|
|
23175
|
-
|
|
23186
|
+
f(A.end),
|
|
23176
23187
|
p,
|
|
23177
23188
|
c
|
|
23178
23189
|
] }
|
|
23179
23190
|
))
|
|
23180
|
-
},
|
|
23191
|
+
}, b = {
|
|
23181
23192
|
className: "string",
|
|
23182
23193
|
begin: "~[A-Z](?=" + g + ")",
|
|
23183
23194
|
contains: S.map((A) => e.inherit(
|
|
23184
23195
|
A,
|
|
23185
|
-
{ contains: [
|
|
23196
|
+
{ contains: [f(A.end)] }
|
|
23186
23197
|
))
|
|
23187
23198
|
}, C = {
|
|
23188
23199
|
className: "regex",
|
|
@@ -23194,7 +23205,7 @@ function rg() {
|
|
|
23194
23205
|
{
|
|
23195
23206
|
end: t.concat(A.end, /[uismxfU]{0,7}/),
|
|
23196
23207
|
contains: [
|
|
23197
|
-
|
|
23208
|
+
f(A.end),
|
|
23198
23209
|
p,
|
|
23199
23210
|
c
|
|
23200
23211
|
]
|
|
@@ -23208,7 +23219,7 @@ function rg() {
|
|
|
23208
23219
|
A,
|
|
23209
23220
|
{
|
|
23210
23221
|
end: t.concat(A.end, /[uismxfU]{0,7}/),
|
|
23211
|
-
contains: [
|
|
23222
|
+
contains: [f(A.end)]
|
|
23212
23223
|
}
|
|
23213
23224
|
)
|
|
23214
23225
|
)
|
|
@@ -23280,8 +23291,8 @@ function rg() {
|
|
|
23280
23291
|
}), D = [
|
|
23281
23292
|
O,
|
|
23282
23293
|
C,
|
|
23294
|
+
b,
|
|
23283
23295
|
v,
|
|
23284
|
-
f,
|
|
23285
23296
|
e.HASH_COMMENT_MODE,
|
|
23286
23297
|
I,
|
|
23287
23298
|
y,
|
|
@@ -23636,12 +23647,12 @@ function ag() {
|
|
|
23636
23647
|
]
|
|
23637
23648
|
}
|
|
23638
23649
|
]
|
|
23639
|
-
}, S = "[1-9](_?[0-9])*|0",
|
|
23650
|
+
}, S = "[1-9](_?[0-9])*|0", f = "[0-9](_?[0-9])*", v = {
|
|
23640
23651
|
className: "number",
|
|
23641
23652
|
relevance: 0,
|
|
23642
23653
|
variants: [
|
|
23643
23654
|
// decimal integer/float, optionally exponential or rational, optionally imaginary
|
|
23644
|
-
{ begin: `\\b(${S})(\\.(${
|
|
23655
|
+
{ begin: `\\b(${S})(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b` },
|
|
23645
23656
|
// explicit decimal/binary/octal/hexadecimal integer,
|
|
23646
23657
|
// optionally rational and/or imaginary
|
|
23647
23658
|
{ begin: "\\b0[dD][0-9](_?[0-9])*r?i?\\b" },
|
|
@@ -23651,7 +23662,7 @@ function ag() {
|
|
|
23651
23662
|
// 0-prefixed implicit octal integer, optionally rational and/or imaginary
|
|
23652
23663
|
{ begin: "\\b0(_?[0-7])+r?i?\\b" }
|
|
23653
23664
|
]
|
|
23654
|
-
},
|
|
23665
|
+
}, b = {
|
|
23655
23666
|
variants: [
|
|
23656
23667
|
{
|
|
23657
23668
|
match: /\(\)/
|
|
@@ -23665,7 +23676,7 @@ function ag() {
|
|
|
23665
23676
|
keywords: s
|
|
23666
23677
|
}
|
|
23667
23678
|
]
|
|
23668
|
-
},
|
|
23679
|
+
}, w = [
|
|
23669
23680
|
g,
|
|
23670
23681
|
{
|
|
23671
23682
|
variants: [
|
|
@@ -23731,7 +23742,7 @@ function ag() {
|
|
|
23731
23742
|
3: "title.function"
|
|
23732
23743
|
},
|
|
23733
23744
|
contains: [
|
|
23734
|
-
|
|
23745
|
+
b
|
|
23735
23746
|
]
|
|
23736
23747
|
},
|
|
23737
23748
|
{
|
|
@@ -23752,7 +23763,7 @@ function ag() {
|
|
|
23752
23763
|
],
|
|
23753
23764
|
relevance: 0
|
|
23754
23765
|
},
|
|
23755
|
-
|
|
23766
|
+
v,
|
|
23756
23767
|
{
|
|
23757
23768
|
// negative-look forward attempts to prevent false matches like:
|
|
23758
23769
|
// @ident@ or $ident$ that might indicate this is not ruby at all
|
|
@@ -23808,13 +23819,13 @@ function ag() {
|
|
|
23808
23819
|
relevance: 0
|
|
23809
23820
|
}
|
|
23810
23821
|
].concat(d, u);
|
|
23811
|
-
p.contains =
|
|
23822
|
+
p.contains = w, b.contains = w;
|
|
23812
23823
|
const q = [
|
|
23813
23824
|
{
|
|
23814
23825
|
begin: /^\s*=>/,
|
|
23815
23826
|
starts: {
|
|
23816
23827
|
end: "$",
|
|
23817
|
-
contains:
|
|
23828
|
+
contains: w
|
|
23818
23829
|
}
|
|
23819
23830
|
},
|
|
23820
23831
|
{
|
|
@@ -23823,7 +23834,7 @@ function ag() {
|
|
|
23823
23834
|
starts: {
|
|
23824
23835
|
end: "$",
|
|
23825
23836
|
keywords: s,
|
|
23826
|
-
contains:
|
|
23837
|
+
contains: w
|
|
23827
23838
|
}
|
|
23828
23839
|
}
|
|
23829
23840
|
];
|
|
@@ -23838,7 +23849,7 @@ function ag() {
|
|
|
23838
23849
|
],
|
|
23839
23850
|
keywords: s,
|
|
23840
23851
|
illegal: /\/\*/,
|
|
23841
|
-
contains: [e.SHEBANG({ binary: "ruby" })].concat(q).concat(u).concat(
|
|
23852
|
+
contains: [e.SHEBANG({ binary: "ruby" })].concat(q).concat(u).concat(w)
|
|
23842
23853
|
};
|
|
23843
23854
|
}
|
|
23844
23855
|
return Ja = r, Ja;
|
|
@@ -23975,10 +23986,10 @@ function sg() {
|
|
|
23975
23986
|
}, S = {
|
|
23976
23987
|
scope: "string",
|
|
23977
23988
|
match: /\$(\\([^0-9]|[0-9]{1,3}|)|.)/
|
|
23978
|
-
},
|
|
23989
|
+
}, f = {
|
|
23979
23990
|
scope: "string",
|
|
23980
23991
|
match: /"""("*)(?!")[\s\S]*?"""\1/
|
|
23981
|
-
},
|
|
23992
|
+
}, v = {
|
|
23982
23993
|
scope: "string",
|
|
23983
23994
|
contains: [e.BACKSLASH_ESCAPE],
|
|
23984
23995
|
variants: [
|
|
@@ -23994,19 +24005,19 @@ function sg() {
|
|
|
23994
24005
|
{ begin: /~\w?`/, end: /`/ },
|
|
23995
24006
|
{ begin: /~\w?#/, end: /#/ }
|
|
23996
24007
|
]
|
|
23997
|
-
},
|
|
24008
|
+
}, b = {
|
|
23998
24009
|
beginKeywords: "fun receive if try case maybe",
|
|
23999
24010
|
end: "end",
|
|
24000
24011
|
keywords: a
|
|
24001
24012
|
};
|
|
24002
|
-
|
|
24013
|
+
b.contains = [
|
|
24003
24014
|
i,
|
|
24004
24015
|
s,
|
|
24005
24016
|
e.inherit(e.APOS_STRING_MODE, { className: "" }),
|
|
24006
|
-
|
|
24017
|
+
b,
|
|
24007
24018
|
c,
|
|
24019
|
+
v,
|
|
24008
24020
|
f,
|
|
24009
|
-
b,
|
|
24010
24021
|
e.QUOTE_STRING_MODE,
|
|
24011
24022
|
o,
|
|
24012
24023
|
d,
|
|
@@ -24018,10 +24029,10 @@ function sg() {
|
|
|
24018
24029
|
const C = [
|
|
24019
24030
|
i,
|
|
24020
24031
|
s,
|
|
24021
|
-
|
|
24032
|
+
b,
|
|
24022
24033
|
c,
|
|
24034
|
+
v,
|
|
24023
24035
|
f,
|
|
24024
|
-
b,
|
|
24025
24036
|
e.QUOTE_STRING_MODE,
|
|
24026
24037
|
o,
|
|
24027
24038
|
d,
|
|
@@ -24097,14 +24108,14 @@ function sg() {
|
|
|
24097
24108
|
},
|
|
24098
24109
|
contains: [
|
|
24099
24110
|
y,
|
|
24111
|
+
v,
|
|
24100
24112
|
f,
|
|
24101
|
-
b,
|
|
24102
24113
|
e.QUOTE_STRING_MODE
|
|
24103
24114
|
]
|
|
24104
24115
|
},
|
|
24105
24116
|
o,
|
|
24117
|
+
v,
|
|
24106
24118
|
f,
|
|
24107
|
-
b,
|
|
24108
24119
|
e.QUOTE_STRING_MODE,
|
|
24109
24120
|
g,
|
|
24110
24121
|
u,
|
|
@@ -25518,7 +25529,7 @@ function ug() {
|
|
|
25518
25529
|
"voidptr",
|
|
25519
25530
|
// other important FSharp types
|
|
25520
25531
|
"Result"
|
|
25521
|
-
],
|
|
25532
|
+
], v = {
|
|
25522
25533
|
keyword: c,
|
|
25523
25534
|
literal: p,
|
|
25524
25535
|
built_in: [
|
|
@@ -25610,7 +25621,7 @@ function ug() {
|
|
|
25610
25621
|
// A single $ can be used as an operator
|
|
25611
25622
|
relevance: 0
|
|
25612
25623
|
};
|
|
25613
|
-
},
|
|
25624
|
+
}, w = A({ includeEqual: !0 }), x = A({ includeEqual: !1 }), B = function(Me, Ge) {
|
|
25614
25625
|
return {
|
|
25615
25626
|
begin: n(
|
|
25616
25627
|
// a type annotation is a
|
|
@@ -25655,13 +25666,13 @@ function ug() {
|
|
|
25655
25666
|
),
|
|
25656
25667
|
relevance: 0,
|
|
25657
25668
|
// we need the known types, and we need the type constraint keywords and literals. e.g.: when 'a : null
|
|
25658
|
-
keywords: s.inherit(
|
|
25669
|
+
keywords: s.inherit(v, { type: S }),
|
|
25659
25670
|
contains: [
|
|
25660
25671
|
C,
|
|
25661
25672
|
D,
|
|
25662
25673
|
s.inherit(y, { scope: null }),
|
|
25663
25674
|
// match to avoid strange patterns inside that may break the parsing
|
|
25664
|
-
|
|
25675
|
+
x
|
|
25665
25676
|
]
|
|
25666
25677
|
};
|
|
25667
25678
|
}, X = B(/:/, "operator"), q = B(/\bof\b/, "keyword"), Y = {
|
|
@@ -25677,7 +25688,7 @@ function ug() {
|
|
|
25677
25688
|
4: "title.class"
|
|
25678
25689
|
},
|
|
25679
25690
|
end: t(/\(|=|$/),
|
|
25680
|
-
keywords:
|
|
25691
|
+
keywords: v,
|
|
25681
25692
|
// match keywords in type constraints. e.g.: when 'a : null
|
|
25682
25693
|
contains: [
|
|
25683
25694
|
C,
|
|
@@ -25738,7 +25749,7 @@ function ug() {
|
|
|
25738
25749
|
scope: "subst",
|
|
25739
25750
|
begin: /\{/,
|
|
25740
25751
|
end: /\}/,
|
|
25741
|
-
keywords:
|
|
25752
|
+
keywords: v
|
|
25742
25753
|
}, ye = {
|
|
25743
25754
|
scope: "string",
|
|
25744
25755
|
begin: /\$"/,
|
|
@@ -25817,14 +25828,14 @@ function ug() {
|
|
|
25817
25828
|
W,
|
|
25818
25829
|
j,
|
|
25819
25830
|
D,
|
|
25820
|
-
|
|
25831
|
+
w
|
|
25821
25832
|
], {
|
|
25822
25833
|
name: "F#",
|
|
25823
25834
|
aliases: [
|
|
25824
25835
|
"fs",
|
|
25825
25836
|
"f#"
|
|
25826
25837
|
],
|
|
25827
|
-
keywords:
|
|
25838
|
+
keywords: v,
|
|
25828
25839
|
illegal: /\/\*/,
|
|
25829
25840
|
classNameAliases: {
|
|
25830
25841
|
"computation-expression": "keyword"
|
|
@@ -25868,7 +25879,7 @@ function ug() {
|
|
|
25868
25879
|
W,
|
|
25869
25880
|
j,
|
|
25870
25881
|
D,
|
|
25871
|
-
|
|
25882
|
+
w
|
|
25872
25883
|
]
|
|
25873
25884
|
};
|
|
25874
25885
|
}
|
|
@@ -26096,18 +26107,18 @@ function pg() {
|
|
|
26096
26107
|
className: "title",
|
|
26097
26108
|
begin: e.UNDERSCORE_IDENT_RE,
|
|
26098
26109
|
relevance: 0
|
|
26099
|
-
}, c = function(S,
|
|
26100
|
-
const
|
|
26110
|
+
}, c = function(S, f, v) {
|
|
26111
|
+
const b = e.inherit(
|
|
26101
26112
|
{
|
|
26102
26113
|
className: "function",
|
|
26103
26114
|
beginKeywords: S,
|
|
26104
|
-
end:
|
|
26115
|
+
end: f,
|
|
26105
26116
|
excludeEnd: !0,
|
|
26106
26117
|
contains: [].concat(o)
|
|
26107
26118
|
},
|
|
26108
26119
|
{}
|
|
26109
26120
|
);
|
|
26110
|
-
return
|
|
26121
|
+
return b.contains.push(s), b.contains.push(e.C_NUMBER_MODE), b.contains.push(e.C_BLOCK_COMMENT_MODE), b.contains.push(n), b;
|
|
26111
26122
|
}, d = {
|
|
26112
26123
|
// these are explicitly named internal function calls
|
|
26113
26124
|
className: "built_in",
|
|
@@ -26253,11 +26264,11 @@ function Eg() {
|
|
|
26253
26264
|
"EXISTS"
|
|
26254
26265
|
]
|
|
26255
26266
|
}, a = /\b/;
|
|
26256
|
-
function i(
|
|
26257
|
-
if (
|
|
26267
|
+
function i(f, v) {
|
|
26268
|
+
if (f.index === 0)
|
|
26258
26269
|
return;
|
|
26259
|
-
const
|
|
26260
|
-
|
|
26270
|
+
const b = f.input[f.index - 1];
|
|
26271
|
+
b >= "0" && b <= "9" || b !== "_" && v.ignoreMatch();
|
|
26261
26272
|
}
|
|
26262
26273
|
const o = /[+-]?((\.\d+)|(\d+)(\.\d*)?)/, s = /[GM]\s*\d+(\.\d+)?/, c = /T\s*\d+/, d = /O\s*\d+/, u = /O<.+>/, p = /[ABCUVWXYZ]\s*/, g = /[FHIJKPQRS]\s*/, S = [
|
|
26263
26274
|
// comments
|
|
@@ -30387,11 +30398,11 @@ function Ng() {
|
|
|
30387
30398
|
"|",
|
|
30388
30399
|
c,
|
|
30389
30400
|
")(?==)"
|
|
30390
|
-
), S = { begin: p },
|
|
30401
|
+
), S = { begin: p }, f = e.inherit(S, { keywords: a }), v = {
|
|
30391
30402
|
begin: /\(/,
|
|
30392
30403
|
end: /\)/
|
|
30393
30404
|
// the "contains" is added below when all necessary sub-modes are defined
|
|
30394
|
-
},
|
|
30405
|
+
}, b = {
|
|
30395
30406
|
// fka "attribute-assignment", parameters of the form 'key=value'
|
|
30396
30407
|
className: "attr",
|
|
30397
30408
|
begin: g,
|
|
@@ -30403,8 +30414,8 @@ function Ng() {
|
|
|
30403
30414
|
e.NUMBER_MODE,
|
|
30404
30415
|
e.QUOTE_STRING_MODE,
|
|
30405
30416
|
e.APOS_STRING_MODE,
|
|
30406
|
-
|
|
30407
|
-
|
|
30417
|
+
f,
|
|
30418
|
+
v
|
|
30408
30419
|
] }
|
|
30409
30420
|
}
|
|
30410
30421
|
}, C = {
|
|
@@ -30424,9 +30435,9 @@ function Ng() {
|
|
|
30424
30435
|
e.QUOTE_STRING_MODE,
|
|
30425
30436
|
e.APOS_STRING_MODE,
|
|
30426
30437
|
C,
|
|
30427
|
-
v,
|
|
30428
30438
|
b,
|
|
30429
|
-
f
|
|
30439
|
+
f,
|
|
30440
|
+
v
|
|
30430
30441
|
],
|
|
30431
30442
|
returnEnd: !0
|
|
30432
30443
|
// the property "end" is defined through inheritance when the mode is used. If depends
|
|
@@ -30437,7 +30448,7 @@ function Ng() {
|
|
|
30437
30448
|
keywords: n,
|
|
30438
30449
|
starts: e.inherit(O, { end: /\)/ })
|
|
30439
30450
|
});
|
|
30440
|
-
|
|
30451
|
+
v.contains = [y];
|
|
30441
30452
|
const I = e.inherit(S, {
|
|
30442
30453
|
keywords: n,
|
|
30443
30454
|
className: "name",
|
|
@@ -30568,7 +30579,7 @@ function Og() {
|
|
|
30568
30579
|
begin: "\\b[A-Z][\\w']*",
|
|
30569
30580
|
// TODO: other constructors (build-in, infix).
|
|
30570
30581
|
relevance: 0
|
|
30571
|
-
},
|
|
30582
|
+
}, f = {
|
|
30572
30583
|
begin: "\\(",
|
|
30573
30584
|
end: "\\)",
|
|
30574
30585
|
illegal: '"',
|
|
@@ -30582,11 +30593,11 @@ function Og() {
|
|
|
30582
30593
|
e.inherit(e.TITLE_MODE, { begin: "[_a-z][\\w']*" }),
|
|
30583
30594
|
u
|
|
30584
30595
|
]
|
|
30585
|
-
},
|
|
30596
|
+
}, v = {
|
|
30586
30597
|
begin: /\{/,
|
|
30587
30598
|
end: /\}/,
|
|
30588
|
-
contains:
|
|
30589
|
-
},
|
|
30599
|
+
contains: f.contains
|
|
30600
|
+
}, b = {
|
|
30590
30601
|
className: "number",
|
|
30591
30602
|
relevance: 0,
|
|
30592
30603
|
variants: [
|
|
@@ -30612,7 +30623,7 @@ function Og() {
|
|
|
30612
30623
|
end: "where",
|
|
30613
30624
|
keywords: "module where",
|
|
30614
30625
|
contains: [
|
|
30615
|
-
|
|
30626
|
+
f,
|
|
30616
30627
|
u
|
|
30617
30628
|
],
|
|
30618
30629
|
illegal: "\\W\\.|;"
|
|
@@ -30622,7 +30633,7 @@ function Og() {
|
|
|
30622
30633
|
end: "$",
|
|
30623
30634
|
keywords: "import qualified as hiding",
|
|
30624
30635
|
contains: [
|
|
30625
|
-
|
|
30636
|
+
f,
|
|
30626
30637
|
u
|
|
30627
30638
|
],
|
|
30628
30639
|
illegal: "\\W\\.|;"
|
|
@@ -30634,7 +30645,7 @@ function Og() {
|
|
|
30634
30645
|
keywords: "class family instance where",
|
|
30635
30646
|
contains: [
|
|
30636
30647
|
S,
|
|
30637
|
-
|
|
30648
|
+
f,
|
|
30638
30649
|
u
|
|
30639
30650
|
]
|
|
30640
30651
|
},
|
|
@@ -30646,8 +30657,8 @@ function Og() {
|
|
|
30646
30657
|
contains: [
|
|
30647
30658
|
p,
|
|
30648
30659
|
S,
|
|
30649
|
-
b,
|
|
30650
30660
|
f,
|
|
30661
|
+
v,
|
|
30651
30662
|
u
|
|
30652
30663
|
]
|
|
30653
30664
|
},
|
|
@@ -30656,7 +30667,7 @@ function Og() {
|
|
|
30656
30667
|
end: "$",
|
|
30657
30668
|
contains: [
|
|
30658
30669
|
S,
|
|
30659
|
-
|
|
30670
|
+
f,
|
|
30660
30671
|
u
|
|
30661
30672
|
]
|
|
30662
30673
|
},
|
|
@@ -30700,7 +30711,7 @@ function Og() {
|
|
|
30700
30711
|
]
|
|
30701
30712
|
},
|
|
30702
30713
|
e.QUOTE_STRING_MODE,
|
|
30703
|
-
|
|
30714
|
+
b,
|
|
30704
30715
|
S,
|
|
30705
30716
|
e.inherit(e.TITLE_MODE, { begin: "^[_a-z][\\w']*" }),
|
|
30706
30717
|
// No markup, prevents infix operators from being recognized as comments.
|
|
@@ -31048,13 +31059,13 @@ function Dg() {
|
|
|
31048
31059
|
}, g = {
|
|
31049
31060
|
className: "comment",
|
|
31050
31061
|
begin: "\\^" + n
|
|
31051
|
-
}, S = e.COMMENT("\\^\\{", "\\}"),
|
|
31062
|
+
}, S = e.COMMENT("\\^\\{", "\\}"), f = {
|
|
31052
31063
|
className: "symbol",
|
|
31053
31064
|
begin: "[:]{1,2}" + n
|
|
31054
|
-
},
|
|
31065
|
+
}, v = {
|
|
31055
31066
|
begin: "\\(",
|
|
31056
31067
|
end: "\\)"
|
|
31057
|
-
},
|
|
31068
|
+
}, b = {
|
|
31058
31069
|
endsWithParent: !0,
|
|
31059
31070
|
relevance: 0
|
|
31060
31071
|
}, C = {
|
|
@@ -31062,35 +31073,35 @@ function Dg() {
|
|
|
31062
31073
|
relevance: 0,
|
|
31063
31074
|
keywords: a,
|
|
31064
31075
|
begin: n,
|
|
31065
|
-
starts:
|
|
31076
|
+
starts: b
|
|
31066
31077
|
}, O = [
|
|
31067
|
-
|
|
31078
|
+
v,
|
|
31068
31079
|
c,
|
|
31069
31080
|
g,
|
|
31070
31081
|
S,
|
|
31071
31082
|
d,
|
|
31072
|
-
|
|
31083
|
+
f,
|
|
31073
31084
|
p,
|
|
31074
31085
|
s,
|
|
31075
31086
|
u,
|
|
31076
31087
|
o
|
|
31077
31088
|
];
|
|
31078
|
-
return
|
|
31089
|
+
return v.contains = [
|
|
31079
31090
|
e.COMMENT("comment", ""),
|
|
31080
31091
|
C,
|
|
31081
|
-
|
|
31082
|
-
],
|
|
31092
|
+
b
|
|
31093
|
+
], b.contains = O, p.contains = O, {
|
|
31083
31094
|
name: "Hy",
|
|
31084
31095
|
aliases: ["hylang"],
|
|
31085
31096
|
illegal: /\S/,
|
|
31086
31097
|
contains: [
|
|
31087
31098
|
e.SHEBANG(),
|
|
31088
|
-
|
|
31099
|
+
v,
|
|
31089
31100
|
c,
|
|
31090
31101
|
g,
|
|
31091
31102
|
S,
|
|
31092
31103
|
d,
|
|
31093
|
-
|
|
31104
|
+
f,
|
|
31094
31105
|
p,
|
|
31095
31106
|
s,
|
|
31096
31107
|
u
|
|
@@ -31466,7 +31477,7 @@ function Pg() {
|
|
|
31466
31477
|
return c === -1 ? "" : o.replace(s, (d) => a(o, s, c - 1));
|
|
31467
31478
|
}
|
|
31468
31479
|
function i(o) {
|
|
31469
|
-
const s = o.regex, c = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", d = c + a("(?:<" + c + "~~~(?:\\s*,\\s*" + c + "~~~)*>)?", /~~~/g, 2),
|
|
31480
|
+
const s = o.regex, c = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", d = c + a("(?:<" + c + "~~~(?:\\s*,\\s*" + c + "~~~)*>)?", /~~~/g, 2), f = {
|
|
31470
31481
|
keyword: [
|
|
31471
31482
|
"synchronized",
|
|
31472
31483
|
"abstract",
|
|
@@ -31532,7 +31543,7 @@ function Pg() {
|
|
|
31532
31543
|
"super",
|
|
31533
31544
|
"this"
|
|
31534
31545
|
]
|
|
31535
|
-
},
|
|
31546
|
+
}, v = {
|
|
31536
31547
|
className: "meta",
|
|
31537
31548
|
begin: "@" + c,
|
|
31538
31549
|
contains: [
|
|
@@ -31543,11 +31554,11 @@ function Pg() {
|
|
|
31543
31554
|
// allow nested () inside our annotation
|
|
31544
31555
|
}
|
|
31545
31556
|
]
|
|
31546
|
-
},
|
|
31557
|
+
}, b = {
|
|
31547
31558
|
className: "params",
|
|
31548
31559
|
begin: /\(/,
|
|
31549
31560
|
end: /\)/,
|
|
31550
|
-
keywords:
|
|
31561
|
+
keywords: f,
|
|
31551
31562
|
relevance: 0,
|
|
31552
31563
|
contains: [o.C_BLOCK_COMMENT_MODE],
|
|
31553
31564
|
endsParent: !0
|
|
@@ -31555,7 +31566,7 @@ function Pg() {
|
|
|
31555
31566
|
return {
|
|
31556
31567
|
name: "Java",
|
|
31557
31568
|
aliases: ["jsp"],
|
|
31558
|
-
keywords:
|
|
31569
|
+
keywords: f,
|
|
31559
31570
|
illegal: /<\/|#/,
|
|
31560
31571
|
contains: [
|
|
31561
31572
|
o.COMMENT(
|
|
@@ -31633,7 +31644,7 @@ function Pg() {
|
|
|
31633
31644
|
3: "title.class"
|
|
31634
31645
|
},
|
|
31635
31646
|
contains: [
|
|
31636
|
-
|
|
31647
|
+
b,
|
|
31637
31648
|
o.C_LINE_COMMENT_MODE,
|
|
31638
31649
|
o.C_BLOCK_COMMENT_MODE
|
|
31639
31650
|
]
|
|
@@ -31651,16 +31662,16 @@ function Pg() {
|
|
|
31651
31662
|
/\s*(?=\()/
|
|
31652
31663
|
],
|
|
31653
31664
|
className: { 2: "title.function" },
|
|
31654
|
-
keywords:
|
|
31665
|
+
keywords: f,
|
|
31655
31666
|
contains: [
|
|
31656
31667
|
{
|
|
31657
31668
|
className: "params",
|
|
31658
31669
|
begin: /\(/,
|
|
31659
31670
|
end: /\)/,
|
|
31660
|
-
keywords:
|
|
31671
|
+
keywords: f,
|
|
31661
31672
|
relevance: 0,
|
|
31662
31673
|
contains: [
|
|
31663
|
-
|
|
31674
|
+
v,
|
|
31664
31675
|
o.APOS_STRING_MODE,
|
|
31665
31676
|
o.QUOTE_STRING_MODE,
|
|
31666
31677
|
n,
|
|
@@ -31672,7 +31683,7 @@ function Pg() {
|
|
|
31672
31683
|
]
|
|
31673
31684
|
},
|
|
31674
31685
|
n,
|
|
31675
|
-
|
|
31686
|
+
v
|
|
31676
31687
|
]
|
|
31677
31688
|
};
|
|
31678
31689
|
}
|
|
@@ -31835,7 +31846,7 @@ function kg() {
|
|
|
31835
31846
|
}, g = r, S = {
|
|
31836
31847
|
begin: "<>",
|
|
31837
31848
|
end: "</>"
|
|
31838
|
-
},
|
|
31849
|
+
}, f = /<[A-Za-z0-9\\._:-]+\s*\/>/, v = {
|
|
31839
31850
|
begin: /<[A-Za-z0-9\\._:-]+/,
|
|
31840
31851
|
end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
|
|
31841
31852
|
/**
|
|
@@ -31867,7 +31878,7 @@ function kg() {
|
|
|
31867
31878
|
return;
|
|
31868
31879
|
}
|
|
31869
31880
|
}
|
|
31870
|
-
},
|
|
31881
|
+
}, b = {
|
|
31871
31882
|
$pattern: r,
|
|
31872
31883
|
keyword: e,
|
|
31873
31884
|
literal: t,
|
|
@@ -31894,7 +31905,7 @@ function kg() {
|
|
|
31894
31905
|
className: "subst",
|
|
31895
31906
|
begin: "\\$\\{",
|
|
31896
31907
|
end: "\\}",
|
|
31897
|
-
keywords:
|
|
31908
|
+
keywords: b,
|
|
31898
31909
|
contains: []
|
|
31899
31910
|
// defined later
|
|
31900
31911
|
}, A = {
|
|
@@ -31909,7 +31920,7 @@ function kg() {
|
|
|
31909
31920
|
],
|
|
31910
31921
|
subLanguage: "xml"
|
|
31911
31922
|
}
|
|
31912
|
-
},
|
|
31923
|
+
}, w = {
|
|
31913
31924
|
begin: ".?css`",
|
|
31914
31925
|
end: "",
|
|
31915
31926
|
starts: {
|
|
@@ -31921,7 +31932,7 @@ function kg() {
|
|
|
31921
31932
|
],
|
|
31922
31933
|
subLanguage: "css"
|
|
31923
31934
|
}
|
|
31924
|
-
},
|
|
31935
|
+
}, x = {
|
|
31925
31936
|
begin: ".?gql`",
|
|
31926
31937
|
end: "",
|
|
31927
31938
|
starts: {
|
|
@@ -31990,8 +32001,8 @@ function kg() {
|
|
|
31990
32001
|
d.APOS_STRING_MODE,
|
|
31991
32002
|
d.QUOTE_STRING_MODE,
|
|
31992
32003
|
A,
|
|
31993
|
-
M,
|
|
31994
32004
|
w,
|
|
32005
|
+
x,
|
|
31995
32006
|
B,
|
|
31996
32007
|
// Skip numbers when they are part of a variable name
|
|
31997
32008
|
{ match: /\$\d+/ },
|
|
@@ -32005,7 +32016,7 @@ function kg() {
|
|
|
32005
32016
|
// it from ending too early by matching another }
|
|
32006
32017
|
begin: /\{/,
|
|
32007
32018
|
end: /\}/,
|
|
32008
|
-
keywords:
|
|
32019
|
+
keywords: b,
|
|
32009
32020
|
contains: [
|
|
32010
32021
|
"self"
|
|
32011
32022
|
].concat(Y)
|
|
@@ -32015,7 +32026,7 @@ function kg() {
|
|
|
32015
32026
|
{
|
|
32016
32027
|
begin: /(\s*)\(/,
|
|
32017
32028
|
end: /\)/,
|
|
32018
|
-
keywords:
|
|
32029
|
+
keywords: b,
|
|
32019
32030
|
contains: ["self"].concat(V)
|
|
32020
32031
|
}
|
|
32021
32032
|
]), j = {
|
|
@@ -32026,7 +32037,7 @@ function kg() {
|
|
|
32026
32037
|
end: /\)/,
|
|
32027
32038
|
excludeBegin: !0,
|
|
32028
32039
|
excludeEnd: !0,
|
|
32029
|
-
keywords:
|
|
32040
|
+
keywords: b,
|
|
32030
32041
|
contains: W
|
|
32031
32042
|
}, re = {
|
|
32032
32043
|
variants: [
|
|
@@ -32186,7 +32197,7 @@ function kg() {
|
|
|
32186
32197
|
return {
|
|
32187
32198
|
name: "JavaScript",
|
|
32188
32199
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
32189
|
-
keywords:
|
|
32200
|
+
keywords: b,
|
|
32190
32201
|
// this will be extended by TypeScript
|
|
32191
32202
|
exports: { PARAMS_CONTAINS: W, CLASS_REFERENCE: le },
|
|
32192
32203
|
illegal: /#(?![$_A-z])/,
|
|
@@ -32200,8 +32211,8 @@ function kg() {
|
|
|
32200
32211
|
d.APOS_STRING_MODE,
|
|
32201
32212
|
d.QUOTE_STRING_MODE,
|
|
32202
32213
|
A,
|
|
32203
|
-
M,
|
|
32204
32214
|
w,
|
|
32215
|
+
x,
|
|
32205
32216
|
B,
|
|
32206
32217
|
q,
|
|
32207
32218
|
// Skip numbers when they are part of a variable name
|
|
@@ -32248,7 +32259,7 @@ function kg() {
|
|
|
32248
32259
|
end: /\)/,
|
|
32249
32260
|
excludeBegin: !0,
|
|
32250
32261
|
excludeEnd: !0,
|
|
32251
|
-
keywords:
|
|
32262
|
+
keywords: b,
|
|
32252
32263
|
contains: W
|
|
32253
32264
|
}
|
|
32254
32265
|
]
|
|
@@ -32268,20 +32279,20 @@ function kg() {
|
|
|
32268
32279
|
// JSX
|
|
32269
32280
|
variants: [
|
|
32270
32281
|
{ begin: S.begin, end: S.end },
|
|
32271
|
-
{ match:
|
|
32282
|
+
{ match: f },
|
|
32272
32283
|
{
|
|
32273
|
-
begin:
|
|
32284
|
+
begin: v.begin,
|
|
32274
32285
|
// we carefully check the opening tag to see if it truly
|
|
32275
32286
|
// is a tag and not a false positive
|
|
32276
|
-
"on:begin":
|
|
32277
|
-
end:
|
|
32287
|
+
"on:begin": v.isTrulyOpeningTag,
|
|
32288
|
+
end: v.end
|
|
32278
32289
|
}
|
|
32279
32290
|
],
|
|
32280
32291
|
subLanguage: "xml",
|
|
32281
32292
|
contains: [
|
|
32282
32293
|
{
|
|
32283
|
-
begin:
|
|
32284
|
-
end:
|
|
32294
|
+
begin: v.begin,
|
|
32295
|
+
end: v.end,
|
|
32285
32296
|
skip: !0,
|
|
32286
32297
|
contains: ["self"]
|
|
32287
32298
|
}
|
|
@@ -32755,10 +32766,10 @@ function Fg() {
|
|
|
32755
32766
|
],
|
|
32756
32767
|
begin: "`",
|
|
32757
32768
|
end: "`"
|
|
32758
|
-
},
|
|
32769
|
+
}, f = {
|
|
32759
32770
|
className: "meta",
|
|
32760
32771
|
begin: "@" + t
|
|
32761
|
-
},
|
|
32772
|
+
}, v = {
|
|
32762
32773
|
className: "comment",
|
|
32763
32774
|
variants: [
|
|
32764
32775
|
{
|
|
@@ -32777,8 +32788,8 @@ function Fg() {
|
|
|
32777
32788
|
d,
|
|
32778
32789
|
g,
|
|
32779
32790
|
S,
|
|
32780
|
-
b,
|
|
32781
32791
|
f,
|
|
32792
|
+
v,
|
|
32782
32793
|
e.HASH_COMMENT_MODE,
|
|
32783
32794
|
{
|
|
32784
32795
|
className: "keyword",
|
|
@@ -32921,11 +32932,11 @@ function Yg() {
|
|
|
32921
32932
|
]
|
|
32922
32933
|
}
|
|
32923
32934
|
]
|
|
32924
|
-
},
|
|
32935
|
+
}, f = n, v = i.COMMENT(
|
|
32925
32936
|
"/\\*",
|
|
32926
32937
|
"\\*/",
|
|
32927
32938
|
{ contains: [i.C_BLOCK_COMMENT_MODE] }
|
|
32928
|
-
),
|
|
32939
|
+
), b = { variants: [
|
|
32929
32940
|
{
|
|
32930
32941
|
className: "type",
|
|
32931
32942
|
begin: i.UNDERSCORE_IDENT_RE
|
|
@@ -32936,8 +32947,8 @@ function Yg() {
|
|
|
32936
32947
|
contains: []
|
|
32937
32948
|
// defined later
|
|
32938
32949
|
}
|
|
32939
|
-
] }, C =
|
|
32940
|
-
return C.variants[1].contains = [
|
|
32950
|
+
] }, C = b;
|
|
32951
|
+
return C.variants[1].contains = [b], b.variants[1].contains = [C], {
|
|
32941
32952
|
name: "Kotlin",
|
|
32942
32953
|
aliases: [
|
|
32943
32954
|
"kt",
|
|
@@ -32959,7 +32970,7 @@ function Yg() {
|
|
|
32959
32970
|
}
|
|
32960
32971
|
),
|
|
32961
32972
|
i.C_LINE_COMMENT_MODE,
|
|
32962
|
-
|
|
32973
|
+
v,
|
|
32963
32974
|
s,
|
|
32964
32975
|
c,
|
|
32965
32976
|
g,
|
|
@@ -32999,21 +33010,21 @@ function Yg() {
|
|
|
32999
33010
|
end: /[=,\/]/,
|
|
33000
33011
|
endsWithParent: !0,
|
|
33001
33012
|
contains: [
|
|
33002
|
-
|
|
33013
|
+
b,
|
|
33003
33014
|
i.C_LINE_COMMENT_MODE,
|
|
33004
|
-
|
|
33015
|
+
v
|
|
33005
33016
|
],
|
|
33006
33017
|
relevance: 0
|
|
33007
33018
|
},
|
|
33008
33019
|
i.C_LINE_COMMENT_MODE,
|
|
33009
|
-
|
|
33020
|
+
v,
|
|
33010
33021
|
g,
|
|
33011
33022
|
S,
|
|
33012
33023
|
p,
|
|
33013
33024
|
i.C_NUMBER_MODE
|
|
33014
33025
|
]
|
|
33015
33026
|
},
|
|
33016
|
-
|
|
33027
|
+
v
|
|
33017
33028
|
]
|
|
33018
33029
|
},
|
|
33019
33030
|
{
|
|
@@ -33059,7 +33070,7 @@ function Yg() {
|
|
|
33059
33070
|
illegal: `
|
|
33060
33071
|
`
|
|
33061
33072
|
},
|
|
33062
|
-
|
|
33073
|
+
f
|
|
33063
33074
|
]
|
|
33064
33075
|
};
|
|
33065
33076
|
}
|
|
@@ -33315,7 +33326,7 @@ function zg() {
|
|
|
33315
33326
|
u,
|
|
33316
33327
|
p,
|
|
33317
33328
|
g
|
|
33318
|
-
],
|
|
33329
|
+
], f = {
|
|
33319
33330
|
begin: /\{/,
|
|
33320
33331
|
end: /\}/,
|
|
33321
33332
|
relevance: 0,
|
|
@@ -33323,29 +33334,29 @@ function zg() {
|
|
|
33323
33334
|
"self",
|
|
33324
33335
|
...S
|
|
33325
33336
|
]
|
|
33326
|
-
},
|
|
33327
|
-
|
|
33337
|
+
}, v = e.inherit(
|
|
33338
|
+
f,
|
|
33328
33339
|
{
|
|
33329
33340
|
relevance: 0,
|
|
33330
33341
|
endsParent: !0,
|
|
33331
33342
|
contains: [
|
|
33332
|
-
|
|
33343
|
+
f,
|
|
33333
33344
|
...S
|
|
33334
33345
|
]
|
|
33335
33346
|
}
|
|
33336
|
-
),
|
|
33347
|
+
), b = {
|
|
33337
33348
|
begin: /\[/,
|
|
33338
33349
|
end: /\]/,
|
|
33339
33350
|
endsParent: !0,
|
|
33340
33351
|
relevance: 0,
|
|
33341
33352
|
contains: [
|
|
33342
|
-
|
|
33353
|
+
f,
|
|
33343
33354
|
...S
|
|
33344
33355
|
]
|
|
33345
33356
|
}, C = {
|
|
33346
33357
|
begin: /\s+/,
|
|
33347
33358
|
relevance: 0
|
|
33348
|
-
}, O = [
|
|
33359
|
+
}, O = [v], y = [b], I = function(q, Y) {
|
|
33349
33360
|
return {
|
|
33350
33361
|
contains: [C],
|
|
33351
33362
|
starts: {
|
|
@@ -33377,14 +33388,14 @@ function zg() {
|
|
|
33377
33388
|
},
|
|
33378
33389
|
I(O, Y)
|
|
33379
33390
|
);
|
|
33380
|
-
},
|
|
33391
|
+
}, w = (q = "string") => e.END_SAME_AS_BEGIN({
|
|
33381
33392
|
className: q,
|
|
33382
33393
|
begin: /(.|\r?\n)/,
|
|
33383
33394
|
end: /(.|\r?\n)/,
|
|
33384
33395
|
excludeBegin: !0,
|
|
33385
33396
|
excludeEnd: !0,
|
|
33386
33397
|
endsParent: !0
|
|
33387
|
-
}),
|
|
33398
|
+
}), x = function(q) {
|
|
33388
33399
|
return {
|
|
33389
33400
|
className: "string",
|
|
33390
33401
|
end: "(?=\\\\end\\{" + q + "\\})"
|
|
@@ -33414,11 +33425,11 @@ function zg() {
|
|
|
33414
33425
|
...[
|
|
33415
33426
|
"verb",
|
|
33416
33427
|
"lstinline"
|
|
33417
|
-
].map((q) => D(q, { contains: [
|
|
33418
|
-
D("mint", I(O, { contains: [
|
|
33428
|
+
].map((q) => D(q, { contains: [w()] })),
|
|
33429
|
+
D("mint", I(O, { contains: [w()] })),
|
|
33419
33430
|
D("mintinline", I(O, { contains: [
|
|
33420
33431
|
B(),
|
|
33421
|
-
|
|
33432
|
+
w()
|
|
33422
33433
|
] })),
|
|
33423
33434
|
D("url", { contains: [
|
|
33424
33435
|
B("link"),
|
|
@@ -33430,17 +33441,17 @@ function zg() {
|
|
|
33430
33441
|
"",
|
|
33431
33442
|
"\\*"
|
|
33432
33443
|
].map((q) => [
|
|
33433
|
-
A("verbatim" + q,
|
|
33434
|
-
A("filecontents" + q, I(O,
|
|
33444
|
+
A("verbatim" + q, x("verbatim" + q)),
|
|
33445
|
+
A("filecontents" + q, I(O, x("filecontents" + q))),
|
|
33435
33446
|
...[
|
|
33436
33447
|
"",
|
|
33437
33448
|
"B",
|
|
33438
33449
|
"L"
|
|
33439
33450
|
].map(
|
|
33440
|
-
(Y) => A(Y + "Verbatim" + q, I(y,
|
|
33451
|
+
(Y) => A(Y + "Verbatim" + q, I(y, x(Y + "Verbatim" + q)))
|
|
33441
33452
|
)
|
|
33442
33453
|
])),
|
|
33443
|
-
A("minted", I(y, I(O,
|
|
33454
|
+
A("minted", I(y, I(O, x("minted"))))
|
|
33444
33455
|
];
|
|
33445
33456
|
return {
|
|
33446
33457
|
name: "LaTeX",
|
|
@@ -34372,7 +34383,7 @@ function Wg() {
|
|
|
34372
34383
|
"zoom"
|
|
34373
34384
|
].sort().reverse(), c = i.concat(o).sort().reverse();
|
|
34374
34385
|
function d(u) {
|
|
34375
|
-
const p = r(u), g = c, S = "and or not only",
|
|
34386
|
+
const p = r(u), g = c, S = "and or not only", f = "[\\w-]+", v = "(" + f + "|@\\{" + f + "\\})", b = [], C = [], O = function(V) {
|
|
34376
34387
|
return {
|
|
34377
34388
|
// Less strings are not multiline (also include '~' for more consistent coloring of "escaped" strings)
|
|
34378
34389
|
className: "string",
|
|
@@ -34413,14 +34424,14 @@ function Wg() {
|
|
|
34413
34424
|
},
|
|
34414
34425
|
p.HEXCOLOR,
|
|
34415
34426
|
D,
|
|
34416
|
-
y("variable", "@@?" +
|
|
34417
|
-
y("variable", "@\\{" +
|
|
34427
|
+
y("variable", "@@?" + f, 10),
|
|
34428
|
+
y("variable", "@\\{" + f + "\\}"),
|
|
34418
34429
|
y("built_in", "~?`[^`]*?`"),
|
|
34419
34430
|
// inline javascript (or whatever host language) *multiline* string
|
|
34420
34431
|
{
|
|
34421
34432
|
// @media features (it’s here to not duplicate things in AT_RULE_MODE with extra PARENS_MODE overriding):
|
|
34422
34433
|
className: "attribute",
|
|
34423
|
-
begin:
|
|
34434
|
+
begin: f + "\\s*:",
|
|
34424
34435
|
end: ":",
|
|
34425
34436
|
returnBegin: !0,
|
|
34426
34437
|
excludeEnd: !0
|
|
@@ -34432,14 +34443,14 @@ function Wg() {
|
|
|
34432
34443
|
const A = C.concat({
|
|
34433
34444
|
begin: /\{/,
|
|
34434
34445
|
end: /\}/,
|
|
34435
|
-
contains:
|
|
34436
|
-
}),
|
|
34446
|
+
contains: b
|
|
34447
|
+
}), w = {
|
|
34437
34448
|
beginKeywords: "when",
|
|
34438
34449
|
endsWithParent: !0,
|
|
34439
34450
|
contains: [{ beginKeywords: "and not" }].concat(C)
|
|
34440
34451
|
// using this form to override VALUE’s 'function' match
|
|
34441
|
-
},
|
|
34442
|
-
begin:
|
|
34452
|
+
}, x = {
|
|
34453
|
+
begin: v + "\\s*:",
|
|
34443
34454
|
returnBegin: !0,
|
|
34444
34455
|
end: /[;}]/,
|
|
34445
34456
|
relevance: 0,
|
|
@@ -34476,10 +34487,10 @@ function Wg() {
|
|
|
34476
34487
|
// (we’ll still often loose to the css-parser unless there's '//' comment,
|
|
34477
34488
|
// simply because 1 variable just can't beat 99 properties :)
|
|
34478
34489
|
{
|
|
34479
|
-
begin: "@" +
|
|
34490
|
+
begin: "@" + f + "\\s*:",
|
|
34480
34491
|
relevance: 15
|
|
34481
34492
|
},
|
|
34482
|
-
{ begin: "@" +
|
|
34493
|
+
{ begin: "@" + f }
|
|
34483
34494
|
],
|
|
34484
34495
|
starts: {
|
|
34485
34496
|
end: "[;}]",
|
|
@@ -34497,7 +34508,7 @@ function Wg() {
|
|
|
34497
34508
|
// mixin calls end with ';'
|
|
34498
34509
|
},
|
|
34499
34510
|
{
|
|
34500
|
-
begin:
|
|
34511
|
+
begin: v,
|
|
34501
34512
|
end: /\{/
|
|
34502
34513
|
}
|
|
34503
34514
|
],
|
|
@@ -34508,18 +34519,18 @@ function Wg() {
|
|
|
34508
34519
|
contains: [
|
|
34509
34520
|
u.C_LINE_COMMENT_MODE,
|
|
34510
34521
|
u.C_BLOCK_COMMENT_MODE,
|
|
34511
|
-
|
|
34522
|
+
w,
|
|
34512
34523
|
y("keyword", "all\\b"),
|
|
34513
|
-
y("variable", "@\\{" +
|
|
34524
|
+
y("variable", "@\\{" + f + "\\}"),
|
|
34514
34525
|
// otherwise it’s identified as tag
|
|
34515
34526
|
{
|
|
34516
34527
|
begin: "\\b(" + n.join("|") + ")\\b",
|
|
34517
34528
|
className: "selector-tag"
|
|
34518
34529
|
},
|
|
34519
34530
|
p.CSS_NUMBER_MODE,
|
|
34520
|
-
y("selector-tag",
|
|
34521
|
-
y("selector-id", "#" +
|
|
34522
|
-
y("selector-class", "\\." +
|
|
34531
|
+
y("selector-tag", v, 0),
|
|
34532
|
+
y("selector-id", "#" + v),
|
|
34533
|
+
y("selector-class", "\\." + v, 0),
|
|
34523
34534
|
y("selector-tag", "&", 0),
|
|
34524
34535
|
p.ATTRIBUTE_SELECTOR_MODE,
|
|
34525
34536
|
{
|
|
@@ -34542,25 +34553,25 @@ function Wg() {
|
|
|
34542
34553
|
p.FUNCTION_DISPATCH
|
|
34543
34554
|
]
|
|
34544
34555
|
}, Y = {
|
|
34545
|
-
begin:
|
|
34556
|
+
begin: f + `:(:)?(${g.join("|")})`,
|
|
34546
34557
|
returnBegin: !0,
|
|
34547
34558
|
contains: [q]
|
|
34548
34559
|
};
|
|
34549
|
-
return
|
|
34560
|
+
return b.push(
|
|
34550
34561
|
u.C_LINE_COMMENT_MODE,
|
|
34551
34562
|
u.C_BLOCK_COMMENT_MODE,
|
|
34552
34563
|
B,
|
|
34553
34564
|
X,
|
|
34554
34565
|
Y,
|
|
34555
|
-
|
|
34566
|
+
x,
|
|
34556
34567
|
q,
|
|
34557
|
-
|
|
34568
|
+
w,
|
|
34558
34569
|
p.FUNCTION_DISPATCH
|
|
34559
34570
|
), {
|
|
34560
34571
|
name: "Less",
|
|
34561
34572
|
case_insensitive: !0,
|
|
34562
34573
|
illegal: `[=>'/<($"]`,
|
|
34563
|
-
contains:
|
|
34574
|
+
contains: b
|
|
34564
34575
|
};
|
|
34565
34576
|
}
|
|
34566
34577
|
return Gi = d, Gi;
|
|
@@ -34601,7 +34612,7 @@ function $g() {
|
|
|
34601
34612
|
}, p = {
|
|
34602
34613
|
begin: t,
|
|
34603
34614
|
relevance: 0
|
|
34604
|
-
}, g = { begin: n },
|
|
34615
|
+
}, g = { begin: n }, f = {
|
|
34605
34616
|
contains: [
|
|
34606
34617
|
o,
|
|
34607
34618
|
s,
|
|
@@ -34632,17 +34643,17 @@ function $g() {
|
|
|
34632
34643
|
},
|
|
34633
34644
|
{ begin: "'" + n }
|
|
34634
34645
|
]
|
|
34635
|
-
},
|
|
34646
|
+
}, v = { variants: [
|
|
34636
34647
|
{ begin: "'" + t },
|
|
34637
34648
|
{ begin: "#'" + t + "(::" + t + ")*" }
|
|
34638
|
-
] },
|
|
34649
|
+
] }, b = {
|
|
34639
34650
|
begin: "\\(\\s*",
|
|
34640
34651
|
end: "\\)"
|
|
34641
34652
|
}, C = {
|
|
34642
34653
|
endsWithParent: !0,
|
|
34643
34654
|
relevance: 0
|
|
34644
34655
|
};
|
|
34645
|
-
return
|
|
34656
|
+
return b.contains = [
|
|
34646
34657
|
{
|
|
34647
34658
|
className: "name",
|
|
34648
34659
|
variants: [
|
|
@@ -34655,9 +34666,9 @@ function $g() {
|
|
|
34655
34666
|
},
|
|
34656
34667
|
C
|
|
34657
34668
|
], C.contains = [
|
|
34658
|
-
b,
|
|
34659
34669
|
f,
|
|
34660
34670
|
v,
|
|
34671
|
+
b,
|
|
34661
34672
|
i,
|
|
34662
34673
|
o,
|
|
34663
34674
|
s,
|
|
@@ -34675,9 +34686,9 @@ function $g() {
|
|
|
34675
34686
|
i,
|
|
34676
34687
|
s,
|
|
34677
34688
|
c,
|
|
34678
|
-
b,
|
|
34679
34689
|
f,
|
|
34680
34690
|
v,
|
|
34691
|
+
b,
|
|
34681
34692
|
p
|
|
34682
34693
|
]
|
|
34683
34694
|
};
|
|
@@ -34963,17 +34974,17 @@ function Qg() {
|
|
|
34963
34974
|
keyword: r.concat(u),
|
|
34964
34975
|
literal: e.concat(d),
|
|
34965
34976
|
built_in: i.concat(c)
|
|
34966
|
-
}, g = "[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*", S = s.inherit(s.TITLE_MODE, { begin: g }),
|
|
34977
|
+
}, g = "[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*", S = s.inherit(s.TITLE_MODE, { begin: g }), f = {
|
|
34967
34978
|
className: "subst",
|
|
34968
34979
|
begin: /#\{/,
|
|
34969
34980
|
end: /\}/,
|
|
34970
34981
|
keywords: p
|
|
34971
|
-
},
|
|
34982
|
+
}, v = {
|
|
34972
34983
|
className: "subst",
|
|
34973
34984
|
begin: /#[A-Za-z$_]/,
|
|
34974
34985
|
end: /(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,
|
|
34975
34986
|
keywords: p
|
|
34976
|
-
},
|
|
34987
|
+
}, b = [
|
|
34977
34988
|
s.BINARY_NUMBER_MODE,
|
|
34978
34989
|
{
|
|
34979
34990
|
className: "number",
|
|
@@ -35003,8 +35014,8 @@ function Qg() {
|
|
|
35003
35014
|
end: /"""/,
|
|
35004
35015
|
contains: [
|
|
35005
35016
|
s.BACKSLASH_ESCAPE,
|
|
35006
|
-
|
|
35007
|
-
|
|
35017
|
+
f,
|
|
35018
|
+
v
|
|
35008
35019
|
]
|
|
35009
35020
|
},
|
|
35010
35021
|
{
|
|
@@ -35012,8 +35023,8 @@ function Qg() {
|
|
|
35012
35023
|
end: /"/,
|
|
35013
35024
|
contains: [
|
|
35014
35025
|
s.BACKSLASH_ESCAPE,
|
|
35015
|
-
|
|
35016
|
-
|
|
35026
|
+
f,
|
|
35027
|
+
v
|
|
35017
35028
|
]
|
|
35018
35029
|
},
|
|
35019
35030
|
{
|
|
@@ -35030,7 +35041,7 @@ function Qg() {
|
|
|
35030
35041
|
begin: "//",
|
|
35031
35042
|
end: "//[gim]*",
|
|
35032
35043
|
contains: [
|
|
35033
|
-
|
|
35044
|
+
f,
|
|
35034
35045
|
s.HASH_COMMENT_MODE
|
|
35035
35046
|
]
|
|
35036
35047
|
},
|
|
@@ -35050,7 +35061,7 @@ function Qg() {
|
|
|
35050
35061
|
subLanguage: "javascript"
|
|
35051
35062
|
}
|
|
35052
35063
|
];
|
|
35053
|
-
|
|
35064
|
+
f.contains = b;
|
|
35054
35065
|
const C = {
|
|
35055
35066
|
className: "params",
|
|
35056
35067
|
begin: "\\(",
|
|
@@ -35062,7 +35073,7 @@ function Qg() {
|
|
|
35062
35073
|
begin: /\(/,
|
|
35063
35074
|
end: /\)/,
|
|
35064
35075
|
keywords: p,
|
|
35065
|
-
contains: ["self"].concat(
|
|
35076
|
+
contains: ["self"].concat(b)
|
|
35066
35077
|
}
|
|
35067
35078
|
]
|
|
35068
35079
|
}, O = { begin: "(#=>|=>|\\|>>|-?->|!->)" }, y = {
|
|
@@ -35089,7 +35100,7 @@ function Qg() {
|
|
|
35089
35100
|
aliases: ["ls"],
|
|
35090
35101
|
keywords: p,
|
|
35091
35102
|
illegal: /\/\*/,
|
|
35092
|
-
contains:
|
|
35103
|
+
contains: b.concat([
|
|
35093
35104
|
s.COMMENT("\\/\\*", "\\*\\/"),
|
|
35094
35105
|
s.HASH_COMMENT_MODE,
|
|
35095
35106
|
O,
|
|
@@ -42657,19 +42668,19 @@ function eS() {
|
|
|
42657
42668
|
n.optional(u),
|
|
42658
42669
|
n.optional(p)
|
|
42659
42670
|
)
|
|
42660
|
-
},
|
|
42671
|
+
}, f = /[a-zA-Z$][a-zA-Z0-9$]*/, v = new Set(r), b = { variants: [
|
|
42661
42672
|
{
|
|
42662
42673
|
className: "builtin-symbol",
|
|
42663
|
-
begin:
|
|
42674
|
+
begin: f,
|
|
42664
42675
|
// for performance out of fear of regex.either(...Mathematica.SYSTEM_SYMBOLS)
|
|
42665
|
-
"on:begin": (
|
|
42666
|
-
|
|
42676
|
+
"on:begin": (w, x) => {
|
|
42677
|
+
v.has(w[0]) || x.ignoreMatch();
|
|
42667
42678
|
}
|
|
42668
42679
|
},
|
|
42669
42680
|
{
|
|
42670
42681
|
className: "symbol",
|
|
42671
42682
|
relevance: 0,
|
|
42672
|
-
begin:
|
|
42683
|
+
begin: f
|
|
42673
42684
|
}
|
|
42674
42685
|
] }, C = {
|
|
42675
42686
|
className: "named-character",
|
|
@@ -42693,7 +42704,7 @@ function eS() {
|
|
|
42693
42704
|
}, A = {
|
|
42694
42705
|
className: "message-name",
|
|
42695
42706
|
relevance: 0,
|
|
42696
|
-
begin: n.concat("::",
|
|
42707
|
+
begin: n.concat("::", f)
|
|
42697
42708
|
};
|
|
42698
42709
|
return {
|
|
42699
42710
|
name: "Mathematica",
|
|
@@ -42715,7 +42726,7 @@ function eS() {
|
|
|
42715
42726
|
y,
|
|
42716
42727
|
I,
|
|
42717
42728
|
A,
|
|
42718
|
-
|
|
42729
|
+
b,
|
|
42719
42730
|
C,
|
|
42720
42731
|
t.QUOTE_STRING_MODE,
|
|
42721
42732
|
S,
|
|
@@ -43357,10 +43368,10 @@ function sS() {
|
|
|
43357
43368
|
// valid but infrequent and weird
|
|
43358
43369
|
/#/
|
|
43359
43370
|
// valid but infrequent and weird
|
|
43360
|
-
], S = (
|
|
43371
|
+
], S = (b, C, O = "\\1") => {
|
|
43361
43372
|
const y = O === "\\1" ? O : t.concat(O, C);
|
|
43362
43373
|
return t.concat(
|
|
43363
|
-
t.concat("(?:",
|
|
43374
|
+
t.concat("(?:", b, ")"),
|
|
43364
43375
|
C,
|
|
43365
43376
|
/(?:\\.|[^\\\/])*?/,
|
|
43366
43377
|
y,
|
|
@@ -43368,13 +43379,13 @@ function sS() {
|
|
|
43368
43379
|
O,
|
|
43369
43380
|
a
|
|
43370
43381
|
);
|
|
43371
|
-
},
|
|
43372
|
-
t.concat("(?:",
|
|
43382
|
+
}, f = (b, C, O) => t.concat(
|
|
43383
|
+
t.concat("(?:", b, ")"),
|
|
43373
43384
|
C,
|
|
43374
43385
|
/(?:\\.|[^\\\/])*?/,
|
|
43375
43386
|
O,
|
|
43376
43387
|
a
|
|
43377
|
-
),
|
|
43388
|
+
), v = [
|
|
43378
43389
|
d,
|
|
43379
43390
|
e.HASH_COMMENT_MODE,
|
|
43380
43391
|
e.COMMENT(
|
|
@@ -43471,13 +43482,13 @@ function sS() {
|
|
|
43471
43482
|
relevance: 0
|
|
43472
43483
|
},
|
|
43473
43484
|
// prefix is optional with /regex/
|
|
43474
|
-
{ begin:
|
|
43485
|
+
{ begin: f("(?:m|qr)?", /\//, /\//) },
|
|
43475
43486
|
// allow matching common delimiters
|
|
43476
|
-
{ begin:
|
|
43487
|
+
{ begin: f("m|qr", t.either(...g, { capture: !0 }), /\1/) },
|
|
43477
43488
|
// allow common paired delmins
|
|
43478
|
-
{ begin:
|
|
43479
|
-
{ begin:
|
|
43480
|
-
{ begin:
|
|
43489
|
+
{ begin: f("m|qr", /\(/, /\)/) },
|
|
43490
|
+
{ begin: f("m|qr", /\[/, /\]/) },
|
|
43491
|
+
{ begin: f("m|qr", /\{/, /\}/) }
|
|
43481
43492
|
]
|
|
43482
43493
|
}
|
|
43483
43494
|
]
|
|
@@ -43515,14 +43526,14 @@ function sS() {
|
|
|
43515
43526
|
]
|
|
43516
43527
|
}
|
|
43517
43528
|
];
|
|
43518
|
-
return o.contains =
|
|
43529
|
+
return o.contains = v, s.contains = v, {
|
|
43519
43530
|
name: "Perl",
|
|
43520
43531
|
aliases: [
|
|
43521
43532
|
"pl",
|
|
43522
43533
|
"pm"
|
|
43523
43534
|
],
|
|
43524
43535
|
keywords: i,
|
|
43525
|
-
contains:
|
|
43536
|
+
contains: v
|
|
43526
43537
|
};
|
|
43527
43538
|
}
|
|
43528
43539
|
return to = r, to;
|
|
@@ -44787,7 +44798,7 @@ function ES() {
|
|
|
44787
44798
|
"unsafeGetAttrPos",
|
|
44788
44799
|
"warn",
|
|
44789
44800
|
"zipAttrsWith"
|
|
44790
|
-
].map((
|
|
44801
|
+
].map((w) => `builtins\\.${w}`)),
|
|
44791
44802
|
relevance: 10
|
|
44792
44803
|
}, i = "[A-Za-z_][A-Za-z0-9_'-]*", o = {
|
|
44793
44804
|
scope: "symbol",
|
|
@@ -44847,13 +44858,13 @@ function ES() {
|
|
|
44847
44858
|
relevance: 0.2
|
|
44848
44859
|
}
|
|
44849
44860
|
]
|
|
44850
|
-
},
|
|
44861
|
+
}, f = {
|
|
44851
44862
|
scope: "char.escape",
|
|
44852
44863
|
match: /\\\$/
|
|
44853
|
-
},
|
|
44864
|
+
}, v = {
|
|
44854
44865
|
scope: "char.escape",
|
|
44855
44866
|
match: /''\$/
|
|
44856
|
-
},
|
|
44867
|
+
}, b = {
|
|
44857
44868
|
scope: "subst",
|
|
44858
44869
|
begin: /\$\{/,
|
|
44859
44870
|
end: /\}/,
|
|
@@ -44871,8 +44882,8 @@ function ES() {
|
|
|
44871
44882
|
begin: "''",
|
|
44872
44883
|
end: "''",
|
|
44873
44884
|
contains: [
|
|
44874
|
-
f,
|
|
44875
44885
|
v,
|
|
44886
|
+
b,
|
|
44876
44887
|
C,
|
|
44877
44888
|
O
|
|
44878
44889
|
]
|
|
@@ -44881,8 +44892,8 @@ function ES() {
|
|
|
44881
44892
|
begin: '"',
|
|
44882
44893
|
end: '"',
|
|
44883
44894
|
contains: [
|
|
44895
|
+
f,
|
|
44884
44896
|
b,
|
|
44885
|
-
v,
|
|
44886
44897
|
O
|
|
44887
44898
|
]
|
|
44888
44899
|
}
|
|
@@ -44911,7 +44922,7 @@ function ES() {
|
|
|
44911
44922
|
g,
|
|
44912
44923
|
u
|
|
44913
44924
|
];
|
|
44914
|
-
|
|
44925
|
+
b.contains = D;
|
|
44915
44926
|
const A = [
|
|
44916
44927
|
{
|
|
44917
44928
|
scope: "meta.prompt",
|
|
@@ -45134,7 +45145,7 @@ function SS() {
|
|
|
45134
45145
|
// plug::ins
|
|
45135
45146
|
className: "title.function",
|
|
45136
45147
|
begin: /\w+::\w+/
|
|
45137
|
-
},
|
|
45148
|
+
}, f = {
|
|
45138
45149
|
className: "string",
|
|
45139
45150
|
variants: [
|
|
45140
45151
|
{
|
|
@@ -45158,7 +45169,7 @@ function SS() {
|
|
|
45158
45169
|
c,
|
|
45159
45170
|
d
|
|
45160
45171
|
]
|
|
45161
|
-
},
|
|
45172
|
+
}, v = [
|
|
45162
45173
|
"Abort",
|
|
45163
45174
|
"AddBrandingImage",
|
|
45164
45175
|
"AddSize",
|
|
@@ -45371,7 +45382,7 @@ function SS() {
|
|
|
45371
45382
|
"WriteRegStr",
|
|
45372
45383
|
"WriteUninstaller",
|
|
45373
45384
|
"XPStyle"
|
|
45374
|
-
],
|
|
45385
|
+
], b = [
|
|
45375
45386
|
"admin",
|
|
45376
45387
|
"all",
|
|
45377
45388
|
"auto",
|
|
@@ -45452,8 +45463,8 @@ function SS() {
|
|
|
45452
45463
|
name: "NSIS",
|
|
45453
45464
|
case_insensitive: !0,
|
|
45454
45465
|
keywords: {
|
|
45455
|
-
keyword:
|
|
45456
|
-
literal:
|
|
45466
|
+
keyword: v,
|
|
45467
|
+
literal: b
|
|
45457
45468
|
},
|
|
45458
45469
|
contains: [
|
|
45459
45470
|
e.HASH_COMMENT_MODE,
|
|
@@ -45466,7 +45477,7 @@ function SS() {
|
|
|
45466
45477
|
y,
|
|
45467
45478
|
C,
|
|
45468
45479
|
{ beginKeywords: "Function PageEx Section SectionGroup FunctionEnd SectionEnd" },
|
|
45469
|
-
|
|
45480
|
+
f,
|
|
45470
45481
|
p,
|
|
45471
45482
|
s,
|
|
45472
45483
|
c,
|
|
@@ -46028,13 +46039,13 @@ function CS() {
|
|
|
46028
46039
|
), c = "ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ", d = (
|
|
46029
46040
|
// https://www.postgresql.org/docs/11/static/datatype.html
|
|
46030
46041
|
"BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 "
|
|
46031
|
-
), u = d.trim().split(" ").map(function(
|
|
46032
|
-
return
|
|
46042
|
+
), u = d.trim().split(" ").map(function(b) {
|
|
46043
|
+
return b.split("|")[0];
|
|
46033
46044
|
}).join("|"), p = "CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ", g = "FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ", S = (
|
|
46034
46045
|
// exceptions https://www.postgresql.org/docs/current/static/errcodes-appendix.html
|
|
46035
46046
|
"SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED "
|
|
46036
|
-
),
|
|
46037
|
-
return
|
|
46047
|
+
), v = /* https://www.postgresql.org/docs/11/static/functions-aggregate.html */ "ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(b) {
|
|
46048
|
+
return b.split("|")[0];
|
|
46038
46049
|
}).join("|");
|
|
46039
46050
|
return {
|
|
46040
46051
|
name: "PostgreSQL",
|
|
@@ -46176,7 +46187,7 @@ function CS() {
|
|
|
46176
46187
|
},
|
|
46177
46188
|
// Known functions - only when followed by '('
|
|
46178
46189
|
{
|
|
46179
|
-
begin: "\\b(" +
|
|
46190
|
+
begin: "\\b(" + v + ")\\s*\\("
|
|
46180
46191
|
// keywords: { built_in: FUNCTIONS }
|
|
46181
46192
|
},
|
|
46182
46193
|
// Types
|
|
@@ -46333,8 +46344,8 @@ function NS() {
|
|
|
46333
46344
|
}, S = e.END_SAME_AS_BEGIN({
|
|
46334
46345
|
begin: /<<<[ \t]*'(\w+)'\n/,
|
|
46335
46346
|
end: /[ \t]*(\w+)\b/
|
|
46336
|
-
}),
|
|
46337
|
-
]`,
|
|
46347
|
+
}), f = `[
|
|
46348
|
+
]`, v = {
|
|
46338
46349
|
scope: "string",
|
|
46339
46350
|
variants: [
|
|
46340
46351
|
p,
|
|
@@ -46342,7 +46353,7 @@ function NS() {
|
|
|
46342
46353
|
g,
|
|
46343
46354
|
S
|
|
46344
46355
|
]
|
|
46345
|
-
},
|
|
46356
|
+
}, b = {
|
|
46346
46357
|
scope: "number",
|
|
46347
46358
|
variants: [
|
|
46348
46359
|
{ begin: "\\b0[bB][01]+(?:_[01]+)*\\b" },
|
|
@@ -46563,11 +46574,11 @@ function NS() {
|
|
|
46563
46574
|
}), re;
|
|
46564
46575
|
})(C),
|
|
46565
46576
|
built_in: y
|
|
46566
|
-
}, A = (j) => j.map((re) => re.replace(/\|\d+$/, "")),
|
|
46577
|
+
}, A = (j) => j.map((re) => re.replace(/\|\d+$/, "")), w = { variants: [
|
|
46567
46578
|
{
|
|
46568
46579
|
match: [
|
|
46569
46580
|
/new/,
|
|
46570
|
-
t.concat(
|
|
46581
|
+
t.concat(f, "+"),
|
|
46571
46582
|
// to prevent built ins from being confused as the class constructor call
|
|
46572
46583
|
t.concat("(?!", A(y).join("\\b|"), "\\b)"),
|
|
46573
46584
|
i
|
|
@@ -46577,14 +46588,14 @@ function NS() {
|
|
|
46577
46588
|
4: "title.class"
|
|
46578
46589
|
}
|
|
46579
46590
|
}
|
|
46580
|
-
] },
|
|
46591
|
+
] }, x = t.concat(a, "\\b(?!\\()"), B = { variants: [
|
|
46581
46592
|
{
|
|
46582
46593
|
match: [
|
|
46583
46594
|
t.concat(
|
|
46584
46595
|
/::/,
|
|
46585
46596
|
t.lookahead(/(?!class\b)/)
|
|
46586
46597
|
),
|
|
46587
|
-
|
|
46598
|
+
x
|
|
46588
46599
|
],
|
|
46589
46600
|
scope: { 2: "variable.constant" }
|
|
46590
46601
|
},
|
|
@@ -46602,7 +46613,7 @@ function NS() {
|
|
|
46602
46613
|
/::/,
|
|
46603
46614
|
t.lookahead(/(?!class\b)/)
|
|
46604
46615
|
),
|
|
46605
|
-
|
|
46616
|
+
x
|
|
46606
46617
|
],
|
|
46607
46618
|
scope: {
|
|
46608
46619
|
1: "title.class",
|
|
@@ -46643,9 +46654,9 @@ function NS() {
|
|
|
46643
46654
|
s,
|
|
46644
46655
|
B,
|
|
46645
46656
|
e.C_BLOCK_COMMENT_MODE,
|
|
46646
|
-
f,
|
|
46647
46657
|
v,
|
|
46648
|
-
|
|
46658
|
+
b,
|
|
46659
|
+
w
|
|
46649
46660
|
]
|
|
46650
46661
|
}, Y = {
|
|
46651
46662
|
relevance: 0,
|
|
@@ -46654,7 +46665,7 @@ function NS() {
|
|
|
46654
46665
|
// to prevent keywords from being confused as the function title
|
|
46655
46666
|
t.concat("(?!fn\\b|function\\b|", A(O).join("\\b|"), "|", A(y).join("\\b|"), "\\b)"),
|
|
46656
46667
|
a,
|
|
46657
|
-
t.concat(
|
|
46668
|
+
t.concat(f, "*"),
|
|
46658
46669
|
t.lookahead(/(?=\()/)
|
|
46659
46670
|
],
|
|
46660
46671
|
scope: { 3: "title.function.invoke" },
|
|
@@ -46665,9 +46676,9 @@ function NS() {
|
|
|
46665
46676
|
X,
|
|
46666
46677
|
B,
|
|
46667
46678
|
e.C_BLOCK_COMMENT_MODE,
|
|
46668
|
-
f,
|
|
46669
46679
|
v,
|
|
46670
|
-
|
|
46680
|
+
b,
|
|
46681
|
+
w
|
|
46671
46682
|
], W = {
|
|
46672
46683
|
begin: t.concat(
|
|
46673
46684
|
/#\[\s*\\?/,
|
|
@@ -46763,7 +46774,7 @@ function NS() {
|
|
|
46763
46774
|
3: "variable.constant"
|
|
46764
46775
|
}
|
|
46765
46776
|
},
|
|
46766
|
-
|
|
46777
|
+
w,
|
|
46767
46778
|
{
|
|
46768
46779
|
scope: "function",
|
|
46769
46780
|
relevance: 0,
|
|
@@ -46792,8 +46803,8 @@ function NS() {
|
|
|
46792
46803
|
s,
|
|
46793
46804
|
B,
|
|
46794
46805
|
e.C_BLOCK_COMMENT_MODE,
|
|
46795
|
-
|
|
46796
|
-
|
|
46806
|
+
v,
|
|
46807
|
+
b
|
|
46797
46808
|
]
|
|
46798
46809
|
}
|
|
46799
46810
|
]
|
|
@@ -46842,8 +46853,8 @@ function NS() {
|
|
|
46842
46853
|
e.UNDERSCORE_TITLE_MODE
|
|
46843
46854
|
]
|
|
46844
46855
|
},
|
|
46845
|
-
|
|
46846
|
-
|
|
46856
|
+
v,
|
|
46857
|
+
b
|
|
46847
46858
|
]
|
|
46848
46859
|
};
|
|
46849
46860
|
}
|
|
@@ -47069,17 +47080,17 @@ function IS() {
|
|
|
47069
47080
|
],
|
|
47070
47081
|
contains: [g]
|
|
47071
47082
|
}
|
|
47072
|
-
),
|
|
47083
|
+
), f = {
|
|
47073
47084
|
className: "built_in",
|
|
47074
47085
|
variants: [{ begin: "(".concat(n, ")+(-)[\\w\\d]+") }]
|
|
47075
|
-
},
|
|
47086
|
+
}, v = {
|
|
47076
47087
|
className: "class",
|
|
47077
47088
|
beginKeywords: "class enum",
|
|
47078
47089
|
end: /\s*[{]/,
|
|
47079
47090
|
excludeEnd: !0,
|
|
47080
47091
|
relevance: 0,
|
|
47081
47092
|
contains: [e.TITLE_MODE]
|
|
47082
|
-
},
|
|
47093
|
+
}, b = {
|
|
47083
47094
|
className: "function",
|
|
47084
47095
|
begin: /function\s+/,
|
|
47085
47096
|
end: /\s*\{|$/,
|
|
@@ -47163,7 +47174,7 @@ function IS() {
|
|
|
47163
47174
|
u,
|
|
47164
47175
|
p,
|
|
47165
47176
|
// PS_NEW_OBJECT_TYPE,
|
|
47166
|
-
|
|
47177
|
+
f,
|
|
47167
47178
|
c,
|
|
47168
47179
|
d,
|
|
47169
47180
|
y
|
|
@@ -47198,8 +47209,8 @@ function IS() {
|
|
|
47198
47209
|
case_insensitive: !0,
|
|
47199
47210
|
keywords: i,
|
|
47200
47211
|
contains: D.concat(
|
|
47201
|
-
f,
|
|
47202
47212
|
v,
|
|
47213
|
+
b,
|
|
47203
47214
|
C,
|
|
47204
47215
|
O,
|
|
47205
47216
|
A
|
|
@@ -48270,7 +48281,7 @@ function US() {
|
|
|
48270
48281
|
e.APOS_STRING_MODE,
|
|
48271
48282
|
e.QUOTE_STRING_MODE
|
|
48272
48283
|
]
|
|
48273
|
-
}, S = "[0-9](_?[0-9])*",
|
|
48284
|
+
}, S = "[0-9](_?[0-9])*", f = `(\\b(${S}))?\\.(${S})|\\b(${S})\\.`, v = `\\b|${a.join("|")}`, b = {
|
|
48274
48285
|
className: "number",
|
|
48275
48286
|
relevance: 0,
|
|
48276
48287
|
variants: [
|
|
@@ -48285,10 +48296,10 @@ function US() {
|
|
|
48285
48296
|
// because both MUST contain a decimal point and so cannot be confused with
|
|
48286
48297
|
// the interior part of an identifier
|
|
48287
48298
|
{
|
|
48288
|
-
begin: `(\\b(${S})|(${
|
|
48299
|
+
begin: `(\\b(${S})|(${f}))[eE][+-]?(${S})[jJ]?(?=${v})`
|
|
48289
48300
|
},
|
|
48290
48301
|
{
|
|
48291
|
-
begin: `(${
|
|
48302
|
+
begin: `(${f})[jJ]?`
|
|
48292
48303
|
},
|
|
48293
48304
|
// decinteger, bininteger, octinteger, hexinteger
|
|
48294
48305
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#integer-literals
|
|
@@ -48297,21 +48308,21 @@ function US() {
|
|
|
48297
48308
|
// decinteger is optionally imaginary
|
|
48298
48309
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
|
48299
48310
|
{
|
|
48300
|
-
begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${
|
|
48311
|
+
begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${v})`
|
|
48301
48312
|
},
|
|
48302
48313
|
{
|
|
48303
|
-
begin: `\\b0[bB](_?[01])+[lL]?(?=${
|
|
48314
|
+
begin: `\\b0[bB](_?[01])+[lL]?(?=${v})`
|
|
48304
48315
|
},
|
|
48305
48316
|
{
|
|
48306
|
-
begin: `\\b0[oO](_?[0-7])+[lL]?(?=${
|
|
48317
|
+
begin: `\\b0[oO](_?[0-7])+[lL]?(?=${v})`
|
|
48307
48318
|
},
|
|
48308
48319
|
{
|
|
48309
|
-
begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${
|
|
48320
|
+
begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${v})`
|
|
48310
48321
|
},
|
|
48311
48322
|
// imagnumber (digitpart-based)
|
|
48312
48323
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
|
48313
48324
|
{
|
|
48314
|
-
begin: `\\b(${S})[jJ](?=${
|
|
48325
|
+
begin: `\\b(${S})[jJ](?=${v})`
|
|
48315
48326
|
}
|
|
48316
48327
|
]
|
|
48317
48328
|
}, C = {
|
|
@@ -48349,7 +48360,7 @@ function US() {
|
|
|
48349
48360
|
contains: [
|
|
48350
48361
|
"self",
|
|
48351
48362
|
d,
|
|
48352
|
-
|
|
48363
|
+
b,
|
|
48353
48364
|
g,
|
|
48354
48365
|
e.HASH_COMMENT_MODE
|
|
48355
48366
|
]
|
|
@@ -48358,7 +48369,7 @@ function US() {
|
|
|
48358
48369
|
};
|
|
48359
48370
|
return u.contains = [
|
|
48360
48371
|
g,
|
|
48361
|
-
|
|
48372
|
+
b,
|
|
48362
48373
|
d
|
|
48363
48374
|
], {
|
|
48364
48375
|
name: "Python",
|
|
@@ -48372,7 +48383,7 @@ function US() {
|
|
|
48372
48383
|
illegal: /(<\/|\?)|=>/,
|
|
48373
48384
|
contains: [
|
|
48374
48385
|
d,
|
|
48375
|
-
|
|
48386
|
+
b,
|
|
48376
48387
|
{
|
|
48377
48388
|
// very common convention
|
|
48378
48389
|
scope: "variable.language",
|
|
@@ -48432,7 +48443,7 @@ function US() {
|
|
|
48432
48443
|
begin: /^[\t ]*@/,
|
|
48433
48444
|
end: /(?=#)|$/,
|
|
48434
48445
|
contains: [
|
|
48435
|
-
|
|
48446
|
+
b,
|
|
48436
48447
|
O,
|
|
48437
48448
|
g
|
|
48438
48449
|
]
|
|
@@ -50494,12 +50505,12 @@ function ZS() {
|
|
|
50494
50505
|
]
|
|
50495
50506
|
}
|
|
50496
50507
|
]
|
|
50497
|
-
},
|
|
50508
|
+
}, f = {
|
|
50498
50509
|
className: "name",
|
|
50499
50510
|
relevance: 0,
|
|
50500
50511
|
begin: t,
|
|
50501
50512
|
keywords: i
|
|
50502
|
-
},
|
|
50513
|
+
}, b = {
|
|
50503
50514
|
variants: [
|
|
50504
50515
|
{
|
|
50505
50516
|
begin: "\\(",
|
|
@@ -50516,7 +50527,7 @@ function ZS() {
|
|
|
50516
50527
|
endsWithParent: !0,
|
|
50517
50528
|
returnBegin: !0,
|
|
50518
50529
|
contains: [
|
|
50519
|
-
|
|
50530
|
+
f,
|
|
50520
50531
|
{
|
|
50521
50532
|
endsParent: !0,
|
|
50522
50533
|
variants: [
|
|
@@ -50533,7 +50544,7 @@ function ZS() {
|
|
|
50533
50544
|
}
|
|
50534
50545
|
]
|
|
50535
50546
|
},
|
|
50536
|
-
|
|
50547
|
+
f,
|
|
50537
50548
|
g
|
|
50538
50549
|
]
|
|
50539
50550
|
};
|
|
@@ -50544,7 +50555,7 @@ function ZS() {
|
|
|
50544
50555
|
u,
|
|
50545
50556
|
p,
|
|
50546
50557
|
S,
|
|
50547
|
-
|
|
50558
|
+
b
|
|
50548
50559
|
].concat(d), {
|
|
50549
50560
|
name: "Scheme",
|
|
50550
50561
|
aliases: ["scm"],
|
|
@@ -50555,7 +50566,7 @@ function ZS() {
|
|
|
50555
50566
|
c,
|
|
50556
50567
|
p,
|
|
50557
50568
|
S,
|
|
50558
|
-
|
|
50569
|
+
b
|
|
50559
50570
|
].concat(d)
|
|
50560
50571
|
};
|
|
50561
50572
|
}
|
|
@@ -51425,7 +51436,7 @@ function jS() {
|
|
|
51425
51436
|
"zoom"
|
|
51426
51437
|
].sort().reverse();
|
|
51427
51438
|
function c(d) {
|
|
51428
|
-
const u = r(d), p = o, g = i, S = "@[a-z-]+",
|
|
51439
|
+
const u = r(d), p = o, g = i, S = "@[a-z-]+", f = "and or not only", b = {
|
|
51429
51440
|
className: "variable",
|
|
51430
51441
|
begin: "(\\$" + "[a-zA-Z-][a-zA-Z0-9_-]*" + ")\\b",
|
|
51431
51442
|
relevance: 0
|
|
@@ -51465,7 +51476,7 @@ function jS() {
|
|
|
51465
51476
|
className: "selector-pseudo",
|
|
51466
51477
|
begin: ":(:)?(" + p.join("|") + ")"
|
|
51467
51478
|
},
|
|
51468
|
-
|
|
51479
|
+
b,
|
|
51469
51480
|
{
|
|
51470
51481
|
// pseudo-selector params
|
|
51471
51482
|
begin: /\(/,
|
|
@@ -51484,7 +51495,7 @@ function jS() {
|
|
|
51484
51495
|
relevance: 0,
|
|
51485
51496
|
contains: [
|
|
51486
51497
|
u.BLOCK_COMMENT,
|
|
51487
|
-
|
|
51498
|
+
b,
|
|
51488
51499
|
u.HEXCOLOR,
|
|
51489
51500
|
u.CSS_NUMBER_MODE,
|
|
51490
51501
|
d.QUOTE_STRING_MODE,
|
|
@@ -51509,7 +51520,7 @@ function jS() {
|
|
|
51509
51520
|
returnBegin: !0,
|
|
51510
51521
|
keywords: {
|
|
51511
51522
|
$pattern: /[a-z-]+/,
|
|
51512
|
-
keyword:
|
|
51523
|
+
keyword: f,
|
|
51513
51524
|
attribute: a.join(" ")
|
|
51514
51525
|
},
|
|
51515
51526
|
contains: [
|
|
@@ -51521,7 +51532,7 @@ function jS() {
|
|
|
51521
51532
|
begin: /[a-z-]+(?=:)/,
|
|
51522
51533
|
className: "attribute"
|
|
51523
51534
|
},
|
|
51524
|
-
|
|
51535
|
+
b,
|
|
51525
51536
|
d.QUOTE_STRING_MODE,
|
|
51526
51537
|
d.APOS_STRING_MODE,
|
|
51527
51538
|
u.HEXCOLOR,
|
|
@@ -54979,10 +54990,10 @@ function of() {
|
|
|
54979
54990
|
"nulls last",
|
|
54980
54991
|
"depth first",
|
|
54981
54992
|
"breadth first"
|
|
54982
|
-
],
|
|
54993
|
+
], f = p, v = [
|
|
54983
54994
|
...u,
|
|
54984
54995
|
...d
|
|
54985
|
-
].filter((A) => !p.includes(A)),
|
|
54996
|
+
].filter((A) => !p.includes(A)), b = {
|
|
54986
54997
|
scope: "variable",
|
|
54987
54998
|
match: /@[a-z0-9][a-z0-9_]*/
|
|
54988
54999
|
}, C = {
|
|
@@ -54990,14 +55001,14 @@ function of() {
|
|
|
54990
55001
|
match: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
|
|
54991
55002
|
relevance: 0
|
|
54992
55003
|
}, O = {
|
|
54993
|
-
match: t.concat(/\b/, t.either(...
|
|
55004
|
+
match: t.concat(/\b/, t.either(...f), /\s*\(/),
|
|
54994
55005
|
relevance: 0,
|
|
54995
|
-
keywords: { built_in:
|
|
55006
|
+
keywords: { built_in: f }
|
|
54996
55007
|
};
|
|
54997
55008
|
function y(A) {
|
|
54998
55009
|
return t.concat(
|
|
54999
55010
|
/\b/,
|
|
55000
|
-
t.either(...A.map((
|
|
55011
|
+
t.either(...A.map((w) => w.replace(/\s+/, "\\s+"))),
|
|
55001
55012
|
/\b/
|
|
55002
55013
|
);
|
|
55003
55014
|
}
|
|
@@ -55007,11 +55018,11 @@ function of() {
|
|
|
55007
55018
|
relevance: 0
|
|
55008
55019
|
};
|
|
55009
55020
|
function D(A, {
|
|
55010
|
-
exceptions:
|
|
55011
|
-
when:
|
|
55021
|
+
exceptions: w,
|
|
55022
|
+
when: x
|
|
55012
55023
|
} = {}) {
|
|
55013
|
-
const B =
|
|
55014
|
-
return
|
|
55024
|
+
const B = x;
|
|
55025
|
+
return w = w || [], A.map((X) => X.match(/\|\d+$/) || w.includes(X) ? X : B(X) ? `${X}|0` : X);
|
|
55015
55026
|
}
|
|
55016
55027
|
return {
|
|
55017
55028
|
name: "SQL",
|
|
@@ -55020,7 +55031,7 @@ function of() {
|
|
|
55020
55031
|
illegal: /[{}]|<\//,
|
|
55021
55032
|
keywords: {
|
|
55022
55033
|
$pattern: /\b[\w\.]+/,
|
|
55023
|
-
keyword: D(
|
|
55034
|
+
keyword: D(v, { when: (A) => A.length < 3 }),
|
|
55024
55035
|
literal: o,
|
|
55025
55036
|
type: c,
|
|
55026
55037
|
built_in: g
|
|
@@ -55032,7 +55043,7 @@ function of() {
|
|
|
55032
55043
|
},
|
|
55033
55044
|
I,
|
|
55034
55045
|
O,
|
|
55035
|
-
|
|
55046
|
+
b,
|
|
55036
55047
|
a,
|
|
55037
55048
|
i,
|
|
55038
55049
|
e.C_NUMBER_MODE,
|
|
@@ -56458,7 +56469,7 @@ function _f() {
|
|
|
56458
56469
|
"page",
|
|
56459
56470
|
"warn",
|
|
56460
56471
|
"while"
|
|
56461
|
-
],
|
|
56472
|
+
], f = "(?=[.\\s\\n[:,(])";
|
|
56462
56473
|
return {
|
|
56463
56474
|
name: "Stylus",
|
|
56464
56475
|
aliases: ["styl"],
|
|
@@ -56497,27 +56508,27 @@ function _f() {
|
|
|
56497
56508
|
u.HEXCOLOR,
|
|
56498
56509
|
// class tag
|
|
56499
56510
|
{
|
|
56500
|
-
begin: "\\.[a-zA-Z][a-zA-Z0-9_-]*" +
|
|
56511
|
+
begin: "\\.[a-zA-Z][a-zA-Z0-9_-]*" + f,
|
|
56501
56512
|
className: "selector-class"
|
|
56502
56513
|
},
|
|
56503
56514
|
// id tag
|
|
56504
56515
|
{
|
|
56505
|
-
begin: "#[a-zA-Z][a-zA-Z0-9_-]*" +
|
|
56516
|
+
begin: "#[a-zA-Z][a-zA-Z0-9_-]*" + f,
|
|
56506
56517
|
className: "selector-id"
|
|
56507
56518
|
},
|
|
56508
56519
|
// tags
|
|
56509
56520
|
{
|
|
56510
|
-
begin: "\\b(" + n.join("|") + ")" +
|
|
56521
|
+
begin: "\\b(" + n.join("|") + ")" + f,
|
|
56511
56522
|
className: "selector-tag"
|
|
56512
56523
|
},
|
|
56513
56524
|
// psuedo selectors
|
|
56514
56525
|
{
|
|
56515
56526
|
className: "selector-pseudo",
|
|
56516
|
-
begin: "&?:(" + i.join("|") + ")" +
|
|
56527
|
+
begin: "&?:(" + i.join("|") + ")" + f
|
|
56517
56528
|
},
|
|
56518
56529
|
{
|
|
56519
56530
|
className: "selector-pseudo",
|
|
56520
|
-
begin: "&?:(:)?(" + o.join("|") + ")" +
|
|
56531
|
+
begin: "&?:(:)?(" + o.join("|") + ")" + f
|
|
56521
56532
|
},
|
|
56522
56533
|
u.ATTRIBUTE_SELECTOR_MODE,
|
|
56523
56534
|
{
|
|
@@ -56642,26 +56653,26 @@ var os, yu;
|
|
|
56642
56653
|
function uf() {
|
|
56643
56654
|
if (yu) return os;
|
|
56644
56655
|
yu = 1;
|
|
56645
|
-
function r(
|
|
56646
|
-
return
|
|
56656
|
+
function r(x) {
|
|
56657
|
+
return x ? typeof x == "string" ? x : x.source : null;
|
|
56647
56658
|
}
|
|
56648
|
-
function e(
|
|
56649
|
-
return t("(?=",
|
|
56659
|
+
function e(x) {
|
|
56660
|
+
return t("(?=", x, ")");
|
|
56650
56661
|
}
|
|
56651
|
-
function t(...
|
|
56652
|
-
return
|
|
56662
|
+
function t(...x) {
|
|
56663
|
+
return x.map((X) => r(X)).join("");
|
|
56653
56664
|
}
|
|
56654
|
-
function n(
|
|
56655
|
-
const B =
|
|
56656
|
-
return typeof B == "object" && B.constructor === Object ? (
|
|
56665
|
+
function n(x) {
|
|
56666
|
+
const B = x[x.length - 1];
|
|
56667
|
+
return typeof B == "object" && B.constructor === Object ? (x.splice(x.length - 1, 1), B) : {};
|
|
56657
56668
|
}
|
|
56658
|
-
function a(...
|
|
56659
|
-
return "(" + (n(
|
|
56669
|
+
function a(...x) {
|
|
56670
|
+
return "(" + (n(x).capture ? "" : "?:") + x.map((q) => r(q)).join("|") + ")";
|
|
56660
56671
|
}
|
|
56661
|
-
const i = (
|
|
56672
|
+
const i = (x) => t(
|
|
56662
56673
|
/\b/,
|
|
56663
|
-
|
|
56664
|
-
/\w$/.test(
|
|
56674
|
+
x,
|
|
56675
|
+
/\w$/.test(x) ? /\b/ : /\B/
|
|
56665
56676
|
), o = [
|
|
56666
56677
|
"Protocol",
|
|
56667
56678
|
// contextual
|
|
@@ -56876,7 +56887,7 @@ function uf() {
|
|
|
56876
56887
|
"withVaList",
|
|
56877
56888
|
"withoutActuallyEscaping",
|
|
56878
56889
|
"zip"
|
|
56879
|
-
],
|
|
56890
|
+
], f = a(
|
|
56880
56891
|
/[/=\-+!*%<>&|^~?]/,
|
|
56881
56892
|
/[\u00A1-\u00A7]/,
|
|
56882
56893
|
/[\u00A9\u00AB]/,
|
|
@@ -56895,8 +56906,8 @@ function uf() {
|
|
|
56895
56906
|
/[\u3001-\u3003]/,
|
|
56896
56907
|
/[\u3008-\u3020]/,
|
|
56897
56908
|
/[\u3030]/
|
|
56898
|
-
),
|
|
56899
|
-
|
|
56909
|
+
), v = a(
|
|
56910
|
+
f,
|
|
56900
56911
|
/[\u0300-\u036F]/,
|
|
56901
56912
|
/[\u1DC0-\u1DFF]/,
|
|
56902
56913
|
/[\u20D0-\u20FF]/,
|
|
@@ -56904,7 +56915,7 @@ function uf() {
|
|
|
56904
56915
|
/[\uFE20-\uFE2F]/
|
|
56905
56916
|
// TODO: The following characters are also allowed, but the regex isn't supported yet.
|
|
56906
56917
|
// /[\u{E0100}-\u{E01EF}]/u
|
|
56907
|
-
),
|
|
56918
|
+
), b = t(f, v, "*"), C = a(
|
|
56908
56919
|
/[a-zA-Z_]/,
|
|
56909
56920
|
/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
|
|
56910
56921
|
/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
|
|
@@ -56974,16 +56985,16 @@ function uf() {
|
|
|
56974
56985
|
"tvOSApplicationExtension",
|
|
56975
56986
|
"swift"
|
|
56976
56987
|
];
|
|
56977
|
-
function
|
|
56988
|
+
function w(x) {
|
|
56978
56989
|
const B = {
|
|
56979
56990
|
match: /\s+/,
|
|
56980
56991
|
relevance: 0
|
|
56981
|
-
}, X =
|
|
56992
|
+
}, X = x.COMMENT(
|
|
56982
56993
|
"/\\*",
|
|
56983
56994
|
"\\*/",
|
|
56984
56995
|
{ contains: ["self"] }
|
|
56985
56996
|
), q = [
|
|
56986
|
-
|
|
56997
|
+
x.C_LINE_COMMENT_MODE,
|
|
56987
56998
|
X
|
|
56988
56999
|
], Y = {
|
|
56989
57000
|
match: [
|
|
@@ -57031,12 +57042,12 @@ function uf() {
|
|
|
57031
57042
|
className: "operator",
|
|
57032
57043
|
relevance: 0,
|
|
57033
57044
|
variants: [
|
|
57034
|
-
{ match:
|
|
57045
|
+
{ match: b },
|
|
57035
57046
|
{
|
|
57036
57047
|
// dot-operator: only operators that start with a dot are allowed to use dots as
|
|
57037
57048
|
// characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more
|
|
57038
57049
|
// characters that may also include dots.
|
|
57039
|
-
match: `\\.(\\.|${
|
|
57050
|
+
match: `\\.(\\.|${v})+`
|
|
57040
57051
|
}
|
|
57041
57052
|
]
|
|
57042
57053
|
}, ve = [
|
|
@@ -57097,12 +57108,12 @@ function uf() {
|
|
|
57097
57108
|
We("###")
|
|
57098
57109
|
]
|
|
57099
57110
|
}, Tt = [
|
|
57100
|
-
|
|
57111
|
+
x.BACKSLASH_ESCAPE,
|
|
57101
57112
|
{
|
|
57102
57113
|
begin: /\[/,
|
|
57103
57114
|
end: /\]/,
|
|
57104
57115
|
relevance: 0,
|
|
57105
|
-
contains: [
|
|
57116
|
+
contains: [x.BACKSLASH_ESCAPE]
|
|
57106
57117
|
}
|
|
57107
57118
|
], lr = {
|
|
57108
57119
|
begin: /\/[^\s](?=[^/\n]*\/)/,
|
|
@@ -57278,7 +57289,7 @@ function uf() {
|
|
|
57278
57289
|
match: [
|
|
57279
57290
|
/(func|macro)/,
|
|
57280
57291
|
/\s+/,
|
|
57281
|
-
a(Vt.match, y,
|
|
57292
|
+
a(Vt.match, y, b)
|
|
57282
57293
|
],
|
|
57283
57294
|
className: {
|
|
57284
57295
|
1: "keyword",
|
|
@@ -57309,7 +57320,7 @@ function uf() {
|
|
|
57309
57320
|
match: [
|
|
57310
57321
|
/operator/,
|
|
57311
57322
|
/\s+/,
|
|
57312
|
-
|
|
57323
|
+
b
|
|
57313
57324
|
],
|
|
57314
57325
|
className: {
|
|
57315
57326
|
1: "keyword",
|
|
@@ -57438,7 +57449,7 @@ function uf() {
|
|
|
57438
57449
|
]
|
|
57439
57450
|
};
|
|
57440
57451
|
}
|
|
57441
|
-
return os =
|
|
57452
|
+
return os = w, os;
|
|
57442
57453
|
}
|
|
57443
57454
|
var ss, Au;
|
|
57444
57455
|
function mf() {
|
|
@@ -57564,22 +57575,22 @@ function pf() {
|
|
|
57564
57575
|
] }), S = {
|
|
57565
57576
|
className: "number",
|
|
57566
57577
|
begin: "\\b" + "[0-9]{4}(-[0-9][0-9]){0,2}" + "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?" + "(\\.[0-9]*)?" + "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?" + "\\b"
|
|
57567
|
-
},
|
|
57578
|
+
}, f = {
|
|
57568
57579
|
end: ",",
|
|
57569
57580
|
endsWithParent: !0,
|
|
57570
57581
|
excludeEnd: !0,
|
|
57571
57582
|
keywords: t,
|
|
57572
57583
|
relevance: 0
|
|
57573
|
-
},
|
|
57584
|
+
}, v = {
|
|
57574
57585
|
begin: /\{/,
|
|
57575
57586
|
end: /\}/,
|
|
57576
|
-
contains: [
|
|
57587
|
+
contains: [f],
|
|
57577
57588
|
illegal: "\\n",
|
|
57578
57589
|
relevance: 0
|
|
57579
|
-
},
|
|
57590
|
+
}, b = {
|
|
57580
57591
|
begin: "\\[",
|
|
57581
57592
|
end: "\\]",
|
|
57582
|
-
contains: [
|
|
57593
|
+
contains: [f],
|
|
57583
57594
|
illegal: "\\n",
|
|
57584
57595
|
relevance: 0
|
|
57585
57596
|
}, C = [
|
|
@@ -57658,12 +57669,12 @@ function pf() {
|
|
|
57658
57669
|
begin: e.C_NUMBER_RE + "\\b",
|
|
57659
57670
|
relevance: 0
|
|
57660
57671
|
},
|
|
57661
|
-
f,
|
|
57662
57672
|
v,
|
|
57673
|
+
b,
|
|
57663
57674
|
o,
|
|
57664
57675
|
s
|
|
57665
57676
|
], O = [...C];
|
|
57666
|
-
return O.pop(), O.push(c),
|
|
57677
|
+
return O.pop(), O.push(c), f.contains = O, {
|
|
57667
57678
|
name: "YAML",
|
|
57668
57679
|
case_insensitive: !0,
|
|
57669
57680
|
aliases: ["yml"],
|
|
@@ -58276,7 +58287,7 @@ function bf() {
|
|
|
58276
58287
|
"verbatim",
|
|
58277
58288
|
"with"
|
|
58278
58289
|
];
|
|
58279
|
-
i = i.concat(i.map((
|
|
58290
|
+
i = i.concat(i.map((v) => `end${v}`));
|
|
58280
58291
|
const o = {
|
|
58281
58292
|
scope: "string",
|
|
58282
58293
|
variants: [
|
|
@@ -58316,17 +58327,17 @@ function bf() {
|
|
|
58316
58327
|
keywords: a
|
|
58317
58328
|
}
|
|
58318
58329
|
]
|
|
58319
|
-
}, p = (
|
|
58330
|
+
}, p = (v, { relevance: b }) => ({
|
|
58320
58331
|
beginScope: {
|
|
58321
58332
|
1: "template-tag",
|
|
58322
58333
|
3: "name"
|
|
58323
58334
|
},
|
|
58324
|
-
relevance:
|
|
58335
|
+
relevance: b || 2,
|
|
58325
58336
|
endScope: "template-tag",
|
|
58326
58337
|
begin: [
|
|
58327
58338
|
/\{%/,
|
|
58328
58339
|
/\s*/,
|
|
58329
|
-
t.either(...
|
|
58340
|
+
t.either(...v)
|
|
58330
58341
|
],
|
|
58331
58342
|
end: /%\}/,
|
|
58332
58343
|
keywords: "in",
|
|
@@ -58336,7 +58347,7 @@ function bf() {
|
|
|
58336
58347
|
o,
|
|
58337
58348
|
s
|
|
58338
58349
|
]
|
|
58339
|
-
}), g = /[a-z_]+/, S = p(i, { relevance: 2 }),
|
|
58350
|
+
}), g = /[a-z_]+/, S = p(i, { relevance: 2 }), f = p([g], { relevance: 1 });
|
|
58340
58351
|
return {
|
|
58341
58352
|
name: "Twig",
|
|
58342
58353
|
aliases: ["craftcms"],
|
|
@@ -58345,7 +58356,7 @@ function bf() {
|
|
|
58345
58356
|
contains: [
|
|
58346
58357
|
e.COMMENT(/\{#/, /#\}/),
|
|
58347
58358
|
S,
|
|
58348
|
-
|
|
58359
|
+
f,
|
|
58349
58360
|
{
|
|
58350
58361
|
className: "template-variable",
|
|
58351
58362
|
begin: /\{\{/,
|
|
@@ -58517,10 +58528,10 @@ function Tf() {
|
|
|
58517
58528
|
const p = u.regex, g = (pe, { after: ge }) => {
|
|
58518
58529
|
const Oe = "</" + pe[0].slice(1);
|
|
58519
58530
|
return pe.input.indexOf(Oe, ge) !== -1;
|
|
58520
|
-
}, S = r,
|
|
58531
|
+
}, S = r, f = {
|
|
58521
58532
|
begin: "<>",
|
|
58522
58533
|
end: "</>"
|
|
58523
|
-
},
|
|
58534
|
+
}, v = /<[A-Za-z0-9\\._:-]+\s*\/>/, b = {
|
|
58524
58535
|
begin: /<[A-Za-z0-9\\._:-]+/,
|
|
58525
58536
|
end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
|
|
58526
58537
|
/**
|
|
@@ -58582,7 +58593,7 @@ function Tf() {
|
|
|
58582
58593
|
keywords: C,
|
|
58583
58594
|
contains: []
|
|
58584
58595
|
// defined later
|
|
58585
|
-
},
|
|
58596
|
+
}, w = {
|
|
58586
58597
|
begin: ".?html`",
|
|
58587
58598
|
end: "",
|
|
58588
58599
|
starts: {
|
|
@@ -58594,7 +58605,7 @@ function Tf() {
|
|
|
58594
58605
|
],
|
|
58595
58606
|
subLanguage: "xml"
|
|
58596
58607
|
}
|
|
58597
|
-
},
|
|
58608
|
+
}, x = {
|
|
58598
58609
|
begin: ".?css`",
|
|
58599
58610
|
end: "",
|
|
58600
58611
|
starts: {
|
|
@@ -58674,8 +58685,8 @@ function Tf() {
|
|
|
58674
58685
|
}, V = [
|
|
58675
58686
|
u.APOS_STRING_MODE,
|
|
58676
58687
|
u.QUOTE_STRING_MODE,
|
|
58677
|
-
M,
|
|
58678
58688
|
w,
|
|
58689
|
+
x,
|
|
58679
58690
|
B,
|
|
58680
58691
|
X,
|
|
58681
58692
|
// Skip numbers when they are part of a variable name
|
|
@@ -58884,8 +58895,8 @@ function Tf() {
|
|
|
58884
58895
|
xe,
|
|
58885
58896
|
u.APOS_STRING_MODE,
|
|
58886
58897
|
u.QUOTE_STRING_MODE,
|
|
58887
|
-
M,
|
|
58888
58898
|
w,
|
|
58899
|
+
x,
|
|
58889
58900
|
B,
|
|
58890
58901
|
X,
|
|
58891
58902
|
Y,
|
|
@@ -58952,21 +58963,21 @@ function Tf() {
|
|
|
58952
58963
|
{
|
|
58953
58964
|
// JSX
|
|
58954
58965
|
variants: [
|
|
58955
|
-
{ begin:
|
|
58956
|
-
{ match:
|
|
58966
|
+
{ begin: f.begin, end: f.end },
|
|
58967
|
+
{ match: v },
|
|
58957
58968
|
{
|
|
58958
|
-
begin:
|
|
58969
|
+
begin: b.begin,
|
|
58959
58970
|
// we carefully check the opening tag to see if it truly
|
|
58960
58971
|
// is a tag and not a false positive
|
|
58961
|
-
"on:begin":
|
|
58962
|
-
end:
|
|
58972
|
+
"on:begin": b.isTrulyOpeningTag,
|
|
58973
|
+
end: b.end
|
|
58963
58974
|
}
|
|
58964
58975
|
],
|
|
58965
58976
|
subLanguage: "xml",
|
|
58966
58977
|
contains: [
|
|
58967
58978
|
{
|
|
58968
|
-
begin:
|
|
58969
|
-
end:
|
|
58979
|
+
begin: b.begin,
|
|
58980
|
+
end: b.end,
|
|
58970
58981
|
skip: !0,
|
|
58971
58982
|
contains: ["self"]
|
|
58972
58983
|
}
|
|
@@ -59023,7 +59034,7 @@ function Tf() {
|
|
|
59023
59034
|
};
|
|
59024
59035
|
}
|
|
59025
59036
|
function d(u) {
|
|
59026
|
-
const p = u.regex, g = c(u), S = r,
|
|
59037
|
+
const p = u.regex, g = c(u), S = r, f = [
|
|
59027
59038
|
"any",
|
|
59028
59039
|
"void",
|
|
59029
59040
|
"number",
|
|
@@ -59034,7 +59045,7 @@ function Tf() {
|
|
|
59034
59045
|
"symbol",
|
|
59035
59046
|
"bigint",
|
|
59036
59047
|
"unknown"
|
|
59037
|
-
],
|
|
59048
|
+
], v = {
|
|
59038
59049
|
begin: [
|
|
59039
59050
|
/namespace/,
|
|
59040
59051
|
/\s+/,
|
|
@@ -59044,13 +59055,13 @@ function Tf() {
|
|
|
59044
59055
|
1: "keyword",
|
|
59045
59056
|
3: "title.class"
|
|
59046
59057
|
}
|
|
59047
|
-
},
|
|
59058
|
+
}, b = {
|
|
59048
59059
|
beginKeywords: "interface",
|
|
59049
59060
|
end: /\{/,
|
|
59050
59061
|
excludeEnd: !0,
|
|
59051
59062
|
keywords: {
|
|
59052
59063
|
keyword: "interface extends",
|
|
59053
|
-
built_in:
|
|
59064
|
+
built_in: f
|
|
59054
59065
|
},
|
|
59055
59066
|
contains: [g.exports.CLASS_REFERENCE]
|
|
59056
59067
|
}, C = {
|
|
@@ -59075,7 +59086,7 @@ function Tf() {
|
|
|
59075
59086
|
$pattern: r,
|
|
59076
59087
|
keyword: e.concat(O),
|
|
59077
59088
|
literal: t,
|
|
59078
|
-
built_in: s.concat(
|
|
59089
|
+
built_in: s.concat(f),
|
|
59079
59090
|
"variable.language": o
|
|
59080
59091
|
}, I = {
|
|
59081
59092
|
className: "meta",
|
|
@@ -59087,7 +59098,7 @@ function Tf() {
|
|
|
59087
59098
|
B.contains.splice(Y, 1, q);
|
|
59088
59099
|
};
|
|
59089
59100
|
Object.assign(g.keywords, y), g.exports.PARAMS_CONTAINS.push(I);
|
|
59090
|
-
const A = g.contains.find((B) => B.scope === "attr"),
|
|
59101
|
+
const A = g.contains.find((B) => B.scope === "attr"), w = Object.assign(
|
|
59091
59102
|
{},
|
|
59092
59103
|
A,
|
|
59093
59104
|
{ match: p.concat(S, p.lookahead(/\s*\?:/)) }
|
|
@@ -59097,17 +59108,17 @@ function Tf() {
|
|
|
59097
59108
|
// class reference for highlighting the params types
|
|
59098
59109
|
A,
|
|
59099
59110
|
// highlight the params key
|
|
59100
|
-
|
|
59111
|
+
w
|
|
59101
59112
|
// Added for optional property assignment highlighting
|
|
59102
59113
|
]), g.contains = g.contains.concat([
|
|
59103
59114
|
I,
|
|
59104
|
-
f,
|
|
59105
59115
|
v,
|
|
59106
|
-
|
|
59116
|
+
b,
|
|
59117
|
+
w
|
|
59107
59118
|
// Added for optional property assignment highlighting
|
|
59108
59119
|
]), D(g, "shebang", u.SHEBANG()), D(g, "use_strict", C);
|
|
59109
|
-
const
|
|
59110
|
-
return
|
|
59120
|
+
const x = g.contains.find((B) => B.label === "func.def");
|
|
59121
|
+
return x.relevance = 0, Object.assign(g, {
|
|
59111
59122
|
name: "TypeScript",
|
|
59112
59123
|
aliases: [
|
|
59113
59124
|
"ts",
|
|
@@ -60564,17 +60575,17 @@ function If() {
|
|
|
60564
60575
|
className: "string",
|
|
60565
60576
|
begin: /"""/,
|
|
60566
60577
|
end: /"""/
|
|
60567
|
-
},
|
|
60578
|
+
}, f = {
|
|
60568
60579
|
className: "property",
|
|
60569
60580
|
begin: t.concat(/\./, t.lookahead(n)),
|
|
60570
60581
|
end: n,
|
|
60571
60582
|
excludeBegin: !0,
|
|
60572
60583
|
relevance: 0
|
|
60573
|
-
},
|
|
60584
|
+
}, v = {
|
|
60574
60585
|
relevance: 0,
|
|
60575
60586
|
match: t.concat(/\b_/, n),
|
|
60576
60587
|
scope: "variable"
|
|
60577
|
-
},
|
|
60588
|
+
}, b = {
|
|
60578
60589
|
relevance: 0,
|
|
60579
60590
|
match: /\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,
|
|
60580
60591
|
scope: "title.class",
|
|
@@ -60610,9 +60621,9 @@ function If() {
|
|
|
60610
60621
|
end: /\)/,
|
|
60611
60622
|
contains: [
|
|
60612
60623
|
C,
|
|
60613
|
-
|
|
60624
|
+
b,
|
|
60614
60625
|
d,
|
|
60615
|
-
|
|
60626
|
+
v,
|
|
60616
60627
|
g
|
|
60617
60628
|
]
|
|
60618
60629
|
}, D = {
|
|
@@ -60637,7 +60648,7 @@ function If() {
|
|
|
60637
60648
|
...a,
|
|
60638
60649
|
...o,
|
|
60639
60650
|
...i
|
|
60640
|
-
],
|
|
60651
|
+
], w = {
|
|
60641
60652
|
relevance: 0,
|
|
60642
60653
|
match: t.concat(
|
|
60643
60654
|
"\\b(?!",
|
|
@@ -60692,15 +60703,15 @@ function If() {
|
|
|
60692
60703
|
y,
|
|
60693
60704
|
e.C_LINE_COMMENT_MODE,
|
|
60694
60705
|
e.C_BLOCK_COMMENT_MODE,
|
|
60695
|
-
|
|
60706
|
+
b,
|
|
60696
60707
|
p,
|
|
60697
60708
|
O,
|
|
60698
60709
|
u,
|
|
60699
60710
|
d,
|
|
60700
60711
|
g,
|
|
60712
|
+
v,
|
|
60701
60713
|
f,
|
|
60702
|
-
|
|
60703
|
-
M
|
|
60714
|
+
w
|
|
60704
60715
|
]
|
|
60705
60716
|
};
|
|
60706
60717
|
}
|
|
@@ -61461,20 +61472,20 @@ const kf = /* @__PURE__ */ tE(Pf), Uf = 0.5, Bf = 5, Xu = 0.25, Is = {
|
|
|
61461
61472
|
n.value = Y;
|
|
61462
61473
|
}
|
|
61463
61474
|
}
|
|
61464
|
-
function
|
|
61475
|
+
function f() {
|
|
61465
61476
|
S(n.value - 1);
|
|
61466
61477
|
}
|
|
61467
|
-
function
|
|
61478
|
+
function v() {
|
|
61468
61479
|
S(n.value + 1);
|
|
61469
61480
|
}
|
|
61470
|
-
function
|
|
61481
|
+
function b() {
|
|
61471
61482
|
a.value = Math.min(Bf, a.value + Xu);
|
|
61472
61483
|
}
|
|
61473
61484
|
function C() {
|
|
61474
61485
|
a.value = Math.max(Uf, a.value - Xu);
|
|
61475
61486
|
}
|
|
61476
61487
|
function O(Y) {
|
|
61477
|
-
Y.preventDefault(), Y.deltaY < 0 ?
|
|
61488
|
+
Y.preventDefault(), Y.deltaY < 0 ? b() : C();
|
|
61478
61489
|
}
|
|
61479
61490
|
function y(Y) {
|
|
61480
61491
|
a.value <= 1 || (d = !1, c = {
|
|
@@ -61495,14 +61506,14 @@ const kf = /* @__PURE__ */ tE(Pf), Uf = 0.5, Bf = 5, Xu = 0.25, Is = {
|
|
|
61495
61506
|
function A() {
|
|
61496
61507
|
d = !1;
|
|
61497
61508
|
}
|
|
61498
|
-
function
|
|
61509
|
+
function w(Y) {
|
|
61499
61510
|
if (Y.stopPropagation(), d) {
|
|
61500
61511
|
d = !1;
|
|
61501
61512
|
return;
|
|
61502
61513
|
}
|
|
61503
61514
|
(Y.target === t.value || Y.target.classList.contains("q-image-viewer-stage")) && g();
|
|
61504
61515
|
}
|
|
61505
|
-
function
|
|
61516
|
+
function x(Y) {
|
|
61506
61517
|
Y.stopPropagation();
|
|
61507
61518
|
}
|
|
61508
61519
|
function B() {
|
|
@@ -61518,10 +61529,10 @@ const kf = /* @__PURE__ */ tE(Pf), Uf = 0.5, Bf = 5, Xu = 0.25, Is = {
|
|
|
61518
61529
|
return;
|
|
61519
61530
|
}
|
|
61520
61531
|
if (Y.key === "ArrowLeft") {
|
|
61521
|
-
|
|
61532
|
+
f();
|
|
61522
61533
|
return;
|
|
61523
61534
|
}
|
|
61524
|
-
Y.key === "ArrowRight" &&
|
|
61535
|
+
Y.key === "ArrowRight" && v();
|
|
61525
61536
|
}
|
|
61526
61537
|
return Ot(n, () => {
|
|
61527
61538
|
p();
|
|
@@ -61538,15 +61549,15 @@ const kf = /* @__PURE__ */ tE(Pf), Uf = 0.5, Bf = 5, Xu = 0.25, Is = {
|
|
|
61538
61549
|
resetTransform: p,
|
|
61539
61550
|
close: g,
|
|
61540
61551
|
goTo: S,
|
|
61541
|
-
prev:
|
|
61542
|
-
next:
|
|
61543
|
-
zoomIn:
|
|
61552
|
+
prev: f,
|
|
61553
|
+
next: v,
|
|
61554
|
+
zoomIn: b,
|
|
61544
61555
|
zoomOut: C,
|
|
61545
61556
|
onWheel: O,
|
|
61546
61557
|
onPointerDown: y,
|
|
61547
61558
|
resetDragFlag: A,
|
|
61548
|
-
handleOverlayClick:
|
|
61549
|
-
stop:
|
|
61559
|
+
handleOverlayClick: w,
|
|
61560
|
+
stop: x,
|
|
61550
61561
|
toggleFullscreen: B
|
|
61551
61562
|
};
|
|
61552
61563
|
},
|
|
@@ -61626,7 +61637,7 @@ const kf = /* @__PURE__ */ tE(Pf), Uf = 0.5, Bf = 5, Xu = 0.25, Is = {
|
|
|
61626
61637
|
t
|
|
61627
61638
|
);
|
|
61628
61639
|
}
|
|
61629
|
-
}), Zu = "a.ck-qst-file--file[download]";
|
|
61640
|
+
}), Zu = "a.ck-qst-file--file[download]", Ff = 'pre[data-hide-in-preview="true"]';
|
|
61630
61641
|
function Ds(r) {
|
|
61631
61642
|
r.querySelectorAll("span.math-tex").forEach((e) => {
|
|
61632
61643
|
const t = e.textContent || "", n = t.match(/^\\\(([\s\S]*?)\\\)$/);
|
|
@@ -61655,6 +61666,15 @@ function Ds(r) {
|
|
|
61655
61666
|
}
|
|
61656
61667
|
});
|
|
61657
61668
|
}
|
|
61669
|
+
function Gf(r, e) {
|
|
61670
|
+
const t = new DOMParser().parseFromString(r, "text/html");
|
|
61671
|
+
return t.querySelectorAll(Ff).forEach((n) => {
|
|
61672
|
+
const a = t.createElement("div");
|
|
61673
|
+
a.className = "qck-code-hidden-placeholder", a.setAttribute("role", "note");
|
|
61674
|
+
const i = t.createElement("span");
|
|
61675
|
+
i.className = "qck-code-hidden-text", i.textContent = e, a.appendChild(i), n.replaceWith(a);
|
|
61676
|
+
}), t.body.innerHTML;
|
|
61677
|
+
}
|
|
61658
61678
|
function xs(r) {
|
|
61659
61679
|
r.querySelectorAll("pre code").forEach((e) => {
|
|
61660
61680
|
kf.highlightElement(e);
|
|
@@ -61718,6 +61738,16 @@ const Zs = fr({
|
|
|
61718
61738
|
imageRetry: {
|
|
61719
61739
|
type: [Boolean, Object],
|
|
61720
61740
|
default: !0
|
|
61741
|
+
},
|
|
61742
|
+
/** 为 true 时把插件标记为"预览隐藏"的代码块替换为占位提示 */
|
|
61743
|
+
enableCodeHidden: {
|
|
61744
|
+
type: Boolean,
|
|
61745
|
+
default: !1
|
|
61746
|
+
},
|
|
61747
|
+
/** 隐藏代码块的占位提示文字 */
|
|
61748
|
+
codeHiddenText: {
|
|
61749
|
+
type: String,
|
|
61750
|
+
default: "代码已隐藏"
|
|
61721
61751
|
}
|
|
61722
61752
|
},
|
|
61723
61753
|
setup(r) {
|
|
@@ -61732,31 +61762,31 @@ const Zs = fr({
|
|
|
61732
61762
|
const y = new DOMParser().parseFromString(O, "text/html");
|
|
61733
61763
|
return y.querySelectorAll("script, style").forEach((I) => I.remove()), y.querySelectorAll("*").forEach((I) => {
|
|
61734
61764
|
if (Array.from(I.attributes).forEach((D) => {
|
|
61735
|
-
const A = D.name.toLowerCase(),
|
|
61765
|
+
const A = D.name.toLowerCase(), w = D.value;
|
|
61736
61766
|
if (A.startsWith("on")) {
|
|
61737
61767
|
I.removeAttribute(D.name);
|
|
61738
61768
|
return;
|
|
61739
61769
|
}
|
|
61740
61770
|
if (A === "href" || A === "src" || A === "xlink:href") {
|
|
61741
|
-
n(
|
|
61771
|
+
n(w) || I.removeAttribute(D.name);
|
|
61742
61772
|
return;
|
|
61743
61773
|
}
|
|
61744
61774
|
if (A === "style") {
|
|
61745
|
-
const
|
|
61746
|
-
(
|
|
61775
|
+
const x = w.toLowerCase();
|
|
61776
|
+
(x.includes("expression(") || x.includes("javascript:") || x.includes("url(javascript:")) && I.removeAttribute(D.name);
|
|
61747
61777
|
}
|
|
61748
61778
|
}), I.tagName.toLowerCase() === "a") {
|
|
61749
61779
|
const D = I;
|
|
61750
61780
|
if (D.target === "_blank") {
|
|
61751
|
-
const A = (D.getAttribute("rel") ?? "").split(/\s+/).filter(Boolean),
|
|
61752
|
-
D.setAttribute("rel", Array.from(/* @__PURE__ */ new Set([...A, ...
|
|
61781
|
+
const A = (D.getAttribute("rel") ?? "").split(/\s+/).filter(Boolean), w = ["noopener", "noreferrer"];
|
|
61782
|
+
D.setAttribute("rel", Array.from(/* @__PURE__ */ new Set([...A, ...w])).join(" "));
|
|
61753
61783
|
}
|
|
61754
61784
|
}
|
|
61755
61785
|
}), y.body.innerHTML;
|
|
61756
61786
|
}
|
|
61757
61787
|
const i = et(() => {
|
|
61758
|
-
const O = t.value;
|
|
61759
|
-
return r.
|
|
61788
|
+
const O = t.value, y = r.sanitize ? a(O) : O;
|
|
61789
|
+
return !r.enableCodeHidden || !y.includes("data-hide-in-preview") ? y : Gf(y, r.codeHiddenText);
|
|
61760
61790
|
});
|
|
61761
61791
|
Ot(
|
|
61762
61792
|
i,
|
|
@@ -61783,21 +61813,21 @@ const Zs = fr({
|
|
|
61783
61813
|
};
|
|
61784
61814
|
return typeof r.imagePreview == "object" && r.imagePreview !== null ? { ...O, ...r.imagePreview } : O;
|
|
61785
61815
|
}), p = Ae(!1), g = Ae([]), S = Ae(0);
|
|
61786
|
-
function
|
|
61816
|
+
function f(O, y) {
|
|
61787
61817
|
const I = O.href, D = O.getAttribute("download");
|
|
61788
61818
|
!I || !D || fetch(I, { method: "GET", mode: "cors", signal: y }).then((A) => {
|
|
61789
61819
|
if (!A.ok) throw new Error("fetch failed");
|
|
61790
61820
|
return A.blob();
|
|
61791
61821
|
}).then((A) => {
|
|
61792
|
-
const
|
|
61793
|
-
|
|
61822
|
+
const w = URL.createObjectURL(A), x = document.createElement("a");
|
|
61823
|
+
x.href = w, x.download = D, document.body.appendChild(x), x.click(), document.body.removeChild(x), setTimeout(() => URL.revokeObjectURL(w), 0);
|
|
61794
61824
|
}).catch((A) => {
|
|
61795
61825
|
(A == null ? void 0 : A.name) !== "AbortError" && window.open(I, "_blank", "noopener,noreferrer");
|
|
61796
61826
|
});
|
|
61797
61827
|
}
|
|
61798
|
-
const
|
|
61799
|
-
function
|
|
61800
|
-
var
|
|
61828
|
+
const v = Ae(null);
|
|
61829
|
+
function b(O) {
|
|
61830
|
+
var x;
|
|
61801
61831
|
const y = O.target;
|
|
61802
61832
|
if (!(y instanceof HTMLElement)) return;
|
|
61803
61833
|
const I = y.closest(Zu);
|
|
@@ -61809,22 +61839,22 @@ const Zs = fr({
|
|
|
61809
61839
|
return;
|
|
61810
61840
|
}
|
|
61811
61841
|
if (B) {
|
|
61812
|
-
O.preventDefault(), O.stopPropagation(), (
|
|
61842
|
+
O.preventDefault(), O.stopPropagation(), (x = v.value) == null || x.abort();
|
|
61813
61843
|
const X = new AbortController();
|
|
61814
|
-
|
|
61844
|
+
v.value = X, f(I, X.signal);
|
|
61815
61845
|
}
|
|
61816
61846
|
return;
|
|
61817
61847
|
}
|
|
61818
61848
|
if (!d.value || !(y instanceof HTMLImageElement)) return;
|
|
61819
61849
|
const D = e.value;
|
|
61820
61850
|
if (!D) return;
|
|
61821
|
-
const A = Array.from(D.querySelectorAll("img")),
|
|
61822
|
-
|
|
61851
|
+
const A = Array.from(D.querySelectorAll("img")), w = A.indexOf(y);
|
|
61852
|
+
w < 0 || (O.stopPropagation(), g.value = A.map((B) => B.src), S.value = w, p.value = !0);
|
|
61823
61853
|
}
|
|
61824
61854
|
let C = null;
|
|
61825
61855
|
return Js(() => {
|
|
61826
61856
|
var O, y;
|
|
61827
|
-
(O = e.value) == null || O.removeEventListener("click",
|
|
61857
|
+
(O = e.value) == null || O.removeEventListener("click", b), (y = v.value) == null || y.abort(), v.value = null, C == null || C.destroy(), C = null;
|
|
61828
61858
|
}), jm(() => {
|
|
61829
61859
|
const O = e.value, y = ws(r.imageRetry);
|
|
61830
61860
|
C == null || C.destroy(), C = null, O && y && (C = Ls(O, y));
|
|
@@ -61837,7 +61867,7 @@ const Zs = fr({
|
|
|
61837
61867
|
viewerVisible: p,
|
|
61838
61868
|
viewerImages: g,
|
|
61839
61869
|
viewerIndex: S,
|
|
61840
|
-
handleContainerClick:
|
|
61870
|
+
handleContainerClick: b
|
|
61841
61871
|
};
|
|
61842
61872
|
},
|
|
61843
61873
|
mounted() {
|
|
@@ -61878,7 +61908,7 @@ const Zs = fr({
|
|
|
61878
61908
|
}
|
|
61879
61909
|
}, e);
|
|
61880
61910
|
}
|
|
61881
|
-
}),
|
|
61911
|
+
}), Yf = fr({
|
|
61882
61912
|
name: "QCKEditorPro",
|
|
61883
61913
|
components: {
|
|
61884
61914
|
QCKClassic: ks,
|
|
@@ -62005,7 +62035,7 @@ const Zs = fr({
|
|
|
62005
62035
|
let g = null;
|
|
62006
62036
|
const S = (V, W, j) => {
|
|
62007
62037
|
p.value = j;
|
|
62008
|
-
},
|
|
62038
|
+
}, f = et(() => r.disableExit || p.value), v = et(() => r.content ?? t.value ?? ""), b = et(() => {
|
|
62009
62039
|
const V = { ...r.config ?? {} };
|
|
62010
62040
|
return delete V.placeholder, V;
|
|
62011
62041
|
}), C = et(() => r.minHeight > 0), O = et(() => ({
|
|
@@ -62035,7 +62065,7 @@ const Zs = fr({
|
|
|
62035
62065
|
async function A() {
|
|
62036
62066
|
var j, re, le, de, xe, ye, Ne, Fe, Te;
|
|
62037
62067
|
if (!n.value || d.value) return;
|
|
62038
|
-
if (
|
|
62068
|
+
if (f.value) {
|
|
62039
62069
|
e("exit-blocked", p.value ? "pending-actions" : "prop");
|
|
62040
62070
|
return;
|
|
62041
62071
|
}
|
|
@@ -62055,7 +62085,7 @@ const Zs = fr({
|
|
|
62055
62085
|
}
|
|
62056
62086
|
s.value = null, a.value = !1, n.value = !1, d.value = !1;
|
|
62057
62087
|
}
|
|
62058
|
-
function
|
|
62088
|
+
function w(V) {
|
|
62059
62089
|
if (!n.value || !i.value) {
|
|
62060
62090
|
c.value = !1;
|
|
62061
62091
|
return;
|
|
@@ -62068,7 +62098,7 @@ const Zs = fr({
|
|
|
62068
62098
|
const j = i.value.contains(W), re = W.closest(".ck-body-wrapper") || W.closest(".ck-balloon-panel") || W.closest(".ck"), le = W.closest(".q-editor-pro-container"), de = le && le !== i.value;
|
|
62069
62099
|
c.value = j || !!re && !de;
|
|
62070
62100
|
}
|
|
62071
|
-
function
|
|
62101
|
+
function x(V) {
|
|
62072
62102
|
if (!n.value || !i.value) return;
|
|
62073
62103
|
const W = V.target;
|
|
62074
62104
|
if (!(W instanceof HTMLElement) || !document.body.contains(W)) {
|
|
@@ -62109,19 +62139,19 @@ const Zs = fr({
|
|
|
62109
62139
|
mouseDownFromThisEditor: c,
|
|
62110
62140
|
isDeactivating: d,
|
|
62111
62141
|
focusTimer: u,
|
|
62112
|
-
previewHtml:
|
|
62142
|
+
previewHtml: v,
|
|
62113
62143
|
wrapperStyle: O,
|
|
62114
|
-
classicConfig:
|
|
62144
|
+
classicConfig: b,
|
|
62115
62145
|
contentProps: y,
|
|
62116
62146
|
shouldApplyMinHeight: C,
|
|
62117
62147
|
activate: I,
|
|
62118
62148
|
handleGlobalActivate: D,
|
|
62119
62149
|
deactivate: A,
|
|
62120
|
-
handleMouseDown:
|
|
62121
|
-
handleClickOutside:
|
|
62150
|
+
handleMouseDown: w,
|
|
62151
|
+
handleClickOutside: x,
|
|
62122
62152
|
handleReady: B,
|
|
62123
62153
|
handleDestroy: q,
|
|
62124
|
-
exitBlocked:
|
|
62154
|
+
exitBlocked: f,
|
|
62125
62155
|
// beforeDestroy(options 钩子)需经 this 访问该函数,故随 return 一并暴露
|
|
62126
62156
|
unbindPendingActions: X,
|
|
62127
62157
|
handleInput: Y
|
|
@@ -62189,7 +62219,7 @@ const Zs = fr({
|
|
|
62189
62219
|
]);
|
|
62190
62220
|
}
|
|
62191
62221
|
});
|
|
62192
|
-
class
|
|
62222
|
+
class qf {
|
|
62193
62223
|
constructor(e, t) {
|
|
62194
62224
|
this.loader = e, this.options = t;
|
|
62195
62225
|
}
|
|
@@ -62242,10 +62272,10 @@ class Gf {
|
|
|
62242
62272
|
t.send(a);
|
|
62243
62273
|
}
|
|
62244
62274
|
}
|
|
62245
|
-
function
|
|
62246
|
-
return new
|
|
62275
|
+
function Kf(r, e) {
|
|
62276
|
+
return new qf(r, e);
|
|
62247
62277
|
}
|
|
62248
|
-
class
|
|
62278
|
+
class zf {
|
|
62249
62279
|
constructor(e) {
|
|
62250
62280
|
this.aborted = !1, this.loader = e;
|
|
62251
62281
|
}
|
|
@@ -62281,10 +62311,10 @@ class Yf {
|
|
|
62281
62311
|
this.aborted = !0;
|
|
62282
62312
|
}
|
|
62283
62313
|
}
|
|
62284
|
-
function
|
|
62285
|
-
return new
|
|
62314
|
+
function Qf(r) {
|
|
62315
|
+
return new zf(r);
|
|
62286
62316
|
}
|
|
62287
|
-
class
|
|
62317
|
+
class Hf {
|
|
62288
62318
|
constructor(e, t) {
|
|
62289
62319
|
this.aborted = !1, this.loader = e, this.uploadFn = t;
|
|
62290
62320
|
}
|
|
@@ -62321,14 +62351,14 @@ class qf {
|
|
|
62321
62351
|
this.aborted = !0;
|
|
62322
62352
|
}
|
|
62323
62353
|
}
|
|
62324
|
-
function
|
|
62325
|
-
return new
|
|
62354
|
+
function Xf(r, e) {
|
|
62355
|
+
return new Hf(r, e);
|
|
62326
62356
|
}
|
|
62327
|
-
const
|
|
62357
|
+
const Zf = {
|
|
62328
62358
|
CKEditor: Ms,
|
|
62329
62359
|
QCKEditor: Ps,
|
|
62330
62360
|
QCKClassic: ks,
|
|
62331
|
-
QCKEditorPro:
|
|
62361
|
+
QCKEditorPro: Yf,
|
|
62332
62362
|
QCKContent: Zs,
|
|
62333
62363
|
QCKImageViewer: Zm
|
|
62334
62364
|
};
|
|
@@ -62337,10 +62367,10 @@ export {
|
|
|
62337
62367
|
ks as QCKClassic,
|
|
62338
62368
|
Zs as QCKContent,
|
|
62339
62369
|
Ps as QCKEditor,
|
|
62340
|
-
|
|
62370
|
+
Yf as QCKEditorPro,
|
|
62341
62371
|
Zm as QCKImageViewer,
|
|
62342
|
-
|
|
62343
|
-
|
|
62344
|
-
|
|
62345
|
-
|
|
62372
|
+
Xf as createAsyncUploadAdapter,
|
|
62373
|
+
Qf as createMockUploadAdapter,
|
|
62374
|
+
Kf as createXHRUploadAdapter,
|
|
62375
|
+
Zf as default
|
|
62346
62376
|
};
|