zs_library 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apl-DzB7vleG.js +77 -0
- package/dist/asciiarmor-GBg_dTix.js +35 -0
- package/dist/asn1-C3znSLx9.js +96 -0
- package/dist/asterisk-DlqRFsge.js +272 -0
- package/dist/brainfuck-BRsrPeoO.js +35 -0
- package/dist/clike-BvRdj3ii.js +621 -0
- package/dist/clojure-DoHCnq3P.js +801 -0
- package/dist/cmake-lga2BQKc.js +29 -0
- package/dist/cobol-CoUZEClC.js +73 -0
- package/dist/coffeescript-DtzhVgPb.js +180 -0
- package/dist/commonlisp-Dczl5pgK.js +76 -0
- package/dist/crystal-CGcK8mnw.js +218 -0
- package/dist/css-BSROsPdq.js +1561 -0
- package/dist/cypher-DtSMl1Mv.js +69 -0
- package/dist/d-Dvhr70b-.js +128 -0
- package/dist/diff-CGwDp7kO.js +19 -0
- package/dist/dockerfile-comEO-T6.js +195 -0
- package/dist/dtd-CCHJ68ra.js +85 -0
- package/dist/dylan-DuvcMu5H.js +235 -0
- package/dist/ebnf-40BT7kIS.js +79 -0
- package/dist/ecl-D1uoNQJW.js +122 -0
- package/dist/eiffel-5pGo0kXa.js +111 -0
- package/dist/elm-BaiVOLJD.js +109 -0
- package/dist/erlang-CkzodiGe.js +488 -0
- package/dist/factor-BOXOAn_M.js +66 -0
- package/dist/fcl-BpnTn_eU.js +104 -0
- package/dist/forth-DErAeAEb.js +61 -0
- package/dist/fortran-D2-6KpzO.js +443 -0
- package/dist/gas-DyEPANLH.js +184 -0
- package/dist/gherkin-Drt_srgO.js +35 -0
- package/dist/groovy-BMVfw_nf.js +147 -0
- package/dist/haskell-hWhKnZO1.js +376 -0
- package/dist/haxe-B1MRfS0p.js +360 -0
- package/dist/http-DmgKxj-g.js +45 -0
- package/dist/idl-DqZ86h3r.js +948 -0
- package/dist/index-5dj8r7GK.js +266 -0
- package/dist/index-BTXiadLB.js +309 -0
- package/dist/index-BlC4-BmN.js +72 -0
- package/dist/index-BrFeP3fX.js +244 -0
- package/dist/index-Bto4OncH.js +539 -0
- package/dist/index-Bvv7YkGe.js +136 -0
- package/dist/index-Bx4MkRG_.js +76 -0
- package/dist/index-CVOhQMF3.js +608 -0
- package/dist/index-CecD8NGL.js +228472 -0
- package/dist/index-CmoZmAhh.js +289 -0
- package/dist/index-DE3hmKbB.js +135 -0
- package/dist/index-DF7XjAxV.js +94 -0
- package/dist/index-DcChItCb.js +157 -0
- package/dist/index-Dl5DpQ2k.js +342 -0
- package/dist/index-Dpbxeq5U.js +59 -0
- package/dist/index-gpJmCEdM.js +99 -0
- package/dist/index-udH8R_K0.js +300 -0
- package/dist/index.css +1 -1
- package/dist/index.js +6 -10612
- package/dist/javascript-BvuVDFxD.js +691 -0
- package/dist/jinja2-sU0UaYnG.js +155 -0
- package/dist/julia-3_lRZPrK.js +242 -0
- package/dist/livescript-BeDiX_lv.js +273 -0
- package/dist/lua-DsgFLpii.js +218 -0
- package/dist/mathematica-1GSq-6KQ.js +36 -0
- package/dist/mbox-agttEgFX.js +77 -0
- package/dist/mirc-0mTi20sq.js +73 -0
- package/dist/mllike-Cn3QD1L6.js +273 -0
- package/dist/modelica-zXUsSMFb.js +94 -0
- package/dist/mscgen-CjqYDKLG.js +105 -0
- package/dist/mumps-o2cuacx9.js +26 -0
- package/dist/nginx-BwTpvSVN.js +90 -0
- package/dist/nsis-BuRdhAu4.js +63 -0
- package/dist/ntriples-DrgMTIhT.js +80 -0
- package/dist/octave-Cxdtf9mO.js +144 -0
- package/dist/oz-DFmTw-qE.js +152 -0
- package/dist/pascal-DXxn4Ogv.js +78 -0
- package/dist/perl-C73cx1ym.js +916 -0
- package/dist/pig-Bb8sMbk0.js +55 -0
- package/dist/powershell-DxmufwKU.js +250 -0
- package/dist/properties-C4fhBR7T.js +27 -0
- package/dist/protobuf-Eqae3kep.js +50 -0
- package/dist/pug-Cdoid33I.js +249 -0
- package/dist/puppet-BH84QZvC.js +46 -0
- package/dist/python-D32-_XsH.js +314 -0
- package/dist/q-CDvEpNHY.js +84 -0
- package/dist/r-D9TtEI-G.js +105 -0
- package/dist/rpm-Ckejt31K.js +58 -0
- package/dist/ruby-gRVA_lpr.js +229 -0
- package/dist/sas-Cetv6MtF.js +106 -0
- package/dist/scheme-BpAxUIwV.js +125 -0
- package/dist/shell-DmARhv5h.js +183 -0
- package/dist/sieve-DJENs6f1.js +73 -0
- package/dist/simple-mode-B0kVDhR7.js +89 -0
- package/dist/smalltalk-CtRR6guu.js +49 -0
- package/dist/solr-ZVIJNGhC.js +42 -0
- package/dist/sparql-Cg1WYQva.js +198 -0
- package/dist/spreadsheet-Bi94Lk_2.js +50 -0
- package/dist/sql-BLhvp4JJ.js +283 -0
- package/dist/stex-DuReG47O.js +130 -0
- package/dist/stylus-D5QpSSbb.js +251 -0
- package/dist/swift-CZplZXOW.js +231 -0
- package/dist/tcl-COiqjz-O.js +82 -0
- package/dist/textile-BIDpYsbD.js +296 -0
- package/dist/tiddlywiki-C4woD_uK.js +156 -0
- package/dist/tiki-Ddj0Z2aQ.js +182 -0
- package/dist/toml-Byr0PaXO.js +50 -0
- package/dist/troff-BEvN8lSw.js +36 -0
- package/dist/ttcn-CyeSpuPS.js +124 -0
- package/dist/ttcn-cfg-C4JBLVfg.js +89 -0
- package/dist/turtle-8qSCc9Tc.js +81 -0
- package/dist/vb-BOJI7cFm.js +75 -0
- package/dist/vbscript-Cu6iG9pw.js +325 -0
- package/dist/velocity-BEpFYT7L.js +97 -0
- package/dist/verilog-BBxq08Rh.js +264 -0
- package/dist/vhdl-B0tZHMGi.js +107 -0
- package/dist/webidl-CW91NtvY.js +156 -0
- package/dist/xquery-DzC9wL36.js +423 -0
- package/dist/yacas-lKwNB4DM.js +74 -0
- package/dist/z80-Bq0fiCqy.js +62 -0
- package/package.json +1 -1
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import "./index.css";
|
|
2
|
+
function c(e) {
|
|
3
|
+
return new RegExp("^(?:" + e.join("|") + ")", "i");
|
|
4
|
+
}
|
|
5
|
+
function o(e) {
|
|
6
|
+
return new RegExp("^(?:" + e.join("|") + ")$", "i");
|
|
7
|
+
}
|
|
8
|
+
var d = o([
|
|
9
|
+
"_G",
|
|
10
|
+
"_VERSION",
|
|
11
|
+
"assert",
|
|
12
|
+
"collectgarbage",
|
|
13
|
+
"dofile",
|
|
14
|
+
"error",
|
|
15
|
+
"getfenv",
|
|
16
|
+
"getmetatable",
|
|
17
|
+
"ipairs",
|
|
18
|
+
"load",
|
|
19
|
+
"loadfile",
|
|
20
|
+
"loadstring",
|
|
21
|
+
"module",
|
|
22
|
+
"next",
|
|
23
|
+
"pairs",
|
|
24
|
+
"pcall",
|
|
25
|
+
"print",
|
|
26
|
+
"rawequal",
|
|
27
|
+
"rawget",
|
|
28
|
+
"rawset",
|
|
29
|
+
"require",
|
|
30
|
+
"select",
|
|
31
|
+
"setfenv",
|
|
32
|
+
"setmetatable",
|
|
33
|
+
"tonumber",
|
|
34
|
+
"tostring",
|
|
35
|
+
"type",
|
|
36
|
+
"unpack",
|
|
37
|
+
"xpcall",
|
|
38
|
+
"coroutine.create",
|
|
39
|
+
"coroutine.resume",
|
|
40
|
+
"coroutine.running",
|
|
41
|
+
"coroutine.status",
|
|
42
|
+
"coroutine.wrap",
|
|
43
|
+
"coroutine.yield",
|
|
44
|
+
"debug.debug",
|
|
45
|
+
"debug.getfenv",
|
|
46
|
+
"debug.gethook",
|
|
47
|
+
"debug.getinfo",
|
|
48
|
+
"debug.getlocal",
|
|
49
|
+
"debug.getmetatable",
|
|
50
|
+
"debug.getregistry",
|
|
51
|
+
"debug.getupvalue",
|
|
52
|
+
"debug.setfenv",
|
|
53
|
+
"debug.sethook",
|
|
54
|
+
"debug.setlocal",
|
|
55
|
+
"debug.setmetatable",
|
|
56
|
+
"debug.setupvalue",
|
|
57
|
+
"debug.traceback",
|
|
58
|
+
"close",
|
|
59
|
+
"flush",
|
|
60
|
+
"lines",
|
|
61
|
+
"read",
|
|
62
|
+
"seek",
|
|
63
|
+
"setvbuf",
|
|
64
|
+
"write",
|
|
65
|
+
"io.close",
|
|
66
|
+
"io.flush",
|
|
67
|
+
"io.input",
|
|
68
|
+
"io.lines",
|
|
69
|
+
"io.open",
|
|
70
|
+
"io.output",
|
|
71
|
+
"io.popen",
|
|
72
|
+
"io.read",
|
|
73
|
+
"io.stderr",
|
|
74
|
+
"io.stdin",
|
|
75
|
+
"io.stdout",
|
|
76
|
+
"io.tmpfile",
|
|
77
|
+
"io.type",
|
|
78
|
+
"io.write",
|
|
79
|
+
"math.abs",
|
|
80
|
+
"math.acos",
|
|
81
|
+
"math.asin",
|
|
82
|
+
"math.atan",
|
|
83
|
+
"math.atan2",
|
|
84
|
+
"math.ceil",
|
|
85
|
+
"math.cos",
|
|
86
|
+
"math.cosh",
|
|
87
|
+
"math.deg",
|
|
88
|
+
"math.exp",
|
|
89
|
+
"math.floor",
|
|
90
|
+
"math.fmod",
|
|
91
|
+
"math.frexp",
|
|
92
|
+
"math.huge",
|
|
93
|
+
"math.ldexp",
|
|
94
|
+
"math.log",
|
|
95
|
+
"math.log10",
|
|
96
|
+
"math.max",
|
|
97
|
+
"math.min",
|
|
98
|
+
"math.modf",
|
|
99
|
+
"math.pi",
|
|
100
|
+
"math.pow",
|
|
101
|
+
"math.rad",
|
|
102
|
+
"math.random",
|
|
103
|
+
"math.randomseed",
|
|
104
|
+
"math.sin",
|
|
105
|
+
"math.sinh",
|
|
106
|
+
"math.sqrt",
|
|
107
|
+
"math.tan",
|
|
108
|
+
"math.tanh",
|
|
109
|
+
"os.clock",
|
|
110
|
+
"os.date",
|
|
111
|
+
"os.difftime",
|
|
112
|
+
"os.execute",
|
|
113
|
+
"os.exit",
|
|
114
|
+
"os.getenv",
|
|
115
|
+
"os.remove",
|
|
116
|
+
"os.rename",
|
|
117
|
+
"os.setlocale",
|
|
118
|
+
"os.time",
|
|
119
|
+
"os.tmpname",
|
|
120
|
+
"package.cpath",
|
|
121
|
+
"package.loaded",
|
|
122
|
+
"package.loaders",
|
|
123
|
+
"package.loadlib",
|
|
124
|
+
"package.path",
|
|
125
|
+
"package.preload",
|
|
126
|
+
"package.seeall",
|
|
127
|
+
"string.byte",
|
|
128
|
+
"string.char",
|
|
129
|
+
"string.dump",
|
|
130
|
+
"string.find",
|
|
131
|
+
"string.format",
|
|
132
|
+
"string.gmatch",
|
|
133
|
+
"string.gsub",
|
|
134
|
+
"string.len",
|
|
135
|
+
"string.lower",
|
|
136
|
+
"string.match",
|
|
137
|
+
"string.rep",
|
|
138
|
+
"string.reverse",
|
|
139
|
+
"string.sub",
|
|
140
|
+
"string.upper",
|
|
141
|
+
"table.concat",
|
|
142
|
+
"table.insert",
|
|
143
|
+
"table.maxn",
|
|
144
|
+
"table.remove",
|
|
145
|
+
"table.sort"
|
|
146
|
+
]), g = o([
|
|
147
|
+
"and",
|
|
148
|
+
"break",
|
|
149
|
+
"elseif",
|
|
150
|
+
"false",
|
|
151
|
+
"nil",
|
|
152
|
+
"not",
|
|
153
|
+
"or",
|
|
154
|
+
"return",
|
|
155
|
+
"true",
|
|
156
|
+
"function",
|
|
157
|
+
"end",
|
|
158
|
+
"if",
|
|
159
|
+
"then",
|
|
160
|
+
"else",
|
|
161
|
+
"do",
|
|
162
|
+
"while",
|
|
163
|
+
"repeat",
|
|
164
|
+
"until",
|
|
165
|
+
"for",
|
|
166
|
+
"in",
|
|
167
|
+
"local"
|
|
168
|
+
]), f = o(["function", "if", "repeat", "do", "\\(", "{"]), h = o(["end", "until", "\\)", "}"]), p = c(["end", "until", "\\)", "}", "else", "elseif"]);
|
|
169
|
+
function u(e) {
|
|
170
|
+
for (var t = 0; e.eat("="); ) ++t;
|
|
171
|
+
return e.eat("["), t;
|
|
172
|
+
}
|
|
173
|
+
function l(e, t) {
|
|
174
|
+
var n = e.next();
|
|
175
|
+
return n == "-" && e.eat("-") ? e.eat("[") && e.eat("[") ? (t.cur = s(u(e), "comment"))(e, t) : (e.skipToEnd(), "comment") : n == '"' || n == "'" ? (t.cur = m(n))(e, t) : n == "[" && /[\[=]/.test(e.peek()) ? (t.cur = s(u(e), "string"))(e, t) : /\d/.test(n) ? (e.eatWhile(/[\w.%]/), "number") : /[\w_]/.test(n) ? (e.eatWhile(/[\w\\\-_.]/), "variable") : null;
|
|
176
|
+
}
|
|
177
|
+
function s(e, t) {
|
|
178
|
+
return function(n, i) {
|
|
179
|
+
for (var r = null, a; (a = n.next()) != null; )
|
|
180
|
+
if (r == null)
|
|
181
|
+
a == "]" && (r = 0);
|
|
182
|
+
else if (a == "=") ++r;
|
|
183
|
+
else if (a == "]" && r == e) {
|
|
184
|
+
i.cur = l;
|
|
185
|
+
break;
|
|
186
|
+
} else r = null;
|
|
187
|
+
return t;
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function m(e) {
|
|
191
|
+
return function(t, n) {
|
|
192
|
+
for (var i = !1, r; (r = t.next()) != null && !(r == e && !i); )
|
|
193
|
+
i = !i && r == "\\";
|
|
194
|
+
return i || (n.cur = l), "string";
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
const k = {
|
|
198
|
+
name: "lua",
|
|
199
|
+
startState: function() {
|
|
200
|
+
return { basecol: 0, indentDepth: 0, cur: l };
|
|
201
|
+
},
|
|
202
|
+
token: function(e, t) {
|
|
203
|
+
if (e.eatSpace()) return null;
|
|
204
|
+
var n = t.cur(e, t), i = e.current();
|
|
205
|
+
return n == "variable" && (g.test(i) ? n = "keyword" : d.test(i) && (n = "builtin")), n != "comment" && n != "string" && (f.test(i) ? ++t.indentDepth : h.test(i) && --t.indentDepth), n;
|
|
206
|
+
},
|
|
207
|
+
indent: function(e, t, n) {
|
|
208
|
+
var i = p.test(t);
|
|
209
|
+
return e.basecol + n.unit * (e.indentDepth - (i ? 1 : 0));
|
|
210
|
+
},
|
|
211
|
+
languageData: {
|
|
212
|
+
indentOnInput: /^\s*(?:end|until|else|\)|\})$/,
|
|
213
|
+
commentTokens: { line: "--", block: { open: "--[[", close: "]]--" } }
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
export {
|
|
217
|
+
k as lua
|
|
218
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "./index.css";
|
|
2
|
+
var u = "[a-zA-Z\\$][a-zA-Z0-9\\$]*", o = "(?:\\d+)", c = "(?:\\.\\d+|\\d+\\.\\d*|\\d+)", f = "(?:\\.\\w+|\\w+\\.\\w*|\\w+)", l = "(?:`(?:`?" + c + ")?)", z = new RegExp("(?:" + o + "(?:\\^\\^" + f + l + "?(?:\\*\\^[+-]?\\d+)?))"), m = new RegExp("(?:" + c + l + "?(?:\\*\\^[+-]?\\d+)?)"), A = new RegExp("(?:`?)(?:" + u + ")(?:`(?:" + u + "))*(?:`?)");
|
|
3
|
+
function i(e, a) {
|
|
4
|
+
var n;
|
|
5
|
+
return n = e.next(), n === '"' ? (a.tokenize = Z, a.tokenize(e, a)) : n === "(" && e.eat("*") ? (a.commentLevel++, a.tokenize = $, a.tokenize(e, a)) : (e.backUp(1), e.match(z, !0, !1) || e.match(m, !0, !1) ? "number" : e.match(/(?:In|Out)\[[0-9]*\]/, !0, !1) ? "atom" : e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/, !0, !1) ? "meta" : e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/, !0, !1) ? "string.special" : e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/, !0, !1) || e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/, !0, !1) || e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/, !0, !1) || e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/, !0, !1) ? "variableName.special" : e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/, !0, !1) ? "character" : e.match(/(?:\[|\]|{|}|\(|\))/, !0, !1) ? "bracket" : e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/, !0, !1) ? "variableName.constant" : e.match(A, !0, !1) ? "keyword" : e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, !0, !1) ? "operator" : (e.next(), "error"));
|
|
6
|
+
}
|
|
7
|
+
function Z(e, a) {
|
|
8
|
+
for (var n, r = !1, t = !1; (n = e.next()) != null; ) {
|
|
9
|
+
if (n === '"' && !t) {
|
|
10
|
+
r = !0;
|
|
11
|
+
break;
|
|
12
|
+
}
|
|
13
|
+
t = !t && n === "\\";
|
|
14
|
+
}
|
|
15
|
+
return r && !t && (a.tokenize = i), "string";
|
|
16
|
+
}
|
|
17
|
+
function $(e, a) {
|
|
18
|
+
for (var n, r; a.commentLevel > 0 && (r = e.next()) != null; )
|
|
19
|
+
n === "(" && r === "*" && a.commentLevel++, n === "*" && r === ")" && a.commentLevel--, n = r;
|
|
20
|
+
return a.commentLevel <= 0 && (a.tokenize = i), "comment";
|
|
21
|
+
}
|
|
22
|
+
const h = {
|
|
23
|
+
name: "mathematica",
|
|
24
|
+
startState: function() {
|
|
25
|
+
return { tokenize: i, commentLevel: 0 };
|
|
26
|
+
},
|
|
27
|
+
token: function(e, a) {
|
|
28
|
+
return e.eatSpace() ? null : a.tokenize(e, a);
|
|
29
|
+
},
|
|
30
|
+
languageData: {
|
|
31
|
+
commentTokens: { block: { open: "(*", close: "*)" } }
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
h as mathematica
|
|
36
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import "./index.css";
|
|
2
|
+
var o = [
|
|
3
|
+
"From",
|
|
4
|
+
"Sender",
|
|
5
|
+
"Reply-To",
|
|
6
|
+
"To",
|
|
7
|
+
"Cc",
|
|
8
|
+
"Bcc",
|
|
9
|
+
"Message-ID",
|
|
10
|
+
"In-Reply-To",
|
|
11
|
+
"References",
|
|
12
|
+
"Resent-From",
|
|
13
|
+
"Resent-Sender",
|
|
14
|
+
"Resent-To",
|
|
15
|
+
"Resent-Cc",
|
|
16
|
+
"Resent-Bcc",
|
|
17
|
+
"Resent-Message-ID",
|
|
18
|
+
"Return-Path",
|
|
19
|
+
"Received"
|
|
20
|
+
], l = [
|
|
21
|
+
"Date",
|
|
22
|
+
"Subject",
|
|
23
|
+
"Comments",
|
|
24
|
+
"Keywords",
|
|
25
|
+
"Resent-Date"
|
|
26
|
+
], u = /^[ \t]/, d = /^From /, f = new RegExp("^(" + o.join("|") + "): "), c = new RegExp("^(" + l.join("|") + "): "), t = /^[^:]+:/, m = /^[^ ]+@[^ ]+/, p = /^.*?(?=[^ ]+?@[^ ]+)/, H = /^<.*?>/, v = /^.*?(?=<.*>)/;
|
|
27
|
+
function h(e) {
|
|
28
|
+
return e === "Subject" ? "header" : "string";
|
|
29
|
+
}
|
|
30
|
+
function R(e, r) {
|
|
31
|
+
if (e.sol()) {
|
|
32
|
+
if (r.inSeparator = !1, r.inHeader && e.match(u))
|
|
33
|
+
return null;
|
|
34
|
+
if (r.inHeader = !1, r.header = null, e.match(d))
|
|
35
|
+
return r.inHeaders = !0, r.inSeparator = !0, "atom";
|
|
36
|
+
var n, i = !1;
|
|
37
|
+
return (n = e.match(c)) || (i = !0) && (n = e.match(f)) ? (r.inHeaders = !0, r.inHeader = !0, r.emailPermitted = i, r.header = n[1], "atom") : r.inHeaders && (n = e.match(t)) ? (r.inHeader = !0, r.emailPermitted = !0, r.header = n[1], "atom") : (r.inHeaders = !1, e.skipToEnd(), null);
|
|
38
|
+
}
|
|
39
|
+
if (r.inSeparator)
|
|
40
|
+
return e.match(m) ? "link" : (e.match(p) || e.skipToEnd(), "atom");
|
|
41
|
+
if (r.inHeader) {
|
|
42
|
+
var a = h(r.header);
|
|
43
|
+
if (r.emailPermitted) {
|
|
44
|
+
if (e.match(H)) return a + " link";
|
|
45
|
+
if (e.match(v)) return a;
|
|
46
|
+
}
|
|
47
|
+
return e.skipToEnd(), a;
|
|
48
|
+
}
|
|
49
|
+
return e.skipToEnd(), null;
|
|
50
|
+
}
|
|
51
|
+
const E = {
|
|
52
|
+
name: "mbox",
|
|
53
|
+
startState: function() {
|
|
54
|
+
return {
|
|
55
|
+
// Is in a mbox separator
|
|
56
|
+
inSeparator: !1,
|
|
57
|
+
// Is in a mail header
|
|
58
|
+
inHeader: !1,
|
|
59
|
+
// If bracketed email is permitted. Only applicable when inHeader
|
|
60
|
+
emailPermitted: !1,
|
|
61
|
+
// Name of current header
|
|
62
|
+
header: null,
|
|
63
|
+
// Is in a region of mail headers
|
|
64
|
+
inHeaders: !1
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
token: R,
|
|
68
|
+
blankLine: function(e) {
|
|
69
|
+
e.inHeaders = e.inSeparator = e.inHeader = !1;
|
|
70
|
+
},
|
|
71
|
+
languageData: {
|
|
72
|
+
autocomplete: o.concat(l)
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
E as mbox
|
|
77
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import "./index.css";
|
|
2
|
+
function n(e) {
|
|
3
|
+
for (var $ = {}, r = e.split(" "), i = 0; i < r.length; ++i) $[r[i]] = !0;
|
|
4
|
+
return $;
|
|
5
|
+
}
|
|
6
|
+
var a = n("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"), s = n("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"), l = n("if elseif else and not or eq ne in ni for foreach while switch"), c = /[+\-*&%=<>!?^\/\|]/;
|
|
7
|
+
function d(e, $, r) {
|
|
8
|
+
return $.tokenize = r, r(e, $);
|
|
9
|
+
}
|
|
10
|
+
function o(e, $) {
|
|
11
|
+
var r = $.beforeParams;
|
|
12
|
+
$.beforeParams = !1;
|
|
13
|
+
var i = e.next();
|
|
14
|
+
if (/[\[\]{}\(\),\.]/.test(i))
|
|
15
|
+
return i == "(" && r ? $.inParams = !0 : i == ")" && ($.inParams = !1), null;
|
|
16
|
+
if (/\d/.test(i))
|
|
17
|
+
return e.eatWhile(/[\w\.]/), "number";
|
|
18
|
+
if (i == "\\")
|
|
19
|
+
return e.eat("\\"), e.eat(/./), "number";
|
|
20
|
+
if (i == "/" && e.eat("*"))
|
|
21
|
+
return d(e, $, m);
|
|
22
|
+
if (i == ";" && e.match(/ *\( *\(/))
|
|
23
|
+
return d(e, $, p);
|
|
24
|
+
if (i == ";" && !$.inParams)
|
|
25
|
+
return e.skipToEnd(), "comment";
|
|
26
|
+
if (i == '"')
|
|
27
|
+
return e.eat(/"/), "keyword";
|
|
28
|
+
if (i == "$")
|
|
29
|
+
return e.eatWhile(/[$_a-z0-9A-Z\.:]/), a && a.propertyIsEnumerable(e.current().toLowerCase()) ? "keyword" : ($.beforeParams = !0, "builtin");
|
|
30
|
+
if (i == "%")
|
|
31
|
+
return e.eatWhile(/[^,\s()]/), $.beforeParams = !0, "string";
|
|
32
|
+
if (c.test(i))
|
|
33
|
+
return e.eatWhile(c), "operator";
|
|
34
|
+
e.eatWhile(/[\w\$_{}]/);
|
|
35
|
+
var t = e.current().toLowerCase();
|
|
36
|
+
return s && s.propertyIsEnumerable(t) ? "keyword" : l && l.propertyIsEnumerable(t) ? ($.beforeParams = !0, "keyword") : null;
|
|
37
|
+
}
|
|
38
|
+
function m(e, $) {
|
|
39
|
+
for (var r = !1, i; i = e.next(); ) {
|
|
40
|
+
if (i == "/" && r) {
|
|
41
|
+
$.tokenize = o;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
r = i == "*";
|
|
45
|
+
}
|
|
46
|
+
return "comment";
|
|
47
|
+
}
|
|
48
|
+
function p(e, $) {
|
|
49
|
+
for (var r = 0, i; i = e.next(); ) {
|
|
50
|
+
if (i == ";" && r == 2) {
|
|
51
|
+
$.tokenize = o;
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
i == ")" ? r++ : i != " " && (r = 0);
|
|
55
|
+
}
|
|
56
|
+
return "meta";
|
|
57
|
+
}
|
|
58
|
+
const f = {
|
|
59
|
+
name: "mirc",
|
|
60
|
+
startState: function() {
|
|
61
|
+
return {
|
|
62
|
+
tokenize: o,
|
|
63
|
+
beforeParams: !1,
|
|
64
|
+
inParams: !1
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
token: function(e, $) {
|
|
68
|
+
return e.eatSpace() ? null : $.tokenize(e, $);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
f as mirc
|
|
73
|
+
};
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import "./index.css";
|
|
2
|
+
function y(n) {
|
|
3
|
+
var t = {
|
|
4
|
+
as: "keyword",
|
|
5
|
+
do: "keyword",
|
|
6
|
+
else: "keyword",
|
|
7
|
+
end: "keyword",
|
|
8
|
+
exception: "keyword",
|
|
9
|
+
fun: "keyword",
|
|
10
|
+
functor: "keyword",
|
|
11
|
+
if: "keyword",
|
|
12
|
+
in: "keyword",
|
|
13
|
+
include: "keyword",
|
|
14
|
+
let: "keyword",
|
|
15
|
+
of: "keyword",
|
|
16
|
+
open: "keyword",
|
|
17
|
+
rec: "keyword",
|
|
18
|
+
struct: "keyword",
|
|
19
|
+
then: "keyword",
|
|
20
|
+
type: "keyword",
|
|
21
|
+
val: "keyword",
|
|
22
|
+
while: "keyword",
|
|
23
|
+
with: "keyword"
|
|
24
|
+
}, l = n.extraWords || {};
|
|
25
|
+
for (var w in l)
|
|
26
|
+
l.hasOwnProperty(w) && (t[w] = n.extraWords[w]);
|
|
27
|
+
var u = [];
|
|
28
|
+
for (var a in t)
|
|
29
|
+
u.push(a);
|
|
30
|
+
function d(e, r) {
|
|
31
|
+
var o = e.next();
|
|
32
|
+
if (o === '"')
|
|
33
|
+
return r.tokenize = c, r.tokenize(e, r);
|
|
34
|
+
if (o === "{" && e.eat("|"))
|
|
35
|
+
return r.longString = !0, r.tokenize = b, r.tokenize(e, r);
|
|
36
|
+
if (o === "(" && e.match(/^\*(?!\))/))
|
|
37
|
+
return r.commentLevel++, r.tokenize = f, r.tokenize(e, r);
|
|
38
|
+
if (o === "~" || o === "?")
|
|
39
|
+
return e.eatWhile(/\w/), "variableName.special";
|
|
40
|
+
if (o === "`")
|
|
41
|
+
return e.eatWhile(/\w/), "quote";
|
|
42
|
+
if (o === "/" && n.slashComments && e.eat("/"))
|
|
43
|
+
return e.skipToEnd(), "comment";
|
|
44
|
+
if (/\d/.test(o))
|
|
45
|
+
return o === "0" && e.eat(/[bB]/) && e.eatWhile(/[01]/), o === "0" && e.eat(/[xX]/) && e.eatWhile(/[0-9a-fA-F]/), o === "0" && e.eat(/[oO]/) ? e.eatWhile(/[0-7]/) : (e.eatWhile(/[\d_]/), e.eat(".") && e.eatWhile(/[\d]/), e.eat(/[eE]/) && e.eatWhile(/[\d\-+]/)), "number";
|
|
46
|
+
if (/[+\-*&%=<>!?|@\.~:]/.test(o))
|
|
47
|
+
return "operator";
|
|
48
|
+
if (/[\w\xa1-\uffff]/.test(o)) {
|
|
49
|
+
e.eatWhile(/[\w\xa1-\uffff]/);
|
|
50
|
+
var i = e.current();
|
|
51
|
+
return t.hasOwnProperty(i) ? t[i] : "variable";
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
function c(e, r) {
|
|
56
|
+
for (var o, i = !1, k = !1; (o = e.next()) != null; ) {
|
|
57
|
+
if (o === '"' && !k) {
|
|
58
|
+
i = !0;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
k = !k && o === "\\";
|
|
62
|
+
}
|
|
63
|
+
return i && !k && (r.tokenize = d), "string";
|
|
64
|
+
}
|
|
65
|
+
function f(e, r) {
|
|
66
|
+
for (var o, i; r.commentLevel > 0 && (i = e.next()) != null; )
|
|
67
|
+
o === "(" && i === "*" && r.commentLevel++, o === "*" && i === ")" && r.commentLevel--, o = i;
|
|
68
|
+
return r.commentLevel <= 0 && (r.tokenize = d), "comment";
|
|
69
|
+
}
|
|
70
|
+
function b(e, r) {
|
|
71
|
+
for (var o, i; r.longString && (i = e.next()) != null; )
|
|
72
|
+
o === "|" && i === "}" && (r.longString = !1), o = i;
|
|
73
|
+
return r.longString || (r.tokenize = d), "string";
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
startState: function() {
|
|
77
|
+
return { tokenize: d, commentLevel: 0, longString: !1 };
|
|
78
|
+
},
|
|
79
|
+
token: function(e, r) {
|
|
80
|
+
return e.eatSpace() ? null : r.tokenize(e, r);
|
|
81
|
+
},
|
|
82
|
+
languageData: {
|
|
83
|
+
autocomplete: u,
|
|
84
|
+
commentTokens: {
|
|
85
|
+
line: n.slashComments ? "//" : void 0,
|
|
86
|
+
block: { open: "(*", close: "*)" }
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
const h = y({
|
|
92
|
+
extraWords: {
|
|
93
|
+
and: "keyword",
|
|
94
|
+
assert: "keyword",
|
|
95
|
+
begin: "keyword",
|
|
96
|
+
class: "keyword",
|
|
97
|
+
constraint: "keyword",
|
|
98
|
+
done: "keyword",
|
|
99
|
+
downto: "keyword",
|
|
100
|
+
external: "keyword",
|
|
101
|
+
function: "keyword",
|
|
102
|
+
initializer: "keyword",
|
|
103
|
+
lazy: "keyword",
|
|
104
|
+
match: "keyword",
|
|
105
|
+
method: "keyword",
|
|
106
|
+
module: "keyword",
|
|
107
|
+
mutable: "keyword",
|
|
108
|
+
new: "keyword",
|
|
109
|
+
nonrec: "keyword",
|
|
110
|
+
object: "keyword",
|
|
111
|
+
private: "keyword",
|
|
112
|
+
sig: "keyword",
|
|
113
|
+
to: "keyword",
|
|
114
|
+
try: "keyword",
|
|
115
|
+
value: "keyword",
|
|
116
|
+
virtual: "keyword",
|
|
117
|
+
when: "keyword",
|
|
118
|
+
// builtins
|
|
119
|
+
raise: "builtin",
|
|
120
|
+
failwith: "builtin",
|
|
121
|
+
true: "builtin",
|
|
122
|
+
false: "builtin",
|
|
123
|
+
// Pervasives builtins
|
|
124
|
+
asr: "builtin",
|
|
125
|
+
land: "builtin",
|
|
126
|
+
lor: "builtin",
|
|
127
|
+
lsl: "builtin",
|
|
128
|
+
lsr: "builtin",
|
|
129
|
+
lxor: "builtin",
|
|
130
|
+
mod: "builtin",
|
|
131
|
+
or: "builtin",
|
|
132
|
+
// More Pervasives
|
|
133
|
+
raise_notrace: "builtin",
|
|
134
|
+
trace: "builtin",
|
|
135
|
+
exit: "builtin",
|
|
136
|
+
print_string: "builtin",
|
|
137
|
+
print_endline: "builtin",
|
|
138
|
+
int: "type",
|
|
139
|
+
float: "type",
|
|
140
|
+
bool: "type",
|
|
141
|
+
char: "type",
|
|
142
|
+
string: "type",
|
|
143
|
+
unit: "type",
|
|
144
|
+
// Modules
|
|
145
|
+
List: "builtin"
|
|
146
|
+
}
|
|
147
|
+
}), p = y({
|
|
148
|
+
extraWords: {
|
|
149
|
+
abstract: "keyword",
|
|
150
|
+
assert: "keyword",
|
|
151
|
+
base: "keyword",
|
|
152
|
+
begin: "keyword",
|
|
153
|
+
class: "keyword",
|
|
154
|
+
default: "keyword",
|
|
155
|
+
delegate: "keyword",
|
|
156
|
+
"do!": "keyword",
|
|
157
|
+
done: "keyword",
|
|
158
|
+
downcast: "keyword",
|
|
159
|
+
downto: "keyword",
|
|
160
|
+
elif: "keyword",
|
|
161
|
+
extern: "keyword",
|
|
162
|
+
finally: "keyword",
|
|
163
|
+
for: "keyword",
|
|
164
|
+
function: "keyword",
|
|
165
|
+
global: "keyword",
|
|
166
|
+
inherit: "keyword",
|
|
167
|
+
inline: "keyword",
|
|
168
|
+
interface: "keyword",
|
|
169
|
+
internal: "keyword",
|
|
170
|
+
lazy: "keyword",
|
|
171
|
+
"let!": "keyword",
|
|
172
|
+
match: "keyword",
|
|
173
|
+
member: "keyword",
|
|
174
|
+
module: "keyword",
|
|
175
|
+
mutable: "keyword",
|
|
176
|
+
namespace: "keyword",
|
|
177
|
+
new: "keyword",
|
|
178
|
+
null: "keyword",
|
|
179
|
+
override: "keyword",
|
|
180
|
+
private: "keyword",
|
|
181
|
+
public: "keyword",
|
|
182
|
+
"return!": "keyword",
|
|
183
|
+
return: "keyword",
|
|
184
|
+
select: "keyword",
|
|
185
|
+
static: "keyword",
|
|
186
|
+
to: "keyword",
|
|
187
|
+
try: "keyword",
|
|
188
|
+
upcast: "keyword",
|
|
189
|
+
"use!": "keyword",
|
|
190
|
+
use: "keyword",
|
|
191
|
+
void: "keyword",
|
|
192
|
+
when: "keyword",
|
|
193
|
+
"yield!": "keyword",
|
|
194
|
+
yield: "keyword",
|
|
195
|
+
// Reserved words
|
|
196
|
+
atomic: "keyword",
|
|
197
|
+
break: "keyword",
|
|
198
|
+
checked: "keyword",
|
|
199
|
+
component: "keyword",
|
|
200
|
+
const: "keyword",
|
|
201
|
+
constraint: "keyword",
|
|
202
|
+
constructor: "keyword",
|
|
203
|
+
continue: "keyword",
|
|
204
|
+
eager: "keyword",
|
|
205
|
+
event: "keyword",
|
|
206
|
+
external: "keyword",
|
|
207
|
+
fixed: "keyword",
|
|
208
|
+
method: "keyword",
|
|
209
|
+
mixin: "keyword",
|
|
210
|
+
object: "keyword",
|
|
211
|
+
parallel: "keyword",
|
|
212
|
+
process: "keyword",
|
|
213
|
+
protected: "keyword",
|
|
214
|
+
pure: "keyword",
|
|
215
|
+
sealed: "keyword",
|
|
216
|
+
tailcall: "keyword",
|
|
217
|
+
trait: "keyword",
|
|
218
|
+
virtual: "keyword",
|
|
219
|
+
volatile: "keyword",
|
|
220
|
+
// builtins
|
|
221
|
+
List: "builtin",
|
|
222
|
+
Seq: "builtin",
|
|
223
|
+
Map: "builtin",
|
|
224
|
+
Set: "builtin",
|
|
225
|
+
Option: "builtin",
|
|
226
|
+
int: "builtin",
|
|
227
|
+
string: "builtin",
|
|
228
|
+
not: "builtin",
|
|
229
|
+
true: "builtin",
|
|
230
|
+
false: "builtin",
|
|
231
|
+
raise: "builtin",
|
|
232
|
+
failwith: "builtin"
|
|
233
|
+
},
|
|
234
|
+
slashComments: !0
|
|
235
|
+
}), v = y({
|
|
236
|
+
extraWords: {
|
|
237
|
+
abstype: "keyword",
|
|
238
|
+
and: "keyword",
|
|
239
|
+
andalso: "keyword",
|
|
240
|
+
case: "keyword",
|
|
241
|
+
datatype: "keyword",
|
|
242
|
+
fn: "keyword",
|
|
243
|
+
handle: "keyword",
|
|
244
|
+
infix: "keyword",
|
|
245
|
+
infixr: "keyword",
|
|
246
|
+
local: "keyword",
|
|
247
|
+
nonfix: "keyword",
|
|
248
|
+
op: "keyword",
|
|
249
|
+
orelse: "keyword",
|
|
250
|
+
raise: "keyword",
|
|
251
|
+
withtype: "keyword",
|
|
252
|
+
eqtype: "keyword",
|
|
253
|
+
sharing: "keyword",
|
|
254
|
+
sig: "keyword",
|
|
255
|
+
signature: "keyword",
|
|
256
|
+
structure: "keyword",
|
|
257
|
+
where: "keyword",
|
|
258
|
+
true: "keyword",
|
|
259
|
+
false: "keyword",
|
|
260
|
+
// types
|
|
261
|
+
int: "builtin",
|
|
262
|
+
real: "builtin",
|
|
263
|
+
string: "builtin",
|
|
264
|
+
char: "builtin",
|
|
265
|
+
bool: "builtin"
|
|
266
|
+
},
|
|
267
|
+
slashComments: !0
|
|
268
|
+
});
|
|
269
|
+
export {
|
|
270
|
+
p as fSharp,
|
|
271
|
+
h as oCaml,
|
|
272
|
+
v as sml
|
|
273
|
+
};
|