@aiao/code-editor-react 0.0.9 → 0.0.11
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/index.js +118 -2
- package/package.json +5 -5
- package/dist/apl-B2DGVGxc-Dd6D39pP.js +0 -76
- package/dist/asciiarmor-2LVJmxlE-CAn4gnoC.js +0 -34
- package/dist/asn1-jKiBa2Ya-xsKwdyq9.js +0 -95
- package/dist/asterisk-DS281yxp-B5eTWk_B.js +0 -271
- package/dist/brainfuck-C_p9pTT8-DKVQ9poL.js +0 -34
- package/dist/clike-BMALKCNj-Ck7Gc35_.js +0 -620
- package/dist/clojure-CCKyeQKf-N9sg777Z.js +0 -800
- package/dist/cmake-CuaCgAKt-BbEgXraO.js +0 -28
- package/dist/cobol-BlTKFDRj-CHCoWafp.js +0 -72
- package/dist/coffeescript-BVCvwO8I-Z15ai5ac.js +0 -179
- package/dist/commonlisp-D_kxz07b-Ce7sn14o.js +0 -75
- package/dist/crystal-D309uH6_-DS6LrXoE.js +0 -217
- package/dist/css-BkF-NPzE-DiJu9Nkd.js +0 -1553
- package/dist/cypher-BMq4Fwjl-Ml-omWgp.js +0 -68
- package/dist/d-BZcgY6La-KCW6-bIm.js +0 -127
- package/dist/diff-Cg9d_RX2-C01qBVFc.js +0 -18
- package/dist/dockerfile-DFX8bq9N-BIbYUQV0.js +0 -194
- package/dist/dtd-CtLokQ-U-DCbNdeIA.js +0 -84
- package/dist/dylan-QYeExnWK-DIUVpsct.js +0 -234
- package/dist/ebnf-DUPDuY4r-7HIXKmWn.js +0 -78
- package/dist/ecl-CiXN-g_D-DOI-W0if.js +0 -121
- package/dist/eiffel-yQhjl4T1-DIX8Ceq1.js +0 -110
- package/dist/elm-CNT9vbN0-BcYlydpO.js +0 -108
- package/dist/erlang-CFOYdy9e-DULXsFZl.js +0 -487
- package/dist/factor-Clf6BoVk-DBb2EHMF.js +0 -65
- package/dist/fcl-CPC2WYrI-CuXG3fcK.js +0 -103
- package/dist/forth-BmxRyE9S-BcFwWpeL.js +0 -60
- package/dist/fortran-9bvPyrOW-CuLcq-Iu.js +0 -442
- package/dist/gas-cpmYfFX2-sZgGhMxB.js +0 -183
- package/dist/gherkin-CJuwpceU-BRrr8yjO.js +0 -34
- package/dist/groovy-DZeT_VM--CmF8wcSo.js +0 -146
- package/dist/haskell-CxiO_7JL-BuULsXvv.js +0 -375
- package/dist/haxe-70NVW1pR-CM27SfgM.js +0 -359
- package/dist/http-D9LttvKF-j9E8oQ7o.js +0 -44
- package/dist/idl-B6TRFYjl-B6TRFYjl.js +0 -947
- package/dist/index-4oLq9F9B-CiG9J_wS.js +0 -944
- package/dist/index-9NH8hlZ--ZzqmPLCF.js +0 -342
- package/dist/index-BFXNCCbG-LloeVRnr.js +0 -253
- package/dist/index-BLHYcXXK-BxaAXMNw.js +0 -101
- package/dist/index-BQU3Rb2C-DeyQP3x_.js +0 -290
- package/dist/index-Bg18ePld-Di0FNEJ4.js +0 -157
- package/dist/index-Bp5lqnbN-BM2h2Xfi.js +0 -555
- package/dist/index-Bqzq8A1N-Dn1yj5KO.js +0 -59
- package/dist/index-Bx-s4g99-QIFA9lMK.js +0 -76
- package/dist/index-BxX25QmV-Cnf0cb51.js +0 -248
- package/dist/index-CFCzgc33-MPwtm3eY.js +0 -1917
- package/dist/index-CL7JTU9M-Bl8j0-fU.js +0 -136
- package/dist/index-CgClvcTI.js +0 -35617
- package/dist/index-CipmEceX-D1vXXSTd.js +0 -74
- package/dist/index-Cv4vvpa2-B8Ojlo_m.js +0 -1305
- package/dist/index-D4hhdPbZ-DXEZQFco.js +0 -6152
- package/dist/index-DhNQ8g9I-CjBYiskZ.js +0 -270
- package/dist/index-Djp53tAP-DnPgUG4S.js +0 -94
- package/dist/index-KlsAFhIj-Dzil0Vr8.js +0 -566
- package/dist/index-OntZqtu6-DPgaaGGJ.js +0 -305
- package/dist/index-PGnZjMCR-BPDty4q0.js +0 -301
- package/dist/index-TyYoYgss-BIjAZ6j1.js +0 -613
- package/dist/index-oMSPmlXA-CoPtKzNe.js +0 -960
- package/dist/index-rQC6Gbk0-BZ6M0IzM.js +0 -138
- package/dist/javascript-DOuB9oqA-BxiygWgm.js +0 -691
- package/dist/julia-DpvXAuO6-Bk_IfD8X.js +0 -241
- package/dist/livescript-CanGTf8u-Cx6PrvS4.js +0 -272
- package/dist/lua-XplVlWi_-8f8obHzY.js +0 -217
- package/dist/mathematica-jaRHnSxC-B83gQsL2.js +0 -35
- package/dist/mbox-BctzC1hL-Hg5U2B4l.js +0 -76
- package/dist/mirc-CFBPAOaF-CfzSSk9W.js +0 -72
- package/dist/mllike-BSnXJBGA-Ao1NpT2u.js +0 -272
- package/dist/modelica-vUgVs--1-BObVpYBg.js +0 -93
- package/dist/mscgen-Cpl0NYLN-DqNArLGH.js +0 -104
- package/dist/mumps-CQoS1kWX-CkTUOQnt.js +0 -25
- package/dist/nginx-zDPm3Z74-DJk4KP7N.js +0 -87
- package/dist/nsis-BCLyjY7m-C2MffOQ3.js +0 -62
- package/dist/ntriples-CsNjv2QF-C4aZn3EO.js +0 -79
- package/dist/octave-C8PmmSRH-DM5vTWlU.js +0 -143
- package/dist/oz-Ce8aN8oE-BcJM4SVy.js +0 -151
- package/dist/pascal-De0D6mP7-D7DGFFKL.js +0 -77
- package/dist/perl-B4bSCe1C-6aIa2glS.js +0 -915
- package/dist/pig-D24Z8EXi-BD-qt5FU.js +0 -54
- package/dist/powershell-DkYVfTzP-Blt1Rodi.js +0 -249
- package/dist/properties-Dn9wna3M-EOOwnCnk.js +0 -26
- package/dist/protobuf-BPIjwpzm-DAButU8_.js +0 -49
- package/dist/pug-TGXr6c5j-C9HfQ86E.js +0 -248
- package/dist/puppet-nyd4dhjf-CGzH5dsa.js +0 -45
- package/dist/python-BkR3uSy8-CjDnyp3B.js +0 -313
- package/dist/q-DyHZGnqm-DGuqeH_T.js +0 -86
- package/dist/r-LKEuhEGI-BFQhJnTP.js +0 -104
- package/dist/rpm-IznJm2Xc-CbZqrWCM.js +0 -57
- package/dist/ruby-CcYfvIk6-DzPSfSGo.js +0 -228
- package/dist/sas-7E8yHoCW-D726Uzkw.js +0 -105
- package/dist/scheme-DjibxsNh-Bp5gVFkm.js +0 -124
- package/dist/shell-C0C2sNA_-BTeYg6ir.js +0 -182
- package/dist/sieve-Bwz7vjP5-Cw8iTBf7.js +0 -72
- package/dist/simple-mode-mNVtnu0l-BC8mf7KF.js +0 -89
- package/dist/smalltalk-Bhddl2pB-B7URiJSp.js +0 -48
- package/dist/solr-BNlsLglM-BM2OpfTI.js +0 -41
- package/dist/sparql-FarWu_Gb-FN_uQNd4.js +0 -197
- package/dist/spreadsheet-C-cy4P5N-5CSTwVYq.js +0 -49
- package/dist/sql-CfG5lQ3l-Bd4dgm_8.js +0 -278
- package/dist/stex-Du4h4KAU-QOov_zHj.js +0 -129
- package/dist/stylus-CAdqWld3-BcRBbBxD.js +0 -250
- package/dist/swift-DSxqR9R6-2Hz4NOoF.js +0 -230
- package/dist/tcl-xfoLljhY-DAZBRGQI.js +0 -81
- package/dist/textile-D1AWE-pc-DuiIfEnb.js +0 -295
- package/dist/tiddlywiki-5wqsXtSk-WuF_8VUv.js +0 -155
- package/dist/tiki-__Kn3CeS-CWcR9ib_.js +0 -181
- package/dist/toml-DWAmxCjl-CyJoDzs6.js +0 -56
- package/dist/troff-D2UO-fKf-DVoIzS-O.js +0 -35
- package/dist/ttcn-Bsa4sfRm-hoy08sYQ.js +0 -123
- package/dist/ttcn-cfg-Bac_acMi-DaC4kQpd.js +0 -88
- package/dist/turtle-xwJUxoPV-fs94wdNM.js +0 -80
- package/dist/vb-c2kQGd6--DU726qF0.js +0 -74
- package/dist/vbscript-1f_Dhg5H-DriA32xD.js +0 -324
- package/dist/velocity-DJd0pTTC-BG368IR6.js +0 -96
- package/dist/verilog-CiS1jyi5-giQA8J-e.js +0 -259
- package/dist/vhdl-T9HkrbI2-BJ8LEDog.js +0 -106
- package/dist/webidl-CjfDENEo-BM8KXKJ5.js +0 -155
- package/dist/xquery-Ct6lEb4B-C5KDc61l.js +0 -422
- package/dist/yacas-C0absKBh-B82QJ76F.js +0 -73
- package/dist/z80-Pki2zAjW-B0IQoIbR.js +0 -61
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
function o(e) {
|
|
2
|
-
return new RegExp("^((" + e.join(")|(") + "))\\b");
|
|
3
|
-
}
|
|
4
|
-
var h = /[\^@!\|<>#~\.\*\-\+\\/,=]/, m = /(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/, k = /(:::)|(\.\.\.)|(=<:)|(>=:)/, s = [
|
|
5
|
-
"in",
|
|
6
|
-
"then",
|
|
7
|
-
"else",
|
|
8
|
-
"of",
|
|
9
|
-
"elseof",
|
|
10
|
-
"elsecase",
|
|
11
|
-
"elseif",
|
|
12
|
-
"catch",
|
|
13
|
-
"finally",
|
|
14
|
-
"with",
|
|
15
|
-
"require",
|
|
16
|
-
"prepare",
|
|
17
|
-
"import",
|
|
18
|
-
"export",
|
|
19
|
-
"define",
|
|
20
|
-
"do"
|
|
21
|
-
], f = ["end"], p = o(["true", "false", "nil", "unit"]), z = o([
|
|
22
|
-
"andthen",
|
|
23
|
-
"at",
|
|
24
|
-
"attr",
|
|
25
|
-
"declare",
|
|
26
|
-
"feat",
|
|
27
|
-
"from",
|
|
28
|
-
"lex",
|
|
29
|
-
"mod",
|
|
30
|
-
"div",
|
|
31
|
-
"mode",
|
|
32
|
-
"orelse",
|
|
33
|
-
"parser",
|
|
34
|
-
"prod",
|
|
35
|
-
"prop",
|
|
36
|
-
"scanner",
|
|
37
|
-
"self",
|
|
38
|
-
"syn",
|
|
39
|
-
"token"
|
|
40
|
-
]), g = o([
|
|
41
|
-
"local",
|
|
42
|
-
"proc",
|
|
43
|
-
"fun",
|
|
44
|
-
"case",
|
|
45
|
-
"class",
|
|
46
|
-
"if",
|
|
47
|
-
"cond",
|
|
48
|
-
"or",
|
|
49
|
-
"dis",
|
|
50
|
-
"choice",
|
|
51
|
-
"not",
|
|
52
|
-
"thread",
|
|
53
|
-
"try",
|
|
54
|
-
"raise",
|
|
55
|
-
"lock",
|
|
56
|
-
"for",
|
|
57
|
-
"suchthat",
|
|
58
|
-
"meth",
|
|
59
|
-
"functor"
|
|
60
|
-
]), l = o(s), d = o(f);
|
|
61
|
-
function a(e, t) {
|
|
62
|
-
if (e.eatSpace())
|
|
63
|
-
return null;
|
|
64
|
-
if (e.match(/[{}]/))
|
|
65
|
-
return "bracket";
|
|
66
|
-
if (e.match("[]"))
|
|
67
|
-
return "keyword";
|
|
68
|
-
if (e.match(k) || e.match(m))
|
|
69
|
-
return "operator";
|
|
70
|
-
if (e.match(p))
|
|
71
|
-
return "atom";
|
|
72
|
-
var r = e.match(g);
|
|
73
|
-
if (r)
|
|
74
|
-
return t.doInCurrentLine ? t.doInCurrentLine = !1 : t.currentIndent++, r[0] == "proc" || r[0] == "fun" ? t.tokenize = b : r[0] == "class" ? t.tokenize = x : r[0] == "meth" && (t.tokenize = I), "keyword";
|
|
75
|
-
if (e.match(l) || e.match(z))
|
|
76
|
-
return "keyword";
|
|
77
|
-
if (e.match(d))
|
|
78
|
-
return t.currentIndent--, "keyword";
|
|
79
|
-
var n = e.next();
|
|
80
|
-
if (n == '"' || n == "'")
|
|
81
|
-
return t.tokenize = v(n), t.tokenize(e, t);
|
|
82
|
-
if (/[~\d]/.test(n)) {
|
|
83
|
-
if (n == "~")
|
|
84
|
-
if (/^[0-9]/.test(e.peek())) {
|
|
85
|
-
if (e.next() == "0" && e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))
|
|
86
|
-
return "number";
|
|
87
|
-
} else return null;
|
|
88
|
-
return n == "0" && e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/) ? "number" : null;
|
|
89
|
-
}
|
|
90
|
-
return n == "%" ? (e.skipToEnd(), "comment") : n == "/" && e.eat("*") ? (t.tokenize = u, u(e, t)) : h.test(n) ? "operator" : (e.eatWhile(/\w/), "variable");
|
|
91
|
-
}
|
|
92
|
-
function x(e, t) {
|
|
93
|
-
return e.eatSpace() ? null : (e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/), t.tokenize = a, "type");
|
|
94
|
-
}
|
|
95
|
-
function I(e, t) {
|
|
96
|
-
return e.eatSpace() ? null : (e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/), t.tokenize = a, "def");
|
|
97
|
-
}
|
|
98
|
-
function b(e, t) {
|
|
99
|
-
return e.eatSpace() ? null : !t.hasPassedFirstStage && e.eat("{") ? (t.hasPassedFirstStage = !0, "bracket") : t.hasPassedFirstStage ? (e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/), t.hasPassedFirstStage = !1, t.tokenize = a, "def") : (t.tokenize = a, null);
|
|
100
|
-
}
|
|
101
|
-
function u(e, t) {
|
|
102
|
-
for (var r = !1, n; n = e.next(); ) {
|
|
103
|
-
if (n == "/" && r) {
|
|
104
|
-
t.tokenize = a;
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
r = n == "*";
|
|
108
|
-
}
|
|
109
|
-
return "comment";
|
|
110
|
-
}
|
|
111
|
-
function v(e) {
|
|
112
|
-
return function(t, r) {
|
|
113
|
-
for (var n = !1, i, c = !1; (i = t.next()) != null; ) {
|
|
114
|
-
if (i == e && !n) {
|
|
115
|
-
c = !0;
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
n = !n && i == "\\";
|
|
119
|
-
}
|
|
120
|
-
return (c || !n) && (r.tokenize = a), "string";
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
function S() {
|
|
124
|
-
var e = s.concat(f);
|
|
125
|
-
return new RegExp("[\\[\\]]|(" + e.join("|") + ")$");
|
|
126
|
-
}
|
|
127
|
-
const w = {
|
|
128
|
-
name: "oz",
|
|
129
|
-
startState: function() {
|
|
130
|
-
return {
|
|
131
|
-
tokenize: a,
|
|
132
|
-
currentIndent: 0,
|
|
133
|
-
doInCurrentLine: !1,
|
|
134
|
-
hasPassedFirstStage: !1
|
|
135
|
-
};
|
|
136
|
-
},
|
|
137
|
-
token: function(e, t) {
|
|
138
|
-
return e.sol() && (t.doInCurrentLine = 0), t.tokenize(e, t);
|
|
139
|
-
},
|
|
140
|
-
indent: function(e, t, r) {
|
|
141
|
-
var n = t.replace(/^\s+|\s+$/g, "");
|
|
142
|
-
return n.match(d) || n.match(l) || n.match(/(\[])/) ? r.unit * (e.currentIndent - 1) : e.currentIndent < 0 ? 0 : e.currentIndent * r.unit;
|
|
143
|
-
},
|
|
144
|
-
languageData: {
|
|
145
|
-
indentOnInut: S(),
|
|
146
|
-
commentTokens: { line: "%", block: { open: "/*", close: "*/" } }
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
export {
|
|
150
|
-
w as oz
|
|
151
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
function u(e) {
|
|
2
|
-
for (var r = {}, t = e.split(" "), n = 0; n < t.length; ++n) r[t[n]] = !0;
|
|
3
|
-
return r;
|
|
4
|
-
}
|
|
5
|
-
var c = u(
|
|
6
|
-
"absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"
|
|
7
|
-
), f = { null: !0 }, o = /[+\-*&%=<>!?|\/]/;
|
|
8
|
-
function p(e, r) {
|
|
9
|
-
var t = e.next();
|
|
10
|
-
if (t == "#" && r.startOfLine)
|
|
11
|
-
return e.skipToEnd(), "meta";
|
|
12
|
-
if (t == '"' || t == "'")
|
|
13
|
-
return r.tokenize = d(t), r.tokenize(e, r);
|
|
14
|
-
if (t == "(" && e.eat("*"))
|
|
15
|
-
return r.tokenize = l, l(e, r);
|
|
16
|
-
if (t == "{")
|
|
17
|
-
return r.tokenize = s, s(e, r);
|
|
18
|
-
if (/[\[\]\(\),;\:\.]/.test(t))
|
|
19
|
-
return null;
|
|
20
|
-
if (/\d/.test(t))
|
|
21
|
-
return e.eatWhile(/[\w\.]/), "number";
|
|
22
|
-
if (t == "/" && e.eat("/"))
|
|
23
|
-
return e.skipToEnd(), "comment";
|
|
24
|
-
if (o.test(t))
|
|
25
|
-
return e.eatWhile(o), "operator";
|
|
26
|
-
e.eatWhile(/[\w\$_]/);
|
|
27
|
-
var n = e.current().toLowerCase();
|
|
28
|
-
return c.propertyIsEnumerable(n) ? "keyword" : f.propertyIsEnumerable(n) ? "atom" : "variable";
|
|
29
|
-
}
|
|
30
|
-
function d(e) {
|
|
31
|
-
return function(r, t) {
|
|
32
|
-
for (var n = !1, a, i = !1; (a = r.next()) != null; ) {
|
|
33
|
-
if (a == e && !n) {
|
|
34
|
-
i = !0;
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
n = !n && a == "\\";
|
|
38
|
-
}
|
|
39
|
-
return (i || !n) && (t.tokenize = null), "string";
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function l(e, r) {
|
|
43
|
-
for (var t = !1, n; n = e.next(); ) {
|
|
44
|
-
if (n == ")" && t) {
|
|
45
|
-
r.tokenize = null;
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
t = n == "*";
|
|
49
|
-
}
|
|
50
|
-
return "comment";
|
|
51
|
-
}
|
|
52
|
-
function s(e, r) {
|
|
53
|
-
for (var t; t = e.next(); )
|
|
54
|
-
if (t == "}") {
|
|
55
|
-
r.tokenize = null;
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
return "comment";
|
|
59
|
-
}
|
|
60
|
-
const m = {
|
|
61
|
-
name: "pascal",
|
|
62
|
-
startState: function() {
|
|
63
|
-
return { tokenize: null };
|
|
64
|
-
},
|
|
65
|
-
token: function(e, r) {
|
|
66
|
-
if (e.eatSpace()) return null;
|
|
67
|
-
var t = (r.tokenize || p)(e, r);
|
|
68
|
-
return t;
|
|
69
|
-
},
|
|
70
|
-
languageData: {
|
|
71
|
-
indentOnInput: /^\s*[{}]$/,
|
|
72
|
-
commentTokens: { block: { open: "(*", close: "*)" } }
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
export {
|
|
76
|
-
m as pascal
|
|
77
|
-
};
|