zs_library 0.4.8 → 0.4.10

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 (116) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +10612 -6
  3. package/package.json +146 -146
  4. package/dist/apl-DzB7vleG.js +0 -77
  5. package/dist/asciiarmor-GBg_dTix.js +0 -35
  6. package/dist/asn1-C3znSLx9.js +0 -96
  7. package/dist/asterisk-DlqRFsge.js +0 -272
  8. package/dist/brainfuck-BRsrPeoO.js +0 -35
  9. package/dist/clike-BvRdj3ii.js +0 -621
  10. package/dist/clojure-DoHCnq3P.js +0 -801
  11. package/dist/cmake-lga2BQKc.js +0 -29
  12. package/dist/cobol-CoUZEClC.js +0 -73
  13. package/dist/coffeescript-DtzhVgPb.js +0 -180
  14. package/dist/commonlisp-Dczl5pgK.js +0 -76
  15. package/dist/crystal-CGcK8mnw.js +0 -218
  16. package/dist/css-BSROsPdq.js +0 -1561
  17. package/dist/cypher-DtSMl1Mv.js +0 -69
  18. package/dist/d-Dvhr70b-.js +0 -128
  19. package/dist/diff-CGwDp7kO.js +0 -19
  20. package/dist/dockerfile-comEO-T6.js +0 -195
  21. package/dist/dtd-CCHJ68ra.js +0 -85
  22. package/dist/dylan-DuvcMu5H.js +0 -235
  23. package/dist/ebnf-40BT7kIS.js +0 -79
  24. package/dist/ecl-D1uoNQJW.js +0 -122
  25. package/dist/eiffel-5pGo0kXa.js +0 -111
  26. package/dist/elm-BaiVOLJD.js +0 -109
  27. package/dist/erlang-CkzodiGe.js +0 -488
  28. package/dist/factor-BOXOAn_M.js +0 -66
  29. package/dist/fcl-BpnTn_eU.js +0 -104
  30. package/dist/forth-DErAeAEb.js +0 -61
  31. package/dist/fortran-D2-6KpzO.js +0 -443
  32. package/dist/gas-DyEPANLH.js +0 -184
  33. package/dist/gherkin-Drt_srgO.js +0 -35
  34. package/dist/groovy-BMVfw_nf.js +0 -147
  35. package/dist/haskell-hWhKnZO1.js +0 -376
  36. package/dist/haxe-B1MRfS0p.js +0 -360
  37. package/dist/http-DmgKxj-g.js +0 -45
  38. package/dist/idl-DqZ86h3r.js +0 -948
  39. package/dist/index-5dj8r7GK.js +0 -266
  40. package/dist/index-BTXiadLB.js +0 -309
  41. package/dist/index-BlC4-BmN.js +0 -72
  42. package/dist/index-BrFeP3fX.js +0 -244
  43. package/dist/index-Bto4OncH.js +0 -539
  44. package/dist/index-Bvv7YkGe.js +0 -136
  45. package/dist/index-Bx4MkRG_.js +0 -76
  46. package/dist/index-CVOhQMF3.js +0 -608
  47. package/dist/index-CecD8NGL.js +0 -228472
  48. package/dist/index-CmoZmAhh.js +0 -289
  49. package/dist/index-DE3hmKbB.js +0 -135
  50. package/dist/index-DF7XjAxV.js +0 -94
  51. package/dist/index-DcChItCb.js +0 -157
  52. package/dist/index-Dl5DpQ2k.js +0 -342
  53. package/dist/index-Dpbxeq5U.js +0 -59
  54. package/dist/index-gpJmCEdM.js +0 -99
  55. package/dist/index-udH8R_K0.js +0 -300
  56. package/dist/javascript-BvuVDFxD.js +0 -691
  57. package/dist/jinja2-sU0UaYnG.js +0 -155
  58. package/dist/julia-3_lRZPrK.js +0 -242
  59. package/dist/livescript-BeDiX_lv.js +0 -273
  60. package/dist/lua-DsgFLpii.js +0 -218
  61. package/dist/mathematica-1GSq-6KQ.js +0 -36
  62. package/dist/mbox-agttEgFX.js +0 -77
  63. package/dist/mirc-0mTi20sq.js +0 -73
  64. package/dist/mllike-Cn3QD1L6.js +0 -273
  65. package/dist/modelica-zXUsSMFb.js +0 -94
  66. package/dist/mscgen-CjqYDKLG.js +0 -105
  67. package/dist/mumps-o2cuacx9.js +0 -26
  68. package/dist/nginx-BwTpvSVN.js +0 -90
  69. package/dist/nsis-BuRdhAu4.js +0 -63
  70. package/dist/ntriples-DrgMTIhT.js +0 -80
  71. package/dist/octave-Cxdtf9mO.js +0 -144
  72. package/dist/oz-DFmTw-qE.js +0 -152
  73. package/dist/pascal-DXxn4Ogv.js +0 -78
  74. package/dist/perl-C73cx1ym.js +0 -916
  75. package/dist/pig-Bb8sMbk0.js +0 -55
  76. package/dist/powershell-DxmufwKU.js +0 -250
  77. package/dist/properties-C4fhBR7T.js +0 -27
  78. package/dist/protobuf-Eqae3kep.js +0 -50
  79. package/dist/pug-Cdoid33I.js +0 -249
  80. package/dist/puppet-BH84QZvC.js +0 -46
  81. package/dist/python-D32-_XsH.js +0 -314
  82. package/dist/q-CDvEpNHY.js +0 -84
  83. package/dist/r-D9TtEI-G.js +0 -105
  84. package/dist/rpm-Ckejt31K.js +0 -58
  85. package/dist/ruby-gRVA_lpr.js +0 -229
  86. package/dist/sas-Cetv6MtF.js +0 -106
  87. package/dist/scheme-BpAxUIwV.js +0 -125
  88. package/dist/shell-DmARhv5h.js +0 -183
  89. package/dist/sieve-DJENs6f1.js +0 -73
  90. package/dist/simple-mode-B0kVDhR7.js +0 -89
  91. package/dist/smalltalk-CtRR6guu.js +0 -49
  92. package/dist/solr-ZVIJNGhC.js +0 -42
  93. package/dist/sparql-Cg1WYQva.js +0 -198
  94. package/dist/spreadsheet-Bi94Lk_2.js +0 -50
  95. package/dist/sql-BLhvp4JJ.js +0 -283
  96. package/dist/stex-DuReG47O.js +0 -130
  97. package/dist/stylus-D5QpSSbb.js +0 -251
  98. package/dist/swift-CZplZXOW.js +0 -231
  99. package/dist/tcl-COiqjz-O.js +0 -82
  100. package/dist/textile-BIDpYsbD.js +0 -296
  101. package/dist/tiddlywiki-C4woD_uK.js +0 -156
  102. package/dist/tiki-Ddj0Z2aQ.js +0 -182
  103. package/dist/toml-Byr0PaXO.js +0 -50
  104. package/dist/troff-BEvN8lSw.js +0 -36
  105. package/dist/ttcn-CyeSpuPS.js +0 -124
  106. package/dist/ttcn-cfg-C4JBLVfg.js +0 -89
  107. package/dist/turtle-8qSCc9Tc.js +0 -81
  108. package/dist/vb-BOJI7cFm.js +0 -75
  109. package/dist/vbscript-Cu6iG9pw.js +0 -325
  110. package/dist/velocity-BEpFYT7L.js +0 -97
  111. package/dist/verilog-BBxq08Rh.js +0 -264
  112. package/dist/vhdl-B0tZHMGi.js +0 -107
  113. package/dist/webidl-CW91NtvY.js +0 -156
  114. package/dist/xquery-DzC9wL36.js +0 -423
  115. package/dist/yacas-lKwNB4DM.js +0 -74
  116. package/dist/z80-Bq0fiCqy.js +0 -62
@@ -1,360 +0,0 @@
1
- import "./index.css";
2
- function o(e) {
3
- return { type: e, style: "keyword" };
4
- }
5
- var P = o("keyword a"), W = o("keyword b"), g = o("keyword c"), K = o("operator"), z = { type: "atom", style: "atom" }, y = { type: "attribute", style: "attribute" }, c = o("typedef"), B = {
6
- if: P,
7
- while: P,
8
- else: W,
9
- do: W,
10
- try: W,
11
- return: g,
12
- break: g,
13
- continue: g,
14
- new: g,
15
- throw: g,
16
- var: o("var"),
17
- inline: y,
18
- static: y,
19
- using: o("import"),
20
- public: y,
21
- private: y,
22
- cast: o("cast"),
23
- import: o("import"),
24
- macro: o("macro"),
25
- function: o("function"),
26
- catch: o("catch"),
27
- untyped: o("untyped"),
28
- callback: o("cb"),
29
- for: o("for"),
30
- switch: o("switch"),
31
- case: o("case"),
32
- default: o("default"),
33
- in: K,
34
- never: o("property_access"),
35
- trace: o("trace"),
36
- class: c,
37
- abstract: c,
38
- enum: c,
39
- interface: c,
40
- typedef: c,
41
- extends: c,
42
- implements: c,
43
- dynamic: c,
44
- true: z,
45
- false: z,
46
- null: z
47
- }, E = /[+\-*&%=<>!?|]/;
48
- function I(e, r, n) {
49
- return r.tokenize = n, n(e, r);
50
- }
51
- function L(e, r) {
52
- for (var n = !1, i; (i = e.next()) != null; ) {
53
- if (i == r && !n)
54
- return !0;
55
- n = !n && i == "\\";
56
- }
57
- }
58
- var c, N;
59
- function p(e, r, n) {
60
- return c = e, N = n, r;
61
- }
62
- function A(e, r) {
63
- var n = e.next();
64
- if (n == '"' || n == "'")
65
- return I(e, r, M(n));
66
- if (/[\[\]{}\(\),;\:\.]/.test(n))
67
- return p(n);
68
- if (n == "0" && e.eat(/x/i))
69
- return e.eatWhile(/[\da-f]/i), p("number", "number");
70
- if (/\d/.test(n) || n == "-" && e.eat(/\d/))
71
- return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/), p("number", "number");
72
- if (r.reAllowed && n == "~" && e.eat(/\//))
73
- return L(e, "/"), e.eatWhile(/[gimsu]/), p("regexp", "string.special");
74
- if (n == "/")
75
- return e.eat("*") ? I(e, r, Q) : e.eat("/") ? (e.skipToEnd(), p("comment", "comment")) : (e.eatWhile(E), p("operator", null, e.current()));
76
- if (n == "#")
77
- return e.skipToEnd(), p("conditional", "meta");
78
- if (n == "@")
79
- return e.eat(/:/), e.eatWhile(/[\w_]/), p("metadata", "meta");
80
- if (E.test(n))
81
- return e.eatWhile(E), p("operator", null, e.current());
82
- var i;
83
- if (/[A-Z]/.test(n))
84
- return e.eatWhile(/[\w_<>]/), i = e.current(), p("type", "type", i);
85
- e.eatWhile(/[\w_]/);
86
- var i = e.current(), u = B.propertyIsEnumerable(i) && B[i];
87
- return u && r.kwAllowed ? p(u.type, u.style, i) : p("variable", "variable", i);
88
- }
89
- function M(e) {
90
- return function(r, n) {
91
- return L(r, e) && (n.tokenize = A), p("string", "string");
92
- };
93
- }
94
- function Q(e, r) {
95
- for (var n = !1, i; i = e.next(); ) {
96
- if (i == "/" && n) {
97
- r.tokenize = A;
98
- break;
99
- }
100
- n = i == "*";
101
- }
102
- return p("comment", "comment");
103
- }
104
- var $ = { atom: !0, number: !0, variable: !0, string: !0, regexp: !0 };
105
- function j(e, r, n, i, u, s) {
106
- this.indented = e, this.column = r, this.type = n, this.prev = u, this.info = s, i != null && (this.align = i);
107
- }
108
- function R(e, r) {
109
- for (var n = e.localVars; n; n = n.next)
110
- if (n.name == r) return !0;
111
- }
112
- function X(e, r, n, i, u) {
113
- var s = e.cc;
114
- for (a.state = e, a.stream = u, a.marked = null, a.cc = s, e.lexical.hasOwnProperty("align") || (e.lexical.align = !0); ; ) {
115
- var k = s.length ? s.pop() : x;
116
- if (k(n, i)) {
117
- for (; s.length && s[s.length - 1].lex; )
118
- s.pop()();
119
- return a.marked ? a.marked : n == "variable" && R(e, i) ? "variableName.local" : n == "variable" && Y(e, i) ? "variableName.special" : r;
120
- }
121
- }
122
- }
123
- function Y(e, r) {
124
- if (/[a-z]/.test(r.charAt(0)))
125
- return !1;
126
- for (var n = e.importedtypes.length, i = 0; i < n; i++)
127
- if (e.importedtypes[i] == r) return !0;
128
- }
129
- function F(e) {
130
- for (var r = a.state, n = r.importedtypes; n; n = n.next)
131
- if (n.name == e) return;
132
- r.importedtypes = { name: e, next: r.importedtypes };
133
- }
134
- var a = { state: null, marked: null, cc: null };
135
- function b() {
136
- for (var e = arguments.length - 1; e >= 0; e--) a.cc.push(arguments[e]);
137
- }
138
- function t() {
139
- return b.apply(null, arguments), !0;
140
- }
141
- function H(e, r) {
142
- for (var n = r; n; n = n.next)
143
- if (n.name == e) return !0;
144
- return !1;
145
- }
146
- function S(e) {
147
- var r = a.state;
148
- if (r.context) {
149
- if (a.marked = "def", H(e, r.localVars)) return;
150
- r.localVars = { name: e, next: r.localVars };
151
- } else if (r.globalVars) {
152
- if (H(e, r.globalVars)) return;
153
- r.globalVars = { name: e, next: r.globalVars };
154
- }
155
- }
156
- var ee = { name: "this", next: null };
157
- function D() {
158
- a.state.context || (a.state.localVars = ee), a.state.context = { prev: a.state.context, vars: a.state.localVars };
159
- }
160
- function V() {
161
- a.state.localVars = a.state.context.vars, a.state.context = a.state.context.prev;
162
- }
163
- V.lex = !0;
164
- function l(e, r) {
165
- var n = function() {
166
- var i = a.state;
167
- i.lexical = new j(i.indented, a.stream.column(), e, null, i.lexical, r);
168
- };
169
- return n.lex = !0, n;
170
- }
171
- function f() {
172
- var e = a.state;
173
- e.lexical.prev && (e.lexical.type == ")" && (e.indented = e.lexical.indented), e.lexical = e.lexical.prev);
174
- }
175
- f.lex = !0;
176
- function d(e) {
177
- function r(n) {
178
- return n == e ? t() : e == ";" ? b() : t(r);
179
- }
180
- return r;
181
- }
182
- function x(e) {
183
- return e == "@" ? t(Z) : e == "var" ? t(l("vardef"), C, d(";"), f) : e == "keyword a" ? t(l("form"), h, x, f) : e == "keyword b" ? t(l("form"), x, f) : e == "{" ? t(l("}"), D, _, f, V) : e == ";" ? t() : e == "attribute" ? t(U) : e == "function" ? t(w) : e == "for" ? t(
184
- l("form"),
185
- d("("),
186
- l(")"),
187
- ae,
188
- d(")"),
189
- f,
190
- x,
191
- f
192
- ) : e == "variable" ? t(l("stat"), te) : e == "switch" ? t(
193
- l("form"),
194
- h,
195
- l("}", "switch"),
196
- d("{"),
197
- _,
198
- f,
199
- f
200
- ) : e == "case" ? t(h, d(":")) : e == "default" ? t(d(":")) : e == "catch" ? t(
201
- l("form"),
202
- D,
203
- d("("),
204
- J,
205
- d(")"),
206
- x,
207
- f,
208
- V
209
- ) : e == "import" ? t(q, d(";")) : e == "typedef" ? t(ne) : b(l("stat"), h, d(";"), f);
210
- }
211
- function h(e) {
212
- return $.hasOwnProperty(e) || e == "type" ? t(v) : e == "function" ? t(w) : e == "keyword c" ? t(O) : e == "(" ? t(l(")"), O, d(")"), f, v) : e == "operator" ? t(h) : e == "[" ? t(l("]"), m(O, "]"), f, v) : e == "{" ? t(l("}"), m(ue, "}"), f, v) : t();
213
- }
214
- function O(e) {
215
- return e.match(/[;\}\)\],]/) ? b() : b(h);
216
- }
217
- function v(e, r) {
218
- if (e == "operator" && /\+\+|--/.test(r)) return t(v);
219
- if (e == "operator" || e == ":") return t(h);
220
- if (e != ";") {
221
- if (e == "(") return t(l(")"), m(h, ")"), f, v);
222
- if (e == ".") return t(ie, v);
223
- if (e == "[") return t(l("]"), h, d("]"), f, v);
224
- }
225
- }
226
- function U(e) {
227
- if (e == "attribute") return t(U);
228
- if (e == "function") return t(w);
229
- if (e == "var") return t(C);
230
- }
231
- function Z(e) {
232
- if (e == ":" || e == "variable") return t(Z);
233
- if (e == "(") return t(l(")"), m(re, ")"), f, x);
234
- }
235
- function re(e) {
236
- if (e == "variable") return t();
237
- }
238
- function q(e, r) {
239
- if (e == "variable" && /[A-Z]/.test(r.charAt(0)))
240
- return F(r), t();
241
- if (e == "variable" || e == "property" || e == "." || r == "*") return t(q);
242
- }
243
- function ne(e, r) {
244
- if (e == "variable" && /[A-Z]/.test(r.charAt(0)))
245
- return F(r), t();
246
- if (e == "type" && /[A-Z]/.test(r.charAt(0)))
247
- return t();
248
- }
249
- function te(e) {
250
- return e == ":" ? t(f, x) : b(v, d(";"), f);
251
- }
252
- function ie(e) {
253
- if (e == "variable")
254
- return a.marked = "property", t();
255
- }
256
- function ue(e) {
257
- if (e == "variable" && (a.marked = "property"), $.hasOwnProperty(e)) return t(d(":"), h);
258
- }
259
- function m(e, r) {
260
- function n(i) {
261
- return i == "," ? t(e, n) : i == r ? t() : t(d(r));
262
- }
263
- return function(i) {
264
- return i == r ? t() : b(e, n);
265
- };
266
- }
267
- function _(e) {
268
- return e == "}" ? t() : b(x, _);
269
- }
270
- function C(e, r) {
271
- return e == "variable" ? (S(r), t(T, G)) : t();
272
- }
273
- function G(e, r) {
274
- if (r == "=") return t(h, G);
275
- if (e == ",") return t(C);
276
- }
277
- function ae(e, r) {
278
- return e == "variable" ? (S(r), t(fe, h)) : b();
279
- }
280
- function fe(e, r) {
281
- if (r == "in") return t();
282
- }
283
- function w(e, r) {
284
- if (e == "variable" || e == "type")
285
- return S(r), t(w);
286
- if (r == "new") return t(w);
287
- if (e == "(") return t(l(")"), D, m(J, ")"), f, T, x, V);
288
- }
289
- function T(e) {
290
- if (e == ":") return t(oe);
291
- }
292
- function oe(e) {
293
- if (e == "type" || e == "variable") return t();
294
- if (e == "{") return t(l("}"), m(le, "}"), f);
295
- }
296
- function le(e) {
297
- if (e == "variable") return t(T);
298
- }
299
- function J(e, r) {
300
- if (e == "variable")
301
- return S(r), t(T);
302
- }
303
- const se = {
304
- name: "haxe",
305
- startState: function(e) {
306
- var r = ["Int", "Float", "String", "Void", "Std", "Bool", "Dynamic", "Array"], n = {
307
- tokenize: A,
308
- reAllowed: !0,
309
- kwAllowed: !0,
310
- cc: [],
311
- lexical: new j(-e, 0, "block", !1),
312
- importedtypes: r,
313
- context: null,
314
- indented: 0
315
- };
316
- return n;
317
- },
318
- token: function(e, r) {
319
- if (e.sol() && (r.lexical.hasOwnProperty("align") || (r.lexical.align = !1), r.indented = e.indentation()), e.eatSpace()) return null;
320
- var n = r.tokenize(e, r);
321
- return c == "comment" ? n : (r.reAllowed = !!(c == "operator" || c == "keyword c" || c.match(/^[\[{}\(,;:]$/)), r.kwAllowed = c != ".", X(r, n, c, N, e));
322
- },
323
- indent: function(e, r, n) {
324
- if (e.tokenize != A) return 0;
325
- var i = r && r.charAt(0), u = e.lexical;
326
- u.type == "stat" && i == "}" && (u = u.prev);
327
- var s = u.type, k = i == s;
328
- return s == "vardef" ? u.indented + 4 : s == "form" && i == "{" ? u.indented : s == "stat" || s == "form" ? u.indented + n.unit : u.info == "switch" && !k ? u.indented + (/^(?:case|default)\b/.test(r) ? n.unit : 2 * n.unit) : u.align ? u.column + (k ? 0 : 1) : u.indented + (k ? 0 : n.unit);
329
- },
330
- languageData: {
331
- indentOnInput: /^\s*[{}]$/,
332
- commentTokens: { line: "//", block: { open: "/*", close: "*/" } }
333
- }
334
- }, de = {
335
- name: "hxml",
336
- startState: function() {
337
- return {
338
- define: !1,
339
- inString: !1
340
- };
341
- },
342
- token: function(e, r) {
343
- var u = e.peek(), n = e.sol();
344
- if (u == "#")
345
- return e.skipToEnd(), "comment";
346
- if (n && u == "-") {
347
- var i = "variable-2";
348
- return e.eat(/-/), e.peek() == "-" && (e.eat(/-/), i = "keyword a"), e.peek() == "D" && (e.eat(/[D]/), i = "keyword c", r.define = !0), e.eatWhile(/[A-Z]/i), i;
349
- }
350
- var u = e.peek();
351
- return r.inString == !1 && u == "'" && (r.inString = !0, e.next()), r.inString == !0 ? (e.skipTo("'") || e.skipToEnd(), e.peek() == "'" && (e.next(), r.inString = !1), "string") : (e.next(), null);
352
- },
353
- languageData: {
354
- commentTokens: { line: "#" }
355
- }
356
- };
357
- export {
358
- se as haxe,
359
- de as hxml
360
- };
@@ -1,45 +0,0 @@
1
- import "./index.css";
2
- function u(r, n) {
3
- return r.skipToEnd(), n.cur = e, "error";
4
- }
5
- function c(r, n) {
6
- return r.match(/^HTTP\/\d\.\d/) ? (n.cur = f, "keyword") : r.match(/^[A-Z]+/) && /[ \t]/.test(r.peek()) ? (n.cur = d, "keyword") : u(r, n);
7
- }
8
- function f(r, n) {
9
- var t = r.match(/^\d+/);
10
- if (!t) return u(r, n);
11
- n.cur = l;
12
- var o = Number(t[0]);
13
- return o >= 100 && o < 400 ? "atom" : "error";
14
- }
15
- function l(r, n) {
16
- return r.skipToEnd(), n.cur = e, null;
17
- }
18
- function d(r, n) {
19
- return r.eatWhile(/\S/), n.cur = s, "string.special";
20
- }
21
- function s(r, n) {
22
- return r.match(/^HTTP\/\d\.\d$/) ? (n.cur = e, "keyword") : u(r, n);
23
- }
24
- function e(r) {
25
- return r.sol() && !r.eat(/[ \t]/) ? r.match(/^.*?:/) ? "atom" : (r.skipToEnd(), "error") : (r.skipToEnd(), "string");
26
- }
27
- function i(r) {
28
- return r.skipToEnd(), null;
29
- }
30
- const a = {
31
- name: "http",
32
- token: function(r, n) {
33
- var t = n.cur;
34
- return t != e && t != i && r.eatSpace() ? null : t(r, n);
35
- },
36
- blankLine: function(r) {
37
- r.cur = i;
38
- },
39
- startState: function() {
40
- return { cur: c };
41
- }
42
- };
43
- export {
44
- a as http
45
- };