@copilotkitnext/react 0.0.22-alpha.7 → 0.0.22-alpha.8
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/package.json +4 -4
- package/dist/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
- package/dist/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
- package/dist/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
- package/dist/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
- package/dist/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
- package/dist/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
- package/dist/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
- package/dist/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
- package/dist/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
- package/dist/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
- package/dist/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
- package/dist/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
- package/dist/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
- package/dist/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
- package/dist/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
- package/dist/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
- package/dist/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
- package/dist/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
- package/dist/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
- package/dist/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
- package/dist/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
- package/dist/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
- package/dist/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
- package/dist/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
- package/dist/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
- package/dist/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
- package/dist/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
- package/dist/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
- package/dist/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
- package/dist/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
- package/dist/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
- package/dist/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
- package/dist/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
- package/dist/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
- package/dist/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
- package/dist/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
- package/dist/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
- package/dist/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
- package/dist/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
- package/dist/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
- package/dist/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
- package/dist/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
- package/dist/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
- package/dist/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
- package/dist/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
- package/dist/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
- package/dist/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
- package/dist/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
- package/dist/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
- package/dist/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
- package/dist/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
- package/dist/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
- package/dist/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
- package/dist/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
- package/dist/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
- package/dist/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
- package/dist/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
- package/dist/angular-html-LD6QEAZE.mjs +0 -7
- package/dist/angular-html-LD6QEAZE.mjs.map +0 -1
- package/dist/angular-ts-FGK7I2F5.mjs +0 -37
- package/dist/angular-ts-FGK7I2F5.mjs.map +0 -1
- package/dist/angular-ts-XZTE5LQS.mjs +0 -37
- package/dist/angular-ts-XZTE5LQS.mjs.map +0 -1
- package/dist/apl-VB2EG5RZ.mjs +0 -22
- package/dist/apl-VB2EG5RZ.mjs.map +0 -1
- package/dist/architectureDiagram-VXUJARFQ-PPLKSFYC.mjs +0 -8712
- package/dist/architectureDiagram-VXUJARFQ-PPLKSFYC.mjs.map +0 -1
- package/dist/blade-EZDWULER.mjs +0 -26
- package/dist/blade-EZDWULER.mjs.map +0 -1
- package/dist/blade-HS4Z7O3Y.mjs +0 -26
- package/dist/blade-HS4Z7O3Y.mjs.map +0 -1
- package/dist/blockDiagram-VD42YOAC-7SIEWHYD.mjs +0 -3618
- package/dist/blockDiagram-VD42YOAC-7SIEWHYD.mjs.map +0 -1
- package/dist/c4Diagram-YG6GDRKO-G2UUBRHQ.mjs +0 -2495
- package/dist/c4Diagram-YG6GDRKO-G2UUBRHQ.mjs.map +0 -1
- package/dist/chunk-2BAFECUC.mjs +0 -28
- package/dist/chunk-2BAFECUC.mjs.map +0 -1
- package/dist/chunk-BF5LDW2L.mjs +0 -65
- package/dist/chunk-BF5LDW2L.mjs.map +0 -1
- package/dist/chunk-BUEC2HNL.mjs +0 -762
- package/dist/chunk-BUEC2HNL.mjs.map +0 -1
- package/dist/chunk-CRGJ2YCV.mjs +0 -109
- package/dist/chunk-CRGJ2YCV.mjs.map +0 -1
- package/dist/chunk-DKZXT4VQ.mjs +0 -19
- package/dist/chunk-DKZXT4VQ.mjs.map +0 -1
- package/dist/chunk-DYQXFOGA.mjs +0 -34
- package/dist/chunk-DYQXFOGA.mjs.map +0 -1
- package/dist/chunk-ENI667QL.mjs +0 -806
- package/dist/chunk-ENI667QL.mjs.map +0 -1
- package/dist/chunk-GEUZOPED.mjs +0 -1834
- package/dist/chunk-GEUZOPED.mjs.map +0 -1
- package/dist/chunk-GU7334FJ.mjs +0 -538
- package/dist/chunk-GU7334FJ.mjs.map +0 -1
- package/dist/chunk-HNKEYT4A.mjs +0 -4693
- package/dist/chunk-HNKEYT4A.mjs.map +0 -1
- package/dist/chunk-HTMHAYGC.mjs +0 -14
- package/dist/chunk-HTMHAYGC.mjs.map +0 -1
- package/dist/chunk-JRLFMJ6U.mjs +0 -1923
- package/dist/chunk-JRLFMJ6U.mjs.map +0 -1
- package/dist/chunk-JYRND4DC.mjs +0 -22
- package/dist/chunk-JYRND4DC.mjs.map +0 -1
- package/dist/chunk-KFEPUFID.mjs +0 -52
- package/dist/chunk-KFEPUFID.mjs.map +0 -1
- package/dist/chunk-M3UH7XZX.mjs +0 -6222
- package/dist/chunk-M3UH7XZX.mjs.map +0 -1
- package/dist/chunk-ND4RYWG7.mjs +0 -12
- package/dist/chunk-ND4RYWG7.mjs.map +0 -1
- package/dist/chunk-VLSLBZME.mjs +0 -51
- package/dist/chunk-VLSLBZME.mjs.map +0 -1
- package/dist/chunk-WJBV3P3K.mjs +0 -55
- package/dist/chunk-WJBV3P3K.mjs.map +0 -1
- package/dist/chunk-X2TQ2HDS.mjs +0 -44
- package/dist/chunk-X2TQ2HDS.mjs.map +0 -1
- package/dist/chunk-YIDZOZG3.mjs +0 -103
- package/dist/chunk-YIDZOZG3.mjs.map +0 -1
- package/dist/chunk-YLW7IP7V.mjs +0 -14525
- package/dist/chunk-YLW7IP7V.mjs.map +0 -1
- package/dist/classDiagram-2ON5EDUG-WUV4PTK5.mjs +0 -38
- package/dist/classDiagram-2ON5EDUG-WUV4PTK5.mjs.map +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-J4QNVYPE.mjs +0 -38
- package/dist/classDiagram-v2-WZHVMYZB-J4QNVYPE.mjs.map +0 -1
- package/dist/cobol-PNTKRG5I.mjs +0 -17
- package/dist/cobol-PNTKRG5I.mjs.map +0 -1
- package/dist/crystal-BSMHK65A.mjs +0 -23
- package/dist/crystal-BSMHK65A.mjs.map +0 -1
- package/dist/dagre-6UL2VRFP-XN667C7N.mjs +0 -710
- package/dist/dagre-6UL2VRFP-XN667C7N.mjs.map +0 -1
- package/dist/diagram-PSM6KHXK-VA2CF5LZ.mjs +0 -538
- package/dist/diagram-PSM6KHXK-VA2CF5LZ.mjs.map +0 -1
- package/dist/diagram-QEK2KX5R-H3EHES33.mjs +0 -319
- package/dist/diagram-QEK2KX5R-H3EHES33.mjs.map +0 -1
- package/dist/diagram-S2PKOQOG-FOQYPB22.mjs +0 -231
- package/dist/diagram-S2PKOQOG-FOQYPB22.mjs.map +0 -1
- package/dist/edge-JOI74UJM.mjs +0 -19
- package/dist/edge-JOI74UJM.mjs.map +0 -1
- package/dist/elixir-FEL6DDPJ.mjs +0 -15
- package/dist/elixir-FEL6DDPJ.mjs.map +0 -1
- package/dist/erDiagram-Q2GNP2WA-IXNJSD2A.mjs +0 -1175
- package/dist/erDiagram-Q2GNP2WA-IXNJSD2A.mjs.map +0 -1
- package/dist/erb-Q2D6FWX3.mjs +0 -32
- package/dist/erb-Q2D6FWX3.mjs.map +0 -1
- package/dist/flowDiagram-NV44I4VS-ISKGEBMD.mjs +0 -2349
- package/dist/flowDiagram-NV44I4VS-ISKGEBMD.mjs.map +0 -1
- package/dist/ganttDiagram-LVOFAZNH-OAL7V7IR.mjs +0 -2344
- package/dist/ganttDiagram-LVOFAZNH-OAL7V7IR.mjs.map +0 -1
- package/dist/gitGraphDiagram-NY62KEGX-RKN2CCAZ.mjs +0 -1221
- package/dist/gitGraphDiagram-NY62KEGX-RKN2CCAZ.mjs.map +0 -1
- package/dist/glimmer-js-B32LCGFA.mjs +0 -19
- package/dist/glimmer-js-B32LCGFA.mjs.map +0 -1
- package/dist/glimmer-ts-4PHFAQCG.mjs +0 -19
- package/dist/glimmer-ts-4PHFAQCG.mjs.map +0 -1
- package/dist/hack-3ZNSL4KD.mjs +0 -17
- package/dist/hack-3ZNSL4KD.mjs.map +0 -1
- package/dist/handlebars-ICBC3AZK.mjs +0 -19
- package/dist/handlebars-ICBC3AZK.mjs.map +0 -1
- package/dist/html-BGY5P773.mjs +0 -6
- package/dist/html-BGY5P773.mjs.map +0 -1
- package/dist/html-derivative-3HGXHHFE.mjs +0 -7
- package/dist/html-derivative-3HGXHHFE.mjs.map +0 -1
- package/dist/index.css +0 -2385
- package/dist/index.css.map +0 -1
- package/dist/infoDiagram-F6ZHWCRC-Z7KMJJ45.mjs +0 -49
- package/dist/infoDiagram-F6ZHWCRC-Z7KMJJ45.mjs.map +0 -1
- package/dist/jinja-WL6HNMB5.mjs +0 -22
- package/dist/jinja-WL6HNMB5.mjs.map +0 -1
- package/dist/journeyDiagram-XKPGCS4Q-BMTOBHZ4.mjs +0 -1259
- package/dist/journeyDiagram-XKPGCS4Q-BMTOBHZ4.mjs.map +0 -1
- package/dist/kanban-definition-3W4ZIXB7-MVFRARF4.mjs +0 -1062
- package/dist/kanban-definition-3W4ZIXB7-MVFRARF4.mjs.map +0 -1
- package/dist/katex-4R42CMCB.mjs +0 -4
- package/dist/katex-4R42CMCB.mjs.map +0 -1
- package/dist/liquid-YS3YPW54.mjs +0 -19
- package/dist/liquid-YS3YPW54.mjs.map +0 -1
- package/dist/logo-mark-OHF64HAY.svg +0 -8
- package/dist/mdc-A66KLOT4.mjs +0 -20
- package/dist/mdc-A66KLOT4.mjs.map +0 -1
- package/dist/mermaid.core-4OWTNZSL.mjs +0 -1587
- package/dist/mermaid.core-4OWTNZSL.mjs.map +0 -1
- package/dist/mermaid.core-7AUE4M6E.mjs +0 -1587
- package/dist/mermaid.core-7AUE4M6E.mjs.map +0 -1
- package/dist/mindmap-definition-VGOIOE7T-7FMA2CPY.mjs +0 -1112
- package/dist/mindmap-definition-VGOIOE7T-7FMA2CPY.mjs.map +0 -1
- package/dist/mindmap-definition-VGOIOE7T-VNF7JZOY.mjs +0 -1112
- package/dist/mindmap-definition-VGOIOE7T-VNF7JZOY.mjs.map +0 -1
- package/dist/nim-HUBKBJHZ.mjs +0 -26
- package/dist/nim-HUBKBJHZ.mjs.map +0 -1
- package/dist/perl-QHAMWWQ5.mjs +0 -22
- package/dist/perl-QHAMWWQ5.mjs.map +0 -1
- package/dist/php-FS5GKSPN.mjs +0 -11
- package/dist/php-FS5GKSPN.mjs.map +0 -1
- package/dist/pieDiagram-ADFJNKIX-EER3WTCU.mjs +0 -200
- package/dist/pieDiagram-ADFJNKIX-EER3WTCU.mjs.map +0 -1
- package/dist/pug-WTY5FMEA.mjs +0 -17
- package/dist/pug-WTY5FMEA.mjs.map +0 -1
- package/dist/quadrantDiagram-AYHSOK5B-WQCIRJOK.mjs +0 -1344
- package/dist/quadrantDiagram-AYHSOK5B-WQCIRJOK.mjs.map +0 -1
- package/dist/razor-BAB7LFWZ.mjs +0 -17
- package/dist/razor-BAB7LFWZ.mjs.map +0 -1
- package/dist/requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs +0 -1179
- package/dist/requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs.map +0 -1
- package/dist/rst-AY7U27YM.mjs +0 -41
- package/dist/rst-AY7U27YM.mjs.map +0 -1
- package/dist/rst-Y2VLYMJI.mjs +0 -41
- package/dist/rst-Y2VLYMJI.mjs.map +0 -1
- package/dist/ruby-K4BNEYWG.mjs +0 -22
- package/dist/ruby-K4BNEYWG.mjs.map +0 -1
- package/dist/sankeyDiagram-TZEHDZUN-H7BVEXGO.mjs +0 -1230
- package/dist/sankeyDiagram-TZEHDZUN-H7BVEXGO.mjs.map +0 -1
- package/dist/sequenceDiagram-WL72ISMW-XBGZSOYI.mjs +0 -3885
- package/dist/sequenceDiagram-WL72ISMW-XBGZSOYI.mjs.map +0 -1
- package/dist/soy-5QMQV2KL.mjs +0 -15
- package/dist/soy-5QMQV2KL.mjs.map +0 -1
- package/dist/stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs +0 -467
- package/dist/stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs.map +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-SPDO7R6D.mjs +0 -37
- package/dist/stateDiagram-v2-4FDKWEC3-SPDO7R6D.mjs.map +0 -1
- package/dist/templ-VSARRSO2.mjs +0 -17
- package/dist/templ-VSARRSO2.mjs.map +0 -1
- package/dist/timeline-definition-IT6M3QCI-PX4A2RIH.mjs +0 -1226
- package/dist/timeline-definition-IT6M3QCI-PX4A2RIH.mjs.map +0 -1
- package/dist/ts-tags-YK3Q2LIW.mjs +0 -68
- package/dist/ts-tags-YK3Q2LIW.mjs.map +0 -1
- package/dist/twig-HNMWLN6H.mjs +0 -40
- package/dist/twig-HNMWLN6H.mjs.map +0 -1
- package/dist/vue-7OSX6ZY5.mjs +0 -10
- package/dist/vue-7OSX6ZY5.mjs.map +0 -1
- package/dist/vue-html-AQH2V2EU.mjs +0 -20
- package/dist/vue-html-AQH2V2EU.mjs.map +0 -1
- package/dist/vue-vine-GCYT2IGV.mjs +0 -29
- package/dist/vue-vine-GCYT2IGV.mjs.map +0 -1
- package/dist/xychartDiagram-PRI3JC2R-65KZQZDU.mjs +0 -1865
- package/dist/xychartDiagram-PRI3JC2R-65KZQZDU.mjs.map +0 -1
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { populateCommonDb } from './chunk-TTWRCDIC.mjs';
|
|
2
|
-
import { parse } from './chunk-S7QNUGK2.mjs';
|
|
3
|
-
import { selectSvgElement } from './chunk-DKZXT4VQ.mjs';
|
|
4
|
-
import './chunk-WJTQD7PW.mjs';
|
|
5
|
-
import './chunk-TO2PW746.mjs';
|
|
6
|
-
import './chunk-4ZPM5JLE.mjs';
|
|
7
|
-
import './chunk-UDJFODZR.mjs';
|
|
8
|
-
import './chunk-TKSZKNX6.mjs';
|
|
9
|
-
import './chunk-FBSCEMOY.mjs';
|
|
10
|
-
import './chunk-LAALMHUD.mjs';
|
|
11
|
-
import './chunk-6BGV5W65.mjs';
|
|
12
|
-
import './chunk-GKV77NWJ.mjs';
|
|
13
|
-
import './chunk-JIP2SELZ.mjs';
|
|
14
|
-
import { cleanAndMerge } from './chunk-GU7334FJ.mjs';
|
|
15
|
-
import './chunk-ZGPFSRJJ.mjs';
|
|
16
|
-
import { defaultConfig_default, setAccTitle, getAccTitle, setDiagramTitle, getDiagramTitle, getAccDescription, setAccDescription, getConfig, clear, configureSvgSize } from './chunk-HNKEYT4A.mjs';
|
|
17
|
-
import './chunk-7O6EKIFY.mjs';
|
|
18
|
-
import { __name, log } from './chunk-WHXHCOFP.mjs';
|
|
19
|
-
import './chunk-SH6YXSHR.mjs';
|
|
20
|
-
|
|
21
|
-
// ../../node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.mjs
|
|
22
|
-
var DEFAULT_PACKET_CONFIG = defaultConfig_default.packet;
|
|
23
|
-
var PacketDB = class {
|
|
24
|
-
constructor() {
|
|
25
|
-
this.packet = [];
|
|
26
|
-
this.setAccTitle = setAccTitle;
|
|
27
|
-
this.getAccTitle = getAccTitle;
|
|
28
|
-
this.setDiagramTitle = setDiagramTitle;
|
|
29
|
-
this.getDiagramTitle = getDiagramTitle;
|
|
30
|
-
this.getAccDescription = getAccDescription;
|
|
31
|
-
this.setAccDescription = setAccDescription;
|
|
32
|
-
}
|
|
33
|
-
static {
|
|
34
|
-
__name(this, "PacketDB");
|
|
35
|
-
}
|
|
36
|
-
getConfig() {
|
|
37
|
-
const config = cleanAndMerge({
|
|
38
|
-
...DEFAULT_PACKET_CONFIG,
|
|
39
|
-
...getConfig().packet
|
|
40
|
-
});
|
|
41
|
-
if (config.showBits) {
|
|
42
|
-
config.paddingY += 10;
|
|
43
|
-
}
|
|
44
|
-
return config;
|
|
45
|
-
}
|
|
46
|
-
getPacket() {
|
|
47
|
-
return this.packet;
|
|
48
|
-
}
|
|
49
|
-
pushWord(word) {
|
|
50
|
-
if (word.length > 0) {
|
|
51
|
-
this.packet.push(word);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
clear() {
|
|
55
|
-
clear();
|
|
56
|
-
this.packet = [];
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
var maxPacketSize = 1e4;
|
|
60
|
-
var populate = /* @__PURE__ */ __name((ast, db) => {
|
|
61
|
-
populateCommonDb(ast, db);
|
|
62
|
-
let lastBit = -1;
|
|
63
|
-
let word = [];
|
|
64
|
-
let row = 1;
|
|
65
|
-
const { bitsPerRow } = db.getConfig();
|
|
66
|
-
for (let { start, end, bits, label } of ast.blocks) {
|
|
67
|
-
if (start !== void 0 && end !== void 0 && end < start) {
|
|
68
|
-
throw new Error(`Packet block ${start} - ${end} is invalid. End must be greater than start.`);
|
|
69
|
-
}
|
|
70
|
-
start ??= lastBit + 1;
|
|
71
|
-
if (start !== lastBit + 1) {
|
|
72
|
-
throw new Error(
|
|
73
|
-
`Packet block ${start} - ${end ?? start} is not contiguous. It should start from ${lastBit + 1}.`
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
if (bits === 0) {
|
|
77
|
-
throw new Error(`Packet block ${start} is invalid. Cannot have a zero bit field.`);
|
|
78
|
-
}
|
|
79
|
-
end ??= start + (bits ?? 1) - 1;
|
|
80
|
-
bits ??= end - start + 1;
|
|
81
|
-
lastBit = end;
|
|
82
|
-
log.debug(`Packet block ${start} - ${lastBit} with label ${label}`);
|
|
83
|
-
while (word.length <= bitsPerRow + 1 && db.getPacket().length < maxPacketSize) {
|
|
84
|
-
const [block, nextBlock] = getNextFittingBlock({ start, end, bits, label }, row, bitsPerRow);
|
|
85
|
-
word.push(block);
|
|
86
|
-
if (block.end + 1 === row * bitsPerRow) {
|
|
87
|
-
db.pushWord(word);
|
|
88
|
-
word = [];
|
|
89
|
-
row++;
|
|
90
|
-
}
|
|
91
|
-
if (!nextBlock) {
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
({ start, end, bits, label } = nextBlock);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
db.pushWord(word);
|
|
98
|
-
}, "populate");
|
|
99
|
-
var getNextFittingBlock = /* @__PURE__ */ __name((block, row, bitsPerRow) => {
|
|
100
|
-
if (block.start === void 0) {
|
|
101
|
-
throw new Error("start should have been set during first phase");
|
|
102
|
-
}
|
|
103
|
-
if (block.end === void 0) {
|
|
104
|
-
throw new Error("end should have been set during first phase");
|
|
105
|
-
}
|
|
106
|
-
if (block.start > block.end) {
|
|
107
|
-
throw new Error(`Block start ${block.start} is greater than block end ${block.end}.`);
|
|
108
|
-
}
|
|
109
|
-
if (block.end + 1 <= row * bitsPerRow) {
|
|
110
|
-
return [block, void 0];
|
|
111
|
-
}
|
|
112
|
-
const rowEnd = row * bitsPerRow - 1;
|
|
113
|
-
const rowStart = row * bitsPerRow;
|
|
114
|
-
return [
|
|
115
|
-
{
|
|
116
|
-
start: block.start,
|
|
117
|
-
end: rowEnd,
|
|
118
|
-
label: block.label,
|
|
119
|
-
bits: rowEnd - block.start
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
start: rowStart,
|
|
123
|
-
end: block.end,
|
|
124
|
-
label: block.label,
|
|
125
|
-
bits: block.end - rowStart
|
|
126
|
-
}
|
|
127
|
-
];
|
|
128
|
-
}, "getNextFittingBlock");
|
|
129
|
-
var parser = {
|
|
130
|
-
// @ts-expect-error - PacketDB is not assignable to DiagramDB
|
|
131
|
-
parser: { yy: void 0 },
|
|
132
|
-
parse: /* @__PURE__ */ __name(async (input) => {
|
|
133
|
-
const ast = await parse("packet", input);
|
|
134
|
-
const db = parser.parser?.yy;
|
|
135
|
-
if (!(db instanceof PacketDB)) {
|
|
136
|
-
throw new Error(
|
|
137
|
-
"parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
log.debug(ast);
|
|
141
|
-
populate(ast, db);
|
|
142
|
-
}, "parse")
|
|
143
|
-
};
|
|
144
|
-
var draw = /* @__PURE__ */ __name((_text, id, _version, diagram2) => {
|
|
145
|
-
const db = diagram2.db;
|
|
146
|
-
const config = db.getConfig();
|
|
147
|
-
const { rowHeight, paddingY, bitWidth, bitsPerRow } = config;
|
|
148
|
-
const words = db.getPacket();
|
|
149
|
-
const title = db.getDiagramTitle();
|
|
150
|
-
const totalRowHeight = rowHeight + paddingY;
|
|
151
|
-
const svgHeight = totalRowHeight * (words.length + 1) - (title ? 0 : rowHeight);
|
|
152
|
-
const svgWidth = bitWidth * bitsPerRow + 2;
|
|
153
|
-
const svg = selectSvgElement(id);
|
|
154
|
-
svg.attr("viewbox", `0 0 ${svgWidth} ${svgHeight}`);
|
|
155
|
-
configureSvgSize(svg, svgHeight, svgWidth, config.useMaxWidth);
|
|
156
|
-
for (const [word, packet] of words.entries()) {
|
|
157
|
-
drawWord(svg, packet, word, config);
|
|
158
|
-
}
|
|
159
|
-
svg.append("text").text(title).attr("x", svgWidth / 2).attr("y", svgHeight - totalRowHeight / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
|
|
160
|
-
}, "draw");
|
|
161
|
-
var drawWord = /* @__PURE__ */ __name((svg, word, rowNumber, { rowHeight, paddingX, paddingY, bitWidth, bitsPerRow, showBits }) => {
|
|
162
|
-
const group = svg.append("g");
|
|
163
|
-
const wordY = rowNumber * (rowHeight + paddingY) + paddingY;
|
|
164
|
-
for (const block of word) {
|
|
165
|
-
const blockX = block.start % bitsPerRow * bitWidth + 1;
|
|
166
|
-
const width = (block.end - block.start + 1) * bitWidth - paddingX;
|
|
167
|
-
group.append("rect").attr("x", blockX).attr("y", wordY).attr("width", width).attr("height", rowHeight).attr("class", "packetBlock");
|
|
168
|
-
group.append("text").attr("x", blockX + width / 2).attr("y", wordY + rowHeight / 2).attr("class", "packetLabel").attr("dominant-baseline", "middle").attr("text-anchor", "middle").text(block.label);
|
|
169
|
-
if (!showBits) {
|
|
170
|
-
continue;
|
|
171
|
-
}
|
|
172
|
-
const isSingleBlock = block.end === block.start;
|
|
173
|
-
const bitNumberY = wordY - 2;
|
|
174
|
-
group.append("text").attr("x", blockX + (isSingleBlock ? width / 2 : 0)).attr("y", bitNumberY).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", isSingleBlock ? "middle" : "start").text(block.start);
|
|
175
|
-
if (!isSingleBlock) {
|
|
176
|
-
group.append("text").attr("x", blockX + width).attr("y", bitNumberY).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(block.end);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}, "drawWord");
|
|
180
|
-
var renderer = { draw };
|
|
181
|
-
var defaultPacketStyleOptions = {
|
|
182
|
-
byteFontSize: "10px",
|
|
183
|
-
startByteColor: "black",
|
|
184
|
-
endByteColor: "black",
|
|
185
|
-
labelColor: "black",
|
|
186
|
-
labelFontSize: "12px",
|
|
187
|
-
titleColor: "black",
|
|
188
|
-
titleFontSize: "14px",
|
|
189
|
-
blockStrokeColor: "black",
|
|
190
|
-
blockStrokeWidth: "1",
|
|
191
|
-
blockFillColor: "#efefef"
|
|
192
|
-
};
|
|
193
|
-
var styles = /* @__PURE__ */ __name(({ packet } = {}) => {
|
|
194
|
-
const options = cleanAndMerge(defaultPacketStyleOptions, packet);
|
|
195
|
-
return `
|
|
196
|
-
.packetByte {
|
|
197
|
-
font-size: ${options.byteFontSize};
|
|
198
|
-
}
|
|
199
|
-
.packetByte.start {
|
|
200
|
-
fill: ${options.startByteColor};
|
|
201
|
-
}
|
|
202
|
-
.packetByte.end {
|
|
203
|
-
fill: ${options.endByteColor};
|
|
204
|
-
}
|
|
205
|
-
.packetLabel {
|
|
206
|
-
fill: ${options.labelColor};
|
|
207
|
-
font-size: ${options.labelFontSize};
|
|
208
|
-
}
|
|
209
|
-
.packetTitle {
|
|
210
|
-
fill: ${options.titleColor};
|
|
211
|
-
font-size: ${options.titleFontSize};
|
|
212
|
-
}
|
|
213
|
-
.packetBlock {
|
|
214
|
-
stroke: ${options.blockStrokeColor};
|
|
215
|
-
stroke-width: ${options.blockStrokeWidth};
|
|
216
|
-
fill: ${options.blockFillColor};
|
|
217
|
-
}
|
|
218
|
-
`;
|
|
219
|
-
}, "styles");
|
|
220
|
-
var diagram = {
|
|
221
|
-
parser,
|
|
222
|
-
get db() {
|
|
223
|
-
return new PacketDB();
|
|
224
|
-
},
|
|
225
|
-
renderer,
|
|
226
|
-
styles
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
export { diagram };
|
|
230
|
-
//# sourceMappingURL=diagram-S2PKOQOG-FOQYPB22.mjs.map
|
|
231
|
-
//# sourceMappingURL=diagram-S2PKOQOG-FOQYPB22.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.mjs"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2BA,IAAI,wBAAwB,qBAAA,CAAsB,MAAA;AAClD,IAAI,WAAW,MAAM;AAAA,EACnB,WAAA,GAAc;AACZ,IAAA,IAAA,CAAK,SAAS,EAAC;AACf,IAAA,IAAA,CAAK,WAAA,GAAc,WAAA;AACnB,IAAA,IAAA,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AG1B,QAAQ,UAAU,CAAA;AAAA,aAAA,EACb,QAAQ,aAAa,CAAA;AAAA;AAAA;AAAA,UAAA,EAGxB,QAAQ,gBAAgB,CAAA;AAAA,gBAAA,EAClB,QAAQ,gBAAgB,CAAA;AAAA,QAAA,EAChC,QAAQ,cAAc,CAAA;AAAA;AAAA,CAAA,CAAA;AAGhC,CAAA,EAAG,QAAQ,CAAA;AAGX,IAAI,OAAA,GAAU;AAAA,EACZ,MAAA;AAAA,EACA,IAAI,EAAA,GAAK;AACP,IAAA,OAAO,IAAI,QAAA,EAAS;AAAA,EACtB,CAAA;AAAA,EACA,QAAA;AAAA,EACA;AACF","file":"diagram-S2PKOQOG-FOQYPB22.mjs","sourcesContent":["import {\n selectSvgElement\n} from \"./chunk-EXTU4WIE.mjs\";\nimport {\n populateCommonDb\n} from \"./chunk-4BX2VUAB.mjs\";\nimport {\n cleanAndMerge\n} from \"./chunk-S3R3BYOJ.mjs\";\nimport {\n clear,\n configureSvgSize,\n defaultConfig_default,\n getAccDescription,\n getAccTitle,\n getConfig,\n getDiagramTitle,\n setAccDescription,\n setAccTitle,\n setDiagramTitle\n} from \"./chunk-ABZYJK2D.mjs\";\nimport {\n __name,\n log\n} from \"./chunk-AGHRB4JF.mjs\";\n\n// src/diagrams/packet/db.ts\nvar DEFAULT_PACKET_CONFIG = defaultConfig_default.packet;\nvar PacketDB = class {\n constructor() {\n this.packet = [];\n this.setAccTitle = setAccTitle;\n this.getAccTitle = getAccTitle;\n this.setDiagramTitle = setDiagramTitle;\n this.getDiagramTitle = getDiagramTitle;\n this.getAccDescription = getAccDescription;\n this.setAccDescription = setAccDescription;\n }\n static {\n __name(this, \"PacketDB\");\n }\n getConfig() {\n const config = cleanAndMerge({\n ...DEFAULT_PACKET_CONFIG,\n ...getConfig().packet\n });\n if (config.showBits) {\n config.paddingY += 10;\n }\n return config;\n }\n getPacket() {\n return this.packet;\n }\n pushWord(word) {\n if (word.length > 0) {\n this.packet.push(word);\n }\n }\n clear() {\n clear();\n this.packet = [];\n }\n};\n\n// src/diagrams/packet/parser.ts\nimport { parse } from \"@mermaid-js/parser\";\nvar maxPacketSize = 1e4;\nvar populate = /* @__PURE__ */ __name((ast, db) => {\n populateCommonDb(ast, db);\n let lastBit = -1;\n let word = [];\n let row = 1;\n const { bitsPerRow } = db.getConfig();\n for (let { start, end, bits, label } of ast.blocks) {\n if (start !== void 0 && end !== void 0 && end < start) {\n throw new Error(`Packet block ${start} - ${end} is invalid. End must be greater than start.`);\n }\n start ??= lastBit + 1;\n if (start !== lastBit + 1) {\n throw new Error(\n `Packet block ${start} - ${end ?? start} is not contiguous. It should start from ${lastBit + 1}.`\n );\n }\n if (bits === 0) {\n throw new Error(`Packet block ${start} is invalid. Cannot have a zero bit field.`);\n }\n end ??= start + (bits ?? 1) - 1;\n bits ??= end - start + 1;\n lastBit = end;\n log.debug(`Packet block ${start} - ${lastBit} with label ${label}`);\n while (word.length <= bitsPerRow + 1 && db.getPacket().length < maxPacketSize) {\n const [block, nextBlock] = getNextFittingBlock({ start, end, bits, label }, row, bitsPerRow);\n word.push(block);\n if (block.end + 1 === row * bitsPerRow) {\n db.pushWord(word);\n word = [];\n row++;\n }\n if (!nextBlock) {\n break;\n }\n ({ start, end, bits, label } = nextBlock);\n }\n }\n db.pushWord(word);\n}, \"populate\");\nvar getNextFittingBlock = /* @__PURE__ */ __name((block, row, bitsPerRow) => {\n if (block.start === void 0) {\n throw new Error(\"start should have been set during first phase\");\n }\n if (block.end === void 0) {\n throw new Error(\"end should have been set during first phase\");\n }\n if (block.start > block.end) {\n throw new Error(`Block start ${block.start} is greater than block end ${block.end}.`);\n }\n if (block.end + 1 <= row * bitsPerRow) {\n return [block, void 0];\n }\n const rowEnd = row * bitsPerRow - 1;\n const rowStart = row * bitsPerRow;\n return [\n {\n start: block.start,\n end: rowEnd,\n label: block.label,\n bits: rowEnd - block.start\n },\n {\n start: rowStart,\n end: block.end,\n label: block.label,\n bits: block.end - rowStart\n }\n ];\n}, \"getNextFittingBlock\");\nvar parser = {\n // @ts-expect-error - PacketDB is not assignable to DiagramDB\n parser: { yy: void 0 },\n parse: /* @__PURE__ */ __name(async (input) => {\n const ast = await parse(\"packet\", input);\n const db = parser.parser?.yy;\n if (!(db instanceof PacketDB)) {\n throw new Error(\n \"parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.\"\n );\n }\n log.debug(ast);\n populate(ast, db);\n }, \"parse\")\n};\n\n// src/diagrams/packet/renderer.ts\nvar draw = /* @__PURE__ */ __name((_text, id, _version, diagram2) => {\n const db = diagram2.db;\n const config = db.getConfig();\n const { rowHeight, paddingY, bitWidth, bitsPerRow } = config;\n const words = db.getPacket();\n const title = db.getDiagramTitle();\n const totalRowHeight = rowHeight + paddingY;\n const svgHeight = totalRowHeight * (words.length + 1) - (title ? 0 : rowHeight);\n const svgWidth = bitWidth * bitsPerRow + 2;\n const svg = selectSvgElement(id);\n svg.attr(\"viewbox\", `0 0 ${svgWidth} ${svgHeight}`);\n configureSvgSize(svg, svgHeight, svgWidth, config.useMaxWidth);\n for (const [word, packet] of words.entries()) {\n drawWord(svg, packet, word, config);\n }\n svg.append(\"text\").text(title).attr(\"x\", svgWidth / 2).attr(\"y\", svgHeight - totalRowHeight / 2).attr(\"dominant-baseline\", \"middle\").attr(\"text-anchor\", \"middle\").attr(\"class\", \"packetTitle\");\n}, \"draw\");\nvar drawWord = /* @__PURE__ */ __name((svg, word, rowNumber, { rowHeight, paddingX, paddingY, bitWidth, bitsPerRow, showBits }) => {\n const group = svg.append(\"g\");\n const wordY = rowNumber * (rowHeight + paddingY) + paddingY;\n for (const block of word) {\n const blockX = block.start % bitsPerRow * bitWidth + 1;\n const width = (block.end - block.start + 1) * bitWidth - paddingX;\n group.append(\"rect\").attr(\"x\", blockX).attr(\"y\", wordY).attr(\"width\", width).attr(\"height\", rowHeight).attr(\"class\", \"packetBlock\");\n group.append(\"text\").attr(\"x\", blockX + width / 2).attr(\"y\", wordY + rowHeight / 2).attr(\"class\", \"packetLabel\").attr(\"dominant-baseline\", \"middle\").attr(\"text-anchor\", \"middle\").text(block.label);\n if (!showBits) {\n continue;\n }\n const isSingleBlock = block.end === block.start;\n const bitNumberY = wordY - 2;\n group.append(\"text\").attr(\"x\", blockX + (isSingleBlock ? width / 2 : 0)).attr(\"y\", bitNumberY).attr(\"class\", \"packetByte start\").attr(\"dominant-baseline\", \"auto\").attr(\"text-anchor\", isSingleBlock ? \"middle\" : \"start\").text(block.start);\n if (!isSingleBlock) {\n group.append(\"text\").attr(\"x\", blockX + width).attr(\"y\", bitNumberY).attr(\"class\", \"packetByte end\").attr(\"dominant-baseline\", \"auto\").attr(\"text-anchor\", \"end\").text(block.end);\n }\n }\n}, \"drawWord\");\nvar renderer = { draw };\n\n// src/diagrams/packet/styles.ts\nvar defaultPacketStyleOptions = {\n byteFontSize: \"10px\",\n startByteColor: \"black\",\n endByteColor: \"black\",\n labelColor: \"black\",\n labelFontSize: \"12px\",\n titleColor: \"black\",\n titleFontSize: \"14px\",\n blockStrokeColor: \"black\",\n blockStrokeWidth: \"1\",\n blockFillColor: \"#efefef\"\n};\nvar styles = /* @__PURE__ */ __name(({ packet } = {}) => {\n const options = cleanAndMerge(defaultPacketStyleOptions, packet);\n return `\n\t.packetByte {\n\t\tfont-size: ${options.byteFontSize};\n\t}\n\t.packetByte.start {\n\t\tfill: ${options.startByteColor};\n\t}\n\t.packetByte.end {\n\t\tfill: ${options.endByteColor};\n\t}\n\t.packetLabel {\n\t\tfill: ${options.labelColor};\n\t\tfont-size: ${options.labelFontSize};\n\t}\n\t.packetTitle {\n\t\tfill: ${options.titleColor};\n\t\tfont-size: ${options.titleFontSize};\n\t}\n\t.packetBlock {\n\t\tstroke: ${options.blockStrokeColor};\n\t\tstroke-width: ${options.blockStrokeWidth};\n\t\tfill: ${options.blockFillColor};\n\t}\n\t`;\n}, \"styles\");\n\n// src/diagrams/packet/diagram.ts\nvar diagram = {\n parser,\n get db() {\n return new PacketDB();\n },\n renderer,\n styles\n};\nexport {\n diagram\n};\n"]}
|
package/dist/edge-JOI74UJM.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { html_derivative_default } from './chunk-ND4RYWG7.mjs';
|
|
2
|
-
import { typescript_default } from './chunk-A4JSDHKD.mjs';
|
|
3
|
-
import { html_default } from './chunk-HTMHAYGC.mjs';
|
|
4
|
-
import './chunk-YE6B5S5H.mjs';
|
|
5
|
-
import './chunk-ACXAQWRF.mjs';
|
|
6
|
-
import './chunk-SH6YXSHR.mjs';
|
|
7
|
-
|
|
8
|
-
// ../../node_modules/.pnpm/@shikijs+langs@3.13.0/node_modules/@shikijs/langs/dist/edge.mjs
|
|
9
|
-
var lang = Object.freeze(JSON.parse('{"displayName":"Edge","injections":{"text.html.edge - (meta.embedded | meta.tag | comment.block.edge), L:(text.html.edge meta.tag - (comment.block.edge | meta.embedded.block.edge)), L:(source.ts.embedded.html - (comment.block.edge | meta.embedded.block.edge))":{"patterns":[{"include":"#comment"},{"include":"#escapedMustache"},{"include":"#safeMustache"},{"include":"#mustache"},{"include":"#nonSeekableTag"},{"include":"#tag"}]}},"name":"edge","patterns":[{"include":"text.html.basic"},{"include":"text.html.derivative"}],"repository":{"comment":{"begin":"\\\\{\\\\{--","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.edge"}},"end":"--}}","endCaptures":{"0":{"name":"punctuation.definition.comment.end.edge"}},"name":"comment.block"},"escapedMustache":{"begin":"@\\\\{\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.edge"}},"end":"}}","endCaptures":{"0":{"name":"punctuation.definition.comment.end.edge"}},"name":"comment.block"},"mustache":{"begin":"\\\\{\\\\{","beginCaptures":{"0":{"name":"punctuation.mustache.begin"}},"end":"}}","endCaptures":{"0":{"name":"punctuation.mustache.end"}},"name":"meta.embedded.block.javascript","patterns":[{"include":"source.ts#expression"}]},"nonSeekableTag":{"captures":{"2":{"name":"support.function.edge"}},"match":"^(\\\\s*)((@{1,2})(!)?([.A-Z_a-z]+))(~)?$","name":"meta.embedded.block.javascript","patterns":[{"include":"source.ts#expression"}]},"safeMustache":{"begin":"\\\\{\\\\{\\\\{","beginCaptures":{"0":{"name":"punctuation.mustache.begin"}},"end":"}}}","endCaptures":{"0":{"name":"punctuation.mustache.end"}},"name":"meta.embedded.block.javascript","patterns":[{"include":"source.ts#expression"}]},"tag":{"begin":"^(\\\\s*)((@{1,2})(!)?([.A-Z_a-z]+)(\\\\s{0,2}))(\\\\()","beginCaptures":{"2":{"name":"support.function.edge"},"7":{"name":"punctuation.paren.open"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.paren.close"}},"name":"meta.embedded.block.javascript","patterns":[{"include":"source.ts#expression"}]}},"scopeName":"text.html.edge","embeddedLangs":["typescript","html","html-derivative"]}'));
|
|
10
|
-
var edge_default = [
|
|
11
|
-
...typescript_default,
|
|
12
|
-
...html_default,
|
|
13
|
-
...html_derivative_default,
|
|
14
|
-
lang
|
|
15
|
-
];
|
|
16
|
-
|
|
17
|
-
export { edge_default as default };
|
|
18
|
-
//# sourceMappingURL=edge-JOI74UJM.mjs.map
|
|
19
|
-
//# sourceMappingURL=edge-JOI74UJM.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/@shikijs+langs@3.13.0/node_modules/@shikijs/langs/dist/edge.mjs"],"names":[],"mappings":";;;;;;;;AAIA,IAAM,OAAO,MAAA,CAAO,MAAA,CAAO,IAAA,CAAK,KAAA,CAAM,0jEAA8zE,CAAC,CAAA;AAEr2E,IAAO,YAAA,GAAQ;AAAA,EACf,GAAG,kBAAA;AAAA,EACH,GAAG,YAAA;AAAA,EACH,GAAG,uBAAA;AAAA,EACH;AACA","file":"edge-JOI74UJM.mjs","sourcesContent":["import typescript from './typescript.mjs'\nimport html from './html.mjs'\nimport html_derivative from './html-derivative.mjs'\n\nconst lang = Object.freeze(JSON.parse(\"{\\\"displayName\\\":\\\"Edge\\\",\\\"injections\\\":{\\\"text.html.edge - (meta.embedded | meta.tag | comment.block.edge), L:(text.html.edge meta.tag - (comment.block.edge | meta.embedded.block.edge)), L:(source.ts.embedded.html - (comment.block.edge | meta.embedded.block.edge))\\\":{\\\"patterns\\\":[{\\\"include\\\":\\\"#comment\\\"},{\\\"include\\\":\\\"#escapedMustache\\\"},{\\\"include\\\":\\\"#safeMustache\\\"},{\\\"include\\\":\\\"#mustache\\\"},{\\\"include\\\":\\\"#nonSeekableTag\\\"},{\\\"include\\\":\\\"#tag\\\"}]}},\\\"name\\\":\\\"edge\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"text.html.basic\\\"},{\\\"include\\\":\\\"text.html.derivative\\\"}],\\\"repository\\\":{\\\"comment\\\":{\\\"begin\\\":\\\"\\\\\\\\{\\\\\\\\{--\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.comment.begin.edge\\\"}},\\\"end\\\":\\\"--}}\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.comment.end.edge\\\"}},\\\"name\\\":\\\"comment.block\\\"},\\\"escapedMustache\\\":{\\\"begin\\\":\\\"@\\\\\\\\{\\\\\\\\{\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.comment.begin.edge\\\"}},\\\"end\\\":\\\"}}\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.comment.end.edge\\\"}},\\\"name\\\":\\\"comment.block\\\"},\\\"mustache\\\":{\\\"begin\\\":\\\"\\\\\\\\{\\\\\\\\{\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.mustache.begin\\\"}},\\\"end\\\":\\\"}}\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.mustache.end\\\"}},\\\"name\\\":\\\"meta.embedded.block.javascript\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"source.ts#expression\\\"}]},\\\"nonSeekableTag\\\":{\\\"captures\\\":{\\\"2\\\":{\\\"name\\\":\\\"support.function.edge\\\"}},\\\"match\\\":\\\"^(\\\\\\\\s*)((@{1,2})(!)?([.A-Z_a-z]+))(~)?$\\\",\\\"name\\\":\\\"meta.embedded.block.javascript\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"source.ts#expression\\\"}]},\\\"safeMustache\\\":{\\\"begin\\\":\\\"\\\\\\\\{\\\\\\\\{\\\\\\\\{\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.mustache.begin\\\"}},\\\"end\\\":\\\"}}}\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.mustache.end\\\"}},\\\"name\\\":\\\"meta.embedded.block.javascript\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"source.ts#expression\\\"}]},\\\"tag\\\":{\\\"begin\\\":\\\"^(\\\\\\\\s*)((@{1,2})(!)?([.A-Z_a-z]+)(\\\\\\\\s{0,2}))(\\\\\\\\()\\\",\\\"beginCaptures\\\":{\\\"2\\\":{\\\"name\\\":\\\"support.function.edge\\\"},\\\"7\\\":{\\\"name\\\":\\\"punctuation.paren.open\\\"}},\\\"end\\\":\\\"\\\\\\\\)\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.paren.close\\\"}},\\\"name\\\":\\\"meta.embedded.block.javascript\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"source.ts#expression\\\"}]}},\\\"scopeName\\\":\\\"text.html.edge\\\",\\\"embeddedLangs\\\":[\\\"typescript\\\",\\\"html\\\",\\\"html-derivative\\\"]}\"))\n\nexport default [\n...typescript,\n...html,\n...html_derivative,\nlang\n]\n"]}
|
package/dist/elixir-FEL6DDPJ.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { html_default } from './chunk-HTMHAYGC.mjs';
|
|
2
|
-
import './chunk-YE6B5S5H.mjs';
|
|
3
|
-
import './chunk-ACXAQWRF.mjs';
|
|
4
|
-
import './chunk-SH6YXSHR.mjs';
|
|
5
|
-
|
|
6
|
-
// ../../node_modules/.pnpm/@shikijs+langs@3.13.0/node_modules/@shikijs/langs/dist/elixir.mjs
|
|
7
|
-
var lang = Object.freeze(JSON.parse(`{"displayName":"Elixir","fileTypes":["ex","exs"],"firstLineMatch":"^#!/.*\\\\belixir","foldingStartMarker":"(after|else|catch|rescue|->|[\\\\[{]|do)\\\\s*$","foldingStopMarker":"^\\\\s*(([]}]|after|else|catch|rescue)\\\\s*$|end\\\\b)","name":"elixir","patterns":[{"begin":"\\\\b(fn)\\\\b(?!.*->)","beginCaptures":{"1":{"name":"keyword.control.elixir"}},"end":"$","patterns":[{"include":"#core_syntax"}]},{"captures":{"1":{"name":"entity.name.type.class.elixir"},"2":{"name":"punctuation.separator.method.elixir"},"3":{"name":"entity.name.function.elixir"}},"match":"([A-Z]\\\\w+)\\\\s*(\\\\.)\\\\s*([_a-z]\\\\w*[!?]?)"},{"captures":{"1":{"name":"constant.other.symbol.elixir"},"2":{"name":"punctuation.separator.method.elixir"},"3":{"name":"entity.name.function.elixir"}},"match":"(:\\\\w+)\\\\s*(\\\\.)\\\\s*(_?\\\\w*[!?]?)"},{"captures":{"1":{"name":"keyword.operator.other.elixir"},"2":{"name":"entity.name.function.elixir"}},"match":"(\\\\|>)\\\\s*([_a-z]\\\\w*[!?]?)"},{"match":"\\\\b[_a-z]\\\\w*[!?]?(?=\\\\s*\\\\.?\\\\s*\\\\()","name":"entity.name.function.elixir"},{"begin":"\\\\b(fn)\\\\b(?=.*->)","beginCaptures":{"1":{"name":"keyword.control.elixir"}},"end":"(?>(->)|(when)|(\\\\)))","endCaptures":{"1":{"name":"keyword.operator.other.elixir"},"2":{"name":"keyword.control.elixir"},"3":{"name":"punctuation.section.function.elixir"}},"patterns":[{"include":"#core_syntax"}]},{"include":"#core_syntax"},{"begin":"^(?=.*->)((?![^\\"']*([\\"'])[^\\"']*->)|(?=.*->[^\\"']*([\\"'])[^\\"']*->))((?!.*\\\\([^)]*->)|(?=[^()]*->)|(?=\\\\s*\\\\(.*\\\\).*->))((?!.*\\\\b(fn)\\\\b)|(?=.*->.*\\\\bfn\\\\b))","beginCaptures":{"1":{"name":"keyword.control.elixir"}},"end":"(?>(->)|(when)|(\\\\)))","endCaptures":{"1":{"name":"keyword.operator.other.elixir"},"2":{"name":"keyword.control.elixir"},"3":{"name":"punctuation.section.function.elixir"}},"patterns":[{"include":"#core_syntax"}]}],"repository":{"core_syntax":{"patterns":[{"begin":"^\\\\s*(defmodule)\\\\b","beginCaptures":{"1":{"name":"keyword.control.module.elixir"}},"end":"\\\\b(do)\\\\b","endCaptures":{"1":{"name":"keyword.control.module.elixir"}},"name":"meta.module.elixir","patterns":[{"match":"\\\\b[A-Z]\\\\w*(?=\\\\.)","name":"entity.other.inherited-class.elixir"},{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.class.elixir"}]},{"begin":"^\\\\s*(defprotocol)\\\\b","beginCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"end":"\\\\b(do)\\\\b","endCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"name":"meta.protocol_declaration.elixir","patterns":[{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.protocol.elixir"}]},{"begin":"^\\\\s*(defimpl)\\\\b","beginCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"end":"\\\\b(do)\\\\b","endCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"name":"meta.protocol_implementation.elixir","patterns":[{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.protocol.elixir"}]},{"begin":"^\\\\s*(def(?:|macro|delegate|guard))\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|>[=>]?|<=>|<[<=]?|[%\\\\&/\`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))((\\\\()|\\\\s*)","beginCaptures":{"1":{"name":"keyword.control.module.elixir"},"2":{"name":"entity.name.function.public.elixir"},"4":{"name":"punctuation.section.function.elixir"}},"end":"\\\\b(do:)|\\\\b(do)\\\\b|(?=\\\\s+(def(?:|n|macro|delegate|guard))\\\\b)","endCaptures":{"1":{"name":"constant.other.keywords.elixir"},"2":{"name":"keyword.control.module.elixir"}},"name":"meta.function.public.elixir","patterns":[{"include":"$self"},{"begin":"\\\\s(\\\\\\\\\\\\\\\\)","beginCaptures":{"1":{"name":"keyword.operator.other.elixir"}},"end":"[),]|$","patterns":[{"include":"$self"}]},{"match":"\\\\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\\\\b","name":"keyword.control.elixir"}]},{"begin":"^\\\\s*(def(?:|n|macro|guard)p)\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|>[=>]?|<=>|<[<=]?|[%\\\\&/\`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))((\\\\()|\\\\s*)","beginCaptures":{"1":{"name":"keyword.control.module.elixir"},"2":{"name":"entity.name.function.private.elixir"},"4":{"name":"punctuation.section.function.elixir"}},"end":"\\\\b(do:)|\\\\b(do)\\\\b|(?=\\\\s+(def(?:p|macrop|guardp))\\\\b)","endCaptures":{"1":{"name":"constant.other.keywords.elixir"},"2":{"name":"keyword.control.module.elixir"}},"name":"meta.function.private.elixir","patterns":[{"include":"$self"},{"begin":"\\\\s(\\\\\\\\\\\\\\\\)","beginCaptures":{"1":{"name":"keyword.operator.other.elixir"}},"end":"[),]|$","patterns":[{"include":"$self"}]},{"match":"\\\\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\\\\b","name":"keyword.control.elixir"}]},{"begin":"\\\\s*~L\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"sigil.leex","patterns":[{"include":"text.elixir"},{"include":"text.html.basic"}]},{"begin":"\\\\s*~H\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"sigil.heex","patterns":[{"include":"text.elixir"},{"include":"text.html.basic"}]},{"begin":"@(module|type)?doc (~[a-z])?\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"comment.block.documentation.heredoc","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"@(module|type)?doc ~[A-Z]\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"comment.block.documentation.heredoc"},{"begin":"@(module|type)?doc (~[a-z])?'''","end":"\\\\s*'''","name":"comment.block.documentation.heredoc","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"@(module|type)?doc ~[A-Z]'''","end":"\\\\s*'''","name":"comment.block.documentation.heredoc"},{"match":"@(module|type)?doc false","name":"comment.block.documentation.false"},{"begin":"@(module|type)?doc \\"","end":"\\"","name":"comment.block.documentation.string","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"match":"(?<!\\\\.)\\\\b(do|end|case|bc|lc|for|if|cond|unless|try|receive|fn|defmodule|defp?|defprotocol|defimpl|defrecord|defstruct|defnp?|defmacrop?|defguardp?|defdelegate|defexception|defoverridable|exit|after|rescue|catch|else|raise|reraise|throw|import|require|alias|use|quote|unquote|super|with)\\\\b(?![!:?])","name":"keyword.control.elixir"},{"match":"(?<!\\\\.)\\\\b(and|not|or|when|xor|in)\\\\b","name":"keyword.operator.elixir"},{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.class.elixir"},{"match":"\\\\b(nil|true|false)\\\\b(?![!?])","name":"constant.language.elixir"},{"match":"\\\\b(__(CALLER|ENV|MODULE|DIR|STACKTRACE)__)\\\\b(?![!?])","name":"variable.language.elixir"},{"captures":{"1":{"name":"punctuation.definition.variable.elixir"}},"match":"(@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.module.elixir"},{"captures":{"1":{"name":"punctuation.definition.variable.elixir"}},"match":"(&)\\\\d+","name":"variable.other.anonymous.elixir"},{"match":"&(?!&)","name":"variable.other.anonymous.elixir"},{"captures":{"1":{"name":"punctuation.definition.variable.elixir"}},"match":"\\\\^[_a-z]\\\\w*","name":"variable.other.capture.elixir"},{"match":"\\\\b0x\\\\h(?>_?\\\\h)*\\\\b","name":"constant.numeric.hex.elixir"},{"match":"\\\\b\\\\d(?>_?\\\\d)*(\\\\.(?![^\\\\s\\\\d])(?>_?\\\\d)+)([Ee][-+]?\\\\d(?>_?\\\\d)*)?\\\\b","name":"constant.numeric.float.elixir"},{"match":"\\\\b\\\\d(?>_?\\\\d)*\\\\b","name":"constant.numeric.integer.elixir"},{"match":"\\\\b0b[01](?>_?[01])*\\\\b","name":"constant.numeric.binary.elixir"},{"match":"\\\\b0o[0-7](?>_?[0-7])*\\\\b","name":"constant.numeric.octal.elixir"},{"begin":":'","captures":{"0":{"name":"punctuation.definition.constant.elixir"}},"end":"'","name":"constant.other.symbol.single-quoted.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":":\\"","captures":{"0":{"name":"punctuation.definition.constant.elixir"}},"end":"\\"","name":"constant.other.symbol.double-quoted.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"'''","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*'''","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.single.heredoc.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.single.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.double.heredoc.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.double.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.heredoc.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"}[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"][a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":">[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\)[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z](\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\1[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[A-Z]\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.heredoc.literal.elixir"},{"begin":"~[A-Z]\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"}[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z]\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"][a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z]<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":">[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\)[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z](\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\1[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"captures":{"1":{"name":"punctuation.definition.constant.elixir"}},"match":"(?<!:)(:)(?>[A-Z_a-z][@\\\\w]*(?>[!?]|=(?![=>]))?|<>|===?|!==?|<<>>|<<<|>>>|~~~|::|<-|\\\\|>|=>|=~|[/=]|\\\\\\\\\\\\\\\\|\\\\*\\\\*?|\\\\.\\\\.?\\\\.?|\\\\.\\\\.//|>=?|<=?|&&?&?|\\\\+\\\\+?|--?|\\\\|\\\\|?\\\\|?|[!@]|%?\\\\{}|%|\\\\[]|\\\\^(\\\\^\\\\^)?)","name":"constant.other.symbol.elixir"},{"captures":{"1":{"name":"punctuation.definition.constant.elixir"}},"match":"(?>[A-Z_a-z][@\\\\w]*[!?]?)(:)(?!:)","name":"constant.other.keywords.elixir"},{"begin":"(^[\\\\t ]+)?(?=##)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.elixir"}},"end":"(?!#)","patterns":[{"begin":"##","beginCaptures":{"0":{"name":"punctuation.definition.comment.elixir"}},"end":"\\\\n","name":"comment.line.section.elixir"}]},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.elixir"}},"end":"(?!#)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.elixir"}},"end":"\\\\n","name":"comment.line.number-sign.elixir"}]},{"match":"\\\\b_([^_]\\\\w+[!?]?)","name":"comment.unused.elixir"},{"match":"\\\\b_\\\\b","name":"comment.wildcard.elixir"},{"match":"(?<!\\\\w)\\\\?(\\\\\\\\(x\\\\h{1,2}(?!\\\\h)\\\\b|[^CMx])|[^\\\\\\\\\\\\s])","name":"constant.numeric.elixir"},{"match":"\\\\+\\\\+|--|<\\\\|>","name":"keyword.operator.concatenation.elixir"},{"match":"\\\\|>|<~>|<>|<<<|>>>|~>>|<<~|~>|<~|<\\\\|>","name":"keyword.operator.sigils_1.elixir"},{"match":"&&&?","name":"keyword.operator.sigils_2.elixir"},{"match":"<-|\\\\\\\\\\\\\\\\","name":"keyword.operator.sigils_3.elixir"},{"match":"===?|!==?|<=?|>=?","name":"keyword.operator.comparison.elixir"},{"match":"(\\\\|\\\\|\\\\||&&&|\\\\^\\\\^\\\\^|<<<|>>>|~~~)","name":"keyword.operator.bitwise.elixir"},{"match":"(?<=[\\\\t ])!+|\\\\bnot\\\\b|&&|\\\\band\\\\b|\\\\|\\\\||\\\\bor\\\\b|\\\\bxor\\\\b","name":"keyword.operator.logical.elixir"},{"match":"([-*+/])","name":"keyword.operator.arithmetic.elixir"},{"match":"\\\\||\\\\+\\\\+|--|\\\\*\\\\*|\\\\\\\\\\\\\\\\|<-|<>|<<|>>|::|\\\\.\\\\.|//|\\\\|>|~|=>|&","name":"keyword.operator.other.elixir"},{"match":"=","name":"keyword.operator.assignment.elixir"},{"match":":","name":"punctuation.separator.other.elixir"},{"match":";","name":"punctuation.separator.statement.elixir"},{"match":",","name":"punctuation.separator.object.elixir"},{"match":"\\\\.","name":"punctuation.separator.method.elixir"},{"match":"[{}]","name":"punctuation.section.scope.elixir"},{"match":"[]\\\\[]","name":"punctuation.section.array.elixir"},{"match":"[()]","name":"punctuation.section.function.elixir"}]},"escaped_char":{"match":"\\\\\\\\(x[A-Fa-f\\\\d]{1,2}|.)","name":"constant.character.escaped.elixir"},"interpolated_elixir":{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.elixir"}},"contentName":"source.elixir","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.elixir"}},"name":"meta.embedded.line.elixir","patterns":[{"include":"#nest_curly_and_self"},{"include":"$self"}]},"nest_curly_and_self":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.elixir"}},"end":"}","patterns":[{"include":"#nest_curly_and_self"}]},{"include":"$self"}]}},"scopeName":"source.elixir","embeddedLangs":["html"]}`));
|
|
8
|
-
var elixir_default = [
|
|
9
|
-
...html_default,
|
|
10
|
-
lang
|
|
11
|
-
];
|
|
12
|
-
|
|
13
|
-
export { elixir_default as default };
|
|
14
|
-
//# sourceMappingURL=elixir-FEL6DDPJ.mjs.map
|
|
15
|
-
//# sourceMappingURL=elixir-FEL6DDPJ.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/@shikijs+langs@3.13.0/node_modules/@shikijs/langs/dist/elixir.mjs"],"names":[],"mappings":";;;;;;AAEA,IAAM,OAAO,MAAA,CAAO,MAAA,CAAO,IAAA,CAAK,KAAA,CAAM,+xfAAyijB,CAAC,CAAA;AAEhljB,IAAO,cAAA,GAAQ;AAAA,EACf,GAAG,YAAA;AAAA,EACH;AACA","file":"elixir-FEL6DDPJ.mjs","sourcesContent":["import html from './html.mjs'\n\nconst lang = Object.freeze(JSON.parse(\"{\\\"displayName\\\":\\\"Elixir\\\",\\\"fileTypes\\\":[\\\"ex\\\",\\\"exs\\\"],\\\"firstLineMatch\\\":\\\"^#!/.*\\\\\\\\belixir\\\",\\\"foldingStartMarker\\\":\\\"(after|else|catch|rescue|->|[\\\\\\\\[{]|do)\\\\\\\\s*$\\\",\\\"foldingStopMarker\\\":\\\"^\\\\\\\\s*(([]}]|after|else|catch|rescue)\\\\\\\\s*$|end\\\\\\\\b)\\\",\\\"name\\\":\\\"elixir\\\",\\\"patterns\\\":[{\\\"begin\\\":\\\"\\\\\\\\b(fn)\\\\\\\\b(?!.*->)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.elixir\\\"}},\\\"end\\\":\\\"$\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#core_syntax\\\"}]},{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"entity.name.type.class.elixir\\\"},\\\"2\\\":{\\\"name\\\":\\\"punctuation.separator.method.elixir\\\"},\\\"3\\\":{\\\"name\\\":\\\"entity.name.function.elixir\\\"}},\\\"match\\\":\\\"([A-Z]\\\\\\\\w+)\\\\\\\\s*(\\\\\\\\.)\\\\\\\\s*([_a-z]\\\\\\\\w*[!?]?)\\\"},{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"constant.other.symbol.elixir\\\"},\\\"2\\\":{\\\"name\\\":\\\"punctuation.separator.method.elixir\\\"},\\\"3\\\":{\\\"name\\\":\\\"entity.name.function.elixir\\\"}},\\\"match\\\":\\\"(:\\\\\\\\w+)\\\\\\\\s*(\\\\\\\\.)\\\\\\\\s*(_?\\\\\\\\w*[!?]?)\\\"},{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.operator.other.elixir\\\"},\\\"2\\\":{\\\"name\\\":\\\"entity.name.function.elixir\\\"}},\\\"match\\\":\\\"(\\\\\\\\|>)\\\\\\\\s*([_a-z]\\\\\\\\w*[!?]?)\\\"},{\\\"match\\\":\\\"\\\\\\\\b[_a-z]\\\\\\\\w*[!?]?(?=\\\\\\\\s*\\\\\\\\.?\\\\\\\\s*\\\\\\\\()\\\",\\\"name\\\":\\\"entity.name.function.elixir\\\"},{\\\"begin\\\":\\\"\\\\\\\\b(fn)\\\\\\\\b(?=.*->)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.elixir\\\"}},\\\"end\\\":\\\"(?>(->)|(when)|(\\\\\\\\)))\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.operator.other.elixir\\\"},\\\"2\\\":{\\\"name\\\":\\\"keyword.control.elixir\\\"},\\\"3\\\":{\\\"name\\\":\\\"punctuation.section.function.elixir\\\"}},\\\"patterns\\\":[{\\\"include\\\":\\\"#core_syntax\\\"}]},{\\\"include\\\":\\\"#core_syntax\\\"},{\\\"begin\\\":\\\"^(?=.*->)((?![^\\\\\\\"']*([\\\\\\\"'])[^\\\\\\\"']*->)|(?=.*->[^\\\\\\\"']*([\\\\\\\"'])[^\\\\\\\"']*->))((?!.*\\\\\\\\([^)]*->)|(?=[^()]*->)|(?=\\\\\\\\s*\\\\\\\\(.*\\\\\\\\).*->))((?!.*\\\\\\\\b(fn)\\\\\\\\b)|(?=.*->.*\\\\\\\\bfn\\\\\\\\b))\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.elixir\\\"}},\\\"end\\\":\\\"(?>(->)|(when)|(\\\\\\\\)))\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.operator.other.elixir\\\"},\\\"2\\\":{\\\"name\\\":\\\"keyword.control.elixir\\\"},\\\"3\\\":{\\\"name\\\":\\\"punctuation.section.function.elixir\\\"}},\\\"patterns\\\":[{\\\"include\\\":\\\"#core_syntax\\\"}]}],\\\"repository\\\":{\\\"core_syntax\\\":{\\\"patterns\\\":[{\\\"begin\\\":\\\"^\\\\\\\\s*(defmodule)\\\\\\\\b\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.module.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\\b(do)\\\\\\\\b\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.module.elixir\\\"}},\\\"name\\\":\\\"meta.module.elixir\\\",\\\"patterns\\\":[{\\\"match\\\":\\\"\\\\\\\\b[A-Z]\\\\\\\\w*(?=\\\\\\\\.)\\\",\\\"name\\\":\\\"entity.other.inherited-class.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\b[A-Z]\\\\\\\\w*\\\\\\\\b\\\",\\\"name\\\":\\\"entity.name.type.class.elixir\\\"}]},{\\\"begin\\\":\\\"^\\\\\\\\s*(defprotocol)\\\\\\\\b\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.protocol.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\\b(do)\\\\\\\\b\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.protocol.elixir\\\"}},\\\"name\\\":\\\"meta.protocol_declaration.elixir\\\",\\\"patterns\\\":[{\\\"match\\\":\\\"\\\\\\\\b[A-Z]\\\\\\\\w*\\\\\\\\b\\\",\\\"name\\\":\\\"entity.name.type.protocol.elixir\\\"}]},{\\\"begin\\\":\\\"^\\\\\\\\s*(defimpl)\\\\\\\\b\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.protocol.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\\b(do)\\\\\\\\b\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.protocol.elixir\\\"}},\\\"name\\\":\\\"meta.protocol_implementation.elixir\\\",\\\"patterns\\\":[{\\\"match\\\":\\\"\\\\\\\\b[A-Z]\\\\\\\\w*\\\\\\\\b\\\",\\\"name\\\":\\\"entity.name.type.protocol.elixir\\\"}]},{\\\"begin\\\":\\\"^\\\\\\\\s*(def(?:|macro|delegate|guard))\\\\\\\\s+((?>[A-Z_a-z]\\\\\\\\w*(?>\\\\\\\\.|::))?(?>[A-Z_a-z]\\\\\\\\w*(?>[!?]|=(?!>))?|===?|>[=>]?|<=>|<[<=]?|[%\\\\\\\\&/`|]|\\\\\\\\*\\\\\\\\*?|=?~|[-+]@?|\\\\\\\\[]=?))((\\\\\\\\()|\\\\\\\\s*)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.module.elixir\\\"},\\\"2\\\":{\\\"name\\\":\\\"entity.name.function.public.elixir\\\"},\\\"4\\\":{\\\"name\\\":\\\"punctuation.section.function.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\\b(do:)|\\\\\\\\b(do)\\\\\\\\b|(?=\\\\\\\\s+(def(?:|n|macro|delegate|guard))\\\\\\\\b)\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"constant.other.keywords.elixir\\\"},\\\"2\\\":{\\\"name\\\":\\\"keyword.control.module.elixir\\\"}},\\\"name\\\":\\\"meta.function.public.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"$self\\\"},{\\\"begin\\\":\\\"\\\\\\\\s(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.operator.other.elixir\\\"}},\\\"end\\\":\\\"[),]|$\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"$self\\\"}]},{\\\"match\\\":\\\"\\\\\\\\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\\\\\\\\b\\\",\\\"name\\\":\\\"keyword.control.elixir\\\"}]},{\\\"begin\\\":\\\"^\\\\\\\\s*(def(?:|n|macro|guard)p)\\\\\\\\s+((?>[A-Z_a-z]\\\\\\\\w*(?>\\\\\\\\.|::))?(?>[A-Z_a-z]\\\\\\\\w*(?>[!?]|=(?!>))?|===?|>[=>]?|<=>|<[<=]?|[%\\\\\\\\&/`|]|\\\\\\\\*\\\\\\\\*?|=?~|[-+]@?|\\\\\\\\[]=?))((\\\\\\\\()|\\\\\\\\s*)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.module.elixir\\\"},\\\"2\\\":{\\\"name\\\":\\\"entity.name.function.private.elixir\\\"},\\\"4\\\":{\\\"name\\\":\\\"punctuation.section.function.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\\b(do:)|\\\\\\\\b(do)\\\\\\\\b|(?=\\\\\\\\s+(def(?:p|macrop|guardp))\\\\\\\\b)\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"constant.other.keywords.elixir\\\"},\\\"2\\\":{\\\"name\\\":\\\"keyword.control.module.elixir\\\"}},\\\"name\\\":\\\"meta.function.private.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"$self\\\"},{\\\"begin\\\":\\\"\\\\\\\\s(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.operator.other.elixir\\\"}},\\\"end\\\":\\\"[),]|$\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"$self\\\"}]},{\\\"match\\\":\\\"\\\\\\\\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\\\\\\\\b\\\",\\\"name\\\":\\\"keyword.control.elixir\\\"}]},{\\\"begin\\\":\\\"\\\\\\\\s*~L\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"end\\\":\\\"\\\\\\\\s*\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"name\\\":\\\"sigil.leex\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"text.elixir\\\"},{\\\"include\\\":\\\"text.html.basic\\\"}]},{\\\"begin\\\":\\\"\\\\\\\\s*~H\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"end\\\":\\\"\\\\\\\\s*\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"name\\\":\\\"sigil.heex\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"text.elixir\\\"},{\\\"include\\\":\\\"text.html.basic\\\"}]},{\\\"begin\\\":\\\"@(module|type)?doc (~[a-z])?\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"end\\\":\\\"\\\\\\\\s*\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"name\\\":\\\"comment.block.documentation.heredoc\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"@(module|type)?doc ~[A-Z]\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"end\\\":\\\"\\\\\\\\s*\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"name\\\":\\\"comment.block.documentation.heredoc\\\"},{\\\"begin\\\":\\\"@(module|type)?doc (~[a-z])?'''\\\",\\\"end\\\":\\\"\\\\\\\\s*'''\\\",\\\"name\\\":\\\"comment.block.documentation.heredoc\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"@(module|type)?doc ~[A-Z]'''\\\",\\\"end\\\":\\\"\\\\\\\\s*'''\\\",\\\"name\\\":\\\"comment.block.documentation.heredoc\\\"},{\\\"match\\\":\\\"@(module|type)?doc false\\\",\\\"name\\\":\\\"comment.block.documentation.false\\\"},{\\\"begin\\\":\\\"@(module|type)?doc \\\\\\\"\\\",\\\"end\\\":\\\"\\\\\\\"\\\",\\\"name\\\":\\\"comment.block.documentation.string\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"match\\\":\\\"(?<!\\\\\\\\.)\\\\\\\\b(do|end|case|bc|lc|for|if|cond|unless|try|receive|fn|defmodule|defp?|defprotocol|defimpl|defrecord|defstruct|defnp?|defmacrop?|defguardp?|defdelegate|defexception|defoverridable|exit|after|rescue|catch|else|raise|reraise|throw|import|require|alias|use|quote|unquote|super|with)\\\\\\\\b(?![!:?])\\\",\\\"name\\\":\\\"keyword.control.elixir\\\"},{\\\"match\\\":\\\"(?<!\\\\\\\\.)\\\\\\\\b(and|not|or|when|xor|in)\\\\\\\\b\\\",\\\"name\\\":\\\"keyword.operator.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\b[A-Z]\\\\\\\\w*\\\\\\\\b\\\",\\\"name\\\":\\\"entity.name.type.class.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\b(nil|true|false)\\\\\\\\b(?![!?])\\\",\\\"name\\\":\\\"constant.language.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\b(__(CALLER|ENV|MODULE|DIR|STACKTRACE)__)\\\\\\\\b(?![!?])\\\",\\\"name\\\":\\\"variable.language.elixir\\\"},{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"punctuation.definition.variable.elixir\\\"}},\\\"match\\\":\\\"(@)[A-Z_a-z]\\\\\\\\w*\\\",\\\"name\\\":\\\"variable.other.readwrite.module.elixir\\\"},{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"punctuation.definition.variable.elixir\\\"}},\\\"match\\\":\\\"(&)\\\\\\\\d+\\\",\\\"name\\\":\\\"variable.other.anonymous.elixir\\\"},{\\\"match\\\":\\\"&(?!&)\\\",\\\"name\\\":\\\"variable.other.anonymous.elixir\\\"},{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"punctuation.definition.variable.elixir\\\"}},\\\"match\\\":\\\"\\\\\\\\^[_a-z]\\\\\\\\w*\\\",\\\"name\\\":\\\"variable.other.capture.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\b0x\\\\\\\\h(?>_?\\\\\\\\h)*\\\\\\\\b\\\",\\\"name\\\":\\\"constant.numeric.hex.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\b\\\\\\\\d(?>_?\\\\\\\\d)*(\\\\\\\\.(?![^\\\\\\\\s\\\\\\\\d])(?>_?\\\\\\\\d)+)([Ee][-+]?\\\\\\\\d(?>_?\\\\\\\\d)*)?\\\\\\\\b\\\",\\\"name\\\":\\\"constant.numeric.float.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\b\\\\\\\\d(?>_?\\\\\\\\d)*\\\\\\\\b\\\",\\\"name\\\":\\\"constant.numeric.integer.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\b0b[01](?>_?[01])*\\\\\\\\b\\\",\\\"name\\\":\\\"constant.numeric.binary.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\b0o[0-7](?>_?[0-7])*\\\\\\\\b\\\",\\\"name\\\":\\\"constant.numeric.octal.elixir\\\"},{\\\"begin\\\":\\\":'\\\",\\\"captures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.constant.elixir\\\"}},\\\"end\\\":\\\"'\\\",\\\"name\\\":\\\"constant.other.symbol.single-quoted.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\":\\\\\\\"\\\",\\\"captures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.constant.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\"\\\",\\\"name\\\":\\\"constant.other.symbol.double-quoted.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"'''\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"^\\\\\\\\s*'''\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.single.heredoc.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"'\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"'\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.single.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"^\\\\\\\\s*\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.double.heredoc.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"\\\\\\\"\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\"\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.double.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"~[a-z]\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"^\\\\\\\\s*\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.other.sigil.heredoc.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"~[a-z]\\\\\\\\{\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"}[a-z]*\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.other.sigil.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"~[a-z]\\\\\\\\[\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"][a-z]*\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.other.sigil.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"~[a-z]<\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\">[a-z]*\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.other.sigil.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"~[a-z]\\\\\\\\(\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\\)[a-z]*\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.other.sigil.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"~[a-z](\\\\\\\\W)\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\\1[a-z]*\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.other.sigil.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#interpolated_elixir\\\"},{\\\"include\\\":\\\"#escaped_char\\\"}]},{\\\"begin\\\":\\\"~[A-Z]\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"^\\\\\\\\s*\\\\\\\"\\\\\\\"\\\\\\\"\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.other.sigil.heredoc.literal.elixir\\\"},{\\\"begin\\\":\\\"~[A-Z]\\\\\\\\{\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"}[a-z]*\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.other.sigil.literal.elixir\\\"},{\\\"begin\\\":\\\"~[A-Z]\\\\\\\\[\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"][a-z]*\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.other.sigil.literal.elixir\\\"},{\\\"begin\\\":\\\"~[A-Z]<\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\">[a-z]*\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.other.sigil.literal.elixir\\\"},{\\\"begin\\\":\\\"~[A-Z]\\\\\\\\(\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\\)[a-z]*\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.other.sigil.literal.elixir\\\"},{\\\"begin\\\":\\\"~[A-Z](\\\\\\\\W)\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.begin.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\\1[a-z]*\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.string.end.elixir\\\"}},\\\"name\\\":\\\"string.quoted.other.sigil.literal.elixir\\\"},{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"punctuation.definition.constant.elixir\\\"}},\\\"match\\\":\\\"(?<!:)(:)(?>[A-Z_a-z][@\\\\\\\\w]*(?>[!?]|=(?![=>]))?|<>|===?|!==?|<<>>|<<<|>>>|~~~|::|<-|\\\\\\\\|>|=>|=~|[/=]|\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\|\\\\\\\\*\\\\\\\\*?|\\\\\\\\.\\\\\\\\.?\\\\\\\\.?|\\\\\\\\.\\\\\\\\.//|>=?|<=?|&&?&?|\\\\\\\\+\\\\\\\\+?|--?|\\\\\\\\|\\\\\\\\|?\\\\\\\\|?|[!@]|%?\\\\\\\\{}|%|\\\\\\\\[]|\\\\\\\\^(\\\\\\\\^\\\\\\\\^)?)\\\",\\\"name\\\":\\\"constant.other.symbol.elixir\\\"},{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"punctuation.definition.constant.elixir\\\"}},\\\"match\\\":\\\"(?>[A-Z_a-z][@\\\\\\\\w]*[!?]?)(:)(?!:)\\\",\\\"name\\\":\\\"constant.other.keywords.elixir\\\"},{\\\"begin\\\":\\\"(^[\\\\\\\\t ]+)?(?=##)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"punctuation.whitespace.comment.leading.elixir\\\"}},\\\"end\\\":\\\"(?!#)\\\",\\\"patterns\\\":[{\\\"begin\\\":\\\"##\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.comment.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\\n\\\",\\\"name\\\":\\\"comment.line.section.elixir\\\"}]},{\\\"begin\\\":\\\"(^[\\\\\\\\t ]+)?(?=#)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"punctuation.whitespace.comment.leading.elixir\\\"}},\\\"end\\\":\\\"(?!#)\\\",\\\"patterns\\\":[{\\\"begin\\\":\\\"#\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.definition.comment.elixir\\\"}},\\\"end\\\":\\\"\\\\\\\\n\\\",\\\"name\\\":\\\"comment.line.number-sign.elixir\\\"}]},{\\\"match\\\":\\\"\\\\\\\\b_([^_]\\\\\\\\w+[!?]?)\\\",\\\"name\\\":\\\"comment.unused.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\b_\\\\\\\\b\\\",\\\"name\\\":\\\"comment.wildcard.elixir\\\"},{\\\"match\\\":\\\"(?<!\\\\\\\\w)\\\\\\\\?(\\\\\\\\\\\\\\\\(x\\\\\\\\h{1,2}(?!\\\\\\\\h)\\\\\\\\b|[^CMx])|[^\\\\\\\\\\\\\\\\\\\\\\\\s])\\\",\\\"name\\\":\\\"constant.numeric.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\+\\\\\\\\+|--|<\\\\\\\\|>\\\",\\\"name\\\":\\\"keyword.operator.concatenation.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\|>|<~>|<>|<<<|>>>|~>>|<<~|~>|<~|<\\\\\\\\|>\\\",\\\"name\\\":\\\"keyword.operator.sigils_1.elixir\\\"},{\\\"match\\\":\\\"&&&?\\\",\\\"name\\\":\\\"keyword.operator.sigils_2.elixir\\\"},{\\\"match\\\":\\\"<-|\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\"name\\\":\\\"keyword.operator.sigils_3.elixir\\\"},{\\\"match\\\":\\\"===?|!==?|<=?|>=?\\\",\\\"name\\\":\\\"keyword.operator.comparison.elixir\\\"},{\\\"match\\\":\\\"(\\\\\\\\|\\\\\\\\|\\\\\\\\||&&&|\\\\\\\\^\\\\\\\\^\\\\\\\\^|<<<|>>>|~~~)\\\",\\\"name\\\":\\\"keyword.operator.bitwise.elixir\\\"},{\\\"match\\\":\\\"(?<=[\\\\\\\\t ])!+|\\\\\\\\bnot\\\\\\\\b|&&|\\\\\\\\band\\\\\\\\b|\\\\\\\\|\\\\\\\\||\\\\\\\\bor\\\\\\\\b|\\\\\\\\bxor\\\\\\\\b\\\",\\\"name\\\":\\\"keyword.operator.logical.elixir\\\"},{\\\"match\\\":\\\"([-*+/])\\\",\\\"name\\\":\\\"keyword.operator.arithmetic.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\||\\\\\\\\+\\\\\\\\+|--|\\\\\\\\*\\\\\\\\*|\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\|<-|<>|<<|>>|::|\\\\\\\\.\\\\\\\\.|//|\\\\\\\\|>|~|=>|&\\\",\\\"name\\\":\\\"keyword.operator.other.elixir\\\"},{\\\"match\\\":\\\"=\\\",\\\"name\\\":\\\"keyword.operator.assignment.elixir\\\"},{\\\"match\\\":\\\":\\\",\\\"name\\\":\\\"punctuation.separator.other.elixir\\\"},{\\\"match\\\":\\\";\\\",\\\"name\\\":\\\"punctuation.separator.statement.elixir\\\"},{\\\"match\\\":\\\",\\\",\\\"name\\\":\\\"punctuation.separator.object.elixir\\\"},{\\\"match\\\":\\\"\\\\\\\\.\\\",\\\"name\\\":\\\"punctuation.separator.method.elixir\\\"},{\\\"match\\\":\\\"[{}]\\\",\\\"name\\\":\\\"punctuation.section.scope.elixir\\\"},{\\\"match\\\":\\\"[]\\\\\\\\[]\\\",\\\"name\\\":\\\"punctuation.section.array.elixir\\\"},{\\\"match\\\":\\\"[()]\\\",\\\"name\\\":\\\"punctuation.section.function.elixir\\\"}]},\\\"escaped_char\\\":{\\\"match\\\":\\\"\\\\\\\\\\\\\\\\(x[A-Fa-f\\\\\\\\d]{1,2}|.)\\\",\\\"name\\\":\\\"constant.character.escaped.elixir\\\"},\\\"interpolated_elixir\\\":{\\\"begin\\\":\\\"#\\\\\\\\{\\\",\\\"beginCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.section.embedded.begin.elixir\\\"}},\\\"contentName\\\":\\\"source.elixir\\\",\\\"end\\\":\\\"}\\\",\\\"endCaptures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.section.embedded.end.elixir\\\"}},\\\"name\\\":\\\"meta.embedded.line.elixir\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#nest_curly_and_self\\\"},{\\\"include\\\":\\\"$self\\\"}]},\\\"nest_curly_and_self\\\":{\\\"patterns\\\":[{\\\"begin\\\":\\\"\\\\\\\\{\\\",\\\"captures\\\":{\\\"0\\\":{\\\"name\\\":\\\"punctuation.section.scope.elixir\\\"}},\\\"end\\\":\\\"}\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#nest_curly_and_self\\\"}]},{\\\"include\\\":\\\"$self\\\"}]}},\\\"scopeName\\\":\\\"source.elixir\\\",\\\"embeddedLangs\\\":[\\\"html\\\"]}\"))\n\nexport default [\n...html,\nlang\n]\n"]}
|