@plebeiantech/lat.md 0.12.3-fork.15 → 0.12.3-fork.16
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/src/cli/checklist-menu.d.ts +2 -1
- package/dist/src/cli/checklist-menu.js +3 -2
- package/dist/src/cli/index.js +47 -10
- package/dist/src/cli/init-preferences.d.ts +4 -0
- package/dist/src/cli/init-preferences.js +35 -0
- package/dist/src/cli/init.js +7 -1
- package/dist/src/cli/search.js +2 -7
- package/dist/src/cli/ui-build-server.d.ts +12 -0
- package/dist/src/cli/ui-build-server.js +26 -0
- package/dist/src/cli/ui-build.js +1 -1
- package/dist/src/cli/ui.js +1 -1
- package/dist/src/search/query.d.ts +5 -2
- package/dist/src/search/query.js +25 -21
- package/dist/src/source-formats.d.ts +1 -1
- package/dist/src/source-formats.js +2 -0
- package/dist/src/source-parser.js +200 -0
- package/dist/src/view/client/assets/GraphView-BuZg_wrj.js +456 -0
- package/dist/src/view/client/assets/{MarkdownEditor-B7quqPb8.js → MarkdownEditor-BKqJtZYv.js} +8 -8
- package/dist/src/view/client/assets/_commonjsHelpers-CqkleIqs.js +1 -0
- package/dist/src/view/client/assets/abnfDiagram-VCTEODGH-CAu3KwfO.js +1 -0
- package/dist/src/view/client/assets/{arc-BnwR8Bu7.js → arc-CFnPZhKM.js} +1 -1
- package/dist/src/view/client/assets/architectureDiagram-5GKGNRK7-Cf9Kd0OA.js +36 -0
- package/dist/src/view/client/assets/{blockDiagram-I7D4REHJ-DETl8e_H.js → blockDiagram-I7D4REHJ-dPn7g_vm.js} +2 -2
- package/dist/src/view/client/assets/{c4Diagram-7LVT6UL2-DJRAT1Ve.js → c4Diagram-7LVT6UL2-DdZrwaPd.js} +2 -2
- package/dist/src/view/client/assets/channel-C-byJRR7.js +1 -0
- package/dist/src/view/client/assets/{chunk-2Q5K7J3B-C0TmOC1Q.js → chunk-2Q5K7J3B-C42JuteH.js} +1 -1
- package/dist/src/view/client/assets/{chunk-5VM5RSS4-dfBOrYE6.js → chunk-5VM5RSS4-BKK3z8Zy.js} +1 -1
- package/dist/src/view/client/assets/{chunk-F27PBJKO-DAnks99K.js → chunk-F27PBJKO-qZl_uKcW.js} +1 -1
- package/dist/src/view/client/assets/{chunk-IMKFNOWR-CPjB07if.js → chunk-IMKFNOWR-Bs4Rnoj_.js} +1 -1
- package/dist/src/view/client/assets/{chunk-JWPE2WC7-VvU_gZI6.js → chunk-JWPE2WC7-BpxgV2rA.js} +1 -1
- package/dist/src/view/client/assets/{chunk-POPQ4Y6H-DDUbVF55.js → chunk-POPQ4Y6H-hIynofdE.js} +1 -1
- package/dist/src/view/client/assets/{chunk-SVP7TREG-BHROkr6D.js → chunk-SVP7TREG-t3gKMqeu.js} +1 -1
- package/dist/src/view/client/assets/{chunk-TICWLB2K-95PzGIOg.js → chunk-TICWLB2K-B2x394mh.js} +1 -1
- package/dist/src/view/client/assets/{chunk-XXDRQBXY-MdmuLhIs.js → chunk-XXDRQBXY-CHaVKDsH.js} +1 -1
- package/dist/src/view/client/assets/classDiagram-ZZMXUADV-FlqGrEwv.js +1 -0
- package/dist/src/view/client/assets/classDiagram-v2-VYDZK3BY-FlqGrEwv.js +1 -0
- package/dist/src/view/client/assets/cose-bilkent-JH36ORCC-DE2-Jgqu.js +1 -0
- package/dist/src/view/client/assets/{cynefin-OW5HDTMX-CeA8IKWo.js → cynefin-OW5HDTMX-BsEtOvRy.js} +1 -1
- package/dist/src/view/client/assets/cynefinDiagram-5FMLGOSQ-BKYG1Xs8.js +62 -0
- package/dist/src/view/client/assets/{dagre-GXQ25YYZ-DLQwTa3H.js → dagre-GXQ25YYZ-hgrdNjl7.js} +2 -2
- package/dist/src/view/client/assets/{diagram-S7CK7UJ4-kbKdIyXG.js → diagram-S7CK7UJ4-VIx8zAxf.js} +2 -2
- package/dist/src/view/client/assets/diagram-UQ7AKVKN-yfloehRm.js +41 -0
- package/dist/src/view/client/assets/{diagram-VSXAHHWV-EXJTU8qq.js → diagram-VSXAHHWV-BT_dA4Q9.js} +2 -2
- package/dist/src/view/client/assets/diagram-VX7I27RA-Gfmwxx6u.js +24 -0
- package/dist/src/view/client/assets/diagram-Z3DM3KII-C2yM7EOo.js +24 -0
- package/dist/src/view/client/assets/ebnfDiagram-PWID7BFC-Bkb_Lj59.js +1 -0
- package/dist/src/view/client/assets/{erDiagram-RLTQ6QDP-C925J5A3.js → erDiagram-RLTQ6QDP-C7wQHPye.js} +2 -2
- package/dist/src/view/client/assets/{flowDiagram-HODETNUW-DzoCa-Nq.js → flowDiagram-HODETNUW-CXoKr3oI.js} +1 -1
- package/dist/src/view/client/assets/ganttDiagram-EL5Y4UJY-DqqXKgLa.js +292 -0
- package/dist/src/view/client/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/src/view/client/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/src/view/client/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/src/view/client/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/src/view/client/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
- package/dist/src/view/client/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
- package/dist/src/view/client/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
- package/dist/src/view/client/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/dist/src/view/client/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
- package/dist/src/view/client/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
- package/dist/src/view/client/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/src/view/client/assets/gitGraphDiagram-WWUBYQGX-D_DAhSgZ.js +106 -0
- package/dist/src/view/client/assets/index-DAxFk0q-.css +1 -0
- package/dist/src/view/client/assets/index-DPuOWFj2.js +10 -0
- package/dist/src/view/client/assets/infoDiagram-27XIBGKW-B50EOats.js +2 -0
- package/dist/src/view/client/assets/{ishikawaDiagram-5VMMS53U-CW4mto2d.js → ishikawaDiagram-5VMMS53U-D1rny9gj.js} +2 -2
- package/dist/src/view/client/assets/{journeyDiagram-3NMN7TZE-8R4eacFW.js → journeyDiagram-3NMN7TZE-B5UD2Xo4.js} +2 -2
- package/dist/src/view/client/assets/{kanban-definition-UXKFOSKX-Cy9ioXEJ.js → kanban-definition-UXKFOSKX-CTgey9zw.js} +6 -6
- package/dist/src/view/client/assets/{layout-C0MFuhth.js → layout-4X2n4os-.js} +1 -1
- package/dist/src/view/client/assets/{linear-Dv3N4dQR.js → linear-D0RIBXsp.js} +1 -1
- package/dist/src/view/client/assets/{maplibre-gl-DnqZgfUS.js → maplibre-gl-CDX6Zuow.js} +1 -1
- package/dist/src/view/client/assets/{mermaid.core-bds9A7e2.js → mermaid.core-BAnH8y-D.js} +11 -11
- package/dist/src/view/client/assets/{mindmap-definition-YA3MSWOX-DjmGW355.js → mindmap-definition-YA3MSWOX-WiFsh3Jg.js} +2 -2
- package/dist/src/view/client/assets/pegDiagram-XKGWAZYB-DCJOrckP.js +1 -0
- package/dist/src/view/client/assets/{pieDiagram-E7YTZNPT-CCH2gGR-.js → pieDiagram-E7YTZNPT-C78IkUE2.js} +2 -2
- package/dist/src/view/client/assets/{quadrantDiagram-AXDQQJYC-CjocPJFz.js → quadrantDiagram-AXDQQJYC-xZ6guleB.js} +4 -4
- package/dist/src/view/client/assets/railroadDiagram-O6MQD6OU-D3PwmgX0.js +1 -0
- package/dist/src/view/client/assets/{requirementDiagram-BXWQKSXE-Ct6AoXRr.js → requirementDiagram-BXWQKSXE-v-I8wLGH.js} +2 -2
- package/dist/src/view/client/assets/{sankeyDiagram-P5KCCOFB-CIpgGN_w.js → sankeyDiagram-P5KCCOFB-DBY-sdO7.js} +2 -2
- package/dist/src/view/client/assets/{sequenceDiagram-WJ2MYXX4-DrmLFj6w.js → sequenceDiagram-WJ2MYXX4-D9HApBFi.js} +2 -2
- package/dist/src/view/client/assets/sizeCapture-INFHLROL-ERAytLnQ.js +1 -0
- package/dist/src/view/client/assets/stateDiagram-D77RDMKH-BKef_Qwv.js +1 -0
- package/dist/src/view/client/assets/stateDiagram-v2-MP3YSRHH-BePfayWI.js +1 -0
- package/dist/src/view/client/assets/swimlanes-42K2YHIH-D7dS_tnF.js +1 -0
- package/dist/src/view/client/assets/swimlanesDiagram-VR7AAH4N-DaqCEguT.js +8 -0
- package/dist/src/view/client/assets/{timeline-definition-24CTP7MA-BExPu6X5.js → timeline-definition-24CTP7MA-Di1UCseG.js} +2 -2
- package/dist/src/view/client/assets/{vennDiagram-4TSXK5OY-PC1MU3si.js → vennDiagram-4TSXK5OY-g7Je3H2H.js} +2 -2
- package/dist/src/view/client/assets/{wardleyDiagram-VM6X3IG4-DNWqU3fa.js → wardleyDiagram-VM6X3IG4-C_diPEka.js} +2 -2
- package/dist/src/view/client/assets/{xychartDiagram-S5SC5T6Z-E1uA28_D.js → xychartDiagram-S5SC5T6Z-C8uIQy_I.js} +2 -2
- package/dist/src/view/client/index.html +2 -2
- package/dist/src/view/document-route.d.ts +2 -0
- package/dist/src/view/document-route.js +40 -7
- package/dist/src/view/graph.d.ts +2 -2
- package/dist/src/view/graph.js +7 -3
- package/dist/src/view/highlight.js +205 -203
- package/dist/src/view/markdown.js +4 -0
- package/dist/src/view/preindexed-search.d.ts +15 -0
- package/dist/src/view/preindexed-search.js +25 -0
- package/dist/src/view/protocol.d.ts +3 -0
- package/dist/src/view/references.js +3 -4
- package/dist/src/view/search-result.d.ts +4 -0
- package/dist/src/view/search-result.js +20 -0
- package/dist/src/view/search.d.ts +7 -2
- package/dist/src/view/search.js +23 -30
- package/dist/src/view/server-build.d.ts +21 -0
- package/dist/src/view/server-build.js +145 -0
- package/dist/src/view/server-deployment.d.ts +32 -0
- package/dist/src/view/server-deployment.js +133 -0
- package/dist/src/view/server-index-worker.d.ts +6 -0
- package/dist/src/view/server-index-worker.js +14 -0
- package/dist/src/view/server.js +25 -7
- package/dist/src/view/static-build.d.ts +16 -1
- package/dist/src/view/static-build.js +187 -89
- package/dist/src/view/static-protocol.d.ts +7 -0
- package/dist/src/view/static-protocol.js +5 -0
- package/dist/src/view/store.js +14 -4
- package/dist/src/view/vercel-build.d.ts +24 -0
- package/dist/src/view/vercel-build.js +133 -0
- package/dist/src/view/vercel-server-build.d.ts +10 -0
- package/dist/src/view/vercel-server-build.js +61 -0
- package/dist/vendor/lat.md-server/index.d.ts +1 -1
- package/dist/vendor/lat.md-server/index.js +1 -1
- package/package.json +16 -4
- package/dist/src/view/client/assets/abnfDiagram-VCTEODGH-V7-T6qsl.js +0 -1
- package/dist/src/view/client/assets/architectureDiagram-5GKGNRK7-u97vDna9.js +0 -36
- package/dist/src/view/client/assets/channel-BwQbnWCN.js +0 -1
- package/dist/src/view/client/assets/classDiagram-ZZMXUADV-HvQKkIS-.js +0 -1
- package/dist/src/view/client/assets/classDiagram-v2-VYDZK3BY-HvQKkIS-.js +0 -1
- package/dist/src/view/client/assets/cose-bilkent-JH36ORCC-CauUf_rN.js +0 -1
- package/dist/src/view/client/assets/cynefinDiagram-5FMLGOSQ-L1rtcT8l.js +0 -62
- package/dist/src/view/client/assets/diagram-UQ7AKVKN-kmzp92RC.js +0 -41
- package/dist/src/view/client/assets/diagram-VX7I27RA-DAiIyMCG.js +0 -24
- package/dist/src/view/client/assets/diagram-Z3DM3KII-G9wz50ZV.js +0 -24
- package/dist/src/view/client/assets/ebnfDiagram-PWID7BFC-D2tVRCNA.js +0 -1
- package/dist/src/view/client/assets/ganttDiagram-EL5Y4UJY-D2ebbg4p.js +0 -292
- package/dist/src/view/client/assets/gitGraphDiagram-WWUBYQGX-B4QratYy.js +0 -106
- package/dist/src/view/client/assets/index-D0ajr_Ja.css +0 -1
- package/dist/src/view/client/assets/index-KZcnpXJH.js +0 -321
- package/dist/src/view/client/assets/infoDiagram-27XIBGKW-DL4mtHkt.js +0 -2
- package/dist/src/view/client/assets/pegDiagram-XKGWAZYB-BWsZp0ab.js +0 -1
- package/dist/src/view/client/assets/railroadDiagram-O6MQD6OU-BjLeb2KF.js +0 -1
- package/dist/src/view/client/assets/sizeCapture-INFHLROL-BdFMe2Lr.js +0 -1
- package/dist/src/view/client/assets/stateDiagram-D77RDMKH-Zd9F1goW.js +0 -1
- package/dist/src/view/client/assets/stateDiagram-v2-MP3YSRHH-ByIKCftl.js +0 -1
- package/dist/src/view/client/assets/swimlanes-42K2YHIH-a7VFwi00.js +0 -1
- package/dist/src/view/client/assets/swimlanesDiagram-VR7AAH4N-CzxaUHB-.js +0 -8
- /package/dist/src/view/client/assets/{logo-small-RR_KBOAT.svg → logo-RR_KBOAT.svg} +0 -0
|
@@ -58,10 +58,10 @@ import { extname as ut } from "node:path";
|
|
|
58
58
|
function gt(e) {
|
|
59
59
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
60
60
|
}
|
|
61
|
-
var ze,
|
|
61
|
+
var ze, an;
|
|
62
62
|
function bt() {
|
|
63
|
-
if (
|
|
64
|
-
|
|
63
|
+
if (an) return ze;
|
|
64
|
+
an = 1;
|
|
65
65
|
function e(n) {
|
|
66
66
|
return n instanceof Map ? n.clear = n.delete = n.set = function() {
|
|
67
67
|
throw new Error("map is read-only");
|
|
@@ -83,10 +83,10 @@ function bt() {
|
|
|
83
83
|
this.isMatchIgnored = !0;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function a(n) {
|
|
87
87
|
return n.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function s(n, ...i) {
|
|
90
90
|
const o = /* @__PURE__ */ Object.create(null);
|
|
91
91
|
for (const y in n)
|
|
92
92
|
o[y] = n[y];
|
|
@@ -123,7 +123,7 @@ function bt() {
|
|
|
123
123
|
*
|
|
124
124
|
* @param {string} text */
|
|
125
125
|
addText(i) {
|
|
126
|
-
this.buffer +=
|
|
126
|
+
this.buffer += a(i);
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* Adds a node open to the output stream (if needed)
|
|
@@ -304,7 +304,7 @@ function bt() {
|
|
|
304
304
|
/.*\b/,
|
|
305
305
|
n.binary,
|
|
306
306
|
/\b.*/
|
|
307
|
-
)),
|
|
307
|
+
)), s({
|
|
308
308
|
scope: "meta",
|
|
309
309
|
begin: i,
|
|
310
310
|
end: /$/,
|
|
@@ -332,7 +332,7 @@ function bt() {
|
|
|
332
332
|
}, Se = {
|
|
333
333
|
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/
|
|
334
334
|
}, x = function(n, i, o = {}) {
|
|
335
|
-
const y =
|
|
335
|
+
const y = s(
|
|
336
336
|
{
|
|
337
337
|
scope: "comment",
|
|
338
338
|
begin: n,
|
|
@@ -397,7 +397,7 @@ function bt() {
|
|
|
397
397
|
// look for 3 words in a row
|
|
398
398
|
}
|
|
399
399
|
), y;
|
|
400
|
-
}, Y = x("//", "$"), q = x("/\\*", "\\*/"), V = x("#", "$"),
|
|
400
|
+
}, Y = x("//", "$"), q = x("/\\*", "\\*/"), V = x("#", "$"), ae = {
|
|
401
401
|
scope: "number",
|
|
402
402
|
begin: le,
|
|
403
403
|
relevance: 0
|
|
@@ -465,7 +465,7 @@ function bt() {
|
|
|
465
465
|
IDENT_RE: te,
|
|
466
466
|
MATCH_NOTHING_RE: B,
|
|
467
467
|
METHOD_GUARD: On,
|
|
468
|
-
NUMBER_MODE:
|
|
468
|
+
NUMBER_MODE: ae,
|
|
469
469
|
NUMBER_RE: le,
|
|
470
470
|
PHRASAL_WORDS_MODE: Se,
|
|
471
471
|
QUOTE_STRING_MODE: de,
|
|
@@ -687,7 +687,7 @@ function bt() {
|
|
|
687
687
|
}
|
|
688
688
|
if (n.compilerExtensions || (n.compilerExtensions = []), n.contains && n.contains.includes("self"))
|
|
689
689
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
690
|
-
return n.classNameAliases =
|
|
690
|
+
return n.classNameAliases = s(n.classNameAliases || {}), U(
|
|
691
691
|
/** @type Mode */
|
|
692
692
|
n
|
|
693
693
|
);
|
|
@@ -697,8 +697,8 @@ function bt() {
|
|
|
697
697
|
}
|
|
698
698
|
function Gn(n) {
|
|
699
699
|
return n.variants && !n.cachedVariants && (n.cachedVariants = n.variants.map(function(i) {
|
|
700
|
-
return
|
|
701
|
-
})), n.cachedVariants ? n.cachedVariants : Ze(n) ?
|
|
700
|
+
return s(n, { variants: null }, i);
|
|
701
|
+
})), n.cachedVariants ? n.cachedVariants : Ze(n) ? s(n, { starts: n.starts ? s(n.starts) : null }) : Object.isFrozen(n) ? s(n) : n;
|
|
702
702
|
}
|
|
703
703
|
var Kn = "11.11.2";
|
|
704
704
|
class Zn extends Error {
|
|
@@ -706,7 +706,7 @@ function bt() {
|
|
|
706
706
|
super(i), this.name = "HTMLInjectionError", this.html = o;
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
|
-
const ke =
|
|
709
|
+
const ke = a, We = s, Ye = /* @__PURE__ */ Symbol("nomatch"), Wn = 7, Xe = function(n) {
|
|
710
710
|
const i = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null), y = [];
|
|
711
711
|
let P = !0;
|
|
712
712
|
const U = "Could not find the language '{}', did you forget to load/include a language module?", g = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -764,11 +764,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = r, k = p), v ===
|
|
|
764
764
|
w += L.substring(c, b.index);
|
|
765
765
|
const C = ne.case_insensitive ? b[0].toLowerCase() : b[0], W = J(R, C);
|
|
766
766
|
if (W) {
|
|
767
|
-
const [
|
|
768
|
-
if (Z.addText(w), w = "", F[C] = (F[C] || 0) + 1, F[C] <= Wn && (ve += lt),
|
|
767
|
+
const [se, lt] = W;
|
|
768
|
+
if (Z.addText(w), w = "", F[C] = (F[C] || 0) + 1, F[C] <= Wn && (ve += lt), se.startsWith("_"))
|
|
769
769
|
w += b[0];
|
|
770
770
|
else {
|
|
771
|
-
const dt = ne.classNameAliases[
|
|
771
|
+
const dt = ne.classNameAliases[se] || se;
|
|
772
772
|
ee(b[0], dt);
|
|
773
773
|
}
|
|
774
774
|
} else
|
|
@@ -805,8 +805,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = r, k = p), v ===
|
|
|
805
805
|
w++;
|
|
806
806
|
continue;
|
|
807
807
|
}
|
|
808
|
-
const W = ne.classNameAliases[c[w]] || c[w],
|
|
809
|
-
W ? ee(
|
|
808
|
+
const W = ne.classNameAliases[c[w]] || c[w], se = b[w];
|
|
809
|
+
W ? ee(se, W) : (L = se, ce(), L = ""), w++;
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
function je(c, b) {
|
|
@@ -828,14 +828,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = r, k = p), v ===
|
|
|
828
828
|
if (c.endsWithParent)
|
|
829
829
|
return en(c.parent, b, w);
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function at(c) {
|
|
832
832
|
return R.matcher.regexIndex === 0 ? (L += c[0], 1) : ($e = !0, 0);
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function st(c) {
|
|
835
835
|
const b = c[0], w = c.rule, C = new t(w), W = [w.__beforeBegin, w["on:begin"]];
|
|
836
|
-
for (const
|
|
837
|
-
if (
|
|
838
|
-
return
|
|
836
|
+
for (const se of W)
|
|
837
|
+
if (se && (se(c, C), C.isMatchIgnored))
|
|
838
|
+
return at(b);
|
|
839
839
|
return w.skip ? L += b : (w.excludeBegin && (L += b), Q(), !w.returnBegin && !w.excludeBegin && (L = b)), je(w, c), w.returnBegin ? 0 : b.length;
|
|
840
840
|
}
|
|
841
841
|
function rt(c) {
|
|
@@ -868,7 +868,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = r, k = p), v ===
|
|
|
868
868
|
return 1;
|
|
869
869
|
}
|
|
870
870
|
if (Me = b, b.type === "begin")
|
|
871
|
-
return
|
|
871
|
+
return st(b);
|
|
872
872
|
if (b.type === "illegal" && !v) {
|
|
873
873
|
const C = new Error('Illegal lexeme "' + w + '" for mode "' + (R.scope || "<unnamed>") + '"');
|
|
874
874
|
throw C.mode = R, C;
|
|
@@ -1119,19 +1119,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = r, k = p), v ===
|
|
|
1119
1119
|
return Ee.newInstance = () => Xe({}), ze = Ee, Ee.HighlightJS = Ee, Ee.default = Ee, ze;
|
|
1120
1120
|
}
|
|
1121
1121
|
var ft = /* @__PURE__ */ bt();
|
|
1122
|
-
const pt = /* @__PURE__ */ gt(ft),
|
|
1122
|
+
const pt = /* @__PURE__ */ gt(ft), sn = {}, Et = "hljs-";
|
|
1123
1123
|
function _t(e) {
|
|
1124
1124
|
const t = pt.newInstance();
|
|
1125
1125
|
return e && T(e), {
|
|
1126
|
-
highlight:
|
|
1127
|
-
highlightAuto:
|
|
1126
|
+
highlight: a,
|
|
1127
|
+
highlightAuto: s,
|
|
1128
1128
|
listLanguages: d,
|
|
1129
1129
|
register: T,
|
|
1130
1130
|
registerAlias: E,
|
|
1131
1131
|
registered: m
|
|
1132
1132
|
};
|
|
1133
|
-
function
|
|
1134
|
-
const A = _ ||
|
|
1133
|
+
function a(u, f, _) {
|
|
1134
|
+
const A = _ || sn, h = typeof A.prefix == "string" ? A.prefix : Et;
|
|
1135
1135
|
if (!t.getLanguage(u))
|
|
1136
1136
|
throw new Error("Unknown language: `" + u + "` is not registered");
|
|
1137
1137
|
t.configure({ __emitter: mt, classPrefix: h });
|
|
@@ -1149,13 +1149,13 @@ function _t(e) {
|
|
|
1149
1149
|
);
|
|
1150
1150
|
return O.language = N.language, O.relevance = N.relevance, M;
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1153
|
-
const A = (f ||
|
|
1152
|
+
function s(u, f) {
|
|
1153
|
+
const A = (f || sn).subset || d();
|
|
1154
1154
|
let h = -1, N = 0, M;
|
|
1155
1155
|
for (; ++h < A.length; ) {
|
|
1156
1156
|
const O = A[h];
|
|
1157
1157
|
if (!t.getLanguage(O)) continue;
|
|
1158
|
-
const I =
|
|
1158
|
+
const I = a(O, u, f);
|
|
1159
1159
|
I.data && I.data.relevance !== void 0 && I.data.relevance > N && (N = I.data.relevance, M = I);
|
|
1160
1160
|
}
|
|
1161
1161
|
return M || {
|
|
@@ -1223,8 +1223,8 @@ class mt {
|
|
|
1223
1223
|
*/
|
|
1224
1224
|
addText(t) {
|
|
1225
1225
|
if (t === "") return;
|
|
1226
|
-
const
|
|
1227
|
-
|
|
1226
|
+
const a = this.stack[this.stack.length - 1], s = a.children[a.children.length - 1];
|
|
1227
|
+
s && s.type === "text" ? s.value += t : a.children.push({ type: "text", value: t });
|
|
1228
1228
|
}
|
|
1229
1229
|
/**
|
|
1230
1230
|
*
|
|
@@ -1251,17 +1251,17 @@ class mt {
|
|
|
1251
1251
|
* @returns {undefined}
|
|
1252
1252
|
* Nothing.
|
|
1253
1253
|
*/
|
|
1254
|
-
__addSublanguage(t,
|
|
1255
|
-
const
|
|
1254
|
+
__addSublanguage(t, a) {
|
|
1255
|
+
const s = this.stack[this.stack.length - 1], d = (
|
|
1256
1256
|
/** @type {Array<ElementContent>} */
|
|
1257
1257
|
t.root.children
|
|
1258
1258
|
);
|
|
1259
|
-
|
|
1259
|
+
a ? s.children.push({
|
|
1260
1260
|
type: "element",
|
|
1261
1261
|
tagName: "span",
|
|
1262
|
-
properties: { className: [
|
|
1262
|
+
properties: { className: [a] },
|
|
1263
1263
|
children: d
|
|
1264
|
-
}) :
|
|
1264
|
+
}) : s.children.push(...d);
|
|
1265
1265
|
}
|
|
1266
1266
|
/**
|
|
1267
1267
|
* @param {string} name
|
|
@@ -1270,12 +1270,12 @@ class mt {
|
|
|
1270
1270
|
* Nothing.
|
|
1271
1271
|
*/
|
|
1272
1272
|
openNode(t) {
|
|
1273
|
-
const
|
|
1274
|
-
return m ? E + "_".repeat(m) :
|
|
1273
|
+
const a = this, s = t.split(".").map(function(E, m) {
|
|
1274
|
+
return m ? E + "_".repeat(m) : a.options.classPrefix + E;
|
|
1275
1275
|
}), d = this.stack[this.stack.length - 1], T = {
|
|
1276
1276
|
type: "element",
|
|
1277
1277
|
tagName: "span",
|
|
1278
|
-
properties: { className:
|
|
1278
|
+
properties: { className: s },
|
|
1279
1279
|
children: []
|
|
1280
1280
|
};
|
|
1281
1281
|
d.children.push(T), this.stack.push(T);
|
|
@@ -1302,19 +1302,19 @@ class mt {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
1304
|
function ht(e) {
|
|
1305
|
-
const t = e.regex,
|
|
1305
|
+
const t = e.regex, a = {}, s = {
|
|
1306
1306
|
begin: /\$\{/,
|
|
1307
1307
|
end: /\}/,
|
|
1308
1308
|
contains: [
|
|
1309
1309
|
"self",
|
|
1310
1310
|
{
|
|
1311
1311
|
begin: /:-/,
|
|
1312
|
-
contains: [
|
|
1312
|
+
contains: [a]
|
|
1313
1313
|
}
|
|
1314
1314
|
// default values
|
|
1315
1315
|
]
|
|
1316
1316
|
};
|
|
1317
|
-
Object.assign(
|
|
1317
|
+
Object.assign(a, {
|
|
1318
1318
|
className: "variable",
|
|
1319
1319
|
variants: [
|
|
1320
1320
|
{ begin: t.concat(
|
|
@@ -1323,7 +1323,7 @@ function ht(e) {
|
|
|
1323
1323
|
// Perl at all like $ident$, @ident@, etc.
|
|
1324
1324
|
"(?![\\w\\d])(?![$])"
|
|
1325
1325
|
) },
|
|
1326
|
-
|
|
1326
|
+
s
|
|
1327
1327
|
]
|
|
1328
1328
|
});
|
|
1329
1329
|
const d = {
|
|
@@ -1357,7 +1357,7 @@ function ht(e) {
|
|
|
1357
1357
|
end: /"/,
|
|
1358
1358
|
contains: [
|
|
1359
1359
|
e.BACKSLASH_ESCAPE,
|
|
1360
|
-
|
|
1360
|
+
a,
|
|
1361
1361
|
d
|
|
1362
1362
|
]
|
|
1363
1363
|
};
|
|
@@ -1379,7 +1379,7 @@ function ht(e) {
|
|
|
1379
1379
|
className: "number"
|
|
1380
1380
|
},
|
|
1381
1381
|
e.NUMBER_MODE,
|
|
1382
|
-
|
|
1382
|
+
a
|
|
1383
1383
|
]
|
|
1384
1384
|
}, h = [
|
|
1385
1385
|
"fish",
|
|
@@ -1671,12 +1671,12 @@ function ht(e) {
|
|
|
1671
1671
|
u,
|
|
1672
1672
|
f,
|
|
1673
1673
|
_,
|
|
1674
|
-
|
|
1674
|
+
a
|
|
1675
1675
|
]
|
|
1676
1676
|
};
|
|
1677
1677
|
}
|
|
1678
1678
|
function Nt(e) {
|
|
1679
|
-
const t = e.regex,
|
|
1679
|
+
const t = e.regex, a = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), s = "decltype\\(auto\\)", d = "[a-zA-Z_]\\w*::", E = "(" + s + "|" + t.optional(d) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", m = t.concat(/\batomic_/, t.either(
|
|
1680
1680
|
"bool",
|
|
1681
1681
|
"char",
|
|
1682
1682
|
"schar",
|
|
@@ -1767,7 +1767,7 @@ function Nt(e) {
|
|
|
1767
1767
|
scope: "string",
|
|
1768
1768
|
begin: /<.*?>/
|
|
1769
1769
|
},
|
|
1770
|
-
|
|
1770
|
+
a,
|
|
1771
1771
|
e.C_BLOCK_COMMENT_MODE
|
|
1772
1772
|
]
|
|
1773
1773
|
}, N = {
|
|
@@ -1781,7 +1781,7 @@ function Nt(e) {
|
|
|
1781
1781
|
relevance: 0
|
|
1782
1782
|
},
|
|
1783
1783
|
e.inherit(_, { className: "string" }),
|
|
1784
|
-
|
|
1784
|
+
a,
|
|
1785
1785
|
e.C_BLOCK_COMMENT_MODE
|
|
1786
1786
|
]
|
|
1787
1787
|
}, M = [
|
|
@@ -1878,7 +1878,7 @@ function Nt(e) {
|
|
|
1878
1878
|
}, H = [
|
|
1879
1879
|
...M,
|
|
1880
1880
|
u,
|
|
1881
|
-
|
|
1881
|
+
a,
|
|
1882
1882
|
e.C_BLOCK_COMMENT_MODE,
|
|
1883
1883
|
A,
|
|
1884
1884
|
_
|
|
@@ -1921,7 +1921,7 @@ function Nt(e) {
|
|
|
1921
1921
|
contains: [
|
|
1922
1922
|
{
|
|
1923
1923
|
// to prevent it from being confused as the function title
|
|
1924
|
-
begin:
|
|
1924
|
+
begin: s,
|
|
1925
1925
|
keywords: $,
|
|
1926
1926
|
relevance: 0
|
|
1927
1927
|
},
|
|
@@ -1944,7 +1944,7 @@ function Nt(e) {
|
|
|
1944
1944
|
keywords: $,
|
|
1945
1945
|
relevance: 0,
|
|
1946
1946
|
contains: [
|
|
1947
|
-
|
|
1947
|
+
a,
|
|
1948
1948
|
e.C_BLOCK_COMMENT_MODE,
|
|
1949
1949
|
_,
|
|
1950
1950
|
A,
|
|
@@ -1957,7 +1957,7 @@ function Nt(e) {
|
|
|
1957
1957
|
relevance: 0,
|
|
1958
1958
|
contains: [
|
|
1959
1959
|
"self",
|
|
1960
|
-
|
|
1960
|
+
a,
|
|
1961
1961
|
e.C_BLOCK_COMMENT_MODE,
|
|
1962
1962
|
_,
|
|
1963
1963
|
A,
|
|
@@ -1967,7 +1967,7 @@ function Nt(e) {
|
|
|
1967
1967
|
]
|
|
1968
1968
|
},
|
|
1969
1969
|
u,
|
|
1970
|
-
|
|
1970
|
+
a,
|
|
1971
1971
|
e.C_BLOCK_COMMENT_MODE,
|
|
1972
1972
|
...M
|
|
1973
1973
|
]
|
|
@@ -2816,7 +2816,7 @@ const St = (e) => ({
|
|
|
2816
2816
|
"zoom"
|
|
2817
2817
|
].sort().reverse();
|
|
2818
2818
|
function vt(e) {
|
|
2819
|
-
const t = e.regex,
|
|
2819
|
+
const t = e.regex, a = St(e), s = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, d = "and or not only", T = /@-?\w[\w]*(-\w+)*/, E = "[a-zA-Z-][a-zA-Z0-9_-]*", m = [
|
|
2820
2820
|
e.APOS_STRING_MODE,
|
|
2821
2821
|
e.QUOTE_STRING_MODE
|
|
2822
2822
|
];
|
|
@@ -2831,11 +2831,11 @@ function vt(e) {
|
|
|
2831
2831
|
keyframePosition: "selector-tag"
|
|
2832
2832
|
},
|
|
2833
2833
|
contains: [
|
|
2834
|
-
|
|
2835
|
-
|
|
2834
|
+
a.BLOCK_COMMENT,
|
|
2835
|
+
s,
|
|
2836
2836
|
// to recognize keyframe 40% etc which are outside the scope of our
|
|
2837
2837
|
// attribute value mode
|
|
2838
|
-
|
|
2838
|
+
a.CSS_NUMBER_MODE,
|
|
2839
2839
|
{
|
|
2840
2840
|
className: "selector-id",
|
|
2841
2841
|
begin: /#[A-Za-z0-9_-]+/,
|
|
@@ -2846,7 +2846,7 @@ function vt(e) {
|
|
|
2846
2846
|
begin: "\\." + E,
|
|
2847
2847
|
relevance: 0
|
|
2848
2848
|
},
|
|
2849
|
-
|
|
2849
|
+
a.ATTRIBUTE_SELECTOR_MODE,
|
|
2850
2850
|
{
|
|
2851
2851
|
className: "selector-pseudo",
|
|
2852
2852
|
variants: [
|
|
@@ -2860,7 +2860,7 @@ function vt(e) {
|
|
|
2860
2860
|
// end: /\)/,
|
|
2861
2861
|
// contains: [ hljs.CSS_NUMBER_MODE ]
|
|
2862
2862
|
// },
|
|
2863
|
-
|
|
2863
|
+
a.CSS_VARIABLE,
|
|
2864
2864
|
{
|
|
2865
2865
|
className: "attribute",
|
|
2866
2866
|
begin: "\\b(" + Mt.join("|") + ")\\b"
|
|
@@ -2870,11 +2870,11 @@ function vt(e) {
|
|
|
2870
2870
|
begin: /:/,
|
|
2871
2871
|
end: /[;}{]/,
|
|
2872
2872
|
contains: [
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2873
|
+
a.BLOCK_COMMENT,
|
|
2874
|
+
a.HEXCOLOR,
|
|
2875
|
+
a.IMPORTANT,
|
|
2876
|
+
a.CSS_NUMBER_MODE,
|
|
2877
|
+
a.UNICODE_RANGE,
|
|
2878
2878
|
...m,
|
|
2879
2879
|
// needed to highlight these as strings and to avoid issues with
|
|
2880
2880
|
// illegal characters that might be inside urls that would trigger the
|
|
@@ -2897,7 +2897,7 @@ function vt(e) {
|
|
|
2897
2897
|
}
|
|
2898
2898
|
]
|
|
2899
2899
|
},
|
|
2900
|
-
|
|
2900
|
+
a.FUNCTION_DISPATCH
|
|
2901
2901
|
]
|
|
2902
2902
|
},
|
|
2903
2903
|
{
|
|
@@ -2927,7 +2927,7 @@ function vt(e) {
|
|
|
2927
2927
|
className: "attribute"
|
|
2928
2928
|
},
|
|
2929
2929
|
...m,
|
|
2930
|
-
|
|
2930
|
+
a.CSS_NUMBER_MODE
|
|
2931
2931
|
]
|
|
2932
2932
|
}
|
|
2933
2933
|
]
|
|
@@ -2940,10 +2940,10 @@ function vt(e) {
|
|
|
2940
2940
|
};
|
|
2941
2941
|
}
|
|
2942
2942
|
function xt(e) {
|
|
2943
|
-
const t = e.regex,
|
|
2943
|
+
const t = e.regex, a = {
|
|
2944
2944
|
className: "subst",
|
|
2945
2945
|
variants: [{ begin: "\\$[A-Za-z0-9_]+" }]
|
|
2946
|
-
},
|
|
2946
|
+
}, s = {
|
|
2947
2947
|
className: "subst",
|
|
2948
2948
|
variants: [
|
|
2949
2949
|
{
|
|
@@ -2985,8 +2985,8 @@ function xt(e) {
|
|
|
2985
2985
|
end: "'''",
|
|
2986
2986
|
contains: [
|
|
2987
2987
|
e.BACKSLASH_ESCAPE,
|
|
2988
|
-
|
|
2989
|
-
|
|
2988
|
+
a,
|
|
2989
|
+
s
|
|
2990
2990
|
]
|
|
2991
2991
|
},
|
|
2992
2992
|
{
|
|
@@ -2994,8 +2994,8 @@ function xt(e) {
|
|
|
2994
2994
|
end: '"""',
|
|
2995
2995
|
contains: [
|
|
2996
2996
|
e.BACKSLASH_ESCAPE,
|
|
2997
|
-
|
|
2998
|
-
|
|
2997
|
+
a,
|
|
2998
|
+
s
|
|
2999
2999
|
]
|
|
3000
3000
|
},
|
|
3001
3001
|
{
|
|
@@ -3004,8 +3004,8 @@ function xt(e) {
|
|
|
3004
3004
|
illegal: "\\n",
|
|
3005
3005
|
contains: [
|
|
3006
3006
|
e.BACKSLASH_ESCAPE,
|
|
3007
|
-
|
|
3008
|
-
|
|
3007
|
+
a,
|
|
3008
|
+
s
|
|
3009
3009
|
]
|
|
3010
3010
|
},
|
|
3011
3011
|
{
|
|
@@ -3014,13 +3014,13 @@ function xt(e) {
|
|
|
3014
3014
|
illegal: "\\n",
|
|
3015
3015
|
contains: [
|
|
3016
3016
|
e.BACKSLASH_ESCAPE,
|
|
3017
|
-
|
|
3018
|
-
|
|
3017
|
+
a,
|
|
3018
|
+
s
|
|
3019
3019
|
]
|
|
3020
3020
|
}
|
|
3021
3021
|
]
|
|
3022
3022
|
};
|
|
3023
|
-
|
|
3023
|
+
s.contains = [
|
|
3024
3024
|
d,
|
|
3025
3025
|
T
|
|
3026
3026
|
];
|
|
@@ -3430,11 +3430,11 @@ var _e = "[0-9](_*[0-9])*", xe = `\\.(${_e})`, Ce = "[0-9a-fA-F](_*[0-9a-fA-F])*
|
|
|
3430
3430
|
],
|
|
3431
3431
|
relevance: 0
|
|
3432
3432
|
};
|
|
3433
|
-
function ln(e, t,
|
|
3434
|
-
return
|
|
3433
|
+
function ln(e, t, a) {
|
|
3434
|
+
return a === -1 ? "" : e.replace(t, (s) => ln(e, t, a - 1));
|
|
3435
3435
|
}
|
|
3436
3436
|
function kt(e) {
|
|
3437
|
-
const t = e.regex,
|
|
3437
|
+
const t = e.regex, a = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", s = "(?:(?:\\s*\\[\\s*])+)?", d = a + "<@@@>" + s, E = "(?:" + ("\\?(?:\\s+(?:extends|super)\\s+" + d + ")?") + "|" + d + ")", m = ln(
|
|
3438
3438
|
"(?:\\s*<\\s*" + E + "(?:\\s*,\\s*" + E + ")*\\s*>)?",
|
|
3439
3439
|
/<@@@>/g,
|
|
3440
3440
|
2
|
|
@@ -3506,7 +3506,7 @@ function kt(e) {
|
|
|
3506
3506
|
]
|
|
3507
3507
|
}, N = {
|
|
3508
3508
|
className: "meta",
|
|
3509
|
-
begin: "@" +
|
|
3509
|
+
begin: "@" + a,
|
|
3510
3510
|
contains: [
|
|
3511
3511
|
{
|
|
3512
3512
|
begin: /\(/,
|
|
@@ -3568,7 +3568,7 @@ function kt(e) {
|
|
|
3568
3568
|
match: [
|
|
3569
3569
|
/\b(?:class|interface|enum|extends|implements|new)/,
|
|
3570
3570
|
/\s+/,
|
|
3571
|
-
|
|
3571
|
+
a
|
|
3572
3572
|
],
|
|
3573
3573
|
className: {
|
|
3574
3574
|
1: "keyword",
|
|
@@ -3588,10 +3588,10 @@ function kt(e) {
|
|
|
3588
3588
|
},
|
|
3589
3589
|
{
|
|
3590
3590
|
begin: [
|
|
3591
|
-
s,
|
|
3592
|
-
t.concat(m, a, /\s+/),
|
|
3593
|
-
s,
|
|
3594
3591
|
a,
|
|
3592
|
+
t.concat(m, s, /\s+/),
|
|
3593
|
+
a,
|
|
3594
|
+
s,
|
|
3595
3595
|
/\s*/,
|
|
3596
3596
|
/=(?!=)/
|
|
3597
3597
|
],
|
|
@@ -3605,7 +3605,7 @@ function kt(e) {
|
|
|
3605
3605
|
begin: [
|
|
3606
3606
|
/record/,
|
|
3607
3607
|
/\s+/,
|
|
3608
|
-
|
|
3608
|
+
a
|
|
3609
3609
|
],
|
|
3610
3610
|
className: {
|
|
3611
3611
|
1: "keyword",
|
|
@@ -3619,9 +3619,9 @@ function kt(e) {
|
|
|
3619
3619
|
},
|
|
3620
3620
|
{
|
|
3621
3621
|
begin: [
|
|
3622
|
-
|
|
3623
|
-
t.concat(m,
|
|
3624
|
-
|
|
3622
|
+
a,
|
|
3623
|
+
t.concat(m, s, /\s+/),
|
|
3624
|
+
a,
|
|
3625
3625
|
/\s*(?=\()/
|
|
3626
3626
|
],
|
|
3627
3627
|
className: {
|
|
@@ -3801,10 +3801,10 @@ const on = "[A-Za-z$_][0-9A-Za-z$_]*", Lt = [
|
|
|
3801
3801
|
un
|
|
3802
3802
|
);
|
|
3803
3803
|
function Ut(e) {
|
|
3804
|
-
const t = e.regex,
|
|
3804
|
+
const t = e.regex, a = (x, { after: Y }) => {
|
|
3805
3805
|
const q = "</" + x[0].slice(1);
|
|
3806
3806
|
return x.input.indexOf(q, Y) !== -1;
|
|
3807
|
-
},
|
|
3807
|
+
}, s = on, d = {
|
|
3808
3808
|
begin: "<>",
|
|
3809
3809
|
end: "</>"
|
|
3810
3810
|
}, T = /<[A-Za-z0-9\\._:-]+\s*\/>/, E = {
|
|
@@ -3827,14 +3827,14 @@ function Ut(e) {
|
|
|
3827
3827
|
Y.ignoreMatch();
|
|
3828
3828
|
return;
|
|
3829
3829
|
}
|
|
3830
|
-
V === ">" && (
|
|
3831
|
-
let
|
|
3830
|
+
V === ">" && (a(x, { after: q }) || Y.ignoreMatch());
|
|
3831
|
+
let ae;
|
|
3832
3832
|
const ue = x.input.substring(q);
|
|
3833
|
-
if (
|
|
3833
|
+
if (ae = ue.match(/^\s*=/)) {
|
|
3834
3834
|
Y.ignoreMatch();
|
|
3835
3835
|
return;
|
|
3836
3836
|
}
|
|
3837
|
-
if ((
|
|
3837
|
+
if ((ae = ue.match(/^\s+extends\s+/)) && ae.index === 0) {
|
|
3838
3838
|
Y.ignoreMatch();
|
|
3839
3839
|
return;
|
|
3840
3840
|
}
|
|
@@ -3940,7 +3940,7 @@ function Ut(e) {
|
|
|
3940
3940
|
},
|
|
3941
3941
|
{
|
|
3942
3942
|
className: "variable",
|
|
3943
|
-
begin:
|
|
3943
|
+
begin: s + "(?=\\s*(-)|$)",
|
|
3944
3944
|
endsParent: !0,
|
|
3945
3945
|
relevance: 0
|
|
3946
3946
|
},
|
|
@@ -4007,11 +4007,11 @@ function Ut(e) {
|
|
|
4007
4007
|
match: [
|
|
4008
4008
|
/class/,
|
|
4009
4009
|
/\s+/,
|
|
4010
|
-
|
|
4010
|
+
s,
|
|
4011
4011
|
/\s+/,
|
|
4012
4012
|
/extends/,
|
|
4013
4013
|
/\s+/,
|
|
4014
|
-
t.concat(
|
|
4014
|
+
t.concat(s, "(", t.concat(/\./, s), ")*")
|
|
4015
4015
|
],
|
|
4016
4016
|
scope: {
|
|
4017
4017
|
1: "keyword",
|
|
@@ -4025,7 +4025,7 @@ function Ut(e) {
|
|
|
4025
4025
|
match: [
|
|
4026
4026
|
/class/,
|
|
4027
4027
|
/\s+/,
|
|
4028
|
-
|
|
4028
|
+
s
|
|
4029
4029
|
],
|
|
4030
4030
|
scope: {
|
|
4031
4031
|
1: "keyword",
|
|
@@ -4068,7 +4068,7 @@ function Ut(e) {
|
|
|
4068
4068
|
match: [
|
|
4069
4069
|
/function/,
|
|
4070
4070
|
/\s+/,
|
|
4071
|
-
|
|
4071
|
+
s,
|
|
4072
4072
|
/(?=\s*\()/
|
|
4073
4073
|
]
|
|
4074
4074
|
},
|
|
@@ -4104,16 +4104,16 @@ function Ut(e) {
|
|
|
4104
4104
|
"import",
|
|
4105
4105
|
"await"
|
|
4106
4106
|
].map((x) => `${x}\\s*\\(`)),
|
|
4107
|
-
|
|
4107
|
+
s,
|
|
4108
4108
|
t.lookahead(/\s*\(/)
|
|
4109
4109
|
),
|
|
4110
4110
|
className: "title.function",
|
|
4111
4111
|
relevance: 0
|
|
4112
4112
|
}, ie = {
|
|
4113
4113
|
begin: t.concat(/\./, t.lookahead(
|
|
4114
|
-
t.concat(
|
|
4114
|
+
t.concat(s, /(?![0-9A-Za-z$_(])/)
|
|
4115
4115
|
)),
|
|
4116
|
-
end:
|
|
4116
|
+
end: s,
|
|
4117
4117
|
excludeBegin: !0,
|
|
4118
4118
|
keywords: "prototype",
|
|
4119
4119
|
className: "property",
|
|
@@ -4122,7 +4122,7 @@ function Ut(e) {
|
|
|
4122
4122
|
match: [
|
|
4123
4123
|
/get|set/,
|
|
4124
4124
|
/\s+/,
|
|
4125
|
-
|
|
4125
|
+
s,
|
|
4126
4126
|
/(?=\()/
|
|
4127
4127
|
],
|
|
4128
4128
|
className: {
|
|
@@ -4140,7 +4140,7 @@ function Ut(e) {
|
|
|
4140
4140
|
match: [
|
|
4141
4141
|
/const|var|let/,
|
|
4142
4142
|
/\s+/,
|
|
4143
|
-
|
|
4143
|
+
s,
|
|
4144
4144
|
/\s*/,
|
|
4145
4145
|
/=\s*/,
|
|
4146
4146
|
/(async\s*)?/,
|
|
@@ -4183,7 +4183,7 @@ function Ut(e) {
|
|
|
4183
4183
|
j,
|
|
4184
4184
|
{
|
|
4185
4185
|
scope: "attr",
|
|
4186
|
-
match:
|
|
4186
|
+
match: s + t.lookahead(":"),
|
|
4187
4187
|
relevance: 0
|
|
4188
4188
|
},
|
|
4189
4189
|
Se,
|
|
@@ -4278,7 +4278,7 @@ function Ut(e) {
|
|
|
4278
4278
|
label: "func.def",
|
|
4279
4279
|
contains: [
|
|
4280
4280
|
B,
|
|
4281
|
-
e.inherit(e.TITLE_MODE, { begin:
|
|
4281
|
+
e.inherit(e.TITLE_MODE, { begin: s, className: "title.function" })
|
|
4282
4282
|
]
|
|
4283
4283
|
},
|
|
4284
4284
|
// catch ... so it won't trigger the property rule below
|
|
@@ -4291,7 +4291,7 @@ function Ut(e) {
|
|
|
4291
4291
|
// .keyword()
|
|
4292
4292
|
// $keyword = x
|
|
4293
4293
|
{
|
|
4294
|
-
match: "\\$" +
|
|
4294
|
+
match: "\\$" + s,
|
|
4295
4295
|
relevance: 0
|
|
4296
4296
|
},
|
|
4297
4297
|
{
|
|
@@ -4320,27 +4320,27 @@ function Ft(e) {
|
|
|
4320
4320
|
className: "attr",
|
|
4321
4321
|
begin: /(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,
|
|
4322
4322
|
relevance: 1.01
|
|
4323
|
-
},
|
|
4323
|
+
}, a = {
|
|
4324
4324
|
match: /[{}[\],:]/,
|
|
4325
4325
|
className: "punctuation",
|
|
4326
4326
|
relevance: 0
|
|
4327
|
-
},
|
|
4327
|
+
}, s = [
|
|
4328
4328
|
"true",
|
|
4329
4329
|
"false",
|
|
4330
4330
|
"null"
|
|
4331
4331
|
], d = {
|
|
4332
4332
|
scope: "literal",
|
|
4333
|
-
beginKeywords:
|
|
4333
|
+
beginKeywords: s.join(" ")
|
|
4334
4334
|
};
|
|
4335
4335
|
return {
|
|
4336
4336
|
name: "JSON",
|
|
4337
4337
|
aliases: ["jsonc", "json5"],
|
|
4338
4338
|
keywords: {
|
|
4339
|
-
literal:
|
|
4339
|
+
literal: s
|
|
4340
4340
|
},
|
|
4341
4341
|
contains: [
|
|
4342
4342
|
t,
|
|
4343
|
-
|
|
4343
|
+
a,
|
|
4344
4344
|
e.APOS_STRING_MODE,
|
|
4345
4345
|
e.QUOTE_STRING_MODE,
|
|
4346
4346
|
d,
|
|
@@ -4352,12 +4352,12 @@ function Ft(e) {
|
|
|
4352
4352
|
};
|
|
4353
4353
|
}
|
|
4354
4354
|
function Ht(e) {
|
|
4355
|
-
const t = e.regex,
|
|
4355
|
+
const t = e.regex, a = {
|
|
4356
4356
|
begin: /<\/?[A-Za-z_]/,
|
|
4357
4357
|
end: ">",
|
|
4358
4358
|
subLanguage: "xml",
|
|
4359
4359
|
relevance: 0
|
|
4360
|
-
},
|
|
4360
|
+
}, s = { match: /^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/ }, d = {
|
|
4361
4361
|
className: "code",
|
|
4362
4362
|
variants: [
|
|
4363
4363
|
// TODO: fix to allow these to work with sublanguage also
|
|
@@ -4500,7 +4500,7 @@ function Ht(e) {
|
|
|
4500
4500
|
}, A = e.inherit(f, { contains: [] }), h = e.inherit(_, { contains: [] });
|
|
4501
4501
|
f.contains.push(h), _.contains.push(A);
|
|
4502
4502
|
let N = [
|
|
4503
|
-
|
|
4503
|
+
a,
|
|
4504
4504
|
u
|
|
4505
4505
|
];
|
|
4506
4506
|
return [
|
|
@@ -4539,11 +4539,11 @@ function Ht(e) {
|
|
|
4539
4539
|
}
|
|
4540
4540
|
]
|
|
4541
4541
|
},
|
|
4542
|
-
|
|
4542
|
+
a,
|
|
4543
4543
|
T,
|
|
4544
4544
|
// must come before BOLD/ITALIC so that a `***` or `___` thematic break
|
|
4545
4545
|
// isn't mistaken for the start of bold text
|
|
4546
|
-
|
|
4546
|
+
s,
|
|
4547
4547
|
f,
|
|
4548
4548
|
_,
|
|
4549
4549
|
{
|
|
@@ -4564,7 +4564,7 @@ function Ht(e) {
|
|
|
4564
4564
|
};
|
|
4565
4565
|
}
|
|
4566
4566
|
function Gt(e) {
|
|
4567
|
-
const t = e.regex,
|
|
4567
|
+
const t = e.regex, a = /[\p{XID_Start}_]\p{XID_Continue}*/u, s = [
|
|
4568
4568
|
"and",
|
|
4569
4569
|
"as",
|
|
4570
4570
|
"assert",
|
|
@@ -4602,7 +4602,7 @@ function Gt(e) {
|
|
|
4602
4602
|
"yield"
|
|
4603
4603
|
], m = {
|
|
4604
4604
|
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
4605
|
-
keyword:
|
|
4605
|
+
keyword: s,
|
|
4606
4606
|
built_in: [
|
|
4607
4607
|
"__import__",
|
|
4608
4608
|
"abs",
|
|
@@ -4794,7 +4794,7 @@ function Gt(e) {
|
|
|
4794
4794
|
e.APOS_STRING_MODE,
|
|
4795
4795
|
e.QUOTE_STRING_MODE
|
|
4796
4796
|
]
|
|
4797
|
-
}, h = "[0-9](_?[0-9])*", N = `(\\b(${h}))?\\.(${h})|\\b(${h})\\.`, M = `\\b|${
|
|
4797
|
+
}, h = "[0-9](_?[0-9])*", N = `(\\b(${h}))?\\.(${h})|\\b(${h})\\.`, M = `\\b|${s.join("|")}`, O = {
|
|
4798
4798
|
className: "number",
|
|
4799
4799
|
relevance: 0,
|
|
4800
4800
|
variants: [
|
|
@@ -4916,7 +4916,7 @@ function Gt(e) {
|
|
|
4916
4916
|
match: [
|
|
4917
4917
|
/\bdef/,
|
|
4918
4918
|
/\s+/,
|
|
4919
|
-
|
|
4919
|
+
a
|
|
4920
4920
|
],
|
|
4921
4921
|
scope: {
|
|
4922
4922
|
1: "keyword",
|
|
@@ -4930,10 +4930,10 @@ function Gt(e) {
|
|
|
4930
4930
|
match: [
|
|
4931
4931
|
/\bclass/,
|
|
4932
4932
|
/\s+/,
|
|
4933
|
-
|
|
4933
|
+
a,
|
|
4934
4934
|
/\s*/,
|
|
4935
4935
|
/\(\s*/,
|
|
4936
|
-
|
|
4936
|
+
a,
|
|
4937
4937
|
/\s*\)/
|
|
4938
4938
|
]
|
|
4939
4939
|
},
|
|
@@ -4941,7 +4941,7 @@ function Gt(e) {
|
|
|
4941
4941
|
match: [
|
|
4942
4942
|
/\bclass/,
|
|
4943
4943
|
/\s+/,
|
|
4944
|
-
|
|
4944
|
+
a
|
|
4945
4945
|
]
|
|
4946
4946
|
}
|
|
4947
4947
|
],
|
|
@@ -4965,11 +4965,11 @@ function Gt(e) {
|
|
|
4965
4965
|
};
|
|
4966
4966
|
}
|
|
4967
4967
|
function Kt(e) {
|
|
4968
|
-
const t = e.regex,
|
|
4968
|
+
const t = e.regex, a = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", s = t.either(
|
|
4969
4969
|
/\b([A-Z]+[a-z0-9]+)+/,
|
|
4970
4970
|
// ends in caps
|
|
4971
4971
|
/\b([A-Z]+[a-z0-9]+)+[A-Z]+/
|
|
4972
|
-
), d = t.concat(
|
|
4972
|
+
), d = t.concat(s, /(::\w+)*/), E = {
|
|
4973
4973
|
"variable.constant": [
|
|
4974
4974
|
"__FILE__",
|
|
4975
4975
|
"__LINE__",
|
|
@@ -5225,14 +5225,14 @@ function Kt(e) {
|
|
|
5225
5225
|
},
|
|
5226
5226
|
{
|
|
5227
5227
|
relevance: 0,
|
|
5228
|
-
match:
|
|
5228
|
+
match: s,
|
|
5229
5229
|
scope: "title.class"
|
|
5230
5230
|
},
|
|
5231
5231
|
{
|
|
5232
5232
|
match: [
|
|
5233
5233
|
/def/,
|
|
5234
5234
|
/\s+/,
|
|
5235
|
-
|
|
5235
|
+
a
|
|
5236
5236
|
],
|
|
5237
5237
|
scope: {
|
|
5238
5238
|
1: "keyword",
|
|
@@ -5256,7 +5256,7 @@ function Kt(e) {
|
|
|
5256
5256
|
begin: ":(?!\\s)",
|
|
5257
5257
|
contains: [
|
|
5258
5258
|
A,
|
|
5259
|
-
{ begin:
|
|
5259
|
+
{ begin: a }
|
|
5260
5260
|
],
|
|
5261
5261
|
relevance: 0
|
|
5262
5262
|
},
|
|
@@ -5350,7 +5350,7 @@ function Kt(e) {
|
|
|
5350
5350
|
};
|
|
5351
5351
|
}
|
|
5352
5352
|
function Zt(e) {
|
|
5353
|
-
const t = e.regex,
|
|
5353
|
+
const t = e.regex, a = /(r#)?/, s = t.concat(a, e.UNDERSCORE_IDENT_RE), d = t.concat(a, e.IDENT_RE), T = {
|
|
5354
5354
|
scope: "title.function.invoke",
|
|
5355
5355
|
relevance: 0,
|
|
5356
5356
|
begin: t.concat(
|
|
@@ -5577,7 +5577,7 @@ function Zt(e) {
|
|
|
5577
5577
|
begin: [
|
|
5578
5578
|
/fn/,
|
|
5579
5579
|
/\s+/,
|
|
5580
|
-
|
|
5580
|
+
s
|
|
5581
5581
|
],
|
|
5582
5582
|
scope: {
|
|
5583
5583
|
1: "keyword",
|
|
@@ -5604,7 +5604,7 @@ function Zt(e) {
|
|
|
5604
5604
|
/let/,
|
|
5605
5605
|
/\s+/,
|
|
5606
5606
|
/(?:mut\s+)?/,
|
|
5607
|
-
|
|
5607
|
+
s
|
|
5608
5608
|
],
|
|
5609
5609
|
scope: {
|
|
5610
5610
|
1: "keyword",
|
|
@@ -5617,7 +5617,7 @@ function Zt(e) {
|
|
|
5617
5617
|
begin: [
|
|
5618
5618
|
/for/,
|
|
5619
5619
|
/\s+/,
|
|
5620
|
-
|
|
5620
|
+
s,
|
|
5621
5621
|
/\s+/,
|
|
5622
5622
|
/in/
|
|
5623
5623
|
],
|
|
@@ -5631,7 +5631,7 @@ function Zt(e) {
|
|
|
5631
5631
|
begin: [
|
|
5632
5632
|
/type/,
|
|
5633
5633
|
/\s+/,
|
|
5634
|
-
|
|
5634
|
+
s
|
|
5635
5635
|
],
|
|
5636
5636
|
scope: {
|
|
5637
5637
|
1: "keyword",
|
|
@@ -5642,7 +5642,7 @@ function Zt(e) {
|
|
|
5642
5642
|
begin: [
|
|
5643
5643
|
/(?:trait|enum|struct|union|impl|for)/,
|
|
5644
5644
|
/\s+/,
|
|
5645
|
-
|
|
5645
|
+
s
|
|
5646
5646
|
],
|
|
5647
5647
|
scope: {
|
|
5648
5648
|
1: "keyword",
|
|
@@ -5813,10 +5813,10 @@ const Ie = "[A-Za-z$_][0-9A-Za-z$_]*", bn = [
|
|
|
5813
5813
|
En
|
|
5814
5814
|
);
|
|
5815
5815
|
function Wt(e) {
|
|
5816
|
-
const t = e.regex,
|
|
5816
|
+
const t = e.regex, a = (x, { after: Y }) => {
|
|
5817
5817
|
const q = "</" + x[0].slice(1);
|
|
5818
5818
|
return x.input.indexOf(q, Y) !== -1;
|
|
5819
|
-
},
|
|
5819
|
+
}, s = Ie, d = {
|
|
5820
5820
|
begin: "<>",
|
|
5821
5821
|
end: "</>"
|
|
5822
5822
|
}, T = /<[A-Za-z0-9\\._:-]+\s*\/>/, E = {
|
|
@@ -5839,14 +5839,14 @@ function Wt(e) {
|
|
|
5839
5839
|
Y.ignoreMatch();
|
|
5840
5840
|
return;
|
|
5841
5841
|
}
|
|
5842
|
-
V === ">" && (
|
|
5843
|
-
let
|
|
5842
|
+
V === ">" && (a(x, { after: q }) || Y.ignoreMatch());
|
|
5843
|
+
let ae;
|
|
5844
5844
|
const ue = x.input.substring(q);
|
|
5845
|
-
if (
|
|
5845
|
+
if (ae = ue.match(/^\s*=/)) {
|
|
5846
5846
|
Y.ignoreMatch();
|
|
5847
5847
|
return;
|
|
5848
5848
|
}
|
|
5849
|
-
if ((
|
|
5849
|
+
if ((ae = ue.match(/^\s+extends\s+/)) && ae.index === 0) {
|
|
5850
5850
|
Y.ignoreMatch();
|
|
5851
5851
|
return;
|
|
5852
5852
|
}
|
|
@@ -5952,7 +5952,7 @@ function Wt(e) {
|
|
|
5952
5952
|
},
|
|
5953
5953
|
{
|
|
5954
5954
|
className: "variable",
|
|
5955
|
-
begin:
|
|
5955
|
+
begin: s + "(?=\\s*(-)|$)",
|
|
5956
5956
|
endsParent: !0,
|
|
5957
5957
|
relevance: 0
|
|
5958
5958
|
},
|
|
@@ -6019,11 +6019,11 @@ function Wt(e) {
|
|
|
6019
6019
|
match: [
|
|
6020
6020
|
/class/,
|
|
6021
6021
|
/\s+/,
|
|
6022
|
-
|
|
6022
|
+
s,
|
|
6023
6023
|
/\s+/,
|
|
6024
6024
|
/extends/,
|
|
6025
6025
|
/\s+/,
|
|
6026
|
-
t.concat(
|
|
6026
|
+
t.concat(s, "(", t.concat(/\./, s), ")*")
|
|
6027
6027
|
],
|
|
6028
6028
|
scope: {
|
|
6029
6029
|
1: "keyword",
|
|
@@ -6037,7 +6037,7 @@ function Wt(e) {
|
|
|
6037
6037
|
match: [
|
|
6038
6038
|
/class/,
|
|
6039
6039
|
/\s+/,
|
|
6040
|
-
|
|
6040
|
+
s
|
|
6041
6041
|
],
|
|
6042
6042
|
scope: {
|
|
6043
6043
|
1: "keyword",
|
|
@@ -6080,7 +6080,7 @@ function Wt(e) {
|
|
|
6080
6080
|
match: [
|
|
6081
6081
|
/function/,
|
|
6082
6082
|
/\s+/,
|
|
6083
|
-
|
|
6083
|
+
s,
|
|
6084
6084
|
/(?=\s*\()/
|
|
6085
6085
|
]
|
|
6086
6086
|
},
|
|
@@ -6116,16 +6116,16 @@ function Wt(e) {
|
|
|
6116
6116
|
"import",
|
|
6117
6117
|
"await"
|
|
6118
6118
|
].map((x) => `${x}\\s*\\(`)),
|
|
6119
|
-
|
|
6119
|
+
s,
|
|
6120
6120
|
t.lookahead(/\s*\(/)
|
|
6121
6121
|
),
|
|
6122
6122
|
className: "title.function",
|
|
6123
6123
|
relevance: 0
|
|
6124
6124
|
}, ie = {
|
|
6125
6125
|
begin: t.concat(/\./, t.lookahead(
|
|
6126
|
-
t.concat(
|
|
6126
|
+
t.concat(s, /(?![0-9A-Za-z$_(])/)
|
|
6127
6127
|
)),
|
|
6128
|
-
end:
|
|
6128
|
+
end: s,
|
|
6129
6129
|
excludeBegin: !0,
|
|
6130
6130
|
keywords: "prototype",
|
|
6131
6131
|
className: "property",
|
|
@@ -6134,7 +6134,7 @@ function Wt(e) {
|
|
|
6134
6134
|
match: [
|
|
6135
6135
|
/get|set/,
|
|
6136
6136
|
/\s+/,
|
|
6137
|
-
|
|
6137
|
+
s,
|
|
6138
6138
|
/(?=\()/
|
|
6139
6139
|
],
|
|
6140
6140
|
className: {
|
|
@@ -6152,7 +6152,7 @@ function Wt(e) {
|
|
|
6152
6152
|
match: [
|
|
6153
6153
|
/const|var|let/,
|
|
6154
6154
|
/\s+/,
|
|
6155
|
-
|
|
6155
|
+
s,
|
|
6156
6156
|
/\s*/,
|
|
6157
6157
|
/=\s*/,
|
|
6158
6158
|
/(async\s*)?/,
|
|
@@ -6195,7 +6195,7 @@ function Wt(e) {
|
|
|
6195
6195
|
j,
|
|
6196
6196
|
{
|
|
6197
6197
|
scope: "attr",
|
|
6198
|
-
match:
|
|
6198
|
+
match: s + t.lookahead(":"),
|
|
6199
6199
|
relevance: 0
|
|
6200
6200
|
},
|
|
6201
6201
|
Se,
|
|
@@ -6290,7 +6290,7 @@ function Wt(e) {
|
|
|
6290
6290
|
label: "func.def",
|
|
6291
6291
|
contains: [
|
|
6292
6292
|
B,
|
|
6293
|
-
e.inherit(e.TITLE_MODE, { begin:
|
|
6293
|
+
e.inherit(e.TITLE_MODE, { begin: s, className: "title.function" })
|
|
6294
6294
|
]
|
|
6295
6295
|
},
|
|
6296
6296
|
// catch ... so it won't trigger the property rule below
|
|
@@ -6303,7 +6303,7 @@ function Wt(e) {
|
|
|
6303
6303
|
// .keyword()
|
|
6304
6304
|
// $keyword = x
|
|
6305
6305
|
{
|
|
6306
|
-
match: "\\$" +
|
|
6306
|
+
match: "\\$" + s,
|
|
6307
6307
|
relevance: 0
|
|
6308
6308
|
},
|
|
6309
6309
|
{
|
|
@@ -6323,7 +6323,7 @@ function Wt(e) {
|
|
|
6323
6323
|
};
|
|
6324
6324
|
}
|
|
6325
6325
|
function Yt(e) {
|
|
6326
|
-
const t = e.regex,
|
|
6326
|
+
const t = e.regex, a = Wt(e), s = Ie, d = [
|
|
6327
6327
|
"any",
|
|
6328
6328
|
"void",
|
|
6329
6329
|
"number",
|
|
@@ -6352,7 +6352,7 @@ function Yt(e) {
|
|
|
6352
6352
|
keyword: "interface extends",
|
|
6353
6353
|
built_in: d
|
|
6354
6354
|
},
|
|
6355
|
-
contains: [
|
|
6355
|
+
contains: [a.exports.CLASS_REFERENCE]
|
|
6356
6356
|
}, m = {
|
|
6357
6357
|
className: "meta",
|
|
6358
6358
|
relevance: 10,
|
|
@@ -6379,35 +6379,35 @@ function Yt(e) {
|
|
|
6379
6379
|
"variable.language": mn
|
|
6380
6380
|
}, _ = {
|
|
6381
6381
|
className: "meta",
|
|
6382
|
-
begin: "@" +
|
|
6382
|
+
begin: "@" + s
|
|
6383
6383
|
}, A = (O, I, D) => {
|
|
6384
6384
|
const K = O.contains.findIndex((X) => X.label === I);
|
|
6385
6385
|
if (K === -1)
|
|
6386
6386
|
throw new Error("can not find mode to replace");
|
|
6387
6387
|
O.contains.splice(K, 1, D);
|
|
6388
6388
|
};
|
|
6389
|
-
Object.assign(
|
|
6390
|
-
const h =
|
|
6389
|
+
Object.assign(a.keywords, f), a.exports.PARAMS_CONTAINS.push(_);
|
|
6390
|
+
const h = a.contains.find((O) => O.scope === "attr"), N = Object.assign(
|
|
6391
6391
|
{},
|
|
6392
6392
|
h,
|
|
6393
|
-
{ match: t.concat(
|
|
6393
|
+
{ match: t.concat(s, t.lookahead(/\s*\?:/)) }
|
|
6394
6394
|
);
|
|
6395
|
-
|
|
6396
|
-
|
|
6395
|
+
a.exports.PARAMS_CONTAINS.push([
|
|
6396
|
+
a.exports.CLASS_REFERENCE,
|
|
6397
6397
|
// class reference for highlighting the params types
|
|
6398
6398
|
h,
|
|
6399
6399
|
// highlight the params key
|
|
6400
6400
|
N
|
|
6401
6401
|
// Added for optional property assignment highlighting
|
|
6402
|
-
]),
|
|
6402
|
+
]), a.contains = a.contains.concat([
|
|
6403
6403
|
_,
|
|
6404
6404
|
T,
|
|
6405
6405
|
E,
|
|
6406
6406
|
N
|
|
6407
6407
|
// Added for optional property assignment highlighting
|
|
6408
|
-
]), A(
|
|
6409
|
-
const M =
|
|
6410
|
-
return M.relevance = 0, Object.assign(
|
|
6408
|
+
]), A(a, "shebang", e.SHEBANG()), A(a, "use_strict", m);
|
|
6409
|
+
const M = a.contains.find((O) => O.label === "func.def");
|
|
6410
|
+
return M.relevance = 0, Object.assign(a, {
|
|
6411
6411
|
name: "TypeScript",
|
|
6412
6412
|
aliases: [
|
|
6413
6413
|
"ts",
|
|
@@ -6415,10 +6415,10 @@ function Yt(e) {
|
|
|
6415
6415
|
"mts",
|
|
6416
6416
|
"cts"
|
|
6417
6417
|
]
|
|
6418
|
-
}),
|
|
6418
|
+
}), a;
|
|
6419
6419
|
}
|
|
6420
6420
|
function Xt(e) {
|
|
6421
|
-
const t = e.regex,
|
|
6421
|
+
const t = e.regex, a = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), s = /[\p{L}0-9._:-]+/u, d = {
|
|
6422
6422
|
className: "symbol",
|
|
6423
6423
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
6424
6424
|
}, T = {
|
|
@@ -6440,7 +6440,7 @@ function Xt(e) {
|
|
|
6440
6440
|
contains: [
|
|
6441
6441
|
{
|
|
6442
6442
|
className: "attr",
|
|
6443
|
-
begin:
|
|
6443
|
+
begin: s,
|
|
6444
6444
|
relevance: 0
|
|
6445
6445
|
},
|
|
6446
6446
|
{
|
|
@@ -6583,7 +6583,7 @@ function Xt(e) {
|
|
|
6583
6583
|
begin: t.concat(
|
|
6584
6584
|
/</,
|
|
6585
6585
|
t.lookahead(t.concat(
|
|
6586
|
-
|
|
6586
|
+
a,
|
|
6587
6587
|
// <tag/>
|
|
6588
6588
|
// <tag>
|
|
6589
6589
|
// <tag ...
|
|
@@ -6594,7 +6594,7 @@ function Xt(e) {
|
|
|
6594
6594
|
contains: [
|
|
6595
6595
|
{
|
|
6596
6596
|
className: "name",
|
|
6597
|
-
begin:
|
|
6597
|
+
begin: a,
|
|
6598
6598
|
relevance: 0,
|
|
6599
6599
|
starts: f
|
|
6600
6600
|
}
|
|
@@ -6606,14 +6606,14 @@ function Xt(e) {
|
|
|
6606
6606
|
begin: t.concat(
|
|
6607
6607
|
/<\//,
|
|
6608
6608
|
t.lookahead(t.concat(
|
|
6609
|
-
|
|
6609
|
+
a,
|
|
6610
6610
|
/>/
|
|
6611
6611
|
))
|
|
6612
6612
|
),
|
|
6613
6613
|
contains: [
|
|
6614
6614
|
{
|
|
6615
6615
|
className: "name",
|
|
6616
|
-
begin:
|
|
6616
|
+
begin: a,
|
|
6617
6617
|
relevance: 0
|
|
6618
6618
|
},
|
|
6619
6619
|
{
|
|
@@ -6627,7 +6627,7 @@ function Xt(e) {
|
|
|
6627
6627
|
};
|
|
6628
6628
|
}
|
|
6629
6629
|
function qt(e) {
|
|
6630
|
-
const t = "true false yes no null",
|
|
6630
|
+
const t = "true false yes no null", a = "[\\w#;/?:@&=+$,.~*'()[\\]]+", s = {
|
|
6631
6631
|
className: "attr",
|
|
6632
6632
|
variants: [
|
|
6633
6633
|
// added brackets support and special char support
|
|
@@ -6719,7 +6719,7 @@ function qt(e) {
|
|
|
6719
6719
|
illegal: "\\n",
|
|
6720
6720
|
relevance: 0
|
|
6721
6721
|
}, I = [
|
|
6722
|
-
|
|
6722
|
+
s,
|
|
6723
6723
|
{
|
|
6724
6724
|
className: "meta",
|
|
6725
6725
|
begin: "^---\\s*$",
|
|
@@ -6746,23 +6746,23 @@ function qt(e) {
|
|
|
6746
6746
|
{
|
|
6747
6747
|
// named tags
|
|
6748
6748
|
className: "type",
|
|
6749
|
-
begin: "!\\w+!" +
|
|
6749
|
+
begin: "!\\w+!" + a
|
|
6750
6750
|
},
|
|
6751
6751
|
// https://yaml.org/spec/1.2/spec.html#id2784064
|
|
6752
6752
|
{
|
|
6753
6753
|
// verbatim tags
|
|
6754
6754
|
className: "type",
|
|
6755
|
-
begin: "!<" +
|
|
6755
|
+
begin: "!<" + a + ">"
|
|
6756
6756
|
},
|
|
6757
6757
|
{
|
|
6758
6758
|
// primary tags
|
|
6759
6759
|
className: "type",
|
|
6760
|
-
begin: "!" +
|
|
6760
|
+
begin: "!" + a
|
|
6761
6761
|
},
|
|
6762
6762
|
{
|
|
6763
6763
|
// secondary tags
|
|
6764
6764
|
className: "type",
|
|
6765
|
-
begin: "!!" +
|
|
6765
|
+
begin: "!!" + a
|
|
6766
6766
|
},
|
|
6767
6767
|
{
|
|
6768
6768
|
// fragment id &ref
|
|
@@ -6820,16 +6820,16 @@ function Nn(e) {
|
|
|
6820
6820
|
if (e.type !== "element" || typeof e.tagName != "string") return null;
|
|
6821
6821
|
const t = {};
|
|
6822
6822
|
if (e.properties && typeof e.properties == "object")
|
|
6823
|
-
for (const [
|
|
6823
|
+
for (const [s, d] of Object.entries(e.properties)) {
|
|
6824
6824
|
const T = Qt(d);
|
|
6825
|
-
T !== void 0 && (t[
|
|
6825
|
+
T !== void 0 && (t[s] = T);
|
|
6826
6826
|
}
|
|
6827
|
-
const
|
|
6827
|
+
const a = Array.isArray(e.children) ? e.children.map((s) => Nn(s)).filter((s) => s !== null) : [];
|
|
6828
6828
|
return {
|
|
6829
6829
|
type: "element",
|
|
6830
6830
|
tagName: e.tagName,
|
|
6831
6831
|
properties: t,
|
|
6832
|
-
children:
|
|
6832
|
+
children: a
|
|
6833
6833
|
};
|
|
6834
6834
|
}
|
|
6835
6835
|
function Vt(e) {
|
|
@@ -6901,15 +6901,17 @@ const Jt = _t({
|
|
|
6901
6901
|
".js": "javascript",
|
|
6902
6902
|
".jsx": "javascript",
|
|
6903
6903
|
".py": "python",
|
|
6904
|
+
".rake": "ruby",
|
|
6905
|
+
".rb": "ruby",
|
|
6904
6906
|
".rs": "rust",
|
|
6905
6907
|
".ts": "typescript",
|
|
6906
6908
|
".tsx": "typescript"
|
|
6907
6909
|
};
|
|
6908
6910
|
function ni(e, t) {
|
|
6909
|
-
const
|
|
6910
|
-
return
|
|
6911
|
+
const a = jt[e.toLowerCase()];
|
|
6912
|
+
return a ? {
|
|
6911
6913
|
type: "root",
|
|
6912
|
-
children: Jt.highlight(
|
|
6914
|
+
children: Jt.highlight(a, t).children.filter(
|
|
6913
6915
|
(d) => d.type !== "doctype"
|
|
6914
6916
|
)
|
|
6915
6917
|
} : null;
|
|
@@ -6922,26 +6924,26 @@ function ti(e) {
|
|
|
6922
6924
|
}
|
|
6923
6925
|
function Sn(e) {
|
|
6924
6926
|
const t = [[]];
|
|
6925
|
-
for (const
|
|
6926
|
-
const
|
|
6927
|
-
t[t.length - 1].push(...
|
|
6928
|
-
for (const d of
|
|
6927
|
+
for (const a of e) {
|
|
6928
|
+
const s = ti(a);
|
|
6929
|
+
t[t.length - 1].push(...s[0]);
|
|
6930
|
+
for (const d of s.slice(1)) t.push(d);
|
|
6929
6931
|
}
|
|
6930
6932
|
return t;
|
|
6931
6933
|
}
|
|
6932
|
-
function
|
|
6933
|
-
const
|
|
6934
|
+
function si(e, t) {
|
|
6935
|
+
const a = t.replaceAll(`\r
|
|
6934
6936
|
`, `
|
|
6935
|
-
`),
|
|
6936
|
-
if (!
|
|
6937
|
+
`), s = ei[ut(e)];
|
|
6938
|
+
if (!s) return a.split(`
|
|
6937
6939
|
`).map(cn);
|
|
6938
|
-
const d = ni(
|
|
6940
|
+
const d = ni(s, a);
|
|
6939
6941
|
return d ? Sn(d.children).map(
|
|
6940
6942
|
(T) => Vt({ children: T })
|
|
6941
|
-
) :
|
|
6943
|
+
) : a.split(`
|
|
6942
6944
|
`).map(cn);
|
|
6943
6945
|
}
|
|
6944
6946
|
export {
|
|
6945
6947
|
ni as highlightCode,
|
|
6946
|
-
|
|
6948
|
+
si as highlightSource
|
|
6947
6949
|
};
|