@aiao/code-editor-react 0.0.8 → 0.0.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 (121) hide show
  1. package/dist/index.js +118 -2
  2. package/package.json +7 -4
  3. package/dist/apl-B2DGVGxc-Dd6D39pP.js +0 -76
  4. package/dist/asciiarmor-2LVJmxlE-CAn4gnoC.js +0 -34
  5. package/dist/asn1-jKiBa2Ya-xsKwdyq9.js +0 -95
  6. package/dist/asterisk-DS281yxp-B5eTWk_B.js +0 -271
  7. package/dist/brainfuck-C_p9pTT8-DKVQ9poL.js +0 -34
  8. package/dist/clike-BMALKCNj-Ck7Gc35_.js +0 -620
  9. package/dist/clojure-CCKyeQKf-N9sg777Z.js +0 -800
  10. package/dist/cmake-CuaCgAKt-BbEgXraO.js +0 -28
  11. package/dist/cobol-BlTKFDRj-CHCoWafp.js +0 -72
  12. package/dist/coffeescript-BVCvwO8I-Z15ai5ac.js +0 -179
  13. package/dist/commonlisp-D_kxz07b-Ce7sn14o.js +0 -75
  14. package/dist/crystal-D309uH6_-DS6LrXoE.js +0 -217
  15. package/dist/css-BkF-NPzE-DiJu9Nkd.js +0 -1553
  16. package/dist/cypher-BMq4Fwjl-Ml-omWgp.js +0 -68
  17. package/dist/d-BZcgY6La-KCW6-bIm.js +0 -127
  18. package/dist/diff-Cg9d_RX2-C01qBVFc.js +0 -18
  19. package/dist/dockerfile-DFX8bq9N-BIbYUQV0.js +0 -194
  20. package/dist/dtd-CtLokQ-U-DCbNdeIA.js +0 -84
  21. package/dist/dylan-QYeExnWK-DIUVpsct.js +0 -234
  22. package/dist/ebnf-DUPDuY4r-7HIXKmWn.js +0 -78
  23. package/dist/ecl-CiXN-g_D-DOI-W0if.js +0 -121
  24. package/dist/eiffel-yQhjl4T1-DIX8Ceq1.js +0 -110
  25. package/dist/elm-CNT9vbN0-BcYlydpO.js +0 -108
  26. package/dist/erlang-CFOYdy9e-DULXsFZl.js +0 -487
  27. package/dist/factor-Clf6BoVk-DBb2EHMF.js +0 -65
  28. package/dist/fcl-CPC2WYrI-CuXG3fcK.js +0 -103
  29. package/dist/forth-BmxRyE9S-BcFwWpeL.js +0 -60
  30. package/dist/fortran-9bvPyrOW-CuLcq-Iu.js +0 -442
  31. package/dist/gas-cpmYfFX2-sZgGhMxB.js +0 -183
  32. package/dist/gherkin-CJuwpceU-BRrr8yjO.js +0 -34
  33. package/dist/groovy-DZeT_VM--CmF8wcSo.js +0 -146
  34. package/dist/haskell-CxiO_7JL-BuULsXvv.js +0 -375
  35. package/dist/haxe-70NVW1pR-CM27SfgM.js +0 -359
  36. package/dist/http-D9LttvKF-j9E8oQ7o.js +0 -44
  37. package/dist/idl-B6TRFYjl-B6TRFYjl.js +0 -947
  38. package/dist/index-BMiCCEB1-CFMNJD60.js +0 -305
  39. package/dist/index-BNuasEBW-DZ41gDvf.js +0 -94
  40. package/dist/index-Bg1KDWyt-C0dA4q7z.js +0 -290
  41. package/dist/index-BuVm7ZG6-CVgdIGdI.js +0 -1305
  42. package/dist/index-BvS1cnHq-CvzF_kJP.js +0 -613
  43. package/dist/index-C44L0DmY-y7wRzM46.js +0 -138
  44. package/dist/index-C71CZfUx-BtWSxfva.js +0 -247
  45. package/dist/index-CGKWrtgc.js +0 -29766
  46. package/dist/index-CQ6JWNwi-DowNkPcb.js +0 -566
  47. package/dist/index-CpRVx97--DylNh-Zi.js +0 -342
  48. package/dist/index-CqvQj6d--nBAN1vpF.js +0 -270
  49. package/dist/index-CrbQBmWq-DmiRVF9u.js +0 -157
  50. package/dist/index-CzovO10m-DDglzqnG.js +0 -301
  51. package/dist/index-D0BZOY-S-rNSlBO9l.js +0 -101
  52. package/dist/index-D0svJS59-f8ZA2hgC.js +0 -555
  53. package/dist/index-D93XVMi1-CZ_Q2QZM.js +0 -136
  54. package/dist/index-DEB5VK0f-iiwOciBu.js +0 -252
  55. package/dist/index-Dp8osI_J-DDFW8XvK.js +0 -960
  56. package/dist/index-Ds4AioqO-Cg_BlAEI.js +0 -1917
  57. package/dist/index-Dy-OpkyQ-DcLuBsQT.js +0 -76
  58. package/dist/index-Dyi9rNIT-B7p7Dpus.js +0 -391
  59. package/dist/index-ZJkjD9tT-DJQk0ayW.js +0 -74
  60. package/dist/index-qH2lMs0G-Co53S8h3.js +0 -944
  61. package/dist/index-srIksFxX-BLrX1cGK.js +0 -59
  62. package/dist/javascript-DOuB9oqA-BxiygWgm.js +0 -691
  63. package/dist/julia-DpvXAuO6-Bk_IfD8X.js +0 -241
  64. package/dist/livescript-CanGTf8u-Cx6PrvS4.js +0 -272
  65. package/dist/lua-XplVlWi_-8f8obHzY.js +0 -217
  66. package/dist/mathematica-jaRHnSxC-B83gQsL2.js +0 -35
  67. package/dist/mbox-BctzC1hL-Hg5U2B4l.js +0 -76
  68. package/dist/mirc-CFBPAOaF-CfzSSk9W.js +0 -72
  69. package/dist/mllike-BSnXJBGA-Ao1NpT2u.js +0 -272
  70. package/dist/modelica-vUgVs--1-BObVpYBg.js +0 -93
  71. package/dist/mscgen-Cpl0NYLN-DqNArLGH.js +0 -104
  72. package/dist/mumps-CQoS1kWX-CkTUOQnt.js +0 -25
  73. package/dist/nginx-zDPm3Z74-DJk4KP7N.js +0 -87
  74. package/dist/nsis-BCLyjY7m-C2MffOQ3.js +0 -62
  75. package/dist/ntriples-CsNjv2QF-C4aZn3EO.js +0 -79
  76. package/dist/octave-C8PmmSRH-DM5vTWlU.js +0 -143
  77. package/dist/oz-Ce8aN8oE-BcJM4SVy.js +0 -151
  78. package/dist/pascal-De0D6mP7-D7DGFFKL.js +0 -77
  79. package/dist/perl-B4bSCe1C-6aIa2glS.js +0 -915
  80. package/dist/pig-D24Z8EXi-BD-qt5FU.js +0 -54
  81. package/dist/powershell-DkYVfTzP-Blt1Rodi.js +0 -249
  82. package/dist/properties-Dn9wna3M-EOOwnCnk.js +0 -26
  83. package/dist/protobuf-BPIjwpzm-DAButU8_.js +0 -49
  84. package/dist/pug-TGXr6c5j-C9HfQ86E.js +0 -248
  85. package/dist/puppet-nyd4dhjf-CGzH5dsa.js +0 -45
  86. package/dist/python-BkR3uSy8-CjDnyp3B.js +0 -313
  87. package/dist/q-DyHZGnqm-DGuqeH_T.js +0 -86
  88. package/dist/r-LKEuhEGI-BFQhJnTP.js +0 -104
  89. package/dist/rpm-IznJm2Xc-CbZqrWCM.js +0 -57
  90. package/dist/ruby-CcYfvIk6-DzPSfSGo.js +0 -228
  91. package/dist/sas-7E8yHoCW-D726Uzkw.js +0 -105
  92. package/dist/scheme-DjibxsNh-Bp5gVFkm.js +0 -124
  93. package/dist/shell-C0C2sNA_-BTeYg6ir.js +0 -182
  94. package/dist/sieve-Bwz7vjP5-Cw8iTBf7.js +0 -72
  95. package/dist/simple-mode-mNVtnu0l-BC8mf7KF.js +0 -89
  96. package/dist/smalltalk-Bhddl2pB-B7URiJSp.js +0 -48
  97. package/dist/solr-BNlsLglM-BM2OpfTI.js +0 -41
  98. package/dist/sparql-FarWu_Gb-FN_uQNd4.js +0 -197
  99. package/dist/spreadsheet-C-cy4P5N-5CSTwVYq.js +0 -49
  100. package/dist/sql-CfG5lQ3l-Bd4dgm_8.js +0 -278
  101. package/dist/stex-Du4h4KAU-QOov_zHj.js +0 -129
  102. package/dist/stylus-CAdqWld3-BcRBbBxD.js +0 -250
  103. package/dist/swift-DSxqR9R6-2Hz4NOoF.js +0 -230
  104. package/dist/tcl-xfoLljhY-DAZBRGQI.js +0 -81
  105. package/dist/textile-D1AWE-pc-DuiIfEnb.js +0 -295
  106. package/dist/tiddlywiki-5wqsXtSk-WuF_8VUv.js +0 -155
  107. package/dist/tiki-__Kn3CeS-CWcR9ib_.js +0 -181
  108. package/dist/toml-DWAmxCjl-CyJoDzs6.js +0 -56
  109. package/dist/troff-D2UO-fKf-DVoIzS-O.js +0 -35
  110. package/dist/ttcn-Bsa4sfRm-hoy08sYQ.js +0 -123
  111. package/dist/ttcn-cfg-Bac_acMi-DaC4kQpd.js +0 -88
  112. package/dist/turtle-xwJUxoPV-fs94wdNM.js +0 -80
  113. package/dist/vb-c2kQGd6--DU726qF0.js +0 -74
  114. package/dist/vbscript-1f_Dhg5H-DriA32xD.js +0 -324
  115. package/dist/velocity-DJd0pTTC-BG368IR6.js +0 -96
  116. package/dist/verilog-CiS1jyi5-giQA8J-e.js +0 -259
  117. package/dist/vhdl-T9HkrbI2-BJ8LEDog.js +0 -106
  118. package/dist/webidl-CjfDENEo-BM8KXKJ5.js +0 -155
  119. package/dist/xquery-Ct6lEb4B-C5KDc61l.js +0 -422
  120. package/dist/yacas-C0absKBh-B82QJ76F.js +0 -73
  121. package/dist/z80-Pki2zAjW-B0IQoIbR.js +0 -61
@@ -1,217 +0,0 @@
1
- function c(e) {
2
- return new RegExp("^(?:" + e.join("|") + ")", "i");
3
- }
4
- function i(e) {
5
- return new RegExp("^(?:" + e.join("|") + ")$", "i");
6
- }
7
- var g = i([
8
- "_G",
9
- "_VERSION",
10
- "assert",
11
- "collectgarbage",
12
- "dofile",
13
- "error",
14
- "getfenv",
15
- "getmetatable",
16
- "ipairs",
17
- "load",
18
- "loadfile",
19
- "loadstring",
20
- "module",
21
- "next",
22
- "pairs",
23
- "pcall",
24
- "print",
25
- "rawequal",
26
- "rawget",
27
- "rawset",
28
- "require",
29
- "select",
30
- "setfenv",
31
- "setmetatable",
32
- "tonumber",
33
- "tostring",
34
- "type",
35
- "unpack",
36
- "xpcall",
37
- "coroutine.create",
38
- "coroutine.resume",
39
- "coroutine.running",
40
- "coroutine.status",
41
- "coroutine.wrap",
42
- "coroutine.yield",
43
- "debug.debug",
44
- "debug.getfenv",
45
- "debug.gethook",
46
- "debug.getinfo",
47
- "debug.getlocal",
48
- "debug.getmetatable",
49
- "debug.getregistry",
50
- "debug.getupvalue",
51
- "debug.setfenv",
52
- "debug.sethook",
53
- "debug.setlocal",
54
- "debug.setmetatable",
55
- "debug.setupvalue",
56
- "debug.traceback",
57
- "close",
58
- "flush",
59
- "lines",
60
- "read",
61
- "seek",
62
- "setvbuf",
63
- "write",
64
- "io.close",
65
- "io.flush",
66
- "io.input",
67
- "io.lines",
68
- "io.open",
69
- "io.output",
70
- "io.popen",
71
- "io.read",
72
- "io.stderr",
73
- "io.stdin",
74
- "io.stdout",
75
- "io.tmpfile",
76
- "io.type",
77
- "io.write",
78
- "math.abs",
79
- "math.acos",
80
- "math.asin",
81
- "math.atan",
82
- "math.atan2",
83
- "math.ceil",
84
- "math.cos",
85
- "math.cosh",
86
- "math.deg",
87
- "math.exp",
88
- "math.floor",
89
- "math.fmod",
90
- "math.frexp",
91
- "math.huge",
92
- "math.ldexp",
93
- "math.log",
94
- "math.log10",
95
- "math.max",
96
- "math.min",
97
- "math.modf",
98
- "math.pi",
99
- "math.pow",
100
- "math.rad",
101
- "math.random",
102
- "math.randomseed",
103
- "math.sin",
104
- "math.sinh",
105
- "math.sqrt",
106
- "math.tan",
107
- "math.tanh",
108
- "os.clock",
109
- "os.date",
110
- "os.difftime",
111
- "os.execute",
112
- "os.exit",
113
- "os.getenv",
114
- "os.remove",
115
- "os.rename",
116
- "os.setlocale",
117
- "os.time",
118
- "os.tmpname",
119
- "package.cpath",
120
- "package.loaded",
121
- "package.loaders",
122
- "package.loadlib",
123
- "package.path",
124
- "package.preload",
125
- "package.seeall",
126
- "string.byte",
127
- "string.char",
128
- "string.dump",
129
- "string.find",
130
- "string.format",
131
- "string.gmatch",
132
- "string.gsub",
133
- "string.len",
134
- "string.lower",
135
- "string.match",
136
- "string.rep",
137
- "string.reverse",
138
- "string.sub",
139
- "string.upper",
140
- "table.concat",
141
- "table.insert",
142
- "table.maxn",
143
- "table.remove",
144
- "table.sort"
145
- ]), m = i([
146
- "and",
147
- "break",
148
- "elseif",
149
- "false",
150
- "nil",
151
- "not",
152
- "or",
153
- "return",
154
- "true",
155
- "function",
156
- "end",
157
- "if",
158
- "then",
159
- "else",
160
- "do",
161
- "while",
162
- "repeat",
163
- "until",
164
- "for",
165
- "in",
166
- "local"
167
- ]), d = i(["function", "if", "repeat", "do", "\\(", "{"]), h = i(["end", "until", "\\)", "}"]), p = c(["end", "until", "\\)", "}", "else", "elseif"]);
168
- function l(e) {
169
- for (var t = 0; e.eat("="); ) ++t;
170
- return e.eat("["), t;
171
- }
172
- function s(e, t) {
173
- var n = e.next();
174
- return n == "-" && e.eat("-") ? e.eat("[") && e.eat("[") ? (t.cur = u(l(e), "comment"))(e, t) : (e.skipToEnd(), "comment") : n == '"' || n == "'" ? (t.cur = f(n))(e, t) : n == "[" && /[\[=]/.test(e.peek()) ? (t.cur = u(l(e), "string"))(e, t) : /\d/.test(n) ? (e.eatWhile(/[\w.%]/), "number") : /[\w_]/.test(n) ? (e.eatWhile(/[\w\\\-_.]/), "variable") : null;
175
- }
176
- function u(e, t) {
177
- return function(n, a) {
178
- for (var r = null, o; (o = n.next()) != null; )
179
- if (r == null)
180
- o == "]" && (r = 0);
181
- else if (o == "=") ++r;
182
- else if (o == "]" && r == e) {
183
- a.cur = s;
184
- break;
185
- } else r = null;
186
- return t;
187
- };
188
- }
189
- function f(e) {
190
- return function(t, n) {
191
- for (var a = !1, r; (r = t.next()) != null && !(r == e && !a); )
192
- a = !a && r == "\\";
193
- return a || (n.cur = s), "string";
194
- };
195
- }
196
- const b = {
197
- name: "lua",
198
- startState: function() {
199
- return { basecol: 0, indentDepth: 0, cur: s };
200
- },
201
- token: function(e, t) {
202
- if (e.eatSpace()) return null;
203
- var n = t.cur(e, t), a = e.current();
204
- return n == "variable" && (m.test(a) ? n = "keyword" : g.test(a) && (n = "builtin")), n != "comment" && n != "string" && (d.test(a) ? ++t.indentDepth : h.test(a) && --t.indentDepth), n;
205
- },
206
- indent: function(e, t, n) {
207
- var a = p.test(t);
208
- return e.basecol + n.unit * (e.indentDepth - (a ? 1 : 0));
209
- },
210
- languageData: {
211
- indentOnInput: /^\s*(?:end|until|else|\)|\})$/,
212
- commentTokens: { line: "--", block: { open: "--[[", close: "]]--" } }
213
- }
214
- };
215
- export {
216
- b as lua
217
- };
@@ -1,35 +0,0 @@
1
- var m = "[a-zA-Z\\$][a-zA-Z0-9\\$]*", z = "(?:\\d+)", o = "(?:\\.\\d+|\\d+\\.\\d*|\\d+)", u = "(?:\\.\\w+|\\w+\\.\\w*|\\w+)", l = "(?:`(?:`?" + o + ")?)", s = new RegExp("(?:" + z + "(?:\\^\\^" + u + l + "?(?:\\*\\^[+-]?\\d+)?))"), A = new RegExp("(?:" + o + l + "?(?:\\*\\^[+-]?\\d+)?)"), Z = new RegExp("(?:`?)(?:" + m + ")(?:`(?:" + m + "))*(?:`?)");
2
- function c(e, a) {
3
- var t;
4
- return t = e.next(), t === '"' ? (a.tokenize = $, a.tokenize(e, a)) : t === "(" && e.eat("*") ? (a.commentLevel++, a.tokenize = f, a.tokenize(e, a)) : (e.backUp(1), e.match(s, !0, !1) || e.match(A, !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(Z, !0, !1) ? "keyword" : e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, !0, !1) ? "operator" : (e.next(), "error"));
5
- }
6
- function $(e, a) {
7
- for (var t, n = !1, r = !1; (t = e.next()) != null; ) {
8
- if (t === '"' && !r) {
9
- n = !0;
10
- break;
11
- }
12
- r = !r && t === "\\";
13
- }
14
- return n && !r && (a.tokenize = c), "string";
15
- }
16
- function f(e, a) {
17
- for (var t, n; a.commentLevel > 0 && (n = e.next()) != null; )
18
- t === "(" && n === "*" && a.commentLevel++, t === "*" && n === ")" && a.commentLevel--, t = n;
19
- return a.commentLevel <= 0 && (a.tokenize = c), "comment";
20
- }
21
- const i = {
22
- name: "mathematica",
23
- startState: function() {
24
- return { tokenize: c, commentLevel: 0 };
25
- },
26
- token: function(e, a) {
27
- return e.eatSpace() ? null : a.tokenize(e, a);
28
- },
29
- languageData: {
30
- commentTokens: { block: { open: "(*", close: "*)" } }
31
- }
32
- };
33
- export {
34
- i as mathematica
35
- };
@@ -1,76 +0,0 @@
1
- var i = [
2
- "From",
3
- "Sender",
4
- "Reply-To",
5
- "To",
6
- "Cc",
7
- "Bcc",
8
- "Message-ID",
9
- "In-Reply-To",
10
- "References",
11
- "Resent-From",
12
- "Resent-Sender",
13
- "Resent-To",
14
- "Resent-Cc",
15
- "Resent-Bcc",
16
- "Resent-Message-ID",
17
- "Return-Path",
18
- "Received"
19
- ], o = [
20
- "Date",
21
- "Subject",
22
- "Comments",
23
- "Keywords",
24
- "Resent-Date"
25
- ], s = /^[ \t]/, d = /^From /, l = new RegExp("^(" + i.join("|") + "): "), u = new RegExp("^(" + o.join("|") + "): "), m = /^[^:]+:/, c = /^[^ ]+@[^ ]+/, f = /^.*?(?=[^ ]+?@[^ ]+)/, h = /^<.*?>/, p = /^.*?(?=<.*>)/;
26
- function R(e) {
27
- return e === "Subject" ? "header" : "string";
28
- }
29
- function H(e, t) {
30
- if (e.sol()) {
31
- if (t.inSeparator = !1, t.inHeader && e.match(s))
32
- return null;
33
- if (t.inHeader = !1, t.header = null, e.match(d))
34
- return t.inHeaders = !0, t.inSeparator = !0, "atom";
35
- var a, r = !1;
36
- return (a = e.match(u)) || (r = !0) && (a = e.match(l)) ? (t.inHeaders = !0, t.inHeader = !0, t.emailPermitted = r, t.header = a[1], "atom") : t.inHeaders && (a = e.match(m)) ? (t.inHeader = !0, t.emailPermitted = !0, t.header = a[1], "atom") : (t.inHeaders = !1, e.skipToEnd(), null);
37
- }
38
- if (t.inSeparator)
39
- return e.match(c) ? "link" : (e.match(f) || e.skipToEnd(), "atom");
40
- if (t.inHeader) {
41
- var n = R(t.header);
42
- if (t.emailPermitted) {
43
- if (e.match(h)) return n + " link";
44
- if (e.match(p)) return n;
45
- }
46
- return e.skipToEnd(), n;
47
- }
48
- return e.skipToEnd(), null;
49
- }
50
- const S = {
51
- name: "mbox",
52
- startState: function() {
53
- return {
54
- // Is in a mbox separator
55
- inSeparator: !1,
56
- // Is in a mail header
57
- inHeader: !1,
58
- // If bracketed email is permitted. Only applicable when inHeader
59
- emailPermitted: !1,
60
- // Name of current header
61
- header: null,
62
- // Is in a region of mail headers
63
- inHeaders: !1
64
- };
65
- },
66
- token: H,
67
- blankLine: function(e) {
68
- e.inHeaders = e.inSeparator = e.inHeader = !1;
69
- },
70
- languageData: {
71
- autocomplete: i.concat(o)
72
- }
73
- };
74
- export {
75
- S as mbox
76
- };
@@ -1,72 +0,0 @@
1
- function t(e) {
2
- for (var $ = {}, r = e.split(" "), i = 0; i < r.length; ++i) $[r[i]] = !0;
3
- return $;
4
- }
5
- var o = t("$! $$ $& $? $+ $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 = t("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 = t("if elseif else and not or eq ne in ni for foreach while switch"), c = /[+\-*&%=<>!?^\/\|]/;
6
- function d(e, $, r) {
7
- return $.tokenize = r, r(e, $);
8
- }
9
- function a(e, $) {
10
- var r = $.beforeParams;
11
- $.beforeParams = !1;
12
- var i = e.next();
13
- if (/[\[\]{}\(\),\.]/.test(i))
14
- return i == "(" && r ? $.inParams = !0 : i == ")" && ($.inParams = !1), null;
15
- if (/\d/.test(i))
16
- return e.eatWhile(/[\w\.]/), "number";
17
- if (i == "\\")
18
- return e.eat("\\"), e.eat(/./), "number";
19
- if (i == "/" && e.eat("*"))
20
- return d(e, $, m);
21
- if (i == ";" && e.match(/ *\( *\(/))
22
- return d(e, $, p);
23
- if (i == ";" && !$.inParams)
24
- return e.skipToEnd(), "comment";
25
- if (i == '"')
26
- return e.eat(/"/), "keyword";
27
- if (i == "$")
28
- return e.eatWhile(/[$_a-z0-9A-Z\.:]/), o && o.propertyIsEnumerable(e.current().toLowerCase()) ? "keyword" : ($.beforeParams = !0, "builtin");
29
- if (i == "%")
30
- return e.eatWhile(/[^,\s()]/), $.beforeParams = !0, "string";
31
- if (c.test(i))
32
- return e.eatWhile(c), "operator";
33
- e.eatWhile(/[\w\$_{}]/);
34
- var n = e.current().toLowerCase();
35
- return s && s.propertyIsEnumerable(n) ? "keyword" : l && l.propertyIsEnumerable(n) ? ($.beforeParams = !0, "keyword") : null;
36
- }
37
- function m(e, $) {
38
- for (var r = !1, i; i = e.next(); ) {
39
- if (i == "/" && r) {
40
- $.tokenize = a;
41
- break;
42
- }
43
- r = i == "*";
44
- }
45
- return "comment";
46
- }
47
- function p(e, $) {
48
- for (var r = 0, i; i = e.next(); ) {
49
- if (i == ";" && r == 2) {
50
- $.tokenize = a;
51
- break;
52
- }
53
- i == ")" ? r++ : i != " " && (r = 0);
54
- }
55
- return "meta";
56
- }
57
- const u = {
58
- name: "mirc",
59
- startState: function() {
60
- return {
61
- tokenize: a,
62
- beforeParams: !1,
63
- inParams: !1
64
- };
65
- },
66
- token: function(e, $) {
67
- return e.eatSpace() ? null : $.tokenize(e, $);
68
- }
69
- };
70
- export {
71
- u as mirc
72
- };
@@ -1,272 +0,0 @@
1
- function k(n) {
2
- var i = {
3
- as: "keyword",
4
- do: "keyword",
5
- else: "keyword",
6
- end: "keyword",
7
- exception: "keyword",
8
- fun: "keyword",
9
- functor: "keyword",
10
- if: "keyword",
11
- in: "keyword",
12
- include: "keyword",
13
- let: "keyword",
14
- of: "keyword",
15
- open: "keyword",
16
- rec: "keyword",
17
- struct: "keyword",
18
- then: "keyword",
19
- type: "keyword",
20
- val: "keyword",
21
- while: "keyword",
22
- with: "keyword"
23
- }, l = n.extraWords || {};
24
- for (var w in l)
25
- l.hasOwnProperty(w) && (i[w] = n.extraWords[w]);
26
- var a = [];
27
- for (var u in i)
28
- a.push(u);
29
- function d(e, r) {
30
- var o = e.next();
31
- if (o === '"')
32
- return r.tokenize = s, r.tokenize(e, r);
33
- if (o === "{" && e.eat("|"))
34
- return r.longString = !0, r.tokenize = f, r.tokenize(e, r);
35
- if (o === "(" && e.match(/^\*(?!\))/))
36
- return r.commentLevel++, r.tokenize = c, r.tokenize(e, r);
37
- if (o === "~" || o === "?")
38
- return e.eatWhile(/\w/), "variableName.special";
39
- if (o === "`")
40
- return e.eatWhile(/\w/), "quote";
41
- if (o === "/" && n.slashComments && e.eat("/"))
42
- return e.skipToEnd(), "comment";
43
- if (/\d/.test(o))
44
- 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";
45
- if (/[+\-*&%=<>!?|@\.~:]/.test(o))
46
- return "operator";
47
- if (/[\w\xa1-\uffff]/.test(o)) {
48
- e.eatWhile(/[\w\xa1-\uffff]/);
49
- var t = e.current();
50
- return i.hasOwnProperty(t) ? i[t] : "variable";
51
- }
52
- return null;
53
- }
54
- function s(e, r) {
55
- for (var o, t = !1, y = !1; (o = e.next()) != null; ) {
56
- if (o === '"' && !y) {
57
- t = !0;
58
- break;
59
- }
60
- y = !y && o === "\\";
61
- }
62
- return t && !y && (r.tokenize = d), "string";
63
- }
64
- function c(e, r) {
65
- for (var o, t; r.commentLevel > 0 && (t = e.next()) != null; )
66
- o === "(" && t === "*" && r.commentLevel++, o === "*" && t === ")" && r.commentLevel--, o = t;
67
- return r.commentLevel <= 0 && (r.tokenize = d), "comment";
68
- }
69
- function f(e, r) {
70
- for (var o, t; r.longString && (t = e.next()) != null; )
71
- o === "|" && t === "}" && (r.longString = !1), o = t;
72
- return r.longString || (r.tokenize = d), "string";
73
- }
74
- return {
75
- startState: function() {
76
- return { tokenize: d, commentLevel: 0, longString: !1 };
77
- },
78
- token: function(e, r) {
79
- return e.eatSpace() ? null : r.tokenize(e, r);
80
- },
81
- languageData: {
82
- autocomplete: a,
83
- commentTokens: {
84
- line: n.slashComments ? "//" : void 0,
85
- block: { open: "(*", close: "*)" }
86
- }
87
- }
88
- };
89
- }
90
- const b = k({
91
- extraWords: {
92
- and: "keyword",
93
- assert: "keyword",
94
- begin: "keyword",
95
- class: "keyword",
96
- constraint: "keyword",
97
- done: "keyword",
98
- downto: "keyword",
99
- external: "keyword",
100
- function: "keyword",
101
- initializer: "keyword",
102
- lazy: "keyword",
103
- match: "keyword",
104
- method: "keyword",
105
- module: "keyword",
106
- mutable: "keyword",
107
- new: "keyword",
108
- nonrec: "keyword",
109
- object: "keyword",
110
- private: "keyword",
111
- sig: "keyword",
112
- to: "keyword",
113
- try: "keyword",
114
- value: "keyword",
115
- virtual: "keyword",
116
- when: "keyword",
117
- // builtins
118
- raise: "builtin",
119
- failwith: "builtin",
120
- true: "builtin",
121
- false: "builtin",
122
- // Pervasives builtins
123
- asr: "builtin",
124
- land: "builtin",
125
- lor: "builtin",
126
- lsl: "builtin",
127
- lsr: "builtin",
128
- lxor: "builtin",
129
- mod: "builtin",
130
- or: "builtin",
131
- // More Pervasives
132
- raise_notrace: "builtin",
133
- trace: "builtin",
134
- exit: "builtin",
135
- print_string: "builtin",
136
- print_endline: "builtin",
137
- int: "type",
138
- float: "type",
139
- bool: "type",
140
- char: "type",
141
- string: "type",
142
- unit: "type",
143
- // Modules
144
- List: "builtin"
145
- }
146
- }), m = k({
147
- extraWords: {
148
- abstract: "keyword",
149
- assert: "keyword",
150
- base: "keyword",
151
- begin: "keyword",
152
- class: "keyword",
153
- default: "keyword",
154
- delegate: "keyword",
155
- "do!": "keyword",
156
- done: "keyword",
157
- downcast: "keyword",
158
- downto: "keyword",
159
- elif: "keyword",
160
- extern: "keyword",
161
- finally: "keyword",
162
- for: "keyword",
163
- function: "keyword",
164
- global: "keyword",
165
- inherit: "keyword",
166
- inline: "keyword",
167
- interface: "keyword",
168
- internal: "keyword",
169
- lazy: "keyword",
170
- "let!": "keyword",
171
- match: "keyword",
172
- member: "keyword",
173
- module: "keyword",
174
- mutable: "keyword",
175
- namespace: "keyword",
176
- new: "keyword",
177
- null: "keyword",
178
- override: "keyword",
179
- private: "keyword",
180
- public: "keyword",
181
- "return!": "keyword",
182
- return: "keyword",
183
- select: "keyword",
184
- static: "keyword",
185
- to: "keyword",
186
- try: "keyword",
187
- upcast: "keyword",
188
- "use!": "keyword",
189
- use: "keyword",
190
- void: "keyword",
191
- when: "keyword",
192
- "yield!": "keyword",
193
- yield: "keyword",
194
- // Reserved words
195
- atomic: "keyword",
196
- break: "keyword",
197
- checked: "keyword",
198
- component: "keyword",
199
- const: "keyword",
200
- constraint: "keyword",
201
- constructor: "keyword",
202
- continue: "keyword",
203
- eager: "keyword",
204
- event: "keyword",
205
- external: "keyword",
206
- fixed: "keyword",
207
- method: "keyword",
208
- mixin: "keyword",
209
- object: "keyword",
210
- parallel: "keyword",
211
- process: "keyword",
212
- protected: "keyword",
213
- pure: "keyword",
214
- sealed: "keyword",
215
- tailcall: "keyword",
216
- trait: "keyword",
217
- virtual: "keyword",
218
- volatile: "keyword",
219
- // builtins
220
- List: "builtin",
221
- Seq: "builtin",
222
- Map: "builtin",
223
- Set: "builtin",
224
- Option: "builtin",
225
- int: "builtin",
226
- string: "builtin",
227
- not: "builtin",
228
- true: "builtin",
229
- false: "builtin",
230
- raise: "builtin",
231
- failwith: "builtin"
232
- },
233
- slashComments: !0
234
- }), p = k({
235
- extraWords: {
236
- abstype: "keyword",
237
- and: "keyword",
238
- andalso: "keyword",
239
- case: "keyword",
240
- datatype: "keyword",
241
- fn: "keyword",
242
- handle: "keyword",
243
- infix: "keyword",
244
- infixr: "keyword",
245
- local: "keyword",
246
- nonfix: "keyword",
247
- op: "keyword",
248
- orelse: "keyword",
249
- raise: "keyword",
250
- withtype: "keyword",
251
- eqtype: "keyword",
252
- sharing: "keyword",
253
- sig: "keyword",
254
- signature: "keyword",
255
- structure: "keyword",
256
- where: "keyword",
257
- true: "keyword",
258
- false: "keyword",
259
- // types
260
- int: "builtin",
261
- real: "builtin",
262
- string: "builtin",
263
- char: "builtin",
264
- bool: "builtin"
265
- },
266
- slashComments: !0
267
- });
268
- export {
269
- m as fSharp,
270
- b as oCaml,
271
- p as sml
272
- };