@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,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
- };