@marimo-team/islands 0.13.5-dev11 → 0.13.5-dev13

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.
Files changed (154) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DGzxt47N.js → ConnectedDataExplorerComponent-RnyF_6QE.js} +214 -214
  2. package/dist/{VegaLite-D2UNcEXH.js → VegaLite-DcrlokVU.js} +3 -3
  3. package/dist/{_baseUniq-BwWUFPup.js → _baseUniq-D0mnKfEB.js} +73 -73
  4. package/dist/any-language-editor-WRjGL4ZO.js +45 -0
  5. package/dist/{architectureDiagram-IEHRJDOE-BMC3m5gO.js → architectureDiagram-IEHRJDOE-DFf6T8zp.js} +5 -5
  6. package/dist/{blockDiagram-JOT3LUYC-CODoduIV.js → blockDiagram-JOT3LUYC-C7IFiHze.js} +4 -4
  7. package/dist/{c4Diagram-VJAJSXHY-C0PDy0vf.js → c4Diagram-VJAJSXHY-DN_wmwrk.js} +2 -2
  8. package/dist/{channel-C8CcO-8_.js → channel-B2O7YrZR.js} +1 -1
  9. package/dist/{chunk-4BMEZGHF-DHZttL4z.js → chunk-4BMEZGHF-DQFQWmiU.js} +1 -1
  10. package/dist/{chunk-A2AXSNBT-DRIIc_AX.js → chunk-A2AXSNBT-B84LlTOs.js} +2 -2
  11. package/dist/{chunk-AEK57VVT-BlEOcXFy.js → chunk-AEK57VVT-BxAlRItw.js} +2 -2
  12. package/dist/{chunk-D6G4REZN-B0b3V4XZ.js → chunk-D6G4REZN-w-tkABTk.js} +1 -1
  13. package/dist/{chunk-RZ5BOZE2-CDlRkOFA.js → chunk-RZ5BOZE2-_srVsntT.js} +1 -1
  14. package/dist/{chunk-XZIHB7SX-CcTbZQaS.js → chunk-XZIHB7SX-PfuVv339.js} +1 -1
  15. package/dist/{classDiagram-GIVACNV2-DTN4b3-O.js → classDiagram-GIVACNV2-MPsaV8dC.js} +2 -2
  16. package/dist/{classDiagram-v2-COTLJTTW-DTN4b3-O.js → classDiagram-v2-COTLJTTW-MPsaV8dC.js} +2 -2
  17. package/dist/{clone-ybASJB3k.js → clone-D5QTTO5j.js} +1 -1
  18. package/dist/{dagre-OKDRZEBW-BSI6cQk6.js → dagre-OKDRZEBW-BhAuQCRV.js} +6 -6
  19. package/dist/{data-editor-DMOunklv.js → data-editor-DD7nPSAl.js} +1 -1
  20. package/dist/{diagram-SSKATNLV-DfZlJP-n.js → diagram-SSKATNLV-7o4GbHxi.js} +3 -3
  21. package/dist/{diagram-VNBRO52H-CxCCdhVZ.js → diagram-VNBRO52H-C1OBfS0s.js} +3 -3
  22. package/dist/{erDiagram-Q7BY3M3F-Dc4W833h.js → erDiagram-Q7BY3M3F-Cu9FFxLn.js} +3 -3
  23. package/dist/{flowDiagram-4HSFHLVR-D9yxPQsa.js → flowDiagram-4HSFHLVR-DgB0406w.js} +3 -3
  24. package/dist/{ganttDiagram-APWFNJXF-BVSpxqqk.js → ganttDiagram-APWFNJXF-DnIEfKrc.js} +23 -23
  25. package/dist/{gitGraphDiagram-7IBYFJ6S-DLYM6i45.js → gitGraphDiagram-7IBYFJ6S-CTuVKNco.js} +4 -4
  26. package/dist/{graph-COKKwwSB.js → graph-BqCAzm60.js} +6 -6
  27. package/dist/{index-COl3mLGt.js → index-CjfMIwTR.js} +21 -21
  28. package/dist/{index-Po2EutVS.js → index-CvfgWMPH.js} +1 -1
  29. package/dist/{index-DbIHdpyi.js → index-DXciNDf5.js} +3 -3
  30. package/dist/{index-YwfZmGCW.js → index-uMw2siya.js} +1 -1
  31. package/dist/{infoDiagram-PH2N3AL5-CxwHJkxr.js → infoDiagram-PH2N3AL5-Dgjh536N.js} +2 -2
  32. package/dist/{journeyDiagram-U35MCT3I-DD22yOto.js → journeyDiagram-U35MCT3I-BqmZB3RC.js} +2 -2
  33. package/dist/{kanban-definition-NDS4AKOZ-B3Z-1oe5.js → kanban-definition-NDS4AKOZ-Dd07zOC6.js} +1 -1
  34. package/dist/{layout-jlZkuoZy.js → layout-BXK4CGcl.js} +48 -48
  35. package/dist/{linear-Cpyhk2hB.js → linear-CA66uGUw.js} +75 -75
  36. package/dist/{main-B8-MjWsg.js → main-DZFafsBV.js} +72774 -54918
  37. package/dist/main.js +2 -2
  38. package/dist/{mermaid-CHeWOMVQ.js → mermaid-B8bjfF6s.js} +28 -28
  39. package/dist/{min-BZ3EZsKE.js → min-eHKNnl-H.js} +23 -23
  40. package/dist/{mindmap-definition-ALO5MXBD-HeoZGbgD.js → mindmap-definition-ALO5MXBD-Cb2u85Oh.js} +2 -2
  41. package/dist/{pieDiagram-IB7DONF6-DHwJJ0Ej.js → pieDiagram-IB7DONF6-VSMSF0Yy.js} +3 -3
  42. package/dist/{quadrantDiagram-7GDLP6J5-nuemB1W-.js → quadrantDiagram-7GDLP6J5-usra7ail.js} +2 -2
  43. package/dist/{radar-MK3ICKWK-CJigR5qH.js → radar-MK3ICKWK-NOqHyVz_.js} +5 -5
  44. package/dist/{react-plotly-DKVXryZb.js → react-plotly-IEG2Gg1b.js} +1 -1
  45. package/dist/{requirementDiagram-KVF5MWMF-KSufhrz_.js → requirementDiagram-KVF5MWMF-s4Jijcm0.js} +2 -2
  46. package/dist/{sankeyDiagram-QLVOVGJD-ChCkdCa9.js → sankeyDiagram-QLVOVGJD-argmnqYQ.js} +1 -1
  47. package/dist/{sequenceDiagram-X6HHIX6F-BjkRbxpj.js → sequenceDiagram-X6HHIX6F-DonkstWN.js} +3 -3
  48. package/dist/{slides-component-B9fq17O7.js → slides-component-C_tCR6hy.js} +25 -25
  49. package/dist/{stateDiagram-DGXRK772-DqoOhvP5.js → stateDiagram-DGXRK772-CGhxSe6j.js} +4 -4
  50. package/dist/{stateDiagram-v2-YXO3MK2T-BAgEIEBw.js → stateDiagram-v2-YXO3MK2T-CUcbK6Oi.js} +2 -2
  51. package/dist/style.css +1 -1
  52. package/dist/{time-yaJ8gWNG.js → time-D53ulJkT.js} +2 -2
  53. package/dist/{timeline-definition-BDJGKUSR-BMiBQE_M.js → timeline-definition-BDJGKUSR-DMb2utEG.js} +1 -1
  54. package/dist/{vega-component-DqlxF-sC.js → vega-component-Ck6MGsXc.js} +22 -22
  55. package/dist/{xychartDiagram-VJFVF3MP-BL4J8grT.js → xychartDiagram-VJFVF3MP-CTNPAD0E.js} +2 -2
  56. package/package.json +1 -1
  57. package/dist/any-language-editor-BoGk6VPl.js +0 -2304
  58. package/dist/apl-B2DGVGxc.js +0 -76
  59. package/dist/asciiarmor-2LVJmxlE.js +0 -34
  60. package/dist/asterisk-DS281yxp.js +0 -271
  61. package/dist/brainfuck-C_p9pTT8.js +0 -34
  62. package/dist/clike-BUuHEmgZ.js +0 -620
  63. package/dist/cmake-CuaCgAKt.js +0 -28
  64. package/dist/cobol-BlTKFDRj.js +0 -72
  65. package/dist/coffeescript-BVCvwO8I.js +0 -179
  66. package/dist/commonlisp-D_kxz07b.js +0 -75
  67. package/dist/crystal-D309uH6_.js +0 -217
  68. package/dist/cypher-BMq4Fwjl.js +0 -68
  69. package/dist/d-BZcgY6La.js +0 -127
  70. package/dist/diff-Cg9d_RX2.js +0 -18
  71. package/dist/dockerfile-DIy8NleC.js +0 -194
  72. package/dist/dtd-CtLokQ-U.js +0 -84
  73. package/dist/dylan-QYeExnWK.js +0 -234
  74. package/dist/ebnf-DUPDuY4r.js +0 -78
  75. package/dist/ecl-CiXN-g_D.js +0 -121
  76. package/dist/eiffel-yQhjl4T1.js +0 -110
  77. package/dist/elm-CNT9vbN0.js +0 -108
  78. package/dist/erlang-CFOYdy9e.js +0 -487
  79. package/dist/factor-DDOC7X6P.js +0 -65
  80. package/dist/fcl-CPC2WYrI.js +0 -103
  81. package/dist/forth-BmxRyE9S.js +0 -60
  82. package/dist/fortran-9bvPyrOW.js +0 -442
  83. package/dist/gas-BdfkXJT_.js +0 -183
  84. package/dist/gherkin-CJuwpceU.js +0 -34
  85. package/dist/groovy-DZeT_VM-.js +0 -146
  86. package/dist/haskell-Bvt3Qq1t.js +0 -375
  87. package/dist/haxe-70NVW1pR.js +0 -359
  88. package/dist/http-D9LttvKF.js +0 -44
  89. package/dist/idl-B6TRFYjl.js +0 -947
  90. package/dist/index-5AINTTUB.js +0 -155
  91. package/dist/index-BWjLWCJ6.js +0 -264
  92. package/dist/index-Bcoyxaps.js +0 -74
  93. package/dist/index-CERpQ76K.js +0 -134
  94. package/dist/index-CUc0YtKu.js +0 -57
  95. package/dist/index-CiTLcl0V.js +0 -243
  96. package/dist/index-Co7yojm-.js +0 -271
  97. package/dist/index-CodrF23c.js +0 -133
  98. package/dist/index-D58l8ic5.js +0 -92
  99. package/dist/index-DdRXgbmZ.js +0 -97
  100. package/dist/index-DzEmkK9B.js +0 -298
  101. package/dist/index-gXJGBs4l.js +0 -68
  102. package/dist/jinja2-DnB6dQmV.js +0 -154
  103. package/dist/julia-DpvXAuO6.js +0 -241
  104. package/dist/livescript-CanGTf8u.js +0 -272
  105. package/dist/lua-XplVlWi_.js +0 -217
  106. package/dist/mathematica-jaRHnSxC.js +0 -35
  107. package/dist/mbox-BctzC1hL.js +0 -76
  108. package/dist/mirc-CFBPAOaF.js +0 -72
  109. package/dist/modelica-vUgVs--1.js +0 -93
  110. package/dist/mscgen-Cpl0NYLN.js +0 -104
  111. package/dist/mumps-CQoS1kWX.js +0 -25
  112. package/dist/nginx-zDPm3Z74.js +0 -89
  113. package/dist/nsis-fePjrhq7.js +0 -62
  114. package/dist/ntriples-CsNjv2QF.js +0 -79
  115. package/dist/octave-C8PmmSRH.js +0 -143
  116. package/dist/oz-Ce8aN8oE.js +0 -151
  117. package/dist/pascal-De0D6mP7.js +0 -77
  118. package/dist/perl-B4bSCe1C.js +0 -915
  119. package/dist/pig-D24Z8EXi.js +0 -54
  120. package/dist/powershell-DkYVfTzP.js +0 -249
  121. package/dist/properties-Dn9wna3M.js +0 -26
  122. package/dist/protobuf-BPIjwpzm.js +0 -49
  123. package/dist/puppet-nyd4dhjf.js +0 -45
  124. package/dist/q-DXjKs-tC.js +0 -83
  125. package/dist/r-LKEuhEGI.js +0 -104
  126. package/dist/ruby-CcYfvIk6.js +0 -228
  127. package/dist/sas-7E8yHoCW.js +0 -105
  128. package/dist/scheme-DjibxsNh.js +0 -124
  129. package/dist/shell-C0C2sNA_.js +0 -182
  130. package/dist/sieve-Bwz7vjP5.js +0 -72
  131. package/dist/simple-mode-B0dvCdAA.js +0 -89
  132. package/dist/smalltalk-Bhddl2pB.js +0 -48
  133. package/dist/solr-BNlsLglM.js +0 -41
  134. package/dist/sparql-FarWu_Gb.js +0 -197
  135. package/dist/spreadsheet-C-cy4P5N.js +0 -49
  136. package/dist/stylus-CAdqWld3.js +0 -250
  137. package/dist/swift-DSxqR9R6.js +0 -230
  138. package/dist/tcl-xfoLljhY.js +0 -81
  139. package/dist/textile-D1AWE-pc.js +0 -295
  140. package/dist/tiddlywiki-5wqsXtSk.js +0 -155
  141. package/dist/tiki-__Kn3CeS.js +0 -181
  142. package/dist/toml-BHiuTcfn.js +0 -49
  143. package/dist/troff-D2UO-fKf.js +0 -35
  144. package/dist/ttcn-Bsa4sfRm.js +0 -123
  145. package/dist/turtle-xwJUxoPV.js +0 -80
  146. package/dist/vb-c2kQGd6-.js +0 -74
  147. package/dist/vbscript-Dz1TtKsy.js +0 -324
  148. package/dist/velocity-DJd0pTTC.js +0 -96
  149. package/dist/verilog-C4VGD9n1.js +0 -263
  150. package/dist/vhdl-T9HkrbI2.js +0 -106
  151. package/dist/webidl-CjfDENEo.js +0 -155
  152. package/dist/xquery-BUQdORAS.js +0 -422
  153. package/dist/yacas-C0absKBh.js +0 -73
  154. package/dist/z80-C8rPtw-0.js +0 -61
@@ -1,35 +0,0 @@
1
- var h = {};
2
- function u(n) {
3
- if (n.eatSpace()) return null;
4
- var t = n.sol(), c = n.next();
5
- if (c === "\\")
6
- return n.match("fB") || n.match("fR") || n.match("fI") || n.match("u") || n.match("d") || n.match("%") || n.match("&") ? "string" : n.match("m[") ? (n.skipTo("]"), n.next(), "string") : n.match("s+") || n.match("s-") ? (n.eatWhile(/[\d-]/), "string") : ((n.match("(") || n.match("*(")) && n.eatWhile(/[\w-]/), "string");
7
- if (t && (c === "." || c === "'") && n.eat("\\") && n.eat('"'))
8
- return n.skipToEnd(), "comment";
9
- if (t && c === ".") {
10
- if (n.match("B ") || n.match("I ") || n.match("R "))
11
- return "attribute";
12
- if (n.match("TH ") || n.match("SH ") || n.match("SS ") || n.match("HP "))
13
- return n.skipToEnd(), "quote";
14
- if (n.match(/[A-Z]/) && n.match(/[A-Z]/) || n.match(/[a-z]/) && n.match(/[a-z]/))
15
- return "attribute";
16
- }
17
- n.eatWhile(/[\w-]/);
18
- var i = n.current();
19
- return h.hasOwnProperty(i) ? h[i] : null;
20
- }
21
- function f(n, t) {
22
- return (t.tokens[0] || u)(n, t);
23
- }
24
- const o = {
25
- name: "troff",
26
- startState: function() {
27
- return { tokens: [] };
28
- },
29
- token: function(n, t) {
30
- return f(n, t);
31
- }
32
- };
33
- export {
34
- o as troff
35
- };
@@ -1,123 +0,0 @@
1
- function o(e) {
2
- for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
3
- return t;
4
- }
5
- const i = {
6
- keywords: o("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),
7
- builtin: o("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),
8
- types: o("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),
9
- timerOps: o("read running start stop timeout"),
10
- portOps: o("call catch check clear getcall getreply halt raise receive reply send trigger"),
11
- configOps: o("create connect disconnect done kill killed map unmap"),
12
- verdictOps: o("getverdict setverdict"),
13
- sutOps: o("action"),
14
- functionOps: o("apply derefers refers"),
15
- verdictConsts: o("error fail inconc none pass"),
16
- booleanConsts: o("true false"),
17
- otherConsts: o("null NULL omit"),
18
- visibilityModifiers: o("private public friend"),
19
- templateMatch: o("complement ifpresent subset superset permutation")
20
- };
21
- var h = [];
22
- function p(e) {
23
- if (e) for (var t in e) e.hasOwnProperty(t) && h.push(t);
24
- }
25
- p(i.keywords);
26
- p(i.builtin);
27
- p(i.timerOps);
28
- p(i.portOps);
29
- var y = i.keywords || {}, v = i.builtin || {}, x = i.timerOps || {}, g = i.portOps || {}, k = i.configOps || {}, O = i.verdictOps || {}, w = i.sutOps || {}, E = i.functionOps || {}, C = i.verdictConsts || {}, I = i.booleanConsts || {}, z = i.otherConsts || {}, L = i.types || {}, M = i.visibilityModifiers || {}, S = i.templateMatch || {}, W = i.indentStatements !== !1, d = /[+\-*&@=<>!\/]/, l;
30
- function T(e, t) {
31
- var n = e.next();
32
- if (n == '"' || n == "'")
33
- return t.tokenize = N(n), t.tokenize(e, t);
34
- if (/[\[\]{}\(\),;\\:\?\.]/.test(n))
35
- return l = n, "punctuation";
36
- if (n == "#")
37
- return e.skipToEnd(), "atom";
38
- if (n == "%")
39
- return e.eatWhile(/\b/), "atom";
40
- if (/\d/.test(n))
41
- return e.eatWhile(/[\w\.]/), "number";
42
- if (n == "/") {
43
- if (e.eat("*"))
44
- return t.tokenize = m, m(e, t);
45
- if (e.eat("/"))
46
- return e.skipToEnd(), "comment";
47
- }
48
- if (d.test(n))
49
- return n == "@" && (e.match("try") || e.match("catch") || e.match("lazy")) ? "keyword" : (e.eatWhile(d), "operator");
50
- e.eatWhile(/[\w\$_\xa1-\uffff]/);
51
- var r = e.current();
52
- return y.propertyIsEnumerable(r) ? "keyword" : v.propertyIsEnumerable(r) ? "builtin" : x.propertyIsEnumerable(r) || k.propertyIsEnumerable(r) || O.propertyIsEnumerable(r) || g.propertyIsEnumerable(r) || w.propertyIsEnumerable(r) || E.propertyIsEnumerable(r) ? "def" : C.propertyIsEnumerable(r) || I.propertyIsEnumerable(r) || z.propertyIsEnumerable(r) ? "string" : L.propertyIsEnumerable(r) ? "typeName.standard" : M.propertyIsEnumerable(r) ? "modifier" : S.propertyIsEnumerable(r) ? "atom" : "variable";
53
- }
54
- function N(e) {
55
- return function(t, n) {
56
- for (var r = !1, c, f = !1; (c = t.next()) != null; ) {
57
- if (c == e && !r) {
58
- var s = t.peek();
59
- s && (s = s.toLowerCase(), (s == "b" || s == "h" || s == "o") && t.next()), f = !0;
60
- break;
61
- }
62
- r = !r && c == "\\";
63
- }
64
- return f && (n.tokenize = null), "string";
65
- };
66
- }
67
- function m(e, t) {
68
- for (var n = !1, r; r = e.next(); ) {
69
- if (r == "/" && n) {
70
- t.tokenize = null;
71
- break;
72
- }
73
- n = r == "*";
74
- }
75
- return "comment";
76
- }
77
- function b(e, t, n, r, c) {
78
- this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = c;
79
- }
80
- function a(e, t, n) {
81
- var r = e.indented;
82
- return e.context && e.context.type == "statement" && (r = e.context.indented), e.context = new b(r, t, n, null, e.context);
83
- }
84
- function u(e) {
85
- var t = e.context.type;
86
- return (t == ")" || t == "]" || t == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
87
- }
88
- const P = {
89
- name: "ttcn",
90
- startState: function() {
91
- return {
92
- tokenize: null,
93
- context: new b(0, 0, "top", !1),
94
- indented: 0,
95
- startOfLine: !0
96
- };
97
- },
98
- token: function(e, t) {
99
- var n = t.context;
100
- if (e.sol() && (n.align == null && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null;
101
- l = null;
102
- var r = (t.tokenize || T)(e, t);
103
- if (r == "comment") return r;
104
- if (n.align == null && (n.align = !0), (l == ";" || l == ":" || l == ",") && n.type == "statement")
105
- u(t);
106
- else if (l == "{") a(t, e.column(), "}");
107
- else if (l == "[") a(t, e.column(), "]");
108
- else if (l == "(") a(t, e.column(), ")");
109
- else if (l == "}") {
110
- for (; n.type == "statement"; ) n = u(t);
111
- for (n.type == "}" && (n = u(t)); n.type == "statement"; ) n = u(t);
112
- } else l == n.type ? u(t) : W && ((n.type == "}" || n.type == "top") && l != ";" || n.type == "statement" && l == "newstatement") && a(t, e.column(), "statement");
113
- return t.startOfLine = !1, r;
114
- },
115
- languageData: {
116
- indentOnInput: /^\s*[{}]$/,
117
- commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
118
- autocomplete: h
119
- }
120
- };
121
- export {
122
- P as ttcn
123
- };
@@ -1,80 +0,0 @@
1
- var r;
2
- function p(e) {
3
- return new RegExp("^(?:" + e.join("|") + ")$", "i");
4
- }
5
- p([]);
6
- var d = p(["@prefix", "@base", "a"]), f = /[*+\-<>=&|]/;
7
- function x(e, n) {
8
- var t = e.next();
9
- if (r = null, t == "<" && !e.match(/^[\s\u00a0=]/, !1))
10
- return e.match(/^[^\s\u00a0>]*>?/), "atom";
11
- if (t == '"' || t == "'")
12
- return n.tokenize = v(t), n.tokenize(e, n);
13
- if (/[{}\(\),\.;\[\]]/.test(t))
14
- return r = t, null;
15
- if (t == "#")
16
- return e.skipToEnd(), "comment";
17
- if (f.test(t))
18
- return e.eatWhile(f), null;
19
- if (t == ":")
20
- return "operator";
21
- if (e.eatWhile(/[_\w\d]/), e.peek() == ":")
22
- return "variableName.special";
23
- var i = e.current();
24
- return d.test(i) ? "meta" : t >= "A" && t <= "Z" ? "comment" : "keyword";
25
- var i = e.current();
26
- }
27
- function v(e) {
28
- return function(n, t) {
29
- for (var i = !1, o; (o = n.next()) != null; ) {
30
- if (o == e && !i) {
31
- t.tokenize = x;
32
- break;
33
- }
34
- i = !i && o == "\\";
35
- }
36
- return "string";
37
- };
38
- }
39
- function l(e, n, t) {
40
- e.context = { prev: e.context, indent: e.indent, col: t, type: n };
41
- }
42
- function c(e) {
43
- e.indent = e.context.indent, e.context = e.context.prev;
44
- }
45
- const g = {
46
- name: "turtle",
47
- startState: function() {
48
- return {
49
- tokenize: x,
50
- context: null,
51
- indent: 0,
52
- col: 0
53
- };
54
- },
55
- token: function(e, n) {
56
- if (e.sol() && (n.context && n.context.align == null && (n.context.align = !1), n.indent = e.indentation()), e.eatSpace()) return null;
57
- var t = n.tokenize(e, n);
58
- if (t != "comment" && n.context && n.context.align == null && n.context.type != "pattern" && (n.context.align = !0), r == "(") l(n, ")", e.column());
59
- else if (r == "[") l(n, "]", e.column());
60
- else if (r == "{") l(n, "}", e.column());
61
- else if (/[\]\}\)]/.test(r)) {
62
- for (; n.context && n.context.type == "pattern"; ) c(n);
63
- n.context && r == n.context.type && c(n);
64
- } else r == "." && n.context && n.context.type == "pattern" ? c(n) : /atom|string|variable/.test(t) && n.context && (/[\}\]]/.test(n.context.type) ? l(n, "pattern", e.column()) : n.context.type == "pattern" && !n.context.align && (n.context.align = !0, n.context.col = e.column()));
65
- return t;
66
- },
67
- indent: function(e, n, t) {
68
- var i = n && n.charAt(0), o = e.context;
69
- if (/[\]\}]/.test(i))
70
- for (; o && o.type == "pattern"; ) o = o.prev;
71
- var u = o && i == o.type;
72
- return o ? o.type == "pattern" ? o.col : o.align ? o.col + (u ? 0 : 1) : o.indent + (u ? 0 : t.unit) : 0;
73
- },
74
- languageData: {
75
- commentTokens: { line: "#" }
76
- }
77
- };
78
- export {
79
- g as turtle
80
- };
@@ -1,74 +0,0 @@
1
- var u = "error";
2
- function o(e) {
3
- return new RegExp("^((" + e.join(")|(") + "))\\b", "i");
4
- }
5
- var b = new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"), k = new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"), x = new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"), m = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"), I = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"), R = new RegExp("^[_A-Za-z][_A-Za-z0-9]*"), a = ["class", "module", "sub", "enum", "select", "while", "if", "function", "get", "set", "property", "try", "structure", "synclock", "using", "with"], f = ["else", "elseif", "case", "catch", "finally"], h = ["next", "loop"], s = ["and", "andalso", "or", "orelse", "xor", "in", "not", "is", "isnot", "like"], O = o(s), v = ["#const", "#else", "#elseif", "#end", "#if", "#region", "addhandler", "addressof", "alias", "as", "byref", "byval", "cbool", "cbyte", "cchar", "cdate", "cdbl", "cdec", "cint", "clng", "cobj", "compare", "const", "continue", "csbyte", "cshort", "csng", "cstr", "cuint", "culng", "cushort", "declare", "default", "delegate", "dim", "directcast", "each", "erase", "error", "event", "exit", "explicit", "false", "for", "friend", "gettype", "goto", "handles", "implements", "imports", "infer", "inherits", "interface", "isfalse", "istrue", "lib", "me", "mod", "mustinherit", "mustoverride", "my", "mybase", "myclass", "namespace", "narrowing", "new", "nothing", "notinheritable", "notoverridable", "of", "off", "on", "operator", "option", "optional", "out", "overloads", "overridable", "overrides", "paramarray", "partial", "private", "protected", "public", "raiseevent", "readonly", "redim", "removehandler", "resume", "return", "shadows", "shared", "static", "step", "stop", "strict", "then", "throw", "to", "true", "trycast", "typeof", "until", "until", "when", "widening", "withevents", "writeonly"], p = ["object", "boolean", "char", "string", "byte", "sbyte", "short", "ushort", "int16", "uint16", "integer", "uinteger", "int32", "uint32", "long", "ulong", "int64", "uint64", "decimal", "single", "double", "float", "date", "datetime", "intptr", "uintptr"], z = o(v), E = o(p), C = '"', S = o(a), g = o(f), y = o(h), w = o(["end"]), T = o(["do"]);
6
- function l(e, n) {
7
- n.currentIndent++;
8
- }
9
- function c(e, n) {
10
- n.currentIndent--;
11
- }
12
- function d(e, n) {
13
- if (e.eatSpace())
14
- return null;
15
- var i = e.peek();
16
- if (i === "'")
17
- return e.skipToEnd(), "comment";
18
- if (e.match(/^((&H)|(&O))?[0-9\.a-f]/i, !1)) {
19
- var r = !1;
20
- if ((e.match(/^\d*\.\d+F?/i) || e.match(/^\d+\.\d*F?/) || e.match(/^\.\d+F?/)) && (r = !0), r)
21
- return e.eat(/J/i), "number";
22
- var t = !1;
23
- if (e.match(/^&H[0-9a-f]+/i) || e.match(/^&O[0-7]+/i) ? t = !0 : e.match(/^[1-9]\d*F?/) ? (e.eat(/J/i), t = !0) : e.match(/^0(?![\dx])/i) && (t = !0), t)
24
- return e.eat(/L/i), "number";
25
- }
26
- return e.match(C) ? (n.tokenize = F(e.current()), n.tokenize(e, n)) : e.match(I) || e.match(m) ? null : e.match(x) || e.match(b) || e.match(O) ? "operator" : e.match(k) ? null : e.match(T) ? (l(e, n), n.doInCurrentLine = !0, "keyword") : e.match(S) ? (n.doInCurrentLine ? n.doInCurrentLine = !1 : l(e, n), "keyword") : e.match(g) ? "keyword" : e.match(w) ? (c(e, n), c(e, n), "keyword") : e.match(y) ? (c(e, n), "keyword") : e.match(E) || e.match(z) ? "keyword" : e.match(R) ? "variable" : (e.next(), u);
27
- }
28
- function F(e) {
29
- var n = e.length == 1, i = "string";
30
- return function(r, t) {
31
- for (; !r.eol(); ) {
32
- if (r.eatWhile(/[^'"]/), r.match(e))
33
- return t.tokenize = d, i;
34
- r.eat(/['"]/);
35
- }
36
- return n && (t.tokenize = d), i;
37
- };
38
- }
39
- function K(e, n) {
40
- var i = n.tokenize(e, n), r = e.current();
41
- if (r === ".")
42
- return i = n.tokenize(e, n), i === "variable" ? "variable" : u;
43
- var t = "[({".indexOf(r);
44
- return t !== -1 && l(e, n), t = "])}".indexOf(r), t !== -1 && c(e, n) ? u : i;
45
- }
46
- const L = {
47
- name: "vb",
48
- startState: function() {
49
- return {
50
- tokenize: d,
51
- lastToken: null,
52
- currentIndent: 0,
53
- nextLineIndent: 0,
54
- doInCurrentLine: !1
55
- };
56
- },
57
- token: function(e, n) {
58
- e.sol() && (n.currentIndent += n.nextLineIndent, n.nextLineIndent = 0, n.doInCurrentLine = 0);
59
- var i = K(e, n);
60
- return n.lastToken = { style: i, content: e.current() }, i;
61
- },
62
- indent: function(e, n, i) {
63
- var r = n.replace(/^\s+|\s+$/g, "");
64
- return r.match(y) || r.match(w) || r.match(g) ? i.unit * (e.currentIndent - 1) : e.currentIndent < 0 ? 0 : e.currentIndent * i.unit;
65
- },
66
- languageData: {
67
- closeBrackets: { brackets: ["(", "[", "{", '"'] },
68
- commentTokens: { line: "'" },
69
- autocomplete: a.concat(f).concat(h).concat(s).concat(v).concat(p)
70
- }
71
- };
72
- export {
73
- L as vb
74
- };
@@ -1,324 +0,0 @@
1
- function p(h) {
2
- var v = "error";
3
- function i(e) {
4
- return new RegExp("^((" + e.join(")|(") + "))\\b", "i");
5
- }
6
- var y = new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"), g = new RegExp("^((<>)|(<=)|(>=))"), m = new RegExp("^[\\.,]"), w = new RegExp("^[\\(\\)]"), k = new RegExp("^[A-Za-z][_A-Za-z0-9]*"), x = ["class", "sub", "select", "while", "if", "function", "property", "with", "for"], C = ["else", "elseif", "case"], I = ["next", "loop", "wend"], S = i(["and", "or", "not", "xor", "is", "mod", "eqv", "imp"]), O = [
7
- "dim",
8
- "redim",
9
- "then",
10
- "until",
11
- "randomize",
12
- "byval",
13
- "byref",
14
- "new",
15
- "property",
16
- "exit",
17
- "in",
18
- "const",
19
- "private",
20
- "public",
21
- "get",
22
- "set",
23
- "let",
24
- "stop",
25
- "on error resume next",
26
- "on error goto 0",
27
- "option explicit",
28
- "call",
29
- "me"
30
- ], D = ["true", "false", "nothing", "empty", "null"], R = [
31
- "abs",
32
- "array",
33
- "asc",
34
- "atn",
35
- "cbool",
36
- "cbyte",
37
- "ccur",
38
- "cdate",
39
- "cdbl",
40
- "chr",
41
- "cint",
42
- "clng",
43
- "cos",
44
- "csng",
45
- "cstr",
46
- "date",
47
- "dateadd",
48
- "datediff",
49
- "datepart",
50
- "dateserial",
51
- "datevalue",
52
- "day",
53
- "escape",
54
- "eval",
55
- "execute",
56
- "exp",
57
- "filter",
58
- "formatcurrency",
59
- "formatdatetime",
60
- "formatnumber",
61
- "formatpercent",
62
- "getlocale",
63
- "getobject",
64
- "getref",
65
- "hex",
66
- "hour",
67
- "inputbox",
68
- "instr",
69
- "instrrev",
70
- "int",
71
- "fix",
72
- "isarray",
73
- "isdate",
74
- "isempty",
75
- "isnull",
76
- "isnumeric",
77
- "isobject",
78
- "join",
79
- "lbound",
80
- "lcase",
81
- "left",
82
- "len",
83
- "loadpicture",
84
- "log",
85
- "ltrim",
86
- "rtrim",
87
- "trim",
88
- "maths",
89
- "mid",
90
- "minute",
91
- "month",
92
- "monthname",
93
- "msgbox",
94
- "now",
95
- "oct",
96
- "replace",
97
- "rgb",
98
- "right",
99
- "rnd",
100
- "round",
101
- "scriptengine",
102
- "scriptenginebuildversion",
103
- "scriptenginemajorversion",
104
- "scriptengineminorversion",
105
- "second",
106
- "setlocale",
107
- "sgn",
108
- "sin",
109
- "space",
110
- "split",
111
- "sqr",
112
- "strcomp",
113
- "string",
114
- "strreverse",
115
- "tan",
116
- "time",
117
- "timer",
118
- "timeserial",
119
- "timevalue",
120
- "typename",
121
- "ubound",
122
- "ucase",
123
- "unescape",
124
- "vartype",
125
- "weekday",
126
- "weekdayname",
127
- "year"
128
- ], E = [
129
- "vbBlack",
130
- "vbRed",
131
- "vbGreen",
132
- "vbYellow",
133
- "vbBlue",
134
- "vbMagenta",
135
- "vbCyan",
136
- "vbWhite",
137
- "vbBinaryCompare",
138
- "vbTextCompare",
139
- "vbSunday",
140
- "vbMonday",
141
- "vbTuesday",
142
- "vbWednesday",
143
- "vbThursday",
144
- "vbFriday",
145
- "vbSaturday",
146
- "vbUseSystemDayOfWeek",
147
- "vbFirstJan1",
148
- "vbFirstFourDays",
149
- "vbFirstFullWeek",
150
- "vbGeneralDate",
151
- "vbLongDate",
152
- "vbShortDate",
153
- "vbLongTime",
154
- "vbShortTime",
155
- "vbObjectError",
156
- "vbOKOnly",
157
- "vbOKCancel",
158
- "vbAbortRetryIgnore",
159
- "vbYesNoCancel",
160
- "vbYesNo",
161
- "vbRetryCancel",
162
- "vbCritical",
163
- "vbQuestion",
164
- "vbExclamation",
165
- "vbInformation",
166
- "vbDefaultButton1",
167
- "vbDefaultButton2",
168
- "vbDefaultButton3",
169
- "vbDefaultButton4",
170
- "vbApplicationModal",
171
- "vbSystemModal",
172
- "vbOK",
173
- "vbCancel",
174
- "vbAbort",
175
- "vbRetry",
176
- "vbIgnore",
177
- "vbYes",
178
- "vbNo",
179
- "vbCr",
180
- "VbCrLf",
181
- "vbFormFeed",
182
- "vbLf",
183
- "vbNewLine",
184
- "vbNullChar",
185
- "vbNullString",
186
- "vbTab",
187
- "vbVerticalTab",
188
- "vbUseDefault",
189
- "vbTrue",
190
- "vbFalse",
191
- "vbEmpty",
192
- "vbNull",
193
- "vbInteger",
194
- "vbLong",
195
- "vbSingle",
196
- "vbDouble",
197
- "vbCurrency",
198
- "vbDate",
199
- "vbString",
200
- "vbObject",
201
- "vbError",
202
- "vbBoolean",
203
- "vbVariant",
204
- "vbDataObject",
205
- "vbDecimal",
206
- "vbByte",
207
- "vbArray"
208
- ], a = ["WScript", "err", "debug", "RegExp"], L = ["description", "firstindex", "global", "helpcontext", "helpfile", "ignorecase", "length", "number", "pattern", "source", "value", "count"], T = ["clear", "execute", "raise", "replace", "test", "write", "writeline", "close", "open", "state", "eof", "update", "addnew", "end", "createobject", "quit"], j = ["server", "response", "request", "session", "application"], F = [
209
- "buffer",
210
- "cachecontrol",
211
- "charset",
212
- "contenttype",
213
- "expires",
214
- "expiresabsolute",
215
- "isclientconnected",
216
- "pics",
217
- "status",
218
- //response
219
- "clientcertificate",
220
- "cookies",
221
- "form",
222
- "querystring",
223
- "servervariables",
224
- "totalbytes",
225
- //request
226
- "contents",
227
- "staticobjects",
228
- //application
229
- "codepage",
230
- "lcid",
231
- "sessionid",
232
- "timeout",
233
- //session
234
- "scripttimeout"
235
- ], B = [
236
- "addheader",
237
- "appendtolog",
238
- "binarywrite",
239
- "end",
240
- "flush",
241
- "redirect",
242
- //response
243
- "binaryread",
244
- //request
245
- "remove",
246
- "removeall",
247
- "lock",
248
- "unlock",
249
- //application
250
- "abandon",
251
- //session
252
- "getlasterror",
253
- "htmlencode",
254
- "mappath",
255
- "transfer",
256
- "urlencode"
257
- ], c = T.concat(L);
258
- a = a.concat(E), h.isASP && (a = a.concat(j), c = c.concat(B, F));
259
- var W = i(O), z = i(D), A = i(R), K = i(a), N = i(c), M = '"', P = i(x), b = i(C), d = i(I), s = i(["end"]), q = i(["do"]), V = i(["on error resume next", "exit"]), Y = i(["rem"]);
260
- function f(e, n) {
261
- n.currentIndent++;
262
- }
263
- function u(e, n) {
264
- n.currentIndent--;
265
- }
266
- function l(e, n) {
267
- if (e.eatSpace())
268
- return null;
269
- var r = e.peek();
270
- if (r === "'" || e.match(Y))
271
- return e.skipToEnd(), "comment";
272
- if (e.match(/^((&H)|(&O))?[0-9\.]/i, !1) && !e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i, !1)) {
273
- var t = !1;
274
- if ((e.match(/^\d*\.\d+/i) || e.match(/^\d+\.\d*/) || e.match(/^\.\d+/)) && (t = !0), t)
275
- return e.eat(/J/i), "number";
276
- var o = !1;
277
- if (e.match(/^&H[0-9a-f]+/i) || e.match(/^&O[0-7]+/i) ? o = !0 : e.match(/^[1-9]\d*F?/) ? (e.eat(/J/i), o = !0) : e.match(/^0(?![\dx])/i) && (o = !0), o)
278
- return e.eat(/L/i), "number";
279
- }
280
- return e.match(M) ? (n.tokenize = _(e.current()), n.tokenize(e, n)) : e.match(g) || e.match(y) || e.match(S) ? "operator" : e.match(m) ? null : e.match(w) ? "bracket" : e.match(V) ? (n.doInCurrentLine = !0, "keyword") : e.match(q) ? (f(e, n), n.doInCurrentLine = !0, "keyword") : e.match(P) ? (n.doInCurrentLine ? n.doInCurrentLine = !1 : f(e, n), "keyword") : e.match(b) ? "keyword" : e.match(s) ? (u(e, n), u(e, n), "keyword") : e.match(d) ? (n.doInCurrentLine ? n.doInCurrentLine = !1 : u(e, n), "keyword") : e.match(W) ? "keyword" : e.match(z) ? "atom" : e.match(N) ? "variableName.special" : e.match(A) || e.match(K) ? "builtin" : e.match(k) ? "variable" : (e.next(), v);
281
- }
282
- function _(e) {
283
- var n = e.length == 1, r = "string";
284
- return function(t, o) {
285
- for (; !t.eol(); ) {
286
- if (t.eatWhile(/[^'"]/), t.match(e))
287
- return o.tokenize = l, r;
288
- t.eat(/['"]/);
289
- }
290
- return n && (o.tokenize = l), r;
291
- };
292
- }
293
- function H(e, n) {
294
- var r = n.tokenize(e, n), t = e.current();
295
- return t === "." ? (r = n.tokenize(e, n), t = e.current(), r && (r.substr(0, 8) === "variable" || r === "builtin" || r === "keyword") ? ((r === "builtin" || r === "keyword") && (r = "variable"), c.indexOf(t.substr(1)) > -1 && (r = "keyword"), r) : v) : r;
296
- }
297
- return {
298
- name: "vbscript",
299
- startState: function() {
300
- return {
301
- tokenize: l,
302
- lastToken: null,
303
- currentIndent: 0,
304
- nextLineIndent: 0,
305
- doInCurrentLine: !1,
306
- ignoreKeyword: !1
307
- };
308
- },
309
- token: function(e, n) {
310
- e.sol() && (n.currentIndent += n.nextLineIndent, n.nextLineIndent = 0, n.doInCurrentLine = 0);
311
- var r = H(e, n);
312
- return n.lastToken = { style: r, content: e.current() }, r === null && (r = null), r;
313
- },
314
- indent: function(e, n, r) {
315
- var t = n.replace(/^\s+|\s+$/g, "");
316
- return t.match(d) || t.match(s) || t.match(b) ? r.unit * (e.currentIndent - 1) : e.currentIndent < 0 ? 0 : e.currentIndent * r.unit;
317
- }
318
- };
319
- }
320
- const J = p({}), U = p({ isASP: !0 });
321
- export {
322
- J as vbScript,
323
- U as vbScriptASP
324
- };