zs_library 0.4.8 → 0.4.9

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 +11245 -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,55 +0,0 @@
1
- import "./index.css";
2
- function r(e) {
3
- for (var T = {}, O = e.split(" "), E = 0; E < O.length; ++E) T[O[E]] = !0;
4
- return T;
5
- }
6
- var i = "ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ", U = "VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP", o = "BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ", t = r(i), S = r(U), n = r(o), I = /[*+\-%<>=&?:\/!|]/;
7
- function L(e, T, O) {
8
- return T.tokenize = O, O(e, T);
9
- }
10
- function u(e, T) {
11
- for (var O = !1, E; E = e.next(); ) {
12
- if (E == "/" && O) {
13
- T.tokenize = A;
14
- break;
15
- }
16
- O = E == "*";
17
- }
18
- return "comment";
19
- }
20
- function C(e) {
21
- return function(T, O) {
22
- for (var E = !1, N, R = !1; (N = T.next()) != null; ) {
23
- if (N == e && !E) {
24
- R = !0;
25
- break;
26
- }
27
- E = !E && N == "\\";
28
- }
29
- return (R || !E) && (O.tokenize = A), "error";
30
- };
31
- }
32
- function A(e, T) {
33
- var O = e.next();
34
- return O == '"' || O == "'" ? L(e, T, C(O)) : /[\[\]{}\(\),;\.]/.test(O) ? null : /\d/.test(O) ? (e.eatWhile(/[\w\.]/), "number") : O == "/" ? e.eat("*") ? L(e, T, u) : (e.eatWhile(I), "operator") : O == "-" ? e.eat("-") ? (e.skipToEnd(), "comment") : (e.eatWhile(I), "operator") : I.test(O) ? (e.eatWhile(I), "operator") : (e.eatWhile(/[\w\$_]/), S && S.propertyIsEnumerable(e.current().toUpperCase()) && !e.eat(")") && !e.eat(".") ? "keyword" : t && t.propertyIsEnumerable(e.current().toUpperCase()) ? "builtin" : n && n.propertyIsEnumerable(e.current().toUpperCase()) ? "type" : "variable");
35
- }
36
- const M = {
37
- name: "pig",
38
- startState: function() {
39
- return {
40
- tokenize: A,
41
- startOfLine: !0
42
- };
43
- },
44
- token: function(e, T) {
45
- if (e.eatSpace()) return null;
46
- var O = T.tokenize(e, T);
47
- return O;
48
- },
49
- languageData: {
50
- autocomplete: (i + o + U).split(" ")
51
- }
52
- };
53
- export {
54
- M as pig
55
- };
@@ -1,250 +0,0 @@
1
- import "./index.css";
2
- function a(e, n) {
3
- n = n || {};
4
- for (var r = n.prefix !== void 0 ? n.prefix : "^", t = n.suffix !== void 0 ? n.suffix : "\\b", i = 0; i < e.length; i++)
5
- e[i] instanceof RegExp ? e[i] = e[i].source : e[i] = e[i].replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
6
- return new RegExp(r + "(" + e.join("|") + ")" + t, "i");
7
- }
8
- var f = "(?=[^A-Za-z\\d\\-_]|$)", c = /[\w\-:]/, P = a([
9
- /begin|break|catch|continue|data|default|do|dynamicparam/,
10
- /else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,
11
- /param|process|return|switch|throw|trap|try|until|where|while/
12
- ], { suffix: f }), d = /[\[\]{},;`\\\.]|@[({]/, b = a([
13
- "f",
14
- /b?not/,
15
- /[ic]?split/,
16
- "join",
17
- /is(not)?/,
18
- "as",
19
- /[ic]?(eq|ne|[gl][te])/,
20
- /[ic]?(not)?(like|match|contains)/,
21
- /[ic]?replace/,
22
- /b?(and|or|xor)/
23
- ], { prefix: "-" }), C = /[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/, k = a([b, C], { suffix: "" }), h = /^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i, x = /^[A-Za-z\_][A-Za-z\-\_\d]*\b/, E = /[A-Z]:|%|\?/i, w = a([
24
- /Add-(Computer|Content|History|Member|PSSnapin|Type)/,
25
- /Checkpoint-Computer/,
26
- /Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,
27
- /Compare-Object/,
28
- /Complete-Transaction/,
29
- /Connect-PSSession/,
30
- /ConvertFrom-(Csv|Json|SecureString|StringData)/,
31
- /Convert-Path/,
32
- /ConvertTo-(Csv|Html|Json|SecureString|Xml)/,
33
- /Copy-Item(Property)?/,
34
- /Debug-Process/,
35
- /Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
36
- /Disconnect-PSSession/,
37
- /Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
38
- /(Enter|Exit)-PSSession/,
39
- /Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,
40
- /ForEach-Object/,
41
- /Format-(Custom|List|Table|Wide)/,
42
- new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),
43
- /Group-Object/,
44
- /Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,
45
- /ImportSystemModules/,
46
- /Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,
47
- /Join-Path/,
48
- /Limit-EventLog/,
49
- /Measure-(Command|Object)/,
50
- /Move-Item(Property)?/,
51
- new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),
52
- /Out-(Default|File|GridView|Host|Null|Printer|String)/,
53
- /Pause/,
54
- /(Pop|Push)-Location/,
55
- /Read-Host/,
56
- /Receive-(Job|PSSession)/,
57
- /Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,
58
- /Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,
59
- /Rename-(Computer|Item(Property)?)/,
60
- /Reset-ComputerMachinePassword/,
61
- /Resolve-Path/,
62
- /Restart-(Computer|Service)/,
63
- /Restore-Computer/,
64
- /Resume-(Job|Service)/,
65
- /Save-Help/,
66
- /Select-(Object|String|Xml)/,
67
- /Send-MailMessage/,
68
- new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),
69
- /Show-(Command|ControlPanelItem|EventLog)/,
70
- /Sort-Object/,
71
- /Split-Path/,
72
- /Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,
73
- /Stop-(Computer|Job|Process|Service|Transcript)/,
74
- /Suspend-(Job|Service)/,
75
- /TabExpansion2/,
76
- /Tee-Object/,
77
- /Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,
78
- /Trace-Command/,
79
- /Unblock-File/,
80
- /Undo-Transaction/,
81
- /Unregister-(Event|PSSessionConfiguration)/,
82
- /Update-(FormatData|Help|List|TypeData)/,
83
- /Use-Transaction/,
84
- /Wait-(Event|Job|Process)/,
85
- /Where-Object/,
86
- /Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,
87
- /cd|help|mkdir|more|oss|prompt/,
88
- /ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,
89
- /echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,
90
- /group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,
91
- /measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,
92
- /rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,
93
- /sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/
94
- ], { prefix: "", suffix: "" }), y = a([
95
- /[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,
96
- /FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,
97
- /MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,
98
- /PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,
99
- /PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,
100
- /WarningPreference|WhatIfPreference/,
101
- /Event|EventArgs|EventSubscriber|Sender/,
102
- /Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,
103
- /true|false|null/
104
- ], { prefix: "\\$", suffix: "" }), M = a([E, w, y], { suffix: f }), p = {
105
- keyword: P,
106
- number: h,
107
- operator: k,
108
- builtin: M,
109
- punctuation: d,
110
- variable: x
111
- };
112
- function o(e, n) {
113
- var r = n.returnStack[n.returnStack.length - 1];
114
- if (r && r.shouldReturnFrom(n))
115
- return n.tokenize = r.tokenize, n.returnStack.pop(), n.tokenize(e, n);
116
- if (e.eatSpace())
117
- return null;
118
- if (e.eat("("))
119
- return n.bracketNesting += 1, "punctuation";
120
- if (e.eat(")"))
121
- return n.bracketNesting -= 1, "punctuation";
122
- for (var t in p)
123
- if (e.match(p[t]))
124
- return t;
125
- var i = e.next();
126
- if (i === "'")
127
- return R(e, n);
128
- if (i === "$")
129
- return s(e, n);
130
- if (i === '"')
131
- return v(e, n);
132
- if (i === "<" && e.eat("#"))
133
- return n.tokenize = S, S(e, n);
134
- if (i === "#")
135
- return e.skipToEnd(), "comment";
136
- if (i === "@") {
137
- var l = e.eat(/["']/);
138
- if (l && e.eol())
139
- return n.tokenize = u, n.startQuote = l[0], u(e, n);
140
- if (e.eol())
141
- return "error";
142
- if (e.peek().match(/[({]/))
143
- return "punctuation";
144
- if (e.peek().match(c))
145
- return s(e, n);
146
- }
147
- return "error";
148
- }
149
- function R(e, n) {
150
- for (var r; (r = e.peek()) != null; )
151
- if (e.next(), r === "'" && !e.eat("'"))
152
- return n.tokenize = o, "string";
153
- return "error";
154
- }
155
- function v(e, n) {
156
- for (var r; (r = e.peek()) != null; ) {
157
- if (r === "$")
158
- return n.tokenize = I, "string";
159
- if (e.next(), r === "`") {
160
- e.next();
161
- continue;
162
- }
163
- if (r === '"' && !e.eat('"'))
164
- return n.tokenize = o, "string";
165
- }
166
- return "error";
167
- }
168
- function I(e, n) {
169
- return g(e, n, v);
170
- }
171
- function z(e, n) {
172
- return n.tokenize = u, n.startQuote = '"', u(e, n);
173
- }
174
- function T(e, n) {
175
- return g(e, n, z);
176
- }
177
- function g(e, n, r) {
178
- if (e.match("$(")) {
179
- var t = n.bracketNesting;
180
- return n.returnStack.push({
181
- /*jshint loopfunc:true */
182
- shouldReturnFrom: function(i) {
183
- return i.bracketNesting === t;
184
- },
185
- tokenize: r
186
- }), n.tokenize = o, n.bracketNesting += 1, "punctuation";
187
- } else
188
- return e.next(), n.returnStack.push({
189
- shouldReturnFrom: function() {
190
- return !0;
191
- },
192
- tokenize: r
193
- }), n.tokenize = s, n.tokenize(e, n);
194
- }
195
- function S(e, n) {
196
- for (var r = !1, t; (t = e.next()) != null; ) {
197
- if (r && t == ">") {
198
- n.tokenize = o;
199
- break;
200
- }
201
- r = t === "#";
202
- }
203
- return "comment";
204
- }
205
- function s(e, n) {
206
- var r = e.peek();
207
- return e.eat("{") ? (n.tokenize = m, m(e, n)) : r != null && r.match(c) ? (e.eatWhile(c), n.tokenize = o, "variable") : (n.tokenize = o, "error");
208
- }
209
- function m(e, n) {
210
- for (var r; (r = e.next()) != null; )
211
- if (r === "}") {
212
- n.tokenize = o;
213
- break;
214
- }
215
- return "variable";
216
- }
217
- function u(e, n) {
218
- var r = n.startQuote;
219
- if (e.sol() && e.match(new RegExp(r + "@")))
220
- n.tokenize = o;
221
- else if (r === '"')
222
- for (; !e.eol(); ) {
223
- var t = e.peek();
224
- if (t === "$")
225
- return n.tokenize = T, "string";
226
- e.next(), t === "`" && e.next();
227
- }
228
- else
229
- e.skipToEnd();
230
- return "string";
231
- }
232
- const j = {
233
- name: "powershell",
234
- startState: function() {
235
- return {
236
- returnStack: [],
237
- bracketNesting: 0,
238
- tokenize: o
239
- };
240
- },
241
- token: function(e, n) {
242
- return n.tokenize(e, n);
243
- },
244
- languageData: {
245
- commentTokens: { line: "#", block: { open: "<#", close: "#>" } }
246
- }
247
- };
248
- export {
249
- j as powerShell
250
- };
@@ -1,27 +0,0 @@
1
- import "./index.css";
2
- const r = {
3
- name: "properties",
4
- token: function(e, i) {
5
- var o = e.sol() || i.afterSection, l = e.eol();
6
- if (i.afterSection = !1, o && (i.nextMultiline ? (i.inMultiline = !0, i.nextMultiline = !1) : i.position = "def"), l && !i.nextMultiline && (i.inMultiline = !1, i.position = "def"), o)
7
- for (; e.eatSpace(); )
8
- ;
9
- var n = e.next();
10
- return o && (n === "#" || n === "!" || n === ";") ? (i.position = "comment", e.skipToEnd(), "comment") : o && n === "[" ? (i.afterSection = !0, e.skipTo("]"), e.eat("]"), "header") : n === "=" || n === ":" ? (i.position = "quote", null) : (n === "\\" && i.position === "quote" && e.eol() && (i.nextMultiline = !0), i.position);
11
- },
12
- startState: function() {
13
- return {
14
- position: "def",
15
- // Current position, "def", "quote" or "comment"
16
- nextMultiline: !1,
17
- // Is the next line multiline value
18
- inMultiline: !1,
19
- // Is the current line a multiline value
20
- afterSection: !1
21
- // Did we just open a section
22
- };
23
- }
24
- };
25
- export {
26
- r as properties
27
- };
@@ -1,50 +0,0 @@
1
- import "./index.css";
2
- function t(e) {
3
- return new RegExp("^((" + e.join(")|(") + "))\\b", "i");
4
- }
5
- var n = [
6
- "package",
7
- "message",
8
- "import",
9
- "syntax",
10
- "required",
11
- "optional",
12
- "repeated",
13
- "reserved",
14
- "default",
15
- "extensions",
16
- "packed",
17
- "bool",
18
- "bytes",
19
- "double",
20
- "enum",
21
- "float",
22
- "string",
23
- "int32",
24
- "int64",
25
- "uint32",
26
- "uint64",
27
- "sint32",
28
- "sint64",
29
- "fixed32",
30
- "fixed64",
31
- "sfixed32",
32
- "sfixed64",
33
- "option",
34
- "service",
35
- "rpc",
36
- "returns"
37
- ], r = t(n), i = new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");
38
- function f(e) {
39
- return e.eatSpace() ? null : e.match("//") ? (e.skipToEnd(), "comment") : e.match(/^[0-9\.+-]/, !1) && (e.match(/^[+-]?0x[0-9a-fA-F]+/) || e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/) || e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)) ? "number" : e.match(/^"([^"]|(""))*"/) || e.match(/^'([^']|(''))*'/) ? "string" : e.match(r) ? "keyword" : e.match(i) ? "variable" : (e.next(), null);
40
- }
41
- const o = {
42
- name: "protobuf",
43
- token: f,
44
- languageData: {
45
- autocomplete: n
46
- }
47
- };
48
- export {
49
- o as protobuf
50
- };
@@ -1,249 +0,0 @@
1
- import "./index.css";
2
- import { javascript as e } from "./javascript-BvuVDFxD.js";
3
- var f = {
4
- "{": "}",
5
- "(": ")",
6
- "[": "]"
7
- };
8
- function p(n) {
9
- if (typeof n != "object") return n;
10
- let i = {};
11
- for (let t in n) {
12
- let r = n[t];
13
- i[t] = r instanceof Array ? r.slice() : r;
14
- }
15
- return i;
16
- }
17
- class u {
18
- constructor(i) {
19
- this.indentUnit = i, this.javaScriptLine = !1, this.javaScriptLineExcludesColon = !1, this.javaScriptArguments = !1, this.javaScriptArgumentsDepth = 0, this.isInterpolating = !1, this.interpolationNesting = 0, this.jsState = e.startState(i), this.restOfLine = "", this.isIncludeFiltered = !1, this.isEach = !1, this.lastTag = "", this.isAttrs = !1, this.attrsNest = [], this.inAttributeName = !0, this.attributeIsType = !1, this.attrValue = "", this.indentOf = 1 / 0, this.indentToken = "";
20
- }
21
- copy() {
22
- var i = new u(this.indentUnit);
23
- return i.javaScriptLine = this.javaScriptLine, i.javaScriptLineExcludesColon = this.javaScriptLineExcludesColon, i.javaScriptArguments = this.javaScriptArguments, i.javaScriptArgumentsDepth = this.javaScriptArgumentsDepth, i.isInterpolating = this.isInterpolating, i.interpolationNesting = this.interpolationNesting, i.jsState = (e.copyState || p)(this.jsState), i.restOfLine = this.restOfLine, i.isIncludeFiltered = this.isIncludeFiltered, i.isEach = this.isEach, i.lastTag = this.lastTag, i.isAttrs = this.isAttrs, i.attrsNest = this.attrsNest.slice(), i.inAttributeName = this.inAttributeName, i.attributeIsType = this.attributeIsType, i.attrValue = this.attrValue, i.indentOf = this.indentOf, i.indentToken = this.indentToken, i;
24
- }
25
- }
26
- function h(n, i) {
27
- if (n.sol() && (i.javaScriptLine = !1, i.javaScriptLineExcludesColon = !1), i.javaScriptLine) {
28
- if (i.javaScriptLineExcludesColon && n.peek() === ":") {
29
- i.javaScriptLine = !1, i.javaScriptLineExcludesColon = !1;
30
- return;
31
- }
32
- var t = e.token(n, i.jsState);
33
- return n.eol() && (i.javaScriptLine = !1), t || !0;
34
- }
35
- }
36
- function d(n, i) {
37
- if (i.javaScriptArguments) {
38
- if (i.javaScriptArgumentsDepth === 0 && n.peek() !== "(") {
39
- i.javaScriptArguments = !1;
40
- return;
41
- }
42
- if (n.peek() === "(" ? i.javaScriptArgumentsDepth++ : n.peek() === ")" && i.javaScriptArgumentsDepth--, i.javaScriptArgumentsDepth === 0) {
43
- i.javaScriptArguments = !1;
44
- return;
45
- }
46
- var t = e.token(n, i.jsState);
47
- return t || !0;
48
- }
49
- }
50
- function s(n) {
51
- if (n.match(/^yield\b/))
52
- return "keyword";
53
- }
54
- function S(n) {
55
- if (n.match(/^(?:doctype) *([^\n]+)?/)) return "meta";
56
- }
57
- function o(n, i) {
58
- if (n.match("#{"))
59
- return i.isInterpolating = !0, i.interpolationNesting = 0, "punctuation";
60
- }
61
- function v(n, i) {
62
- if (i.isInterpolating) {
63
- if (n.peek() === "}") {
64
- if (i.interpolationNesting--, i.interpolationNesting < 0)
65
- return n.next(), i.isInterpolating = !1, "punctuation";
66
- } else n.peek() === "{" && i.interpolationNesting++;
67
- return e.token(n, i.jsState) || !0;
68
- }
69
- }
70
- function g(n, i) {
71
- if (n.match(/^case\b/))
72
- return i.javaScriptLine = !0, "keyword";
73
- }
74
- function j(n, i) {
75
- if (n.match(/^when\b/))
76
- return i.javaScriptLine = !0, i.javaScriptLineExcludesColon = !0, "keyword";
77
- }
78
- function k(n) {
79
- if (n.match(/^default\b/))
80
- return "keyword";
81
- }
82
- function b(n, i) {
83
- if (n.match(/^extends?\b/))
84
- return i.restOfLine = "string", "keyword";
85
- }
86
- function A(n, i) {
87
- if (n.match(/^append\b/))
88
- return i.restOfLine = "variable", "keyword";
89
- }
90
- function y(n, i) {
91
- if (n.match(/^prepend\b/))
92
- return i.restOfLine = "variable", "keyword";
93
- }
94
- function L(n, i) {
95
- if (n.match(/^block\b *(?:(prepend|append)\b)?/))
96
- return i.restOfLine = "variable", "keyword";
97
- }
98
- function w(n, i) {
99
- if (n.match(/^include\b/))
100
- return i.restOfLine = "string", "keyword";
101
- }
102
- function N(n, i) {
103
- if (n.match(/^include:([a-zA-Z0-9\-]+)/, !1) && n.match("include"))
104
- return i.isIncludeFiltered = !0, "keyword";
105
- }
106
- function x(n, i) {
107
- if (i.isIncludeFiltered) {
108
- var t = l(n, i);
109
- return i.isIncludeFiltered = !1, i.restOfLine = "string", t;
110
- }
111
- }
112
- function T(n, i) {
113
- if (n.match(/^mixin\b/))
114
- return i.javaScriptLine = !0, "keyword";
115
- }
116
- function I(n, i) {
117
- if (n.match(/^\+([-\w]+)/))
118
- return n.match(/^\( *[-\w]+ *=/, !1) || (i.javaScriptArguments = !0, i.javaScriptArgumentsDepth = 0), "variable";
119
- if (n.match("+#{", !1))
120
- return n.next(), i.mixinCallAfter = !0, o(n, i);
121
- }
122
- function O(n, i) {
123
- if (i.mixinCallAfter)
124
- return i.mixinCallAfter = !1, n.match(/^\( *[-\w]+ *=/, !1) || (i.javaScriptArguments = !0, i.javaScriptArgumentsDepth = 0), !0;
125
- }
126
- function C(n, i) {
127
- if (n.match(/^(if|unless|else if|else)\b/))
128
- return i.javaScriptLine = !0, "keyword";
129
- }
130
- function E(n, i) {
131
- if (n.match(/^(- *)?(each|for)\b/))
132
- return i.isEach = !0, "keyword";
133
- }
134
- function D(n, i) {
135
- if (i.isEach) {
136
- if (n.match(/^ in\b/))
137
- return i.javaScriptLine = !0, i.isEach = !1, "keyword";
138
- if (n.sol() || n.eol())
139
- i.isEach = !1;
140
- else if (n.next()) {
141
- for (; !n.match(/^ in\b/, !1) && n.next(); )
142
- ;
143
- return "variable";
144
- }
145
- }
146
- }
147
- function m(n, i) {
148
- if (n.match(/^while\b/))
149
- return i.javaScriptLine = !0, "keyword";
150
- }
151
- function F(n, i) {
152
- var t;
153
- if (t = n.match(/^(\w(?:[-:\w]*\w)?)\/?/))
154
- return i.lastTag = t[1].toLowerCase(), "tag";
155
- }
156
- function l(n, i) {
157
- if (n.match(/^:([\w\-]+)/))
158
- return c(n, i), "atom";
159
- }
160
- function V(n, i) {
161
- if (n.match(/^(!?=|-)/))
162
- return i.javaScriptLine = !0, "punctuation";
163
- }
164
- function U(n) {
165
- if (n.match(/^#([\w-]+)/))
166
- return "builtin";
167
- }
168
- function z(n) {
169
- if (n.match(/^\.([\w-]+)/))
170
- return "className";
171
- }
172
- function B(n, i) {
173
- if (n.peek() == "(")
174
- return n.next(), i.isAttrs = !0, i.attrsNest = [], i.inAttributeName = !0, i.attrValue = "", i.attributeIsType = !1, "punctuation";
175
- }
176
- function a(n, i) {
177
- if (i.isAttrs) {
178
- if (f[n.peek()] && i.attrsNest.push(f[n.peek()]), i.attrsNest[i.attrsNest.length - 1] === n.peek())
179
- i.attrsNest.pop();
180
- else if (n.eat(")"))
181
- return i.isAttrs = !1, "punctuation";
182
- if (i.inAttributeName && n.match(/^[^=,\)!]+/))
183
- return (n.peek() === "=" || n.peek() === "!") && (i.inAttributeName = !1, i.jsState = e.startState(2), i.lastTag === "script" && n.current().trim().toLowerCase() === "type" ? i.attributeIsType = !0 : i.attributeIsType = !1), "attribute";
184
- var t = e.token(n, i.jsState);
185
- if (i.attrsNest.length === 0 && (t === "string" || t === "variable" || t === "keyword"))
186
- try {
187
- return Function("", "var x " + i.attrValue.replace(/,\s*$/, "").replace(/^!/, "")), i.inAttributeName = !0, i.attrValue = "", n.backUp(n.current().length), a(n, i);
188
- } catch {
189
- }
190
- return i.attrValue += n.current(), t || !0;
191
- }
192
- }
193
- function M(n, i) {
194
- if (n.match(/^&attributes\b/))
195
- return i.javaScriptArguments = !0, i.javaScriptArgumentsDepth = 0, "keyword";
196
- }
197
- function R(n) {
198
- if (n.sol() && n.eatSpace())
199
- return "indent";
200
- }
201
- function Z(n, i) {
202
- if (n.match(/^ *\/\/(-)?([^\n]*)/))
203
- return i.indentOf = n.indentation(), i.indentToken = "comment", "comment";
204
- }
205
- function $(n) {
206
- if (n.match(/^: */))
207
- return "colon";
208
- }
209
- function q(n, i) {
210
- if (n.match(/^(?:\| ?| )([^\n]+)/))
211
- return "string";
212
- if (n.match(/^(<[^\n]*)/, !1))
213
- return c(n, i), n.skipToEnd(), i.indentToken;
214
- }
215
- function G(n, i) {
216
- if (n.eat("."))
217
- return c(n, i), "dot";
218
- }
219
- function H(n) {
220
- return n.next(), null;
221
- }
222
- function c(n, i) {
223
- i.indentOf = n.indentation(), i.indentToken = "string";
224
- }
225
- function J(n, i) {
226
- if (n.sol() && (i.restOfLine = ""), i.restOfLine) {
227
- n.skipToEnd();
228
- var t = i.restOfLine;
229
- return i.restOfLine = "", t;
230
- }
231
- }
232
- function K(n) {
233
- return new u(n);
234
- }
235
- function P(n) {
236
- return n.copy();
237
- }
238
- function Q(n, i) {
239
- var t = J(n, i) || v(n, i) || x(n, i) || D(n, i) || a(n, i) || h(n, i) || d(n, i) || O(n, i) || s(n) || S(n) || o(n, i) || g(n, i) || j(n, i) || k(n) || b(n, i) || A(n, i) || y(n, i) || L(n, i) || w(n, i) || N(n, i) || T(n, i) || I(n, i) || C(n, i) || E(n, i) || m(n, i) || F(n, i) || l(n, i) || V(n, i) || U(n) || z(n) || B(n, i) || M(n, i) || R(n) || q(n, i) || Z(n, i) || $(n) || G(n, i) || H(n);
240
- return t === !0 ? null : t;
241
- }
242
- const Y = {
243
- startState: K,
244
- copyState: P,
245
- token: Q
246
- };
247
- export {
248
- Y as pug
249
- };
@@ -1,46 +0,0 @@
1
- import "./index.css";
2
- var c = {}, s = /({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;
3
- function a(e, n) {
4
- for (var i = n.split(" "), o = 0; o < i.length; o++)
5
- c[i[o]] = e;
6
- }
7
- a("keyword", "class define site node include import inherits");
8
- a("keyword", "case if else in and elsif default or");
9
- a("atom", "false true running present absent file directory undef");
10
- a("builtin", "action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool");
11
- function u(e, n) {
12
- for (var i, o, t = !1; !e.eol() && (i = e.next()) != n.pending; ) {
13
- if (i === "$" && o != "\\" && n.pending == '"') {
14
- t = !0;
15
- break;
16
- }
17
- o = i;
18
- }
19
- return t && e.backUp(1), i == n.pending ? n.continueString = !1 : n.continueString = !0, "string";
20
- }
21
- function l(e, n) {
22
- var i = e.match(/[\w]+/, !1), o = e.match(/(\s+)?\w+\s+=>.*/, !1), t = e.match(/(\s+)?[\w:_]+(\s+)?{/, !1), f = e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/, !1), r = e.next();
23
- if (r === "$")
24
- return e.match(s) ? n.continueString ? "variableName.special" : "variable" : "error";
25
- if (n.continueString)
26
- return e.backUp(1), u(e, n);
27
- if (n.inDefinition) {
28
- if (e.match(/(\s+)?[\w:_]+(\s+)?/))
29
- return "def";
30
- e.match(/\s+{/), n.inDefinition = !1;
31
- }
32
- return n.inInclude ? (e.match(/(\s+)?\S+(\s+)?/), n.inInclude = !1, "def") : e.match(/(\s+)?\w+\(/) ? (e.backUp(1), "def") : o ? (e.match(/(\s+)?\w+/), "tag") : i && c.hasOwnProperty(i) ? (e.backUp(1), e.match(/[\w]+/), e.match(/\s+\S+\s+{/, !1) && (n.inDefinition = !0), i == "include" && (n.inInclude = !0), c[i]) : /(^|\s+)[A-Z][\w:_]+/.test(i) ? (e.backUp(1), e.match(/(^|\s+)[A-Z][\w:_]+/), "def") : t ? (e.match(/(\s+)?[\w:_]+/), "def") : f ? (e.match(/(\s+)?[@]{1,2}/), "atom") : r == "#" ? (e.skipToEnd(), "comment") : r == "'" || r == '"' ? (n.pending = r, u(e, n)) : r == "{" || r == "}" ? "bracket" : r == "/" ? (e.match(/^[^\/]*\//), "string.special") : r.match(/[0-9]/) ? (e.eatWhile(/[0-9]+/), "number") : r == "=" ? (e.peek() == ">" && e.next(), "operator") : (e.eatWhile(/[\w-]/), null);
33
- }
34
- const d = {
35
- name: "puppet",
36
- startState: function() {
37
- var e = {};
38
- return e.inDefinition = !1, e.inInclude = !1, e.continueString = !1, e.pending = !1, e;
39
- },
40
- token: function(e, n) {
41
- return e.eatSpace() ? null : l(e, n);
42
- }
43
- };
44
- export {
45
- d as puppet
46
- };