@kong-ui-public/documentation 0.3.42 → 0.4.0
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/Tableau10-GLA_9iAD-BMurskAd.js +9 -0
- package/dist/arc-BSRpyMf3-C5dasNo_.js +86 -0
- package/dist/array-CqVTtuYm-fKLgkG2b.js +6 -0
- package/dist/astro-mwoSwJnq-CNh-xuM0.js +27 -0
- package/dist/blockDiagram-6b2b5046-D02VCbQO-CPmGy0xX.js +1224 -0
- package/dist/c-eDnjw9rh-eDnjw9rh.js +87 -0
- package/dist/c4Diagram-b947cdbb-gYcL5VzP-DIDY83e1.js +1578 -0
- package/dist/channel-DHTQ8Ynn-7OPGex2S.js +5 -0
- package/dist/classDiagram-35230388-JdSKLSZv-D2crBRy-.js +217 -0
- package/dist/classDiagram-v2-412acd34-DFFRHXE_-B6aCxlD1.js +200 -0
- package/dist/clone-p6h9XXNm-3JQ-HRC6.js +8 -0
- package/dist/coffee-CRlSxcc3-CY091_1T.js +108 -0
- package/dist/cpp-DizfY48B-CA38N4Mn.js +208 -0
- package/dist/createText-423428c9-LivTKT7b-BXNfjcdp.js +2964 -0
- package/dist/csharp-uGDiXTZn-uGDiXTZn.js +762 -0
- package/dist/css-CAzixsid-CEpuX1HY.js +511 -0
- package/dist/csv-D4BoHddH-D4BoHddH.js +7 -0
- package/dist/diff-Bo5iyMQ2-Bo5iyMQ2.js +7 -0
- package/dist/docker-B10O2enb-B10O2enb.js +7 -0
- package/dist/documentation.es.js +5 -3130
- package/dist/documentation.umd.js +10152 -50
- package/dist/edges-d417c7a0-C1ggiwWz-Aj0OUf7e.js +1082 -0
- package/dist/erDiagram-0ea73325-mz0Z_-DA-Dr01LsTB.js +924 -0
- package/dist/flowDb-d35e309a-CPyxEMIt-lofeyUuw.js +1126 -0
- package/dist/flowDiagram-d949d7c1-DqCa0HNN-BK5wNO9Z.js +782 -0
- package/dist/flowDiagram-v2-49332944-UMosz1sZ-BG39AuNP.js +17 -0
- package/dist/flowchart-elk-definition-27cc417a-D2UKpS6N-r2p34307.js +48387 -0
- package/dist/ganttDiagram-5c869e3b-CVBHw4pG-CaG9QXQM.js +2490 -0
- package/dist/git-commit-CWf81VOF-DtOZSoIU.js +9 -0
- package/dist/git-rebase-sR-yVH_J-D5M2oE9O.js +9 -0
- package/dist/gitGraphDiagram-b9d81de9-BGm3fU0n-CbCpf-4j.js +1262 -0
- package/dist/go-BCCWZWY1-BCCWZWY1.js +7 -0
- package/dist/graph-4FyIWFHN-774TpNLL.js +870 -0
- package/dist/graphql-CT32SSoq-1pBWfpcR.js +18 -0
- package/dist/haml-8RvrfhLO-Bbc4xoLP.js +19 -0
- package/dist/handlebars-Cr5ro0bH-CLcCNLtV.js +15 -0
- package/dist/haskell-BfFu8DD8-BmkPJdLL.js +565 -0
- package/dist/html-BZB5lEhh-B74zAnWx.js +84 -0
- package/dist/html-derivative-0y7sV5Qc-D8-muTWn.js +9 -0
- package/dist/index-8fae9850-_CN7MNjP-Cq-s0PmS.js +373 -0
- package/dist/index-B-5DuDrq.js +29996 -0
- package/dist/infoDiagram-db7b18fc-V446j9uR-GSa8bniv.js +319 -0
- package/dist/ini-BsUFIxsI-BsUFIxsI.js +7 -0
- package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
- package/dist/java-Bk2JzfKB-Bk2JzfKB.js +74 -0
- package/dist/javascript-DqVBMyXe-DqVBMyXe.js +705 -0
- package/dist/journeyDiagram-d5636530-CFiu7dnV-DJMu6A22.js +803 -0
- package/dist/json-B12k4-6m-B12k4-6m.js +31 -0
- package/dist/json5-CvqQZK9I-CvqQZK9I.js +23 -0
- package/dist/jsonc-v2qGKRJY-v2qGKRJY.js +31 -0
- package/dist/jsonl-izxnMeZX-izxnMeZX.js +31 -0
- package/dist/jsx-aDp7j9_Z-aDp7j9_Z.js +705 -0
- package/dist/kotlin-NOMOielb-NOMOielb.js +7 -0
- package/dist/latex-Bw_ghldO-BlUAi6pB.js +339 -0
- package/dist/layout-2-aEcfuw-BqqWy5wB.js +1524 -0
- package/dist/less-CW2GmQHL-CW2GmQHL.js +165 -0
- package/dist/line-nVq5kEiy-DtZd3PHZ.js +34 -0
- package/dist/linear-Bz4oRFvQ-C869GXbm.js +447 -0
- package/dist/liquid-DJ2rh7oT-FwZwa67Y.js +28 -0
- package/dist/lua-5TZ-G8Be-CogscVHC.js +9 -0
- package/dist/make-whncTQWE-whncTQWE.js +7 -0
- package/dist/markdown-DYKdIx5--DYKdIx5-.js +135 -0
- package/dist/material-theme-lighter-BRE1Bis3-BRE1Bis3.js +769 -0
- package/dist/material-theme-palenight-Dhz61Tee-Dhz61Tee.js +769 -0
- package/dist/mdc-D0DPLwil-BfE3hy8_.js +88 -0
- package/dist/mdx-CKDMxEaL-CKDMxEaL.js +7 -0
- package/dist/mermaid-BxNM-z-u-BxNM-z-u.js +7 -0
- package/dist/mindmap-definition-377f8f1f-C2vFYDMs-B71SGbvx.js +19078 -0
- package/dist/nginx-C082G13W-vryM9k1W.js +9 -0
- package/dist/objective-c-BVtzkNiv-BVtzkNiv.js +115 -0
- package/dist/onig-BonMD2gC-BonMD2gC.js +4 -0
- package/dist/ordinal-MUacOSdK-B1MUT0BL.js +65 -0
- package/dist/pascal-CrvtytWS-CrvtytWS.js +7 -0
- package/dist/path-Crsf9Nsj-SiSjwXsf.js +91 -0
- package/dist/perl-D29UPKP6-Dez6-HRy.js +17 -0
- package/dist/php-D7Tl-iS7-BtPFrDEt.js +789 -0
- package/dist/pieDiagram-b0208e96-DhA_SoTh-CfDd9YdA.js +501 -0
- package/dist/plsql-8SPzZKaa-8SPzZKaa.js +7 -0
- package/dist/postcss-Cz2vjx_4-Cz2vjx_4.js +7 -0
- package/dist/powershell-B0buHCuS-B0buHCuS.js +7 -0
- package/dist/proto-6YaU_lta-6YaU_lta.js +7 -0
- package/dist/pug-DbFO7359-duYD8LVa.js +21 -0
- package/dist/python-BQXev0_W-BQXev0_W.js +524 -0
- package/dist/quadrantDiagram-0332be45-C8q96Ohm-DMblaqnx.js +903 -0
- package/dist/r-DU7Q70f1-DU7Q70f1.js +7 -0
- package/dist/reg-DoGLEyFr-DoGLEyFr.js +7 -0
- package/dist/requirementDiagram-bf7890df-D30zCZjB-B_JBC9RM.js +767 -0
- package/dist/rst-Bm1i8IkK-C9EaDq6g.js +26 -0
- package/dist/ruby-CZZKXaz8-BxaDEkRP.js +102 -0
- package/dist/rust-CIl6NRUt-CIl6NRUt.js +7 -0
- package/dist/sankeyDiagram-0acdec17-B4vNjMaS-Bauvtonp.js +816 -0
- package/dist/sass-LqXmC1Fh-LqXmC1Fh.js +8 -0
- package/dist/scss-DjxgF7f7-DGTzny6p.js +98 -0
- package/dist/sequenceDiagram-c18d009d-BniqGSPK-DuYYUmiZ.js +2201 -0
- package/dist/shellscript-CUUTQKn5-CUUTQKn5.js +7 -0
- package/dist/shellsession-BIPXtZci-D6avbCwN.js +9 -0
- package/dist/splunk-C0K00wNV-C0K00wNV.js +7 -0
- package/dist/sql-DkzN59UV-DkzN59UV.js +27 -0
- package/dist/ssh-config-BbWAW6SY-BbWAW6SY.js +7 -0
- package/dist/stateDiagram-43596fc0-F0V9suMd-L2Ywe-J_.js +266 -0
- package/dist/stateDiagram-v2-2ead4f9c-DUgJH8tF-BVo1q2i1.js +184 -0
- package/dist/style.css +1 -1
- package/dist/styles-6860f46c-Dflmq0ac-BRNSwis6.js +1089 -0
- package/dist/styles-7383a064-Dg7mXkpq-C4bItohl.js +430 -0
- package/dist/styles-b2c874b6-HpcOhE4Y-Bj0upXzO.js +960 -0
- package/dist/stylus-CAHdVuhm-CAHdVuhm.js +21 -0
- package/dist/svelte-DAxjO8Sh-D0e501jC.js +29 -0
- package/dist/svgDrawCommon-0ee1b4e9-CNkCfzsJ-Bz_doYLk.js +64 -0
- package/dist/swift-x2DVyVjN-Bz5PC9YM.js +550 -0
- package/dist/timeline-definition-d977decf-Cl38e_0g-D_Dlqa-R.js +794 -0
- package/dist/toml-Dbtbfmwk-Dbtbfmwk.js +75 -0
- package/dist/tsx-BmwsDeeh-BmwsDeeh.js +705 -0
- package/dist/twig-B_Gr-ODl-Cl9Q0GWo.js +58 -0
- package/dist/types/components/DocumentationContent.vue.d.ts +8 -1
- package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -1
- package/dist/types/components/DocumentationDisplay.vue.d.ts +5 -1
- package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -1
- package/dist/types/components/ProductDocumentModal.vue.d.ts +1 -1
- package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -1
- package/dist/types/composables/useI18n.d.ts +4 -0
- package/dist/types/composables/useI18n.d.ts.map +1 -1
- package/dist/typescript-AEg-ehu7-AEg-ehu7.js +672 -0
- package/dist/v-BuvBsUKm-BuvBsUKm.js +7 -0
- package/dist/vb-cqjo5dul-cqjo5dul.js +7 -0
- package/dist/viml-h3ATW6He-h3ATW6He.js +7 -0
- package/dist/vue-Dz-azHaT-B9qBHMZi.js +71 -0
- package/dist/vue-html-DIGKAAs4-BeHSIJcx.js +11 -0
- package/dist/wasm-xOGcJ9Ts-xOGcJ9Ts.js +7 -0
- package/dist/wgsl-hGLOfCya-hGLOfCya.js +7 -0
- package/dist/xml-CfRpfi_B-BH3JRQfc.js +9 -0
- package/dist/xsl-BAqhSCYL-BTKPZRNQ.js +9 -0
- package/dist/xychartDiagram-e50adddc-JdLmRUgg-HmDalTeo.js +1282 -0
- package/dist/yaml-PGla5xPP-HJurM_FJ.js +206 -0
- package/package.json +13 -13
- package/dist/prism-bash.min-DDo5CyRs-DihCfXgx.js +0 -7
- package/dist/prism-css.min-BrrzZC7b-BrrzZC7b.js +0 -7
- package/dist/prism-docker.min-DnIEokC3-D0v8IWN_.js +0 -22
- package/dist/prism-go.min-C7UmK6TW-C7UmK6TW.js +0 -1
- package/dist/prism-http.min-CsU3-jB8-CQ8PCDXl.js +0 -23
- package/dist/prism-javascript.min-CEqHqgbm-CEqHqgbm.js +0 -8
- package/dist/prism-jq.min-Q555vXZm-Q555vXZm.js +0 -8
- package/dist/prism-json.min-B1GJqK1k-B1GJqK1k.js +0 -1
- package/dist/prism-log.min-SDopTpKN-SDopTpKN.js +0 -1
- package/dist/prism-lua.min-DwRnUVfS-DwRnUVfS.js +0 -1
- package/dist/prism-makefile.min-DyutknhE-DyutknhE.js +0 -1
- package/dist/prism-markdown.min-B7US-xc7-DB9aF_ZA.js +0 -63
- package/dist/prism-python.min-BIfpAh5K-BIfpAh5K.js +0 -1
- package/dist/prism-regex.min-f8DNqi8X-f8DNqi8X.js +0 -4
- package/dist/prism-rest.min-B6veHRJF-B6veHRJF.js +0 -1
- package/dist/prism-rust.min-Cb-Mi-h0-Cb-Mi-h0.js +0 -9
- package/dist/prism-scss.min-B0csyGJo-B0csyGJo.js +0 -1
- package/dist/prism-sql.min-BHXzX-c_-BHXzX-c_.js +0 -1
- package/dist/prism-typescript.min-oSVeWCAd-oSVeWCAd.js +0 -5
- package/dist/prism-xml-doc.min-yj0YzRGe-KgTQx-dc.js +0 -7
- package/dist/prism-yaml.min-CTetcdKA-C1YzP_OY.js +0 -28
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import { aF as X, aG as or, aH as I, aI as J, aJ as ur } from "./index-B-5DuDrq.js";
|
|
2
|
+
import { t as cr } from "./init-DjUOC4st-C8Nwz6AJ.js";
|
|
3
|
+
function F(r, n) {
|
|
4
|
+
return r == null || n == null ? NaN : r < n ? -1 : r > n ? 1 : r >= n ? 0 : NaN;
|
|
5
|
+
}
|
|
6
|
+
function fr(r, n) {
|
|
7
|
+
return r == null || n == null ? NaN : n < r ? -1 : n > r ? 1 : n >= r ? 0 : NaN;
|
|
8
|
+
}
|
|
9
|
+
function _(r) {
|
|
10
|
+
let n, e, t;
|
|
11
|
+
r.length !== 2 ? (n = F, e = (u, f) => F(r(u), f), t = (u, f) => r(u) - f) : (n = r === F || r === fr ? r : sr, e = r, t = r);
|
|
12
|
+
function i(u, f, a = 0, g = u.length) {
|
|
13
|
+
if (a < g) {
|
|
14
|
+
if (n(f, f) !== 0)
|
|
15
|
+
return g;
|
|
16
|
+
do {
|
|
17
|
+
const s = a + g >>> 1;
|
|
18
|
+
e(u[s], f) < 0 ? a = s + 1 : g = s;
|
|
19
|
+
} while (a < g);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
}
|
|
23
|
+
function c(u, f, a = 0, g = u.length) {
|
|
24
|
+
if (a < g) {
|
|
25
|
+
if (n(f, f) !== 0)
|
|
26
|
+
return g;
|
|
27
|
+
do {
|
|
28
|
+
const s = a + g >>> 1;
|
|
29
|
+
e(u[s], f) <= 0 ? a = s + 1 : g = s;
|
|
30
|
+
} while (a < g);
|
|
31
|
+
}
|
|
32
|
+
return a;
|
|
33
|
+
}
|
|
34
|
+
function o(u, f, a = 0, g = u.length) {
|
|
35
|
+
const s = i(u, f, a, g - 1);
|
|
36
|
+
return s > a && t(u[s - 1], f) > -t(u[s], f) ? s - 1 : s;
|
|
37
|
+
}
|
|
38
|
+
return { left: i, center: o, right: c };
|
|
39
|
+
}
|
|
40
|
+
function sr() {
|
|
41
|
+
return 0;
|
|
42
|
+
}
|
|
43
|
+
function lr(r) {
|
|
44
|
+
return r === null ? NaN : +r;
|
|
45
|
+
}
|
|
46
|
+
const hr = _(F), gr = hr.right;
|
|
47
|
+
_(lr).center;
|
|
48
|
+
const pr = Math.sqrt(50), vr = Math.sqrt(10), Mr = Math.sqrt(2);
|
|
49
|
+
function q(r, n, e) {
|
|
50
|
+
const t = (n - r) / Math.max(0, e), i = Math.floor(Math.log10(t)), c = t / Math.pow(10, i), o = c >= pr ? 10 : c >= vr ? 5 : c >= Mr ? 2 : 1;
|
|
51
|
+
let u, f, a;
|
|
52
|
+
return i < 0 ? (a = Math.pow(10, -i) / o, u = Math.round(r * a), f = Math.round(n * a), u / a < r && ++u, f / a > n && --f, a = -a) : (a = Math.pow(10, i) * o, u = Math.round(r / a), f = Math.round(n / a), u * a < r && ++u, f * a > n && --f), f < u && 0.5 <= e && e < 2 ? q(r, n, e * 2) : [u, f, a];
|
|
53
|
+
}
|
|
54
|
+
function dr(r, n, e) {
|
|
55
|
+
if (n = +n, r = +r, e = +e, !(e > 0))
|
|
56
|
+
return [];
|
|
57
|
+
if (r === n)
|
|
58
|
+
return [r];
|
|
59
|
+
const t = n < r, [i, c, o] = t ? q(n, r, e) : q(r, n, e);
|
|
60
|
+
if (!(c >= i))
|
|
61
|
+
return [];
|
|
62
|
+
const u = c - i + 1, f = new Array(u);
|
|
63
|
+
if (t)
|
|
64
|
+
if (o < 0)
|
|
65
|
+
for (let a = 0; a < u; ++a)
|
|
66
|
+
f[a] = (c - a) / -o;
|
|
67
|
+
else
|
|
68
|
+
for (let a = 0; a < u; ++a)
|
|
69
|
+
f[a] = (c - a) * o;
|
|
70
|
+
else if (o < 0)
|
|
71
|
+
for (let a = 0; a < u; ++a)
|
|
72
|
+
f[a] = (i + a) / -o;
|
|
73
|
+
else
|
|
74
|
+
for (let a = 0; a < u; ++a)
|
|
75
|
+
f[a] = (i + a) * o;
|
|
76
|
+
return f;
|
|
77
|
+
}
|
|
78
|
+
function G(r, n, e) {
|
|
79
|
+
return n = +n, r = +r, e = +e, q(r, n, e)[2];
|
|
80
|
+
}
|
|
81
|
+
function mr(r, n, e) {
|
|
82
|
+
n = +n, r = +r, e = +e;
|
|
83
|
+
const t = n < r, i = t ? G(n, r, e) : G(r, n, e);
|
|
84
|
+
return (t ? -1 : 1) * (i < 0 ? 1 / -i : i);
|
|
85
|
+
}
|
|
86
|
+
function yr(r, n) {
|
|
87
|
+
n || (n = []);
|
|
88
|
+
var e = r ? Math.min(n.length, r.length) : 0, t = n.slice(), i;
|
|
89
|
+
return function(c) {
|
|
90
|
+
for (i = 0; i < e; ++i)
|
|
91
|
+
t[i] = r[i] * (1 - c) + n[i] * c;
|
|
92
|
+
return t;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function br(r) {
|
|
96
|
+
return ArrayBuffer.isView(r) && !(r instanceof DataView);
|
|
97
|
+
}
|
|
98
|
+
function wr(r, n) {
|
|
99
|
+
var e = n ? n.length : 0, t = r ? Math.min(e, r.length) : 0, i = new Array(t), c = new Array(e), o;
|
|
100
|
+
for (o = 0; o < t; ++o)
|
|
101
|
+
i[o] = R(r[o], n[o]);
|
|
102
|
+
for (; o < e; ++o)
|
|
103
|
+
c[o] = n[o];
|
|
104
|
+
return function(u) {
|
|
105
|
+
for (o = 0; o < t; ++o)
|
|
106
|
+
c[o] = i[o](u);
|
|
107
|
+
return c;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function Nr(r, n) {
|
|
111
|
+
var e = /* @__PURE__ */ new Date();
|
|
112
|
+
return r = +r, n = +n, function(t) {
|
|
113
|
+
return e.setTime(r * (1 - t) + n * t), e;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function xr(r, n) {
|
|
117
|
+
var e = {}, t = {}, i;
|
|
118
|
+
(r === null || typeof r != "object") && (r = {}), (n === null || typeof n != "object") && (n = {});
|
|
119
|
+
for (i in n)
|
|
120
|
+
i in r ? e[i] = R(r[i], n[i]) : t[i] = n[i];
|
|
121
|
+
return function(c) {
|
|
122
|
+
for (i in e)
|
|
123
|
+
t[i] = e[i](c);
|
|
124
|
+
return t;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function R(r, n) {
|
|
128
|
+
var e = typeof n, t;
|
|
129
|
+
return n == null || e === "boolean" ? or(n) : (e === "number" ? X : e === "string" ? (t = I(n)) ? (n = t, J) : ur : n instanceof I ? J : n instanceof Date ? Nr : br(n) ? yr : Array.isArray(n) ? wr : typeof n.valueOf != "function" && typeof n.toString != "function" || isNaN(n) ? xr : X)(r, n);
|
|
130
|
+
}
|
|
131
|
+
function kr(r, n) {
|
|
132
|
+
return r = +r, n = +n, function(e) {
|
|
133
|
+
return Math.round(r * (1 - e) + n * e);
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
function Ar(r) {
|
|
137
|
+
return Math.abs(r = Math.round(r)) >= 1e21 ? r.toLocaleString("en").replace(/,/g, "") : r.toString(10);
|
|
138
|
+
}
|
|
139
|
+
function C(r, n) {
|
|
140
|
+
if ((e = (r = n ? r.toExponential(n - 1) : r.toExponential()).indexOf("e")) < 0)
|
|
141
|
+
return null;
|
|
142
|
+
var e, t = r.slice(0, e);
|
|
143
|
+
return [
|
|
144
|
+
t.length > 1 ? t[0] + t.slice(2) : t,
|
|
145
|
+
+r.slice(e + 1)
|
|
146
|
+
];
|
|
147
|
+
}
|
|
148
|
+
function k(r) {
|
|
149
|
+
return r = C(Math.abs(r)), r ? r[1] : NaN;
|
|
150
|
+
}
|
|
151
|
+
function Sr(r, n) {
|
|
152
|
+
return function(e, t) {
|
|
153
|
+
for (var i = e.length, c = [], o = 0, u = r[0], f = 0; i > 0 && u > 0 && (f + u + 1 > t && (u = Math.max(1, t - f)), c.push(e.substring(i -= u, i + u)), !((f += u + 1) > t)); )
|
|
154
|
+
u = r[o = (o + 1) % r.length];
|
|
155
|
+
return c.reverse().join(n);
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function jr(r) {
|
|
159
|
+
return function(n) {
|
|
160
|
+
return n.replace(/[0-9]/g, function(e) {
|
|
161
|
+
return r[+e];
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
var zr = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
166
|
+
function D(r) {
|
|
167
|
+
if (!(n = zr.exec(r)))
|
|
168
|
+
throw new Error("invalid format: " + r);
|
|
169
|
+
var n;
|
|
170
|
+
return new T({
|
|
171
|
+
fill: n[1],
|
|
172
|
+
align: n[2],
|
|
173
|
+
sign: n[3],
|
|
174
|
+
symbol: n[4],
|
|
175
|
+
zero: n[5],
|
|
176
|
+
width: n[6],
|
|
177
|
+
comma: n[7],
|
|
178
|
+
precision: n[8] && n[8].slice(1),
|
|
179
|
+
trim: n[9],
|
|
180
|
+
type: n[10]
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
D.prototype = T.prototype;
|
|
184
|
+
function T(r) {
|
|
185
|
+
this.fill = r.fill === void 0 ? " " : r.fill + "", this.align = r.align === void 0 ? ">" : r.align + "", this.sign = r.sign === void 0 ? "-" : r.sign + "", this.symbol = r.symbol === void 0 ? "" : r.symbol + "", this.zero = !!r.zero, this.width = r.width === void 0 ? void 0 : +r.width, this.comma = !!r.comma, this.precision = r.precision === void 0 ? void 0 : +r.precision, this.trim = !!r.trim, this.type = r.type === void 0 ? "" : r.type + "";
|
|
186
|
+
}
|
|
187
|
+
T.prototype.toString = function() {
|
|
188
|
+
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
189
|
+
};
|
|
190
|
+
function $r(r) {
|
|
191
|
+
r:
|
|
192
|
+
for (var n = r.length, e = 1, t = -1, i; e < n; ++e)
|
|
193
|
+
switch (r[e]) {
|
|
194
|
+
case ".":
|
|
195
|
+
t = i = e;
|
|
196
|
+
break;
|
|
197
|
+
case "0":
|
|
198
|
+
t === 0 && (t = e), i = e;
|
|
199
|
+
break;
|
|
200
|
+
default:
|
|
201
|
+
if (!+r[e])
|
|
202
|
+
break r;
|
|
203
|
+
t > 0 && (t = 0);
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
return t > 0 ? r.slice(0, t) + r.slice(i + 1) : r;
|
|
207
|
+
}
|
|
208
|
+
var rr;
|
|
209
|
+
function Er(r, n) {
|
|
210
|
+
var e = C(r, n);
|
|
211
|
+
if (!e)
|
|
212
|
+
return r + "";
|
|
213
|
+
var t = e[0], i = e[1], c = i - (rr = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = t.length;
|
|
214
|
+
return c === o ? t : c > o ? t + new Array(c - o + 1).join("0") : c > 0 ? t.slice(0, c) + "." + t.slice(c) : "0." + new Array(1 - c).join("0") + C(r, Math.max(0, n + c - 1))[0];
|
|
215
|
+
}
|
|
216
|
+
function P(r, n) {
|
|
217
|
+
var e = C(r, n);
|
|
218
|
+
if (!e)
|
|
219
|
+
return r + "";
|
|
220
|
+
var t = e[0], i = e[1];
|
|
221
|
+
return i < 0 ? "0." + new Array(-i).join("0") + t : t.length > i + 1 ? t.slice(0, i + 1) + "." + t.slice(i + 1) : t + new Array(i - t.length + 2).join("0");
|
|
222
|
+
}
|
|
223
|
+
const U = {
|
|
224
|
+
"%": (r, n) => (r * 100).toFixed(n),
|
|
225
|
+
b: (r) => Math.round(r).toString(2),
|
|
226
|
+
c: (r) => r + "",
|
|
227
|
+
d: Ar,
|
|
228
|
+
e: (r, n) => r.toExponential(n),
|
|
229
|
+
f: (r, n) => r.toFixed(n),
|
|
230
|
+
g: (r, n) => r.toPrecision(n),
|
|
231
|
+
o: (r) => Math.round(r).toString(8),
|
|
232
|
+
p: (r, n) => P(r * 100, n),
|
|
233
|
+
r: P,
|
|
234
|
+
s: Er,
|
|
235
|
+
X: (r) => Math.round(r).toString(16).toUpperCase(),
|
|
236
|
+
x: (r) => Math.round(r).toString(16)
|
|
237
|
+
};
|
|
238
|
+
function Y(r) {
|
|
239
|
+
return r;
|
|
240
|
+
}
|
|
241
|
+
var K = Array.prototype.map, Q = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
242
|
+
function Fr(r) {
|
|
243
|
+
var n = r.grouping === void 0 || r.thousands === void 0 ? Y : Sr(K.call(r.grouping, Number), r.thousands + ""), e = r.currency === void 0 ? "" : r.currency[0] + "", t = r.currency === void 0 ? "" : r.currency[1] + "", i = r.decimal === void 0 ? "." : r.decimal + "", c = r.numerals === void 0 ? Y : jr(K.call(r.numerals, String)), o = r.percent === void 0 ? "%" : r.percent + "", u = r.minus === void 0 ? "−" : r.minus + "", f = r.nan === void 0 ? "NaN" : r.nan + "";
|
|
244
|
+
function a(s) {
|
|
245
|
+
s = D(s);
|
|
246
|
+
var h = s.fill, m = s.align, M = s.sign, A = s.symbol, w = s.zero, S = s.width, O = s.comma, y = s.precision, V = s.trim, p = s.type;
|
|
247
|
+
p === "n" ? (O = !0, p = "g") : U[p] || (y === void 0 && (y = 12), V = !0, p = "g"), (w || h === "0" && m === "=") && (w = !0, h = "0", m = "=");
|
|
248
|
+
var er = A === "$" ? e : A === "#" && /[boxX]/.test(p) ? "0" + p.toLowerCase() : "", ir = A === "$" ? t : /[%p]/.test(p) ? o : "", Z = U[p], ar = /[defgprs%]/.test(p);
|
|
249
|
+
y = y === void 0 ? 6 : /[gprs]/.test(p) ? Math.max(1, Math.min(21, y)) : Math.max(0, Math.min(20, y));
|
|
250
|
+
function B(l) {
|
|
251
|
+
var b = er, v = ir, N, H, j;
|
|
252
|
+
if (p === "c")
|
|
253
|
+
v = Z(l) + v, l = "";
|
|
254
|
+
else {
|
|
255
|
+
l = +l;
|
|
256
|
+
var z = l < 0 || 1 / l < 0;
|
|
257
|
+
if (l = isNaN(l) ? f : Z(Math.abs(l), y), V && (l = $r(l)), z && +l == 0 && M !== "+" && (z = !1), b = (z ? M === "(" ? M : u : M === "-" || M === "(" ? "" : M) + b, v = (p === "s" ? Q[8 + rr / 3] : "") + v + (z && M === "(" ? ")" : ""), ar) {
|
|
258
|
+
for (N = -1, H = l.length; ++N < H; )
|
|
259
|
+
if (j = l.charCodeAt(N), 48 > j || j > 57) {
|
|
260
|
+
v = (j === 46 ? i + l.slice(N + 1) : l.slice(N)) + v, l = l.slice(0, N);
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
O && !w && (l = n(l, 1 / 0));
|
|
266
|
+
var $ = b.length + l.length + v.length, d = $ < S ? new Array(S - $ + 1).join(h) : "";
|
|
267
|
+
switch (O && w && (l = n(d + l, d.length ? S - v.length : 1 / 0), d = ""), m) {
|
|
268
|
+
case "<":
|
|
269
|
+
l = b + l + v + d;
|
|
270
|
+
break;
|
|
271
|
+
case "=":
|
|
272
|
+
l = b + d + l + v;
|
|
273
|
+
break;
|
|
274
|
+
case "^":
|
|
275
|
+
l = d.slice(0, $ = d.length >> 1) + b + l + v + d.slice($);
|
|
276
|
+
break;
|
|
277
|
+
default:
|
|
278
|
+
l = d + b + l + v;
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
return c(l);
|
|
282
|
+
}
|
|
283
|
+
return B.toString = function() {
|
|
284
|
+
return s + "";
|
|
285
|
+
}, B;
|
|
286
|
+
}
|
|
287
|
+
function g(s, h) {
|
|
288
|
+
var m = a((s = D(s), s.type = "f", s)), M = Math.max(-8, Math.min(8, Math.floor(k(h) / 3))) * 3, A = Math.pow(10, -M), w = Q[8 + M / 3];
|
|
289
|
+
return function(S) {
|
|
290
|
+
return m(A * S) + w;
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
return {
|
|
294
|
+
format: a,
|
|
295
|
+
formatPrefix: g
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
var E, nr, tr;
|
|
299
|
+
qr({
|
|
300
|
+
thousands: ",",
|
|
301
|
+
grouping: [3],
|
|
302
|
+
currency: ["$", ""]
|
|
303
|
+
});
|
|
304
|
+
function qr(r) {
|
|
305
|
+
return E = Fr(r), nr = E.format, tr = E.formatPrefix, E;
|
|
306
|
+
}
|
|
307
|
+
function Cr(r) {
|
|
308
|
+
return Math.max(0, -k(Math.abs(r)));
|
|
309
|
+
}
|
|
310
|
+
function Dr(r, n) {
|
|
311
|
+
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(k(n) / 3))) * 3 - k(Math.abs(r)));
|
|
312
|
+
}
|
|
313
|
+
function Or(r, n) {
|
|
314
|
+
return r = Math.abs(r), n = Math.abs(n) - r, Math.max(0, k(n) - k(r)) + 1;
|
|
315
|
+
}
|
|
316
|
+
function Xr(r) {
|
|
317
|
+
return function() {
|
|
318
|
+
return r;
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
function Gr(r) {
|
|
322
|
+
return +r;
|
|
323
|
+
}
|
|
324
|
+
var W = [0, 1];
|
|
325
|
+
function x(r) {
|
|
326
|
+
return r;
|
|
327
|
+
}
|
|
328
|
+
function L(r, n) {
|
|
329
|
+
return (n -= r = +r) ? function(e) {
|
|
330
|
+
return (e - r) / n;
|
|
331
|
+
} : Xr(isNaN(n) ? NaN : 0.5);
|
|
332
|
+
}
|
|
333
|
+
function Lr(r, n) {
|
|
334
|
+
var e;
|
|
335
|
+
return r > n && (e = r, r = n, n = e), function(t) {
|
|
336
|
+
return Math.max(r, Math.min(n, t));
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
function Rr(r, n, e) {
|
|
340
|
+
var t = r[0], i = r[1], c = n[0], o = n[1];
|
|
341
|
+
return i < t ? (t = L(i, t), c = e(o, c)) : (t = L(t, i), c = e(c, o)), function(u) {
|
|
342
|
+
return c(t(u));
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
function Tr(r, n, e) {
|
|
346
|
+
var t = Math.min(r.length, n.length) - 1, i = new Array(t), c = new Array(t), o = -1;
|
|
347
|
+
for (r[t] < r[0] && (r = r.slice().reverse(), n = n.slice().reverse()); ++o < t; )
|
|
348
|
+
i[o] = L(r[o], r[o + 1]), c[o] = e(n[o], n[o + 1]);
|
|
349
|
+
return function(u) {
|
|
350
|
+
var f = gr(r, u, 1, t) - 1;
|
|
351
|
+
return c[f](i[f](u));
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
function Vr(r, n) {
|
|
355
|
+
return n.domain(r.domain()).range(r.range()).interpolate(r.interpolate()).clamp(r.clamp()).unknown(r.unknown());
|
|
356
|
+
}
|
|
357
|
+
function Zr() {
|
|
358
|
+
var r = W, n = W, e = R, t, i, c, o = x, u, f, a;
|
|
359
|
+
function g() {
|
|
360
|
+
var h = Math.min(r.length, n.length);
|
|
361
|
+
return o !== x && (o = Lr(r[0], r[h - 1])), u = h > 2 ? Tr : Rr, f = a = null, s;
|
|
362
|
+
}
|
|
363
|
+
function s(h) {
|
|
364
|
+
return h == null || isNaN(h = +h) ? c : (f || (f = u(r.map(t), n, e)))(t(o(h)));
|
|
365
|
+
}
|
|
366
|
+
return s.invert = function(h) {
|
|
367
|
+
return o(i((a || (a = u(n, r.map(t), X)))(h)));
|
|
368
|
+
}, s.domain = function(h) {
|
|
369
|
+
return arguments.length ? (r = Array.from(h, Gr), g()) : r.slice();
|
|
370
|
+
}, s.range = function(h) {
|
|
371
|
+
return arguments.length ? (n = Array.from(h), g()) : n.slice();
|
|
372
|
+
}, s.rangeRound = function(h) {
|
|
373
|
+
return n = Array.from(h), e = kr, g();
|
|
374
|
+
}, s.clamp = function(h) {
|
|
375
|
+
return arguments.length ? (o = h ? !0 : x, g()) : o !== x;
|
|
376
|
+
}, s.interpolate = function(h) {
|
|
377
|
+
return arguments.length ? (e = h, g()) : e;
|
|
378
|
+
}, s.unknown = function(h) {
|
|
379
|
+
return arguments.length ? (c = h, s) : c;
|
|
380
|
+
}, function(h, m) {
|
|
381
|
+
return t = h, i = m, g();
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
function Br() {
|
|
385
|
+
return Zr()(x, x);
|
|
386
|
+
}
|
|
387
|
+
function Hr(r, n, e, t) {
|
|
388
|
+
var i = mr(r, n, e), c;
|
|
389
|
+
switch (t = D(t ?? ",f"), t.type) {
|
|
390
|
+
case "s": {
|
|
391
|
+
var o = Math.max(Math.abs(r), Math.abs(n));
|
|
392
|
+
return t.precision == null && !isNaN(c = Dr(i, o)) && (t.precision = c), tr(t, o);
|
|
393
|
+
}
|
|
394
|
+
case "":
|
|
395
|
+
case "e":
|
|
396
|
+
case "g":
|
|
397
|
+
case "p":
|
|
398
|
+
case "r": {
|
|
399
|
+
t.precision == null && !isNaN(c = Or(i, Math.max(Math.abs(r), Math.abs(n)))) && (t.precision = c - (t.type === "e"));
|
|
400
|
+
break;
|
|
401
|
+
}
|
|
402
|
+
case "f":
|
|
403
|
+
case "%": {
|
|
404
|
+
t.precision == null && !isNaN(c = Cr(i)) && (t.precision = c - (t.type === "%") * 2);
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
return nr(t);
|
|
409
|
+
}
|
|
410
|
+
function Ir(r) {
|
|
411
|
+
var n = r.domain;
|
|
412
|
+
return r.ticks = function(e) {
|
|
413
|
+
var t = n();
|
|
414
|
+
return dr(t[0], t[t.length - 1], e ?? 10);
|
|
415
|
+
}, r.tickFormat = function(e, t) {
|
|
416
|
+
var i = n();
|
|
417
|
+
return Hr(i[0], i[i.length - 1], e ?? 10, t);
|
|
418
|
+
}, r.nice = function(e) {
|
|
419
|
+
e == null && (e = 10);
|
|
420
|
+
var t = n(), i = 0, c = t.length - 1, o = t[i], u = t[c], f, a, g = 10;
|
|
421
|
+
for (u < o && (a = o, o = u, u = a, a = i, i = c, c = a); g-- > 0; ) {
|
|
422
|
+
if (a = G(o, u, e), a === f)
|
|
423
|
+
return t[i] = o, t[c] = u, n(t);
|
|
424
|
+
if (a > 0)
|
|
425
|
+
o = Math.floor(o / a) * a, u = Math.ceil(u / a) * a;
|
|
426
|
+
else if (a < 0)
|
|
427
|
+
o = Math.ceil(o * a) / a, u = Math.floor(u * a) / a;
|
|
428
|
+
else
|
|
429
|
+
break;
|
|
430
|
+
f = a;
|
|
431
|
+
}
|
|
432
|
+
return r;
|
|
433
|
+
}, r;
|
|
434
|
+
}
|
|
435
|
+
function Jr() {
|
|
436
|
+
var r = Br();
|
|
437
|
+
return r.copy = function() {
|
|
438
|
+
return Vr(r, Jr());
|
|
439
|
+
}, cr.apply(r, arguments), Ir(r);
|
|
440
|
+
}
|
|
441
|
+
export {
|
|
442
|
+
Vr as O,
|
|
443
|
+
Br as X,
|
|
444
|
+
Jr as Z,
|
|
445
|
+
_,
|
|
446
|
+
mr as w
|
|
447
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import e from "./html-BZB5lEhh-B74zAnWx.js";
|
|
2
|
+
import n from "./css-CAzixsid-CEpuX1HY.js";
|
|
3
|
+
import t from "./json-B12k4-6m-B12k4-6m.js";
|
|
4
|
+
import i from "./javascript-DqVBMyXe-DqVBMyXe.js";
|
|
5
|
+
const a = Object.freeze({ displayName: "Liquid", fileTypes: ["liquid"], foldingStartMarker: `(?x)
|
|
6
|
+
{%
|
|
7
|
+
-?
|
|
8
|
+
\\s*
|
|
9
|
+
(capture|case|comment|for|form|if|javascript|paginate|schema|style)
|
|
10
|
+
[^(%})]+
|
|
11
|
+
%}
|
|
12
|
+
`, foldingStopMarker: `(?x)
|
|
13
|
+
{%
|
|
14
|
+
\\s*
|
|
15
|
+
(endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)
|
|
16
|
+
[^(%})]+
|
|
17
|
+
%}
|
|
18
|
+
`, injections: { "L:meta.embedded.block.js, L:meta.embedded.block.css, L:meta.embedded.block.html, L:string.quoted": { patterns: [{ include: "#injection" }] } }, name: "liquid", patterns: [{ include: "#core" }], repository: { attribute: { begin: "\\w+:", beginCaptures: { 0: { name: "entity.other.attribute-name.liquid" } }, end: "(?=,|%}|}}|\\|)", patterns: [{ include: "#value_expression" }] }, attribute_liquid: { begin: "\\w+:", beginCaptures: { 0: { name: "entity.other.attribute-name.liquid" } }, end: "(?=,|\\|)|$", patterns: [{ include: "#value_expression" }] }, comment_block: { begin: "{%-?\\s*comment\\s*-?%}", end: "{%-?\\s*endcomment\\s*-?%}", name: "comment.block.liquid", patterns: [{ include: "#comment_block" }, { match: "(.(?!{%-?\\s*(comment|endcomment)\\s*-?%}))*." }] }, core: { patterns: [{ include: "#raw_tag" }, { include: "#comment_block" }, { include: "#style_codefence" }, { include: "#stylesheet_codefence" }, { include: "#json_codefence" }, { include: "#javascript_codefence" }, { include: "#object" }, { include: "#tag" }, { include: "text.html.basic" }] }, filter: { captures: { 1: { name: "support.function.liquid" } }, match: "\\|\\s*((?![\\.0-9])[a-zA-Z0-9_-]+\\:?)\\s*" }, injection: { patterns: [{ include: "#raw_tag" }, { include: "#comment_block" }, { include: "#object" }, { include: "#tag_injection" }] }, invalid_range: { match: "\\((.(?!\\.\\.))+\\)", name: "invalid.illegal.range.liquid" }, javascript_codefence: { begin: "({%-?)\\s*(javascript)\\s*(-?%})", beginCaptures: { 0: { name: "meta.tag.metadata.javascript.start.liquid" }, 1: { name: "punctuation.definition.tag.begin.liquid" }, 2: { name: "entity.name.tag.javascript.liquid" }, 3: { name: "punctuation.definition.tag.begin.liquid" } }, contentName: "meta.embedded.block.js", end: "({%-?)\\s*(endjavascript)\\s*(-?%})", endCaptures: { 0: { name: "meta.tag.metadata.javascript.end.liquid" }, 1: { name: "punctuation.definition.tag.end.liquid" }, 2: { name: "entity.name.tag.javascript.liquid" }, 3: { name: "punctuation.definition.tag.end.liquid" } }, name: "meta.block.javascript.liquid", patterns: [{ include: "source.js" }] }, json_codefence: { begin: "({%-?)\\s*(schema)\\s*(-?%})", beginCaptures: { 0: { name: "meta.tag.metadata.schema.start.liquid" }, 1: { name: "punctuation.definition.tag.begin.liquid" }, 2: { name: "entity.name.tag.schema.liquid" }, 3: { name: "punctuation.definition.tag.begin.liquid" } }, contentName: "meta.embedded.block.json", end: "({%-?)\\s*(endschema)\\s*(-?%})", endCaptures: { 0: { name: "meta.tag.metadata.schema.end.liquid" }, 1: { name: "punctuation.definition.tag.end.liquid" }, 2: { name: "entity.name.tag.schema.liquid" }, 3: { name: "punctuation.definition.tag.end.liquid" } }, name: "meta.block.schema.liquid", patterns: [{ include: "source.json" }] }, language_constant: { match: "\\b(false|true|nil|blank)\\b|empty(?!\\?)", name: "constant.language.liquid" }, number: { match: "((-|\\+)\\s*)?[0-9]+(\\.[0-9]+)?", name: "constant.numeric.liquid" }, object: { begin: "(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){{-?", beginCaptures: { 0: { name: "punctuation.definition.tag.begin.liquid" } }, end: "-?}}", endCaptures: { 0: { name: "punctuation.definition.tag.end.liquid" } }, name: "meta.object.liquid", patterns: [{ include: "#filter" }, { include: "#attribute" }, { include: "#value_expression" }] }, operator: { captures: { 1: { name: "keyword.operator.expression.liquid" } }, match: "(?:(?<=\\s)|\\b)(\\=\\=|!\\=|\\>|\\<|\\>\\=|\\<\\=|or|and|contains)(?:(?=\\s)|\\b)" }, range: { begin: "\\(", beginCaptures: { 0: { name: "punctuation.section.parens.begin.liquid" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.section.parens.end.liquid" } }, name: "meta.range.liquid", patterns: [{ match: "\\.\\.", name: "punctuation.range.liquid" }, { include: "#variable_lookup" }, { include: "#number" }] }, raw_tag: { begin: "{%-?\\s*(raw)\\s*-?%}", beginCaptures: { 1: { name: "entity.name.tag.liquid" } }, contentName: "string.unquoted.liquid", end: "{%-?\\s*(endraw)\\s*-?%}", endCaptures: { 1: { name: "entity.name.tag.liquid" } }, name: "meta.entity.tag.raw.liquid", patterns: [{ match: "(.(?!{%-?\\s*endraw\\s*-?%}))*." }] }, string: { patterns: [{ include: "#string_single" }, { include: "#string_double" }] }, string_double: { begin: '"', end: '"', name: "string.quoted.double.liquid" }, string_single: { begin: "'", end: "'", name: "string.quoted.single.liquid" }, style_codefence: { begin: "({%-?)\\s*(style)\\s*(-?%})", beginCaptures: { 0: { name: "meta.tag.metadata.style.start.liquid" }, 1: { name: "punctuation.definition.tag.begin.liquid" }, 2: { name: "entity.name.tag.style.liquid" }, 3: { name: "punctuation.definition.tag.begin.liquid" } }, contentName: "meta.embedded.block.css", end: "({%-?)\\s*(endstyle)\\s*(-?%})", endCaptures: { 0: { name: "meta.tag.metadata.style.end.liquid" }, 1: { name: "punctuation.definition.tag.end.liquid" }, 2: { name: "entity.name.tag.style.liquid" }, 3: { name: "punctuation.definition.tag.end.liquid" } }, name: "meta.block.style.liquid", patterns: [{ include: "source.css" }] }, stylesheet_codefence: { begin: "({%-?)\\s*(stylesheet)\\s*(-?%})", beginCaptures: { 0: { name: "meta.tag.metadata.style.start.liquid" }, 1: { name: "punctuation.definition.tag.begin.liquid" }, 2: { name: "entity.name.tag.style.liquid" }, 3: { name: "punctuation.definition.tag.begin.liquid" } }, contentName: "meta.embedded.block.css", end: "({%-?)\\s*(endstylesheet)\\s*(-?%})", endCaptures: { 0: { name: "meta.tag.metadata.style.end.liquid" }, 1: { name: "punctuation.definition.tag.end.liquid" }, 2: { name: "entity.name.tag.style.liquid" }, 3: { name: "punctuation.definition.tag.end.liquid" } }, name: "meta.block.style.liquid", patterns: [{ include: "source.css" }] }, tag: { begin: "(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){%-?", beginCaptures: { 0: { name: "punctuation.definition.tag.begin.liquid" } }, end: "-?%}", endCaptures: { 0: { name: "punctuation.definition.tag.end.liquid" } }, name: "meta.tag.liquid", patterns: [{ include: "#tag_body" }] }, tag_assign: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(assign|echo)\\b", beginCaptures: { 1: { name: "entity.name.tag.liquid" } }, end: "(?=%})", name: "meta.entity.tag.liquid", patterns: [{ include: "#filter" }, { include: "#attribute" }, { include: "#value_expression" }] }, tag_assign_liquid: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(assign|echo)\\b", beginCaptures: { 1: { name: "entity.name.tag.liquid" } }, end: "$", name: "meta.entity.tag.liquid", patterns: [{ include: "#filter" }, { include: "#attribute_liquid" }, { include: "#value_expression" }] }, tag_body: { patterns: [{ include: "#tag_liquid" }, { include: "#tag_assign" }, { include: "#tag_comment_inline" }, { include: "#tag_case" }, { include: "#tag_conditional" }, { include: "#tag_for" }, { include: "#tag_paginate" }, { include: "#tag_render" }, { include: "#tag_tablerow" }, { include: "#tag_expression" }] }, tag_case: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(case|when)\\b", beginCaptures: { 1: { name: "keyword.control.case.liquid" } }, end: "(?=%})", name: "meta.entity.tag.case.liquid", patterns: [{ include: "#value_expression" }] }, tag_case_liquid: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(case|when)\\b", beginCaptures: { 1: { name: "keyword.control.case.liquid" } }, end: "$", name: "meta.entity.tag.case.liquid", patterns: [{ include: "#value_expression" }] }, tag_comment_block_liquid: { begin: "(?:^\\s*)(comment)\\b", end: "(?:^\\s*)(endcomment)\\b", name: "comment.block.liquid", patterns: [{ include: "#tag_comment_block_liquid" }, { match: "(?:^\\s*)(?!(comment|endcomment)).*" }] }, tag_comment_inline: { begin: "#", end: "(?=%})", name: "comment.line.number-sign.liquid" }, tag_comment_inline_liquid: { begin: "(?:^\\s*)#.*", end: "$", name: "comment.line.number-sign.liquid" }, tag_conditional: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(if|elsif|unless)\\b", beginCaptures: { 1: { name: "keyword.control.conditional.liquid" } }, end: "(?=%})", name: "meta.entity.tag.conditional.liquid", patterns: [{ include: "#value_expression" }] }, tag_conditional_liquid: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(if|elsif|unless)\\b", beginCaptures: { 1: { name: "keyword.control.conditional.liquid" } }, end: "$", name: "meta.entity.tag.conditional.liquid", patterns: [{ include: "#value_expression" }] }, tag_expression: { patterns: [{ include: "#tag_expression_without_arguments" }, { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(\\w+)", beginCaptures: { 1: { name: "entity.name.tag.liquid" } }, end: "(?=%})", name: "meta.entity.tag.liquid", patterns: [{ include: "#value_expression" }] }] }, tag_expression_liquid: { patterns: [{ include: "#tag_expression_without_arguments" }, { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(\\w+)", beginCaptures: { 1: { name: "entity.name.tag.liquid" } }, end: "$", name: "meta.entity.tag.liquid", patterns: [{ include: "#value_expression" }] }] }, tag_expression_without_arguments: { patterns: [{ captures: { 1: { name: "keyword.control.conditional.liquid" } }, match: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endunless|endif)\\b" }, { captures: { 1: { name: "keyword.control.loop.liquid" } }, match: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endfor|endtablerow|endpaginate)\\b" }, { captures: { 1: { name: "keyword.control.case.liquid" } }, match: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endcase)\\b" }, { captures: { 1: { name: "keyword.control.other.liquid" } }, match: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(capture|case|comment|for|form|if|javascript|paginate|schema|style)\\b" }, { captures: { 1: { name: "keyword.control.other.liquid" } }, match: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)\\b" }, { captures: { 1: { name: "keyword.control.other.liquid" } }, match: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(else|break|continue)\\b" }] }, tag_for: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(for)\\b", beginCaptures: { 1: { name: "keyword.control.for.liquid" } }, end: "(?=%})", name: "meta.entity.tag.for.liquid", patterns: [{ include: "#tag_for_body" }] }, tag_for_body: { patterns: [{ match: "\\b(in|reversed)\\b", name: "keyword.control.liquid" }, { match: "\\b(offset|limit):", name: "keyword.control.liquid" }, { include: "#value_expression" }] }, tag_for_liquid: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(for)\\b", beginCaptures: { 1: { name: "keyword.control.for.liquid" } }, end: "$", name: "meta.entity.tag.for.liquid", patterns: [{ include: "#tag_for_body" }] }, tag_injection: { begin: "(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){%-?(?!-?\\s*(endstyle|endjavascript|endcomment|endraw))", beginCaptures: { 0: { name: "punctuation.definition.tag.end.liquid" } }, end: "-?%}", endCaptures: { 0: { name: "punctuation.definition.tag.end.liquid" } }, name: "meta.tag.liquid", patterns: [{ include: "#tag_body" }] }, tag_liquid: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(liquid)\\b", beginCaptures: { 1: { name: "keyword.control.liquid.liquid" } }, end: "(?=%})", name: "meta.entity.tag.liquid.liquid", patterns: [{ include: "#tag_comment_block_liquid" }, { include: "#tag_comment_inline_liquid" }, { include: "#tag_assign_liquid" }, { include: "#tag_case_liquid" }, { include: "#tag_conditional_liquid" }, { include: "#tag_for_liquid" }, { include: "#tag_paginate_liquid" }, { include: "#tag_render_liquid" }, { include: "#tag_tablerow_liquid" }, { include: "#tag_expression_liquid" }] }, tag_paginate: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(paginate)\\b", beginCaptures: { 1: { name: "keyword.control.paginate.liquid" } }, end: "(?=%})", name: "meta.entity.tag.paginate.liquid", patterns: [{ include: "#tag_paginate_body" }] }, tag_paginate_body: { patterns: [{ match: "\\b(by)\\b", name: "keyword.control.liquid" }, { include: "#value_expression" }] }, tag_paginate_liquid: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(paginate)\\b", beginCaptures: { 1: { name: "keyword.control.paginate.liquid" } }, end: "$", name: "meta.entity.tag.paginate.liquid", patterns: [{ include: "#tag_paginate_body" }] }, tag_render: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(render)\\b", beginCaptures: { 1: { name: "entity.name.tag.render.liquid" } }, end: "(?=%})", name: "meta.entity.tag.render.liquid", patterns: [{ include: "#tag_render_special_keywords" }, { include: "#attribute" }, { include: "#value_expression" }] }, tag_render_liquid: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(render)\\b", beginCaptures: { 1: { name: "entity.name.tag.render.liquid" } }, end: "$", name: "meta.entity.tag.render.liquid", patterns: [{ include: "#tag_render_special_keywords" }, { include: "#attribute_liquid" }, { include: "#value_expression" }] }, tag_render_special_keywords: { match: "\\b(with|as|for)\\b", name: "keyword.control.other.liquid" }, tag_tablerow: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(tablerow)\\b", beginCaptures: { 1: { name: "keyword.control.tablerow.liquid" } }, end: "(?=%})", name: "meta.entity.tag.tablerow.liquid", patterns: [{ include: "#tag_tablerow_body" }] }, tag_tablerow_body: { patterns: [{ match: "\\b(in)\\b", name: "keyword.control.liquid" }, { match: "\\b(cols|offset|limit):", name: "keyword.control.liquid" }, { include: "#value_expression" }] }, tag_tablerow_liquid: { begin: "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(tablerow)\\b", beginCaptures: { 1: { name: "keyword.control.tablerow.liquid" } }, end: "$", name: "meta.entity.tag.tablerow.liquid", patterns: [{ include: "#tag_tablerow_body" }] }, value_expression: { patterns: [{ captures: { 2: { name: "invalid.illegal.filter.liquid" }, 3: { name: "invalid.illegal.filter.liquid" } }, match: "(\\[)(\\|)(?=[^\\]]*)(?=\\])" }, { match: "(?<=\\s)(\\+|\\-|\\/|\\*)(?=\\s)", name: "invalid.illegal.filter.liquid" }, { include: "#language_constant" }, { include: "#operator" }, { include: "#invalid_range" }, { include: "#range" }, { include: "#number" }, { include: "#string" }, { include: "#variable_lookup" }] }, variable_lookup: { patterns: [{ match: "\\b(additional_checkout_buttons|address|all_country_option_tags|all_products|article|articles|block|blog|blogs|canonical_url|cart|checkout|collection|collections|comment|content_for_additional_checkout_buttons|content_for_header|content_for_index|content_for_layout|country_option_tags|currency|current_page|current_tags|customer|customer_address|discount_allocation|discount_application|external_video|font|forloop|form|fulfillment|gift_card|handle|image|images|line_item|link|linklist|linklists|location|localization|metafield|model|model_source|order|page|page_description|page_image|page_title|pages|paginate|part|policy|powered_by_link|predictive_search|product|product_option|product_variant|recommendations|request|routes|script|scripts|search|section|selling_plan|selling_plan_allocation|selling_plan_group|settings|shipping_method|shop|shop_locale|store_availability|tablerow|tax_line|template|theme|transaction|unit_price_measurement|variant|video|video_source)\\b", name: "variable.language.liquid" }, { match: "((?<=\\w\\:\\s)\\w+)", name: "variable.parameter.liquid" }, { begin: "(?<=\\w)\\[", beginCaptures: { 0: { name: "punctuation.section.brackets.begin.liquid" } }, end: "\\]", endCaptures: { 0: { name: "punctuation.section.brackets.end.liquid" } }, name: "meta.brackets.liquid", patterns: [{ include: "#string" }] }, { match: "(?<=(\\w|\\])\\.)([-\\w]+\\??)", name: "variable.other.member.liquid" }, { match: "(?<=\\w)\\.(?=\\w)", name: "punctuation.accessor.liquid" }, { match: "(?i)[a-z_](\\w|(?:-(?!\\}\\})))*", name: "variable.other.liquid" }] } }, scopeName: "text.html.liquid", embeddedLangs: ["html", "css", "json", "javascript"] });
|
|
19
|
+
var r = [
|
|
20
|
+
...e,
|
|
21
|
+
...n,
|
|
22
|
+
...t,
|
|
23
|
+
...i,
|
|
24
|
+
a
|
|
25
|
+
];
|
|
26
|
+
export {
|
|
27
|
+
r as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./c-eDnjw9rh-eDnjw9rh.js";
|
|
2
|
+
const a = Object.freeze({ displayName: "Lua", name: "lua", patterns: [{ begin: "\\b(?:(local)\\s+)?(function)\\b(?![,:])", beginCaptures: { 1: { name: "keyword.local.lua" }, 2: { name: "keyword.control.lua" } }, end: `(?<=[\\)\\-{}\\[\\]"'])`, name: "meta.function.lua", patterns: [{ include: "#comment" }, { begin: "(\\()", beginCaptures: { 1: { name: "punctuation.definition.parameters.begin.lua" } }, end: `(\\))|(?=[\\-\\.{}\\[\\]"'])`, endCaptures: { 1: { name: "punctuation.definition.parameters.finish.lua" } }, name: "meta.parameter.lua", patterns: [{ include: "#comment" }, { match: "[a-zA-Z_][a-zA-Z0-9_]*", name: "variable.parameter.function.lua" }, { match: ",", name: "punctuation.separator.arguments.lua" }, { begin: ":", beginCaptures: { 0: { name: "punctuation.separator.arguments.lua" } }, end: "(?=[\\),])", patterns: [{ include: "#emmydoc.type" }] }] }, { match: "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b\\s*(?=:)", name: "entity.name.class.lua" }, { match: "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b", name: "entity.name.function.lua" }] }, { match: "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(\\.[0-9A-Fa-f]*)?([eE]-?\\d*)?([pP][-+]\\d+)?", name: "constant.numeric.float.hexadecimal.lua" }, { match: "(?<![\\w\\d.])0[xX]\\.[0-9A-Fa-f]+([eE]-?\\d*)?([pP][-+]\\d+)?", name: "constant.numeric.float.hexadecimal.lua" }, { match: "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(?![pPeE.0-9])", name: "constant.numeric.integer.hexadecimal.lua" }, { match: "(?<![\\w\\d.])\\d+(\\.\\d*)?([eE]-?\\d*)?", name: "constant.numeric.float.lua" }, { match: "(?<![\\w\\d.])\\.\\d+([eE]-?\\d*)?", name: "constant.numeric.float.lua" }, { match: "(?<![\\w\\d.])\\d+(?![pPeE.0-9])", name: "constant.numeric.integer.lua" }, { include: "#string" }, { captures: { 1: { name: "punctuation.definition.comment.lua" } }, match: "\\A(#!).*$\\n?", name: "comment.line.shebang.lua" }, { include: "#comment" }, { captures: { 1: { name: "keyword.control.goto.lua" }, 2: { name: "string.tag.lua" } }, match: "\\b(goto)\\s+([a-zA-Z_][a-zA-Z0-9_]*)" }, { captures: { 1: { name: "punctuation.section.embedded.begin.lua" }, 2: { name: "punctuation.section.embedded.end.lua" } }, match: "(::)\\s*[a-zA-Z_][a-zA-Z0-9_]*\\s*(::)", name: "string.tag.lua" }, { captures: { 1: { name: "string.tag.lua" } }, match: "<\\s*(const|close)\\s*>" }, { match: "\\<[a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*\\>", name: "storage.type.generic.lua" }, { match: "\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\b", name: "keyword.control.lua" }, { match: "\\b(local|global)\\b", name: "keyword.local.lua" }, { match: "\\b(function)\\b(?![,:])", name: "keyword.control.lua" }, { match: "(?<![^.]\\.|:)\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\.(pi|huge|maxinteger|mininteger)|utf8\\.charpattern|io\\.(stdin|stdout|stderr)|package\\.(config|cpath|loaded|loaders|path|preload|searchers))\\b|(?<![.])\\.{3}(?!\\.)", name: "constant.language.lua" }, { match: "(?<![^.]\\.|:)\\b(self)\\b", name: "variable.language.self.lua" }, { match: "(?<![^.]\\.|:)\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\b(?!\\s*=(?!=))", name: "support.function.lua" }, { match: "(?<![^.]\\.|:)\\b(async)\\b(?!\\s*=(?!=))", name: "entity.name.tag.lua" }, { match: "(?<![^.]\\.|:)\\b(coroutine\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\.(concat|insert|maxn|move|pack|remove|sort|unpack)|math\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\.(loadlib|seeall|searchpath)|debug\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\.(char|codes|codepoint|len|offset))\\b(?!\\s*=(?!=))", name: "support.function.library.lua" }, { match: "\\b(and|or|not|\\|\\||\\&\\&|\\!)\\b", name: "keyword.operator.lua" }, { match: `\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*(?:[({"']|\\[\\[))`, name: "support.function.any-method.lua" }, { match: "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*\\??:)", name: "entity.name.class.lua" }, { match: "(?<=[^.]\\.|:)\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*=\\s*\\b(function)\\b)", name: "entity.other.attribute.lua" }, { match: "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*=\\s*\\b(function)\\b)", name: "variable.other.lua" }, { match: "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*=\\s*\\b(function)\\b)", name: "entity.name.function.lua" }, { match: "\\+|-|%|#|\\*|\\/|\\^|==?|~=|!=|<=?|>=?|(?<!\\.)\\.{2}(?!\\.)", name: "keyword.operator.lua" }], repository: { comment: { patterns: [{ begin: "(^[ \\t]+)?(?=--)", beginCaptures: { 1: { name: "punctuation.whitespace.comment.leading.lua" } }, end: "(?!\\G)((?!^)[ \\t]+\\n)?", endCaptures: { 1: { name: "punctuation.whitespace.comment.trailing.lua" } }, patterns: [{ begin: "--\\[(=*)\\[@@@", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.lua" } }, end: "\\]\\1\\]", endCaptures: { 0: { name: "punctuation.definition.comment.end.lua" } }, name: "", patterns: [{ include: "source.lua" }] }, { begin: "--\\[(=*)\\[", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.lua" } }, end: "\\]\\1\\]", endCaptures: { 0: { name: "punctuation.definition.comment.end.lua" } }, name: "comment.block.lua", patterns: [{ include: "#emmydoc" }, { include: "#ldoc_tag" }] }, { begin: "----", beginCaptures: { 0: { name: "punctuation.definition.comment.lua" } }, end: "\\n", name: "comment.line.double-dash.lua" }, { begin: "---", beginCaptures: { 0: { name: "punctuation.definition.comment.lua" } }, end: "\\n", name: "comment.line.double-dash.documentation.lua", patterns: [{ include: "#emmydoc" }, { include: "#ldoc_tag" }] }, { begin: "--", beginCaptures: { 0: { name: "punctuation.definition.comment.lua" } }, end: "\\n", name: "comment.line.double-dash.lua", patterns: [{ include: "#ldoc_tag" }] }] }, { begin: "\\/\\*", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.lua" } }, end: "\\*\\/", endCaptures: { 0: { name: "punctuation.definition.comment.end.lua" } }, name: "comment.block.lua", patterns: [{ include: "#emmydoc" }, { include: "#ldoc_tag" }] }] }, emmydoc: { patterns: [{ begin: "(?<=---[ \\t]*)@class", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ match: "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)", name: "support.class.lua" }, { match: ":|,", name: "keyword.operator.lua" }] }, { begin: "(?<=---[ \\t]*)@enum", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ begin: "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)", beginCaptures: { 0: { name: "variable.lua" } }, end: "(?=\\n)" }] }, { begin: "(?<=---[ \\t]*)@type", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ include: "#emmydoc.type" }] }, { begin: "(?<=---[ \\t]*)@alias", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ begin: "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)", beginCaptures: { 0: { name: "variable.lua" } }, end: "(?=[\\n#])", patterns: [{ include: "#emmydoc.type" }] }] }, { begin: "(?<=---[ \\t]*)(@operator)\\s*(\\b[a-z]+)?", beginCaptures: { 1: { name: "storage.type.annotation.lua" }, 2: { name: "support.function.library.lua" } }, end: "(?=[\\n@#])", patterns: [{ include: "#emmydoc.type" }] }, { begin: "(?<=---[ \\t]*)@cast", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ begin: "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)", beginCaptures: { 0: { name: "variable.other.lua" } }, end: "(?=\\n)", patterns: [{ include: "#emmydoc.type" }, { match: "([+-|])", name: "keyword.operator.lua" }] }] }, { begin: "(?<=---[ \\t]*)@param", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ begin: "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(\\??)", beginCaptures: { 1: { name: "entity.name.variable.lua" }, 2: { name: "keyword.operator.lua" } }, end: "(?=[\\n#])", patterns: [{ include: "#emmydoc.type" }] }] }, { begin: "(?<=---[ \\t]*)@return", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ match: "\\?", name: "keyword.operator.lua" }, { include: "#emmydoc.type" }] }, { begin: "(?<=---[ \\t]*)@field", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ begin: "(\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b|(\\[))(\\??)", beginCaptures: { 2: { name: "entity.name.variable.lua" }, 3: { name: "keyword.operator.lua" } }, end: "(?=[\\n#])", patterns: [{ include: "#string" }, { include: "#emmydoc.type" }, { match: "\\]", name: "keyword.operator.lua" }] }] }, { begin: "(?<=---[ \\t]*)@generic", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ begin: "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b", beginCaptures: { 0: { name: "storage.type.generic.lua" } }, end: "(?=\\n)|(,)", endCaptures: { 0: { name: "keyword.operator.lua" } }, patterns: [{ match: ":", name: "keyword.operator.lua" }, { include: "#emmydoc.type" }] }] }, { begin: "(?<=---[ \\t]*)@vararg", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ include: "#emmydoc.type" }] }, { begin: "(?<=---[ \\t]*)@overload", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ include: "#emmydoc.type" }] }, { begin: "(?<=---[ \\t]*)@deprecated", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])" }, { begin: "(?<=---[ \\t]*)@meta", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])" }, { begin: "(?<=---[ \\t]*)@private", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])" }, { begin: "(?<=---[ \\t]*)@protected", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])" }, { begin: "(?<=---[ \\t]*)@package", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])" }, { begin: "(?<=---[ \\t]*)@version", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ match: "\\b(5\\.1|5\\.2|5\\.3|5\\.4|JIT)\\b", name: "support.class.lua" }, { match: ",|\\>|\\<", name: "keyword.operator.lua" }] }, { begin: "(?<=---[ \\t]*)@see", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ match: "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)", name: "support.class.lua" }, { match: "#", name: "keyword.operator.lua" }] }, { begin: "(?<=---[ \\t]*)@diagnostic", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ begin: "([a-zA-Z_\\-0-9]+)[ \\t]*(:)?", beginCaptures: { 1: { name: "keyword.other.unit" }, 2: { name: "keyword.operator.unit" } }, end: "(?=\\n)", patterns: [{ match: "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\-]*)", name: "support.class.lua" }, { match: ",", name: "keyword.operator.lua" }] }] }, { begin: "(?<=---[ \\t]*)@module", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ include: "#string" }] }, { match: "(?<=---[ \\t]*)@(async|nodiscard)", name: "storage.type.annotation.lua" }, { begin: "(?<=---)\\|\\s*[\\>\\+]?", beginCaptures: { 0: { name: "storage.type.annotation.lua" } }, end: "(?=[\\n@#])", patterns: [{ include: "#string" }] }] }, "emmydoc.type": { patterns: [{ begin: "\\bfun\\b", beginCaptures: { 0: { name: "keyword.control.lua" } }, end: "(?=[\\s#])", patterns: [{ match: "[\\(\\),:\\?][ \\t]*", name: "keyword.operator.lua" }, { match: "([a-zA-Z_][a-zA-Z0-9_\\.\\*\\[\\]\\<\\>\\,\\-]*)(?<!,)[ \\t]*(?=\\??:)", name: "entity.name.variable.lua" }, { include: "#emmydoc.type" }, { include: "#string" }] }, { match: "\\<[a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*\\>", name: "storage.type.generic.lua" }, { match: "\\basync\\b", name: "entity.name.tag.lua" }, { match: "[\\{\\}\\:\\,\\?\\|\\`][ \\t]*", name: "keyword.operator.lua" }, { begin: `(?=[a-zA-Z_\\.\\*"'\\[])`, end: "(?=[\\s\\)\\,\\?\\:\\}\\|#])", patterns: [{ match: "([a-zA-Z0-9_\\.\\*\\[\\]\\<\\>\\,\\-]+)(?<!,)[ \\t]*", name: "support.type.lua" }, { match: "(\\.\\.\\.)[ \\t]*", name: "constant.language.lua" }, { include: "#string" }] }] }, escaped_char: { patterns: [{ match: `\\\\[abfnrtv\\\\"'\\n]`, name: "constant.character.escape.lua" }, { match: "\\\\z[\\n\\t ]*", name: "constant.character.escape.lua" }, { match: "\\\\\\d{1,3}", name: "constant.character.escape.byte.lua" }, { match: "\\\\x[0-9A-Fa-f][0-9A-Fa-f]", name: "constant.character.escape.byte.lua" }, { match: "\\\\u\\{[0-9A-Fa-f]+\\}", name: "constant.character.escape.unicode.lua" }, { match: "\\\\.", name: "invalid.illegal.character.escape.lua" }] }, ldoc_tag: { captures: { 1: { name: "punctuation.definition.block.tag.ldoc" }, 2: { name: "storage.type.class.ldoc" } }, match: "\\G[ \\t]*(@)(alias|annotation|author|charset|class|classmod|comment|constructor|copyright|description|example|export|factory|field|file|fixme|function|include|lfunction|license|local|module|name|param|pragma|private|raise|release|return|script|section|see|set|static|submodule|summary|tfield|thread|tparam|treturn|todo|topic|type|usage|warning|within)\\b" }, string: { patterns: [{ begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.lua" } }, end: "'[ \\t]*|(?=\\n)", endCaptures: { 0: { name: "punctuation.definition.string.end.lua" } }, name: "string.quoted.single.lua", patterns: [{ include: "#escaped_char" }] }, { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.lua" } }, end: '"[ \\t]*|(?=\\n)', endCaptures: { 0: { name: "punctuation.definition.string.end.lua" } }, name: "string.quoted.double.lua", patterns: [{ include: "#escaped_char" }] }, { begin: "`", beginCaptures: { 0: { name: "punctuation.definition.string.begin.lua" } }, end: "`[ \\t]*|(?=\\n)", endCaptures: { 0: { name: "punctuation.definition.string.end.lua" } }, name: "string.quoted.double.lua" }, { begin: "(?<=\\.cdef)\\s*(\\[(=*)\\[)", beginCaptures: { 0: { name: "string.quoted.other.multiline.lua" }, 1: { name: "punctuation.definition.string.begin.lua" } }, contentName: "meta.embedded.lua", end: "(\\]\\2\\])[ \\t]*", endCaptures: { 0: { name: "string.quoted.other.multiline.lua" }, 1: { name: "punctuation.definition.string.end.lua" } }, patterns: [{ include: "source.c" }] }, { begin: "(?<!--)\\[(=*)\\[", beginCaptures: { 0: { name: "punctuation.definition.string.begin.lua" } }, end: "\\]\\1\\][ \\t]*", endCaptures: { 0: { name: "punctuation.definition.string.end.lua" } }, name: "string.quoted.other.multiline.lua" }] } }, scopeName: "source.lua", embeddedLangs: ["c"] });
|
|
3
|
+
var t = [
|
|
4
|
+
...e,
|
|
5
|
+
a
|
|
6
|
+
];
|
|
7
|
+
export {
|
|
8
|
+
t as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const e = Object.freeze({ displayName: "Makefile", name: "make", patterns: [{ include: "#comment" }, { include: "#variables" }, { include: "#variable-assignment" }, { include: "#directives" }, { include: "#recipe" }, { include: "#target" }], repository: { "another-variable-braces": { patterns: [{ begin: "(?<={)(?!})", end: "(?=}|((?<!\\\\)\\n))", name: "variable.other.makefile", patterns: [{ include: "#variables" }, { match: "\\\\\\n", name: "constant.character.escape.continuation.makefile" }] }] }, "another-variable-parentheses": { patterns: [{ begin: "(?<=\\()(?!\\))", end: "(?=\\)|((?<!\\\\)\\n))", name: "variable.other.makefile", patterns: [{ include: "#variables" }, { match: "\\\\\\n", name: "constant.character.escape.continuation.makefile" }] }] }, "braces-interpolation": { begin: "{", end: "}", patterns: [{ include: "#variables" }, { include: "#interpolation" }] }, "builtin-variable-braces": { patterns: [{ match: "(?<={)(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\.LIBPATTERNS)(?=\\s*})", name: "variable.language.makefile" }] }, "builtin-variable-parentheses": { patterns: [{ match: "(?<=\\()(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\.LIBPATTERNS)(?=\\s*\\))", name: "variable.language.makefile" }] }, comma: { match: ",", name: "punctuation.separator.delimeter.comma.makefile" }, comment: { begin: "(^[ ]+)?((?<!\\\\)(\\\\\\\\)*)(?=#)", beginCaptures: { 1: { name: "punctuation.whitespace.comment.leading.makefile" } }, end: "(?!\\G)", patterns: [{ begin: "#", beginCaptures: { 0: { name: "punctuation.definition.comment.makefile" } }, end: "(?=[^\\\\])$", name: "comment.line.number-sign.makefile", patterns: [{ match: "\\\\\\n", name: "constant.character.escape.continuation.makefile" }] }] }, directives: { patterns: [{ begin: "^[ ]*([s\\-]?include)\\b", beginCaptures: { 1: { name: "keyword.control.include.makefile" } }, end: "^", patterns: [{ include: "#comment" }, { include: "#variables" }, { match: "%", name: "constant.other.placeholder.makefile" }] }, { begin: "^[ ]*(vpath)\\b", beginCaptures: { 1: { name: "keyword.control.vpath.makefile" } }, end: "^", patterns: [{ include: "#comment" }, { include: "#variables" }, { match: "%", name: "constant.other.placeholder.makefile" }] }, { begin: "^\\s*(?:(override)\\s*)?(define)\\s*([^\\s]+)\\s*(=|\\?=|:=|\\+=)?(?=\\s)", captures: { 1: { name: "keyword.control.override.makefile" }, 2: { name: "keyword.control.define.makefile" }, 3: { name: "variable.other.makefile" }, 4: { name: "punctuation.separator.key-value.makefile" } }, end: "^\\s*(endef)\\b", name: "meta.scope.conditional.makefile", patterns: [{ begin: "\\G(?!\\n)", end: "^", patterns: [{ include: "#comment" }] }, { include: "#variables" }, { include: "#directives" }] }, { begin: "^[ ]*(export)\\b", beginCaptures: { 1: { name: "keyword.control.$1.makefile" } }, end: "^", patterns: [{ include: "#comment" }, { include: "#variable-assignment" }, { match: "[^\\s]+", name: "variable.other.makefile" }] }, { begin: "^[ ]*(override|private)\\b", beginCaptures: { 1: { name: "keyword.control.$1.makefile" } }, end: "^", patterns: [{ include: "#comment" }, { include: "#variable-assignment" }] }, { begin: "^[ ]*(unexport|undefine)\\b", beginCaptures: { 1: { name: "keyword.control.$1.makefile" } }, end: "^", patterns: [{ include: "#comment" }, { match: "[^\\s]+", name: "variable.other.makefile" }] }, { begin: "^\\s*(ifeq|ifneq|ifdef|ifndef)(?=\\s)", captures: { 1: { name: "keyword.control.$1.makefile" } }, end: "^\\s*(endif)\\b", name: "meta.scope.conditional.makefile", patterns: [{ begin: "\\G", end: "^", name: "meta.scope.condition.makefile", patterns: [{ include: "#comma" }, { include: "#variables" }, { include: "#comment" }] }, { begin: "^\\s*else(?=\\s)\\s*(ifeq|ifneq|ifdef|ifndef)*(?=\\s)", beginCaptures: { 0: { name: "keyword.control.else.makefile" } }, end: "^", patterns: [{ include: "#comma" }, { include: "#variables" }, { include: "#comment" }] }, { include: "$self" }] }] }, "flavor-variable-braces": { patterns: [{ begin: "(?<={)(origin|flavor)\\s(?=[^\\s}]+\\s*})", beginCaptures: { 1: { name: "support.function.$1.makefile" } }, contentName: "variable.other.makefile", end: "(?=})", name: "meta.scope.function-call.makefile", patterns: [{ include: "#variables" }] }] }, "flavor-variable-parentheses": { patterns: [{ begin: "(?<=\\()(origin|flavor)\\s(?=[^\\s)]+\\s*\\))", beginCaptures: { 1: { name: "support.function.$1.makefile" } }, contentName: "variable.other.makefile", end: "(?=\\))", name: "meta.scope.function-call.makefile", patterns: [{ include: "#variables" }] }] }, "function-variable-braces": { patterns: [{ begin: "(?<={)(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\s", beginCaptures: { 1: { name: "support.function.$1.makefile" } }, end: "(?=}|((?<!\\\\)\\n))", name: "meta.scope.function-call.makefile", patterns: [{ include: "#comma" }, { include: "#variables" }, { include: "#interpolation" }, { match: "%|\\*", name: "constant.other.placeholder.makefile" }, { match: "\\\\\\n", name: "constant.character.escape.continuation.makefile" }] }] }, "function-variable-parentheses": { patterns: [{ begin: "(?<=\\()(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\s", beginCaptures: { 1: { name: "support.function.$1.makefile" } }, end: "(?=\\)|((?<!\\\\)\\n))", name: "meta.scope.function-call.makefile", patterns: [{ include: "#comma" }, { include: "#variables" }, { include: "#interpolation" }, { match: "%|\\*", name: "constant.other.placeholder.makefile" }, { match: "\\\\\\n", name: "constant.character.escape.continuation.makefile" }] }] }, interpolation: { patterns: [{ include: "#parentheses-interpolation" }, { include: "#braces-interpolation" }] }, "parentheses-interpolation": { begin: "\\(", end: "\\)", patterns: [{ include: "#variables" }, { include: "#interpolation" }] }, recipe: { begin: "^\\t([+\\-@]*)", beginCaptures: { 1: { name: "keyword.control.$1.makefile" } }, end: "[^\\\\]$", name: "meta.scope.recipe.makefile", patterns: [{ match: "\\\\\\n", name: "constant.character.escape.continuation.makefile" }, { include: "#variables" }] }, "simple-variable": { patterns: [{ match: "\\$[^(){}]", name: "variable.language.makefile" }] }, target: { begin: "^(?!\\t)([^:]*)(:)(?!\\=)", beginCaptures: { 1: { patterns: [{ captures: { 1: { name: "support.function.target.$1.makefile" } }, match: "^\\s*(\\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))\\s*$" }, { begin: "(?=\\S)", end: "(?=\\s|$)", name: "entity.name.function.target.makefile", patterns: [{ include: "#variables" }, { match: "%", name: "constant.other.placeholder.makefile" }] }] }, 2: { name: "punctuation.separator.key-value.makefile" } }, end: "[^\\\\]$", name: "meta.scope.target.makefile", patterns: [{ begin: "\\G", end: "(?=[^\\\\])$", name: "meta.scope.prerequisites.makefile", patterns: [{ match: "\\\\\\n", name: "constant.character.escape.continuation.makefile" }, { match: "%|\\*", name: "constant.other.placeholder.makefile" }, { include: "#comment" }, { include: "#variables" }] }] }, "variable-assignment": { begin: "(^[ ]*|\\G\\s*)([^\\s:#=]+)\\s*((?<![?:+!])=|\\?=|:=|\\+=|!=)", beginCaptures: { 2: { name: "variable.other.makefile", patterns: [{ include: "#variables" }] }, 3: { name: "punctuation.separator.key-value.makefile" } }, end: "\\n", patterns: [{ match: "\\\\\\n", name: "constant.character.escape.continuation.makefile" }, { include: "#comment" }, { include: "#variables" }] }, "variable-braces": { patterns: [{ begin: "\\${", captures: { 0: { name: "punctuation.definition.variable.makefile" } }, end: "}|((?<!\\\\)\\n)", name: "string.interpolated.makefile", patterns: [{ include: "#variables" }, { include: "#builtin-variable-braces" }, { include: "#function-variable-braces" }, { include: "#flavor-variable-braces" }, { include: "#another-variable-braces" }] }] }, "variable-parentheses": { patterns: [{ begin: "\\$\\(", captures: { 0: { name: "punctuation.definition.variable.makefile" } }, end: "\\)|((?<!\\\\)\\n)", name: "string.interpolated.makefile", patterns: [{ include: "#variables" }, { include: "#builtin-variable-parentheses" }, { include: "#function-variable-parentheses" }, { include: "#flavor-variable-parentheses" }, { include: "#another-variable-parentheses" }] }] }, variables: { patterns: [{ include: "#simple-variable" }, { include: "#variable-parentheses" }, { include: "#variable-braces" }] } }, scopeName: "source.makefile", aliases: ["makefile"] });
|
|
2
|
+
var a = [
|
|
3
|
+
e
|
|
4
|
+
];
|
|
5
|
+
export {
|
|
6
|
+
a as default
|
|
7
|
+
};
|