@marimo-team/islands 0.13.5-dev2 → 0.13.5-dev21
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/{ConnectedDataExplorerComponent-C_AzdirZ.js → ConnectedDataExplorerComponent-BxN8auzf.js} +214 -214
- package/dist/{VegaLite-pu8JBu4X.js → VegaLite-BVi97mAw.js} +3 -3
- package/dist/{_baseUniq-CiTkPi5t.js → _baseUniq-CHEJ57EV.js} +73 -73
- package/dist/any-language-editor-BskW74nP.js +45 -0
- package/dist/{architectureDiagram-IEHRJDOE-VmqfI6q1.js → architectureDiagram-IEHRJDOE-OcSb90U8.js} +5 -5
- package/dist/{blockDiagram-JOT3LUYC-DKRBzPp1.js → blockDiagram-JOT3LUYC-bPMFWaNg.js} +4 -4
- package/dist/{c4Diagram-VJAJSXHY-CEf7pRqy.js → c4Diagram-VJAJSXHY-ZaDM5v2d.js} +2 -2
- package/dist/{channel-Bs-jlEYP.js → channel-BXEBu9IM.js} +1 -1
- package/dist/{chunk-4BMEZGHF-JrnJLS3V.js → chunk-4BMEZGHF-Cf4CSVL6.js} +1 -1
- package/dist/{chunk-A2AXSNBT-DumX03uO.js → chunk-A2AXSNBT-B91DTS1D.js} +2 -2
- package/dist/{chunk-AEK57VVT-DQSlcvL4.js → chunk-AEK57VVT-nl9CjHRd.js} +2 -2
- package/dist/{chunk-D6G4REZN-BMURf-_-.js → chunk-D6G4REZN-BahpMAFZ.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-CvR5OB8q.js → chunk-RZ5BOZE2-B44veLli.js} +1 -1
- package/dist/{chunk-XZIHB7SX-BV-SFg0C.js → chunk-XZIHB7SX-ky-XZ36Q.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-C43vmBPZ.js → classDiagram-GIVACNV2-BEPdxTsw.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-C43vmBPZ.js → classDiagram-v2-COTLJTTW-BEPdxTsw.js} +2 -2
- package/dist/{clone-CwdpbFLz.js → clone-B8_aVJM7.js} +1 -1
- package/dist/{dagre-OKDRZEBW-D8ZQV0Yi.js → dagre-OKDRZEBW-eI3zfs3q.js} +6 -6
- package/dist/{data-editor-BNdfVz1v.js → data-editor-BvtB3CHq.js} +1 -1
- package/dist/{diagram-SSKATNLV-Cv-GB8oR.js → diagram-SSKATNLV-BB5XNmu7.js} +3 -3
- package/dist/{diagram-VNBRO52H-CBodmMdZ.js → diagram-VNBRO52H-Dx0ZykKt.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-BIX9Idxi.js → erDiagram-Q7BY3M3F-BuEC6_5-.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-BUjSGNM7.js → flowDiagram-4HSFHLVR-D4xxnEfL.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-CaTNlNSB.js → ganttDiagram-APWFNJXF-3CsvA8X8.js} +23 -23
- package/dist/{gitGraphDiagram-7IBYFJ6S-CfCha8AW.js → gitGraphDiagram-7IBYFJ6S-jn7ZVlOk.js} +4 -4
- package/dist/{graph-Be0UTFo9.js → graph-Y4HYiNqd.js} +6 -6
- package/dist/{index-Csq00T7J.js → index-13W0YMSB.js} +1 -1
- package/dist/{index-BeXnBqQE.js → index-BgCQxtc3.js} +3 -3
- package/dist/{index-L0oNsrk-.js → index-XYZU4LGG.js} +21 -21
- package/dist/{index-BIp0EfDP.js → index-fBoCabLD.js} +1 -1
- package/dist/{infoDiagram-PH2N3AL5-ba3OBUZs.js → infoDiagram-PH2N3AL5-Drceh3ew.js} +2 -2
- package/dist/{journeyDiagram-U35MCT3I-B4fxHacA.js → journeyDiagram-U35MCT3I-CvM_03mm.js} +2 -2
- package/dist/{kanban-definition-NDS4AKOZ-DU4wIeIu.js → kanban-definition-NDS4AKOZ-4fH-aVzn.js} +1 -1
- package/dist/{layout-DOmPlfe3.js → layout-BcbN59IW.js} +48 -48
- package/dist/{linear-DXm1WsmB.js → linear-CYfHHaU4.js} +75 -75
- package/dist/{main-BCsFolTh.js → main-YI1N0X0n.js} +72966 -55108
- package/dist/main.js +2 -2
- package/dist/{mermaid-DzPF7Ftb.js → mermaid-CtK37Fg1.js} +28 -28
- package/dist/{min-edngn0Vc.js → min-CSPyo5JI.js} +23 -23
- package/dist/{mindmap-definition-ALO5MXBD-VOzxFY0A.js → mindmap-definition-ALO5MXBD-fzC0RlDP.js} +2 -2
- package/dist/{pieDiagram-IB7DONF6-TYhX-esp.js → pieDiagram-IB7DONF6-CM0rJq1E.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-BuATYRdo.js → quadrantDiagram-7GDLP6J5-CMrsiiD4.js} +2 -2
- package/dist/{radar-MK3ICKWK-P-5owg0L.js → radar-MK3ICKWK-BbnOdQtb.js} +5 -5
- package/dist/{react-plotly-YxAEIAwv.js → react-plotly-CnynShcu.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-CRVSWoKx.js → requirementDiagram-KVF5MWMF-5wX4fv3M.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD-BqPhT1F6.js → sankeyDiagram-QLVOVGJD-Ceea2I5X.js} +1 -1
- package/dist/{sequenceDiagram-X6HHIX6F-D3WXS_BE.js → sequenceDiagram-X6HHIX6F-D36yHPe6.js} +3 -3
- package/dist/{slides-component-CjjgisO8.js → slides-component-CkH7a6je.js} +25 -25
- package/dist/{stateDiagram-DGXRK772-ByTInct0.js → stateDiagram-DGXRK772-D0ogw98g.js} +4 -4
- package/dist/{stateDiagram-v2-YXO3MK2T-omH8pF_c.js → stateDiagram-v2-YXO3MK2T-C7Tg0dAh.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-C8Vnun19.js → time-kkxr8rAP.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-exRCLAbN.js → timeline-definition-BDJGKUSR-C6cuPwlW.js} +1 -1
- package/dist/{vega-component-LGQWoos7.js → vega-component-DEG_AO6-.js} +22 -22
- package/dist/{xychartDiagram-VJFVF3MP-NkfBq2mX.js → xychartDiagram-VJFVF3MP-GwK4GHwJ.js} +2 -2
- package/package.json +1 -1
- package/dist/any-language-editor-NCI9Qt-4.js +0 -2304
- package/dist/apl-B2DGVGxc.js +0 -76
- package/dist/asciiarmor-2LVJmxlE.js +0 -34
- package/dist/asterisk-DS281yxp.js +0 -271
- package/dist/brainfuck-C_p9pTT8.js +0 -34
- package/dist/clike-BUuHEmgZ.js +0 -620
- package/dist/cmake-CuaCgAKt.js +0 -28
- package/dist/cobol-BlTKFDRj.js +0 -72
- package/dist/coffeescript-BVCvwO8I.js +0 -179
- package/dist/commonlisp-D_kxz07b.js +0 -75
- package/dist/crystal-D309uH6_.js +0 -217
- package/dist/cypher-BMq4Fwjl.js +0 -68
- package/dist/d-BZcgY6La.js +0 -127
- package/dist/diff-Cg9d_RX2.js +0 -18
- package/dist/dockerfile-DIy8NleC.js +0 -194
- package/dist/dtd-CtLokQ-U.js +0 -84
- package/dist/dylan-QYeExnWK.js +0 -234
- package/dist/ebnf-DUPDuY4r.js +0 -78
- package/dist/ecl-CiXN-g_D.js +0 -121
- package/dist/eiffel-yQhjl4T1.js +0 -110
- package/dist/elm-CNT9vbN0.js +0 -108
- package/dist/erlang-CFOYdy9e.js +0 -487
- package/dist/factor-DDOC7X6P.js +0 -65
- package/dist/fcl-CPC2WYrI.js +0 -103
- package/dist/forth-BmxRyE9S.js +0 -60
- package/dist/fortran-9bvPyrOW.js +0 -442
- package/dist/gas-BdfkXJT_.js +0 -183
- package/dist/gherkin-CJuwpceU.js +0 -34
- package/dist/groovy-DZeT_VM-.js +0 -146
- package/dist/haskell-Bvt3Qq1t.js +0 -375
- package/dist/haxe-70NVW1pR.js +0 -359
- package/dist/http-D9LttvKF.js +0 -44
- package/dist/idl-B6TRFYjl.js +0 -947
- package/dist/index--31WSwGb.js +0 -97
- package/dist/index-AjKzuF8_.js +0 -68
- package/dist/index-BWGajeuh.js +0 -243
- package/dist/index-B_SFxcxO.js +0 -298
- package/dist/index-C7z-XoP1.js +0 -133
- package/dist/index-CCMSeZHZ.js +0 -271
- package/dist/index-CaOkFrfa.js +0 -57
- package/dist/index-D0LVf8Wa.js +0 -155
- package/dist/index-D7sXoVUZ.js +0 -74
- package/dist/index-D9crr7pQ.js +0 -92
- package/dist/index-DdLQGR2Z.js +0 -134
- package/dist/index-DsX4RoD3.js +0 -264
- package/dist/jinja2-DnB6dQmV.js +0 -154
- package/dist/julia-DpvXAuO6.js +0 -241
- package/dist/livescript-CanGTf8u.js +0 -272
- package/dist/lua-XplVlWi_.js +0 -217
- package/dist/mathematica-jaRHnSxC.js +0 -35
- package/dist/mbox-BctzC1hL.js +0 -76
- package/dist/mirc-CFBPAOaF.js +0 -72
- package/dist/modelica-vUgVs--1.js +0 -93
- package/dist/mscgen-Cpl0NYLN.js +0 -104
- package/dist/mumps-CQoS1kWX.js +0 -25
- package/dist/nginx-zDPm3Z74.js +0 -89
- package/dist/nsis-fePjrhq7.js +0 -62
- package/dist/ntriples-CsNjv2QF.js +0 -79
- package/dist/octave-C8PmmSRH.js +0 -143
- package/dist/oz-Ce8aN8oE.js +0 -151
- package/dist/pascal-De0D6mP7.js +0 -77
- package/dist/perl-B4bSCe1C.js +0 -915
- package/dist/pig-D24Z8EXi.js +0 -54
- package/dist/powershell-DkYVfTzP.js +0 -249
- package/dist/properties-Dn9wna3M.js +0 -26
- package/dist/protobuf-BPIjwpzm.js +0 -49
- package/dist/puppet-nyd4dhjf.js +0 -45
- package/dist/q-DXjKs-tC.js +0 -83
- package/dist/r-LKEuhEGI.js +0 -104
- package/dist/ruby-CcYfvIk6.js +0 -228
- package/dist/sas-7E8yHoCW.js +0 -105
- package/dist/scheme-DjibxsNh.js +0 -124
- package/dist/shell-C0C2sNA_.js +0 -182
- package/dist/sieve-Bwz7vjP5.js +0 -72
- package/dist/simple-mode-B0dvCdAA.js +0 -89
- package/dist/smalltalk-Bhddl2pB.js +0 -48
- package/dist/solr-BNlsLglM.js +0 -41
- package/dist/sparql-FarWu_Gb.js +0 -197
- package/dist/spreadsheet-C-cy4P5N.js +0 -49
- package/dist/stylus-CAdqWld3.js +0 -250
- package/dist/swift-DSxqR9R6.js +0 -230
- package/dist/tcl-xfoLljhY.js +0 -81
- package/dist/textile-D1AWE-pc.js +0 -295
- package/dist/tiddlywiki-5wqsXtSk.js +0 -155
- package/dist/tiki-__Kn3CeS.js +0 -181
- package/dist/toml-BHiuTcfn.js +0 -49
- package/dist/troff-D2UO-fKf.js +0 -35
- package/dist/ttcn-Bsa4sfRm.js +0 -123
- package/dist/turtle-xwJUxoPV.js +0 -80
- package/dist/vb-c2kQGd6-.js +0 -74
- package/dist/vbscript-Dz1TtKsy.js +0 -324
- package/dist/velocity-DJd0pTTC.js +0 -96
- package/dist/verilog-C4VGD9n1.js +0 -263
- package/dist/vhdl-T9HkrbI2.js +0 -106
- package/dist/webidl-CjfDENEo.js +0 -155
- package/dist/xquery-BUQdORAS.js +0 -422
- package/dist/yacas-C0absKBh.js +0 -73
- package/dist/z80-C8rPtw-0.js +0 -61
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
function u(n) {
|
|
2
|
-
for (var e = {}, i = n.split(" "), r = 0; r < i.length; ++r) e[i[r]] = !0;
|
|
3
|
-
return e;
|
|
4
|
-
}
|
|
5
|
-
var s = u("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"), a = u("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"), c = u("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"), k = /[+\-*&%=<>!?:\/|]/;
|
|
6
|
-
function o(n, e, i) {
|
|
7
|
-
return e.tokenize = i, i(n, e);
|
|
8
|
-
}
|
|
9
|
-
function t(n, e) {
|
|
10
|
-
var i = e.beforeParams;
|
|
11
|
-
e.beforeParams = !1;
|
|
12
|
-
var r = n.next();
|
|
13
|
-
if (r == "'" && !e.inString && e.inParams)
|
|
14
|
-
return e.lastTokenWasBuiltin = !1, o(n, e, p(r));
|
|
15
|
-
if (r == '"') {
|
|
16
|
-
if (e.lastTokenWasBuiltin = !1, e.inString)
|
|
17
|
-
return e.inString = !1, "string";
|
|
18
|
-
if (e.inParams)
|
|
19
|
-
return o(n, e, p(r));
|
|
20
|
-
} else {
|
|
21
|
-
if (/[\[\]{}\(\),;\.]/.test(r))
|
|
22
|
-
return r == "(" && i ? e.inParams = !0 : r == ")" && (e.inParams = !1, e.lastTokenWasBuiltin = !0), null;
|
|
23
|
-
if (/\d/.test(r))
|
|
24
|
-
return e.lastTokenWasBuiltin = !1, n.eatWhile(/[\w\.]/), "number";
|
|
25
|
-
if (r == "#" && n.eat("*"))
|
|
26
|
-
return e.lastTokenWasBuiltin = !1, o(n, e, h);
|
|
27
|
-
if (r == "#" && n.match(/ *\[ *\[/))
|
|
28
|
-
return e.lastTokenWasBuiltin = !1, o(n, e, b);
|
|
29
|
-
if (r == "#" && n.eat("#"))
|
|
30
|
-
return e.lastTokenWasBuiltin = !1, n.skipToEnd(), "comment";
|
|
31
|
-
if (r == "$")
|
|
32
|
-
return n.eat("!"), n.eatWhile(/[\w\d\$_\.{}-]/), c && c.propertyIsEnumerable(n.current()) ? "keyword" : (e.lastTokenWasBuiltin = !0, e.beforeParams = !0, "builtin");
|
|
33
|
-
if (k.test(r))
|
|
34
|
-
return e.lastTokenWasBuiltin = !1, n.eatWhile(k), "operator";
|
|
35
|
-
n.eatWhile(/[\w\$_{}@]/);
|
|
36
|
-
var l = n.current();
|
|
37
|
-
return s && s.propertyIsEnumerable(l) ? "keyword" : a && a.propertyIsEnumerable(l) || n.current().match(/^#@?[a-z0-9_]+ *$/i) && n.peek() == "(" && !(a && a.propertyIsEnumerable(l.toLowerCase())) ? (e.beforeParams = !0, e.lastTokenWasBuiltin = !1, "keyword") : e.inString ? (e.lastTokenWasBuiltin = !1, "string") : n.pos > l.length && n.string.charAt(n.pos - l.length - 1) == "." && e.lastTokenWasBuiltin ? "builtin" : (e.lastTokenWasBuiltin = !1, null);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function p(n) {
|
|
41
|
-
return function(e, i) {
|
|
42
|
-
for (var r = !1, l, f = !1; (l = e.next()) != null; ) {
|
|
43
|
-
if (l == n && !r) {
|
|
44
|
-
f = !0;
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
if (n == '"' && e.peek() == "$" && !r) {
|
|
48
|
-
i.inString = !0, f = !0;
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
r = !r && l == "\\";
|
|
52
|
-
}
|
|
53
|
-
return f && (i.tokenize = t), "string";
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
function h(n, e) {
|
|
57
|
-
for (var i = !1, r; r = n.next(); ) {
|
|
58
|
-
if (r == "#" && i) {
|
|
59
|
-
e.tokenize = t;
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
i = r == "*";
|
|
63
|
-
}
|
|
64
|
-
return "comment";
|
|
65
|
-
}
|
|
66
|
-
function b(n, e) {
|
|
67
|
-
for (var i = 0, r; r = n.next(); ) {
|
|
68
|
-
if (r == "#" && i == 2) {
|
|
69
|
-
e.tokenize = t;
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
r == "]" ? i++ : r != " " && (i = 0);
|
|
73
|
-
}
|
|
74
|
-
return "meta";
|
|
75
|
-
}
|
|
76
|
-
const W = {
|
|
77
|
-
name: "velocity",
|
|
78
|
-
startState: function() {
|
|
79
|
-
return {
|
|
80
|
-
tokenize: t,
|
|
81
|
-
beforeParams: !1,
|
|
82
|
-
inParams: !1,
|
|
83
|
-
inString: !1,
|
|
84
|
-
lastTokenWasBuiltin: !1
|
|
85
|
-
};
|
|
86
|
-
},
|
|
87
|
-
token: function(n, e) {
|
|
88
|
-
return n.eatSpace() ? null : e.tokenize(n, e);
|
|
89
|
-
},
|
|
90
|
-
languageData: {
|
|
91
|
-
commentTokens: { line: "##", block: { open: "#*", close: "*#" } }
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
export {
|
|
95
|
-
W as velocity
|
|
96
|
-
};
|
package/dist/verilog-C4VGD9n1.js
DELETED
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
function A(i) {
|
|
2
|
-
var o = i.statementIndentUnit, u = i.dontAlignCalls, c = i.noIndentKeywords || [], s = i.multiLineStrings, a = i.hooks || {};
|
|
3
|
-
function g(e) {
|
|
4
|
-
for (var n = {}, t = e.split(" "), r = 0; r < t.length; ++r) n[t[r]] = !0;
|
|
5
|
-
return n;
|
|
6
|
-
}
|
|
7
|
-
var h = g(
|
|
8
|
-
"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"
|
|
9
|
-
), w = /[\+\-\*\/!~&|^%=?:]/, k = /[\[\]{}()]/, b = /\d[0-9_]*/, I = /\d*\s*'s?d\s*\d[0-9_]*/i, O = /\d*\s*'s?b\s*[xz01][xz01_]*/i, T = /\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i, W = /\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i, B = /(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i, M = /^((\w+)|[)}\]])/, U = /[)}\]]/, d, v, K = g(
|
|
10
|
-
"case checker class clocking config function generate interface module package primitive program property specify sequence table task"
|
|
11
|
-
), f = {};
|
|
12
|
-
for (var m in K)
|
|
13
|
-
f[m] = "end" + m;
|
|
14
|
-
f.begin = "end", f.casex = "endcase", f.casez = "endcase", f.do = "while", f.fork = "join;join_any;join_none", f.covergroup = "endgroup";
|
|
15
|
-
for (var V in c) {
|
|
16
|
-
var m = c[V];
|
|
17
|
-
f[m] && (f[m] = void 0);
|
|
18
|
-
}
|
|
19
|
-
var R = g("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while");
|
|
20
|
-
function _(e, n) {
|
|
21
|
-
var t = e.peek(), r;
|
|
22
|
-
if (a[t] && (r = a[t](e, n)) != !1 || a.tokenBase && (r = a.tokenBase(e, n)) != !1)
|
|
23
|
-
return r;
|
|
24
|
-
if (/[,;:\.]/.test(t))
|
|
25
|
-
return d = e.next(), null;
|
|
26
|
-
if (k.test(t))
|
|
27
|
-
return d = e.next(), "bracket";
|
|
28
|
-
if (t == "`")
|
|
29
|
-
return e.next(), e.eatWhile(/[\w\$_]/) ? "def" : null;
|
|
30
|
-
if (t == "$")
|
|
31
|
-
return e.next(), e.eatWhile(/[\w\$_]/) ? "meta" : null;
|
|
32
|
-
if (t == "#")
|
|
33
|
-
return e.next(), e.eatWhile(/[\d_.]/), "def";
|
|
34
|
-
if (t == '"')
|
|
35
|
-
return e.next(), n.tokenize = D(t), n.tokenize(e, n);
|
|
36
|
-
if (t == "/") {
|
|
37
|
-
if (e.next(), e.eat("*"))
|
|
38
|
-
return n.tokenize = L, L(e, n);
|
|
39
|
-
if (e.eat("/"))
|
|
40
|
-
return e.skipToEnd(), "comment";
|
|
41
|
-
e.backUp(1);
|
|
42
|
-
}
|
|
43
|
-
if (e.match(B) || e.match(I) || e.match(O) || e.match(T) || e.match(W) || e.match(b) || e.match(B))
|
|
44
|
-
return "number";
|
|
45
|
-
if (e.eatWhile(w))
|
|
46
|
-
return "meta";
|
|
47
|
-
if (e.eatWhile(/[\w\$_]/)) {
|
|
48
|
-
var l = e.current();
|
|
49
|
-
return h[l] ? (f[l] && (d = "newblock"), R[l] && (d = "newstatement"), v = l, "keyword") : "variable";
|
|
50
|
-
}
|
|
51
|
-
return e.next(), null;
|
|
52
|
-
}
|
|
53
|
-
function D(e) {
|
|
54
|
-
return function(n, t) {
|
|
55
|
-
for (var r = !1, l, y = !1; (l = n.next()) != null; ) {
|
|
56
|
-
if (l == e && !r) {
|
|
57
|
-
y = !0;
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
r = !r && l == "\\";
|
|
61
|
-
}
|
|
62
|
-
return (y || !(r || s)) && (t.tokenize = _), "string";
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function L(e, n) {
|
|
66
|
-
for (var t = !1, r; r = e.next(); ) {
|
|
67
|
-
if (r == "/" && t) {
|
|
68
|
-
n.tokenize = _;
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
t = r == "*";
|
|
72
|
-
}
|
|
73
|
-
return "comment";
|
|
74
|
-
}
|
|
75
|
-
function j(e, n, t, r, l) {
|
|
76
|
-
this.indented = e, this.column = n, this.type = t, this.align = r, this.prev = l;
|
|
77
|
-
}
|
|
78
|
-
function p(e, n, t) {
|
|
79
|
-
var r = e.indented, l = new j(r, n, t, null, e.context);
|
|
80
|
-
return e.context = l;
|
|
81
|
-
}
|
|
82
|
-
function C(e) {
|
|
83
|
-
var n = e.context.type;
|
|
84
|
-
return (n == ")" || n == "]" || n == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
|
|
85
|
-
}
|
|
86
|
-
function N(e, n) {
|
|
87
|
-
if (e == n)
|
|
88
|
-
return !0;
|
|
89
|
-
var t = n.split(";");
|
|
90
|
-
for (var r in t)
|
|
91
|
-
if (e == t[r])
|
|
92
|
-
return !0;
|
|
93
|
-
return !1;
|
|
94
|
-
}
|
|
95
|
-
function P() {
|
|
96
|
-
var e = [];
|
|
97
|
-
for (var n in f)
|
|
98
|
-
if (f[n]) {
|
|
99
|
-
var t = f[n].split(";");
|
|
100
|
-
for (var r in t)
|
|
101
|
-
e.push(t[r]);
|
|
102
|
-
}
|
|
103
|
-
var l = new RegExp("[{}()\\[\\]]|(" + e.join("|") + ")$");
|
|
104
|
-
return l;
|
|
105
|
-
}
|
|
106
|
-
return {
|
|
107
|
-
name: "verilog",
|
|
108
|
-
startState: function(e) {
|
|
109
|
-
var n = {
|
|
110
|
-
tokenize: null,
|
|
111
|
-
context: new j(-e, 0, "top", !1),
|
|
112
|
-
indented: 0,
|
|
113
|
-
startOfLine: !0
|
|
114
|
-
};
|
|
115
|
-
return a.startState && a.startState(n), n;
|
|
116
|
-
},
|
|
117
|
-
token: function(e, n) {
|
|
118
|
-
var t = n.context;
|
|
119
|
-
if (e.sol() && (t.align == null && (t.align = !1), n.indented = e.indentation(), n.startOfLine = !0), a.token) {
|
|
120
|
-
var r = a.token(e, n);
|
|
121
|
-
if (r !== void 0)
|
|
122
|
-
return r;
|
|
123
|
-
}
|
|
124
|
-
if (e.eatSpace()) return null;
|
|
125
|
-
d = null, v = null;
|
|
126
|
-
var r = (n.tokenize || _)(e, n);
|
|
127
|
-
if (r == "comment" || r == "meta" || r == "variable") return r;
|
|
128
|
-
if (t.align == null && (t.align = !0), d == t.type)
|
|
129
|
-
C(n);
|
|
130
|
-
else if (d == ";" && t.type == "statement" || t.type && N(v, t.type))
|
|
131
|
-
for (t = C(n); t && t.type == "statement"; ) t = C(n);
|
|
132
|
-
else if (d == "{")
|
|
133
|
-
p(n, e.column(), "}");
|
|
134
|
-
else if (d == "[")
|
|
135
|
-
p(n, e.column(), "]");
|
|
136
|
-
else if (d == "(")
|
|
137
|
-
p(n, e.column(), ")");
|
|
138
|
-
else if (t && t.type == "endcase" && d == ":")
|
|
139
|
-
p(n, e.column(), "statement");
|
|
140
|
-
else if (d == "newstatement")
|
|
141
|
-
p(n, e.column(), "statement");
|
|
142
|
-
else if (d == "newblock" && !(v == "function" && t && (t.type == "statement" || t.type == "endgroup"))) {
|
|
143
|
-
if (!(v == "task" && t && t.type == "statement")) {
|
|
144
|
-
var l = f[v];
|
|
145
|
-
p(n, e.column(), l);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return n.startOfLine = !1, r;
|
|
149
|
-
},
|
|
150
|
-
indent: function(e, n, t) {
|
|
151
|
-
if (e.tokenize != _ && e.tokenize != null) return null;
|
|
152
|
-
if (a.indent) {
|
|
153
|
-
var r = a.indent(e);
|
|
154
|
-
if (r >= 0) return r;
|
|
155
|
-
}
|
|
156
|
-
var l = e.context, y = n && n.charAt(0);
|
|
157
|
-
l.type == "statement" && y == "}" && (l = l.prev);
|
|
158
|
-
var x = !1, $ = n.match(M);
|
|
159
|
-
return $ && (x = N($[0], l.type)), l.type == "statement" ? l.indented + (y == "{" ? 0 : o || t.unit) : U.test(l.type) && l.align && !u ? l.column + (x ? 0 : 1) : l.type == ")" && !x ? l.indented + (o || t.unit) : l.indented + (x ? 0 : t.unit);
|
|
160
|
-
},
|
|
161
|
-
languageData: {
|
|
162
|
-
indentOnInput: P(),
|
|
163
|
-
commentTokens: { line: "//", block: { open: "/*", close: "*/" } }
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
const J = A({});
|
|
168
|
-
var z = {
|
|
169
|
-
"|": "link",
|
|
170
|
-
">": "property",
|
|
171
|
-
// Should condition this off for > TLV 1c.
|
|
172
|
-
$: "variable",
|
|
173
|
-
$$: "variable",
|
|
174
|
-
"?$": "qualifier",
|
|
175
|
-
"?*": "qualifier",
|
|
176
|
-
"-": "contentSeparator",
|
|
177
|
-
"/": "property",
|
|
178
|
-
"/-": "property",
|
|
179
|
-
"@": "variableName.special",
|
|
180
|
-
"@-": "variableName.special",
|
|
181
|
-
"@++": "variableName.special",
|
|
182
|
-
"@+=": "variableName.special",
|
|
183
|
-
"@+=-": "variableName.special",
|
|
184
|
-
"@--": "variableName.special",
|
|
185
|
-
"@-=": "variableName.special",
|
|
186
|
-
"%+": "tag",
|
|
187
|
-
"%-": "tag",
|
|
188
|
-
"%": "tag",
|
|
189
|
-
">>": "tag",
|
|
190
|
-
"<<": "tag",
|
|
191
|
-
"<>": "tag",
|
|
192
|
-
"#": "tag",
|
|
193
|
-
// Need to choose a style for this.
|
|
194
|
-
"^": "attribute",
|
|
195
|
-
"^^": "attribute",
|
|
196
|
-
"^!": "attribute",
|
|
197
|
-
"*": "variable",
|
|
198
|
-
"**": "variable",
|
|
199
|
-
"\\": "keyword",
|
|
200
|
-
'"': "comment"
|
|
201
|
-
}, E = {
|
|
202
|
-
"/": "beh-hier",
|
|
203
|
-
">": "beh-hier",
|
|
204
|
-
"-": "phys-hier",
|
|
205
|
-
"|": "pipe",
|
|
206
|
-
"?": "when",
|
|
207
|
-
"@": "stage",
|
|
208
|
-
"\\": "keyword"
|
|
209
|
-
}, S = 3, q = /^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/, F = /^[! ] */, G = /^\/[\/\*]/;
|
|
210
|
-
const Q = A({
|
|
211
|
-
hooks: {
|
|
212
|
-
electricInput: !1,
|
|
213
|
-
// Return undefined for verilog tokenizing, or style for TLV token (null not used).
|
|
214
|
-
// Standard CM styles are used for most formatting, but some TL-Verilog-specific highlighting
|
|
215
|
-
// can be enabled with the definition of cm-tlv-* styles, including highlighting for:
|
|
216
|
-
// - M4 tokens
|
|
217
|
-
// - TLV scope indentation
|
|
218
|
-
// - Statement delimitation (enabled by tlvTrackStatements)
|
|
219
|
-
token: function(i, o) {
|
|
220
|
-
var u = void 0, c;
|
|
221
|
-
if (i.sol() && !o.tlvInBlockComment) {
|
|
222
|
-
i.peek() == "\\" && (u = "def", i.skipToEnd(), i.string.match(/\\SV/) ? o.tlvCodeActive = !1 : i.string.match(/\\TLV/) && (o.tlvCodeActive = !0)), o.tlvCodeActive && i.pos == 0 && o.indented == 0 && (c = i.match(F, !1)) && (o.indented = c[0].length);
|
|
223
|
-
var s = o.indented, a = s / S;
|
|
224
|
-
if (a <= o.tlvIndentationStyle.length) {
|
|
225
|
-
var g = i.string.length == s, h = a * S;
|
|
226
|
-
if (h < i.string.length) {
|
|
227
|
-
var w = i.string.slice(h), k = w[0];
|
|
228
|
-
E[k] && (c = w.match(q)) && z[c[1]] && (s += S, k == "\\" && h > 0 || (o.tlvIndentationStyle[a] = E[k], a++));
|
|
229
|
-
}
|
|
230
|
-
if (!g)
|
|
231
|
-
for (; o.tlvIndentationStyle.length > a; )
|
|
232
|
-
o.tlvIndentationStyle.pop();
|
|
233
|
-
}
|
|
234
|
-
o.tlvNextIndent = s;
|
|
235
|
-
}
|
|
236
|
-
if (o.tlvCodeActive) {
|
|
237
|
-
var c;
|
|
238
|
-
if (u === void 0) if (o.tlvInBlockComment)
|
|
239
|
-
i.match(/^.*?\*\//) ? o.tlvInBlockComment = !1 : i.skipToEnd(), u = "comment";
|
|
240
|
-
else if ((c = i.match(G)) && !o.tlvInBlockComment)
|
|
241
|
-
c[0] == "//" ? i.skipToEnd() : o.tlvInBlockComment = !0, u = "comment";
|
|
242
|
-
else if (c = i.match(q)) {
|
|
243
|
-
var b = c[1], I = c[2];
|
|
244
|
-
// is identifier prefix
|
|
245
|
-
z.hasOwnProperty(b) && // has mnemonic or we're at the end of the line (maybe it hasn't been typed yet)
|
|
246
|
-
(I.length > 0 || i.eol()) ? u = z[b] : i.backUp(i.current().length - 1);
|
|
247
|
-
} else i.match(/^\t+/) ? u = "invalid" : i.match(/^[\[\]{}\(\);\:]+/) ? u = "meta" : (c = i.match(/^[mM]4([\+_])?[\w\d_]*/)) ? u = c[1] == "+" ? "keyword.special" : "keyword" : i.match(/^ +/) ? i.eol() && (u = "error") : i.match(/^[\w\d_]+/) ? u = "number" : i.next();
|
|
248
|
-
} else
|
|
249
|
-
i.match(/^[mM]4([\w\d_]*)/) && (u = "keyword");
|
|
250
|
-
return u;
|
|
251
|
-
},
|
|
252
|
-
indent: function(i) {
|
|
253
|
-
return i.tlvCodeActive == !0 ? i.tlvNextIndent : -1;
|
|
254
|
-
},
|
|
255
|
-
startState: function(i) {
|
|
256
|
-
i.tlvIndentationStyle = [], i.tlvCodeActive = !0, i.tlvNextIndent = -1, i.tlvInBlockComment = !1;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
export {
|
|
261
|
-
Q as tlv,
|
|
262
|
-
J as verilog
|
|
263
|
-
};
|
package/dist/vhdl-T9HkrbI2.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
function f(e) {
|
|
2
|
-
for (var t = {}, n = e.split(","), r = 0; r < n.length; ++r) {
|
|
3
|
-
var i = n[r].toUpperCase(), l = n[r].charAt(0).toUpperCase() + n[r].slice(1);
|
|
4
|
-
t[n[r]] = !0, t[i] = !0, t[l] = !0;
|
|
5
|
-
}
|
|
6
|
-
return t;
|
|
7
|
-
}
|
|
8
|
-
function p(e) {
|
|
9
|
-
return e.eatWhile(/[\w\$_]/), "meta";
|
|
10
|
-
}
|
|
11
|
-
var k = f("null"), s = { "`": p, $: p }, g = !1, y = f("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"), v = f("architecture,entity,begin,case,port,else,elsif,end,for,function,if"), d = /[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/, o;
|
|
12
|
-
function c(e, t) {
|
|
13
|
-
var n = e.next();
|
|
14
|
-
if (s[n]) {
|
|
15
|
-
var r = s[n](e, t);
|
|
16
|
-
if (r !== !1) return r;
|
|
17
|
-
}
|
|
18
|
-
if (n == '"')
|
|
19
|
-
return t.tokenize = m(n), t.tokenize(e, t);
|
|
20
|
-
if (n == "'")
|
|
21
|
-
return t.tokenize = b(n), t.tokenize(e, t);
|
|
22
|
-
if (/[\[\]{}\(\),;\:\.]/.test(n))
|
|
23
|
-
return o = n, null;
|
|
24
|
-
if (/[\d']/.test(n))
|
|
25
|
-
return e.eatWhile(/[\w\.']/), "number";
|
|
26
|
-
if (n == "-" && e.eat("-"))
|
|
27
|
-
return e.skipToEnd(), "comment";
|
|
28
|
-
if (d.test(n))
|
|
29
|
-
return e.eatWhile(d), "operator";
|
|
30
|
-
e.eatWhile(/[\w\$_]/);
|
|
31
|
-
var i = e.current();
|
|
32
|
-
return y.propertyIsEnumerable(i.toLowerCase()) ? (v.propertyIsEnumerable(i) && (o = "newstatement"), "keyword") : k.propertyIsEnumerable(i) ? "atom" : "variable";
|
|
33
|
-
}
|
|
34
|
-
function b(e) {
|
|
35
|
-
return function(t, n) {
|
|
36
|
-
for (var r = !1, i, l = !1; (i = t.next()) != null; ) {
|
|
37
|
-
if (i == e && !r) {
|
|
38
|
-
l = !0;
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
r = !r && i == "--";
|
|
42
|
-
}
|
|
43
|
-
return (l || !(r || g)) && (n.tokenize = c), "string";
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function m(e) {
|
|
47
|
-
return function(t, n) {
|
|
48
|
-
for (var r = !1, i, l = !1; (i = t.next()) != null; ) {
|
|
49
|
-
if (i == e && !r) {
|
|
50
|
-
l = !0;
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
r = !r && i == "--";
|
|
54
|
-
}
|
|
55
|
-
return (l || !(r || g)) && (n.tokenize = c), "string.special";
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function h(e, t, n, r, i) {
|
|
59
|
-
this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i;
|
|
60
|
-
}
|
|
61
|
-
function a(e, t, n) {
|
|
62
|
-
return e.context = new h(e.indented, t, n, null, e.context);
|
|
63
|
-
}
|
|
64
|
-
function u(e) {
|
|
65
|
-
var t = e.context.type;
|
|
66
|
-
return (t == ")" || t == "]" || t == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
|
|
67
|
-
}
|
|
68
|
-
const w = {
|
|
69
|
-
name: "vhdl",
|
|
70
|
-
startState: function(e) {
|
|
71
|
-
return {
|
|
72
|
-
tokenize: null,
|
|
73
|
-
context: new h(-e, 0, "top", !1),
|
|
74
|
-
indented: 0,
|
|
75
|
-
startOfLine: !0
|
|
76
|
-
};
|
|
77
|
-
},
|
|
78
|
-
token: function(e, t) {
|
|
79
|
-
var n = t.context;
|
|
80
|
-
if (e.sol() && (n.align == null && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null;
|
|
81
|
-
o = null;
|
|
82
|
-
var r = (t.tokenize || c)(e, t);
|
|
83
|
-
if (r == "comment" || r == "meta") return r;
|
|
84
|
-
if (n.align == null && (n.align = !0), (o == ";" || o == ":") && n.type == "statement") u(t);
|
|
85
|
-
else if (o == "{") a(t, e.column(), "}");
|
|
86
|
-
else if (o == "[") a(t, e.column(), "]");
|
|
87
|
-
else if (o == "(") a(t, e.column(), ")");
|
|
88
|
-
else if (o == "}") {
|
|
89
|
-
for (; n.type == "statement"; ) n = u(t);
|
|
90
|
-
for (n.type == "}" && (n = u(t)); n.type == "statement"; ) n = u(t);
|
|
91
|
-
} else o == n.type ? u(t) : (n.type == "}" || n.type == "top" || n.type == "statement" && o == "newstatement") && a(t, e.column(), "statement");
|
|
92
|
-
return t.startOfLine = !1, r;
|
|
93
|
-
},
|
|
94
|
-
indent: function(e, t, n) {
|
|
95
|
-
if (e.tokenize != c && e.tokenize != null) return 0;
|
|
96
|
-
var r = t && t.charAt(0), i = e.context, l = r == i.type;
|
|
97
|
-
return i.type == "statement" ? i.indented + (r == "{" ? 0 : n.unit) : i.align ? i.column + (l ? 0 : 1) : i.indented + (l ? 0 : n.unit);
|
|
98
|
-
},
|
|
99
|
-
languageData: {
|
|
100
|
-
indentOnInput: /^\s*[{}]$/,
|
|
101
|
-
commentTokens: { line: "--" }
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
export {
|
|
105
|
-
w as vhdl
|
|
106
|
-
};
|
package/dist/webidl-CjfDENEo.js
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
function a(e) {
|
|
2
|
-
return new RegExp("^((" + e.join(")|(") + "))\\b");
|
|
3
|
-
}
|
|
4
|
-
var l = [
|
|
5
|
-
"Clamp",
|
|
6
|
-
"Constructor",
|
|
7
|
-
"EnforceRange",
|
|
8
|
-
"Exposed",
|
|
9
|
-
"ImplicitThis",
|
|
10
|
-
"Global",
|
|
11
|
-
"PrimaryGlobal",
|
|
12
|
-
"LegacyArrayClass",
|
|
13
|
-
"LegacyUnenumerableNamedProperties",
|
|
14
|
-
"LenientThis",
|
|
15
|
-
"NamedConstructor",
|
|
16
|
-
"NewObject",
|
|
17
|
-
"NoInterfaceObject",
|
|
18
|
-
"OverrideBuiltins",
|
|
19
|
-
"PutForwards",
|
|
20
|
-
"Replaceable",
|
|
21
|
-
"SameObject",
|
|
22
|
-
"TreatNonObjectAsNull",
|
|
23
|
-
"TreatNullAs",
|
|
24
|
-
"EmptyString",
|
|
25
|
-
"Unforgeable",
|
|
26
|
-
"Unscopeable"
|
|
27
|
-
], u = a(l), o = [
|
|
28
|
-
"unsigned",
|
|
29
|
-
"short",
|
|
30
|
-
"long",
|
|
31
|
-
// UnsignedIntegerType
|
|
32
|
-
"unrestricted",
|
|
33
|
-
"float",
|
|
34
|
-
"double",
|
|
35
|
-
// UnrestrictedFloatType
|
|
36
|
-
"boolean",
|
|
37
|
-
"byte",
|
|
38
|
-
"octet",
|
|
39
|
-
// Rest of PrimitiveType
|
|
40
|
-
"Promise",
|
|
41
|
-
// PromiseType
|
|
42
|
-
"ArrayBuffer",
|
|
43
|
-
"DataView",
|
|
44
|
-
"Int8Array",
|
|
45
|
-
"Int16Array",
|
|
46
|
-
"Int32Array",
|
|
47
|
-
"Uint8Array",
|
|
48
|
-
"Uint16Array",
|
|
49
|
-
"Uint32Array",
|
|
50
|
-
"Uint8ClampedArray",
|
|
51
|
-
"Float32Array",
|
|
52
|
-
"Float64Array",
|
|
53
|
-
// BufferRelatedType
|
|
54
|
-
"ByteString",
|
|
55
|
-
"DOMString",
|
|
56
|
-
"USVString",
|
|
57
|
-
"sequence",
|
|
58
|
-
"object",
|
|
59
|
-
"RegExp",
|
|
60
|
-
"Error",
|
|
61
|
-
"DOMException",
|
|
62
|
-
"FrozenArray",
|
|
63
|
-
// Rest of NonAnyType
|
|
64
|
-
"any",
|
|
65
|
-
// Rest of SingleType
|
|
66
|
-
"void"
|
|
67
|
-
// Rest of ReturnType
|
|
68
|
-
], m = a(o), c = [
|
|
69
|
-
"attribute",
|
|
70
|
-
"callback",
|
|
71
|
-
"const",
|
|
72
|
-
"deleter",
|
|
73
|
-
"dictionary",
|
|
74
|
-
"enum",
|
|
75
|
-
"getter",
|
|
76
|
-
"implements",
|
|
77
|
-
"inherit",
|
|
78
|
-
"interface",
|
|
79
|
-
"iterable",
|
|
80
|
-
"legacycaller",
|
|
81
|
-
"maplike",
|
|
82
|
-
"partial",
|
|
83
|
-
"required",
|
|
84
|
-
"serializer",
|
|
85
|
-
"setlike",
|
|
86
|
-
"setter",
|
|
87
|
-
"static",
|
|
88
|
-
"stringifier",
|
|
89
|
-
"typedef",
|
|
90
|
-
// ArgumentNameKeyword except
|
|
91
|
-
// "unrestricted"
|
|
92
|
-
"optional",
|
|
93
|
-
"readonly",
|
|
94
|
-
"or"
|
|
95
|
-
], s = a(c), f = [
|
|
96
|
-
"true",
|
|
97
|
-
"false",
|
|
98
|
-
// BooleanLiteral
|
|
99
|
-
"Infinity",
|
|
100
|
-
"NaN",
|
|
101
|
-
// FloatLiteral
|
|
102
|
-
"null"
|
|
103
|
-
// Rest of ConstValue
|
|
104
|
-
], y = a(f), d = ["callback", "dictionary", "enum", "interface"], p = a(d), b = ["typedef"], v = a(b), A = /^[:<=>?]/, g = /^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/, h = /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/, i = /^_?[A-Za-z][0-9A-Z_a-z-]*/, D = /^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/, k = /^"[^"]*"/, E = /^\/\*.*?\*\//, C = /^\/\*.*/, w = /^.*?\*\//;
|
|
105
|
-
function N(e, r) {
|
|
106
|
-
if (e.eatSpace()) return null;
|
|
107
|
-
if (r.inComment)
|
|
108
|
-
return e.match(w) ? (r.inComment = !1, "comment") : (e.skipToEnd(), "comment");
|
|
109
|
-
if (e.match("//"))
|
|
110
|
-
return e.skipToEnd(), "comment";
|
|
111
|
-
if (e.match(E)) return "comment";
|
|
112
|
-
if (e.match(C))
|
|
113
|
-
return r.inComment = !0, "comment";
|
|
114
|
-
if (e.match(/^-?[0-9\.]/, !1) && (e.match(g) || e.match(h)))
|
|
115
|
-
return "number";
|
|
116
|
-
if (e.match(k)) return "string";
|
|
117
|
-
if (r.startDef && e.match(i)) return "def";
|
|
118
|
-
if (r.endDef && e.match(D))
|
|
119
|
-
return r.endDef = !1, "def";
|
|
120
|
-
if (e.match(s)) return "keyword";
|
|
121
|
-
if (e.match(m)) {
|
|
122
|
-
var t = r.lastToken, n = (e.match(/^\s*(.+?)\b/, !1) || [])[1];
|
|
123
|
-
return t === ":" || t === "implements" || n === "implements" || n === "=" ? "builtin" : "type";
|
|
124
|
-
}
|
|
125
|
-
return e.match(u) ? "builtin" : e.match(y) ? "atom" : e.match(i) ? "variable" : e.match(A) ? "operator" : (e.next(), null);
|
|
126
|
-
}
|
|
127
|
-
const S = {
|
|
128
|
-
name: "webidl",
|
|
129
|
-
startState: function() {
|
|
130
|
-
return {
|
|
131
|
-
// Is in multiline comment
|
|
132
|
-
inComment: !1,
|
|
133
|
-
// Last non-whitespace, matched token
|
|
134
|
-
lastToken: "",
|
|
135
|
-
// Next token is a definition
|
|
136
|
-
startDef: !1,
|
|
137
|
-
// Last token of the statement is a definition
|
|
138
|
-
endDef: !1
|
|
139
|
-
};
|
|
140
|
-
},
|
|
141
|
-
token: function(e, r) {
|
|
142
|
-
var t = N(e, r);
|
|
143
|
-
if (t) {
|
|
144
|
-
var n = e.current();
|
|
145
|
-
r.lastToken = n, t === "keyword" ? (r.startDef = p.test(n), r.endDef = r.endDef || v.test(n)) : r.startDef = !1;
|
|
146
|
-
}
|
|
147
|
-
return t;
|
|
148
|
-
},
|
|
149
|
-
languageData: {
|
|
150
|
-
autocomplete: l.concat(o).concat(c).concat(f)
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
export {
|
|
154
|
-
S as webIDL
|
|
155
|
-
};
|