@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.
Files changed (121) hide show
  1. package/dist/index.js +118 -2
  2. package/package.json +5 -5
  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-4oLq9F9B-CiG9J_wS.js +0 -944
  39. package/dist/index-9NH8hlZ--ZzqmPLCF.js +0 -342
  40. package/dist/index-BFXNCCbG-LloeVRnr.js +0 -253
  41. package/dist/index-BLHYcXXK-BxaAXMNw.js +0 -101
  42. package/dist/index-BQU3Rb2C-DeyQP3x_.js +0 -290
  43. package/dist/index-Bg18ePld-Di0FNEJ4.js +0 -157
  44. package/dist/index-Bp5lqnbN-BM2h2Xfi.js +0 -555
  45. package/dist/index-Bqzq8A1N-Dn1yj5KO.js +0 -59
  46. package/dist/index-Bx-s4g99-QIFA9lMK.js +0 -76
  47. package/dist/index-BxX25QmV-Cnf0cb51.js +0 -248
  48. package/dist/index-CFCzgc33-MPwtm3eY.js +0 -1917
  49. package/dist/index-CL7JTU9M-Bl8j0-fU.js +0 -136
  50. package/dist/index-CgClvcTI.js +0 -35617
  51. package/dist/index-CipmEceX-D1vXXSTd.js +0 -74
  52. package/dist/index-Cv4vvpa2-B8Ojlo_m.js +0 -1305
  53. package/dist/index-D4hhdPbZ-DXEZQFco.js +0 -6152
  54. package/dist/index-DhNQ8g9I-CjBYiskZ.js +0 -270
  55. package/dist/index-Djp53tAP-DnPgUG4S.js +0 -94
  56. package/dist/index-KlsAFhIj-Dzil0Vr8.js +0 -566
  57. package/dist/index-OntZqtu6-DPgaaGGJ.js +0 -305
  58. package/dist/index-PGnZjMCR-BPDty4q0.js +0 -301
  59. package/dist/index-TyYoYgss-BIjAZ6j1.js +0 -613
  60. package/dist/index-oMSPmlXA-CoPtKzNe.js +0 -960
  61. package/dist/index-rQC6Gbk0-BZ6M0IzM.js +0 -138
  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,234 +0,0 @@
1
- function p(e, n) {
2
- for (var t = 0; t < e.length; t++) n(e[t], t);
3
- }
4
- function k(e, n) {
5
- for (var t = 0; t < e.length; t++) if (n(e[t], t)) return !0;
6
- return !1;
7
- }
8
- var i = {
9
- // Words that introduce unnamed definitions like "define interface"
10
- unnamedDefinition: ["interface"],
11
- // Words that introduce simple named definitions like "define library"
12
- namedDefinition: [
13
- "module",
14
- "library",
15
- "macro",
16
- "C-struct",
17
- "C-union",
18
- "C-function",
19
- "C-callable-wrapper"
20
- ],
21
- // Words that introduce type definitions like "define class".
22
- // These are also parameterized like "define method" and are
23
- // appended to otherParameterizedDefinitionWords
24
- typeParameterizedDefinition: ["class", "C-subtype", "C-mapped-subtype"],
25
- // Words that introduce trickier definitions like "define method".
26
- // These require special definitions to be added to startExpressions
27
- otherParameterizedDefinition: [
28
- "method",
29
- "function",
30
- "C-variable",
31
- "C-address"
32
- ],
33
- // Words that introduce module constant definitions.
34
- // These must also be simple definitions and are
35
- // appended to otherSimpleDefinitionWords
36
- constantSimpleDefinition: ["constant"],
37
- // Words that introduce module variable definitions.
38
- // These must also be simple definitions and are
39
- // appended to otherSimpleDefinitionWords
40
- variableSimpleDefinition: ["variable"],
41
- // Other words that introduce simple definitions
42
- // (without implicit bodies).
43
- otherSimpleDefinition: [
44
- "generic",
45
- "domain",
46
- "C-pointer-type",
47
- "table"
48
- ],
49
- // Words that begin statements with implicit bodies.
50
- statement: [
51
- "if",
52
- "block",
53
- "begin",
54
- "method",
55
- "case",
56
- "for",
57
- "select",
58
- "when",
59
- "unless",
60
- "until",
61
- "while",
62
- "iterate",
63
- "profiling",
64
- "dynamic-bind"
65
- ],
66
- // Patterns that act as separators in compound statements.
67
- // This may include any general pattern that must be indented
68
- // specially.
69
- separator: [
70
- "finally",
71
- "exception",
72
- "cleanup",
73
- "else",
74
- "elseif",
75
- "afterwards"
76
- ],
77
- // Keywords that do not require special indentation handling,
78
- // but which should be highlighted
79
- other: [
80
- "above",
81
- "below",
82
- "by",
83
- "from",
84
- "handler",
85
- "in",
86
- "instance",
87
- "let",
88
- "local",
89
- "otherwise",
90
- "slot",
91
- "subclass",
92
- "then",
93
- "to",
94
- "keyed-by",
95
- "virtual"
96
- ],
97
- // Condition signaling function calls
98
- signalingCalls: [
99
- "signal",
100
- "error",
101
- "cerror",
102
- "break",
103
- "check-type",
104
- "abort"
105
- ]
106
- };
107
- i.otherDefinition = i.unnamedDefinition.concat(i.namedDefinition).concat(i.otherParameterizedDefinition);
108
- i.definition = i.typeParameterizedDefinition.concat(i.otherDefinition);
109
- i.parameterizedDefinition = i.typeParameterizedDefinition.concat(i.otherParameterizedDefinition);
110
- i.simpleDefinition = i.constantSimpleDefinition.concat(i.variableSimpleDefinition).concat(i.otherSimpleDefinition);
111
- i.keyword = i.statement.concat(i.separator).concat(i.other);
112
- var f = "[-_a-zA-Z?!*@<>$%]+", x = new RegExp("^" + f), l = {
113
- // Symbols with special syntax
114
- symbolKeyword: f + ":",
115
- symbolClass: "<" + f + ">",
116
- symbolGlobal: "\\*" + f + "\\*",
117
- symbolConstant: "\\$" + f
118
- }, v = {
119
- symbolKeyword: "atom",
120
- symbolClass: "tag",
121
- symbolGlobal: "variableName.standard",
122
- symbolConstant: "variableName.constant"
123
- };
124
- for (var c in l)
125
- l.hasOwnProperty(c) && (l[c] = new RegExp("^" + l[c]));
126
- l.keyword = [/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];
127
- var s = {};
128
- s.keyword = "keyword";
129
- s.definition = "def";
130
- s.simpleDefinition = "def";
131
- s.signalingCalls = "builtin";
132
- var h = {}, y = {};
133
- p([
134
- "keyword",
135
- "definition",
136
- "simpleDefinition",
137
- "signalingCalls"
138
- ], function(e) {
139
- p(i[e], function(n) {
140
- h[n] = e, y[n] = s[e];
141
- });
142
- });
143
- function u(e, n, t) {
144
- return n.tokenize = t, t(e, n);
145
- }
146
- function m(e, n) {
147
- var t = e.peek();
148
- if (t == "'" || t == '"')
149
- return e.next(), u(e, n, b(t, "string"));
150
- if (t == "/") {
151
- if (e.next(), e.eat("*"))
152
- return u(e, n, D);
153
- if (e.eat("/"))
154
- return e.skipToEnd(), "comment";
155
- e.backUp(1);
156
- } else if (/[+\-\d\.]/.test(t)) {
157
- if (e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i) || e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i) || e.match(/^[+-]?\d+/))
158
- return "number";
159
- } else {
160
- if (t == "#")
161
- return e.next(), t = e.peek(), t == '"' ? (e.next(), u(e, n, b('"', "string"))) : t == "b" ? (e.next(), e.eatWhile(/[01]/), "number") : t == "x" ? (e.next(), e.eatWhile(/[\da-f]/i), "number") : t == "o" ? (e.next(), e.eatWhile(/[0-7]/), "number") : t == "#" ? (e.next(), "punctuation") : t == "[" || t == "(" ? (e.next(), "bracket") : e.match(/f|t|all-keys|include|key|next|rest/i) ? "atom" : (e.eatWhile(/[-a-zA-Z]/), "error");
162
- if (t == "~")
163
- return e.next(), t = e.peek(), t == "=" && (e.next(), t = e.peek(), t == "=" && e.next()), "operator";
164
- if (t == ":") {
165
- if (e.next(), t = e.peek(), t == "=")
166
- return e.next(), "operator";
167
- if (t == ":")
168
- return e.next(), "punctuation";
169
- } else {
170
- if ("[](){}".indexOf(t) != -1)
171
- return e.next(), "bracket";
172
- if (".,".indexOf(t) != -1)
173
- return e.next(), "punctuation";
174
- if (e.match("end"))
175
- return "keyword";
176
- }
177
- }
178
- for (var o in l)
179
- if (l.hasOwnProperty(o)) {
180
- var r = l[o];
181
- if (r instanceof Array && k(r, function(a) {
182
- return e.match(a);
183
- }) || e.match(r))
184
- return v[o];
185
- }
186
- return /[+\-*\/^=<>&|]/.test(t) ? (e.next(), "operator") : e.match("define") ? "def" : (e.eatWhile(/[\w\-]/), h.hasOwnProperty(e.current()) ? y[e.current()] : e.current().match(x) ? "variable" : (e.next(), "variableName.standard"));
187
- }
188
- function D(e, n) {
189
- for (var t = !1, o = !1, r = 0, a; a = e.next(); ) {
190
- if (a == "/" && t)
191
- if (r > 0)
192
- r--;
193
- else {
194
- n.tokenize = m;
195
- break;
196
- }
197
- else a == "*" && o && r++;
198
- t = a == "*", o = a == "/";
199
- }
200
- return "comment";
201
- }
202
- function b(e, n) {
203
- return function(t, o) {
204
- for (var r = !1, a, d = !1; (a = t.next()) != null; ) {
205
- if (a == e && !r) {
206
- d = !0;
207
- break;
208
- }
209
- r = !r && a == "\\";
210
- }
211
- return (d || !r) && (o.tokenize = m), n;
212
- };
213
- }
214
- const w = {
215
- name: "dylan",
216
- startState: function() {
217
- return {
218
- tokenize: m,
219
- currentIndent: 0
220
- };
221
- },
222
- token: function(e, n) {
223
- if (e.eatSpace())
224
- return null;
225
- var t = n.tokenize(e, n);
226
- return t;
227
- },
228
- languageData: {
229
- commentTokens: { block: { open: "/*", close: "*/" } }
230
- }
231
- };
232
- export {
233
- w as dylan
234
- };
@@ -1,78 +0,0 @@
1
- var r = { slash: 0, parenthesis: 1 }, e = { comment: 0, _string: 1, characterClass: 2 };
2
- const s = {
3
- name: "ebnf",
4
- startState: function() {
5
- return {
6
- stringType: null,
7
- commentType: null,
8
- braced: 0,
9
- lhs: !0,
10
- localState: null,
11
- stack: [],
12
- inDefinition: !1
13
- };
14
- },
15
- token: function(t, a) {
16
- if (t) {
17
- switch (a.stack.length === 0 && (t.peek() == '"' || t.peek() == "'" ? (a.stringType = t.peek(), t.next(), a.stack.unshift(e._string)) : t.match("/*") ? (a.stack.unshift(e.comment), a.commentType = r.slash) : t.match("(*") && (a.stack.unshift(e.comment), a.commentType = r.parenthesis)), a.stack[0]) {
18
- case e._string:
19
- for (; a.stack[0] === e._string && !t.eol(); )
20
- t.peek() === a.stringType ? (t.next(), a.stack.shift()) : t.peek() === "\\" ? (t.next(), t.next()) : t.match(/^.[^\\\"\']*/);
21
- return a.lhs ? "property" : "string";
22
- // Token style
23
- case e.comment:
24
- for (; a.stack[0] === e.comment && !t.eol(); )
25
- a.commentType === r.slash && t.match("*/") || a.commentType === r.parenthesis && t.match("*)") ? (a.stack.shift(), a.commentType = null) : t.match(/^.[^\*]*/);
26
- return "comment";
27
- case e.characterClass:
28
- for (; a.stack[0] === e.characterClass && !t.eol(); )
29
- t.match(/^[^\]\\]+/) || t.match(".") || a.stack.shift();
30
- return "operator";
31
- }
32
- var n = t.peek();
33
- switch (n) {
34
- case "[":
35
- return t.next(), a.stack.unshift(e.characterClass), "bracket";
36
- case ":":
37
- case "|":
38
- case ";":
39
- return t.next(), "operator";
40
- case "%":
41
- if (t.match("%%"))
42
- return "header";
43
- if (t.match(/[%][A-Za-z]+/))
44
- return "keyword";
45
- if (t.match(/[%][}]/))
46
- return "bracket";
47
- break;
48
- case "/":
49
- if (t.match(/[\/][A-Za-z]+/))
50
- return "keyword";
51
- case "\\":
52
- if (t.match(/[\][a-z]+/))
53
- return "string.special";
54
- case ".":
55
- if (t.match("."))
56
- return "atom";
57
- case "*":
58
- case "-":
59
- case "+":
60
- case "^":
61
- if (t.match(n))
62
- return "atom";
63
- case "$":
64
- if (t.match("$$"))
65
- return "builtin";
66
- if (t.match(/[$][0-9]+/))
67
- return "variableName.special";
68
- case "<":
69
- if (t.match(/<<[a-zA-Z_]+>>/))
70
- return "builtin";
71
- }
72
- return t.match("//") ? (t.skipToEnd(), "comment") : t.match("return") ? "operator" : t.match(/^[a-zA-Z_][a-zA-Z0-9_]*/) ? t.match(/(?=[\(.])/) ? "variable" : t.match(/(?=[\s\n]*[:=])/) ? "def" : "variableName.special" : ["[", "]", "(", ")"].indexOf(t.peek()) != -1 ? (t.next(), "bracket") : (t.eatSpace() || t.next(), null);
73
- }
74
- }
75
- };
76
- export {
77
- s as ebnf
78
- };
@@ -1,121 +0,0 @@
1
- function l(e) {
2
- for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
3
- return t;
4
- }
5
- function b(e, t) {
6
- return t.startOfLine ? (e.skipToEnd(), "meta") : !1;
7
- }
8
- var v = l("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"), x = l("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"), k = l("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"), f = l("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"), w = l("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"), s = l("catch class do else finally for if switch try while"), E = l("true false null"), m = { "#": b }, h = /[+\-*&%=<>!?|\/]/, o;
9
- function p(e, t) {
10
- var n = e.next();
11
- if (m[n]) {
12
- var r = m[n](e, t);
13
- if (r !== !1) return r;
14
- }
15
- if (n == '"' || n == "'")
16
- return t.tokenize = I(n), t.tokenize(e, t);
17
- if (/[\[\]{}\(\),;\:\.]/.test(n))
18
- return o = n, null;
19
- if (/\d/.test(n))
20
- return e.eatWhile(/[\w\.]/), "number";
21
- if (n == "/") {
22
- if (e.eat("*"))
23
- return t.tokenize = y, y(e, t);
24
- if (e.eat("/"))
25
- return e.skipToEnd(), "comment";
26
- }
27
- if (h.test(n))
28
- return e.eatWhile(h), "operator";
29
- e.eatWhile(/[\w\$_]/);
30
- var a = e.current().toLowerCase();
31
- if (v.propertyIsEnumerable(a))
32
- return s.propertyIsEnumerable(a) && (o = "newstatement"), "keyword";
33
- if (x.propertyIsEnumerable(a))
34
- return s.propertyIsEnumerable(a) && (o = "newstatement"), "variable";
35
- if (k.propertyIsEnumerable(a))
36
- return s.propertyIsEnumerable(a) && (o = "newstatement"), "modifier";
37
- if (f.propertyIsEnumerable(a))
38
- return s.propertyIsEnumerable(a) && (o = "newstatement"), "type";
39
- if (w.propertyIsEnumerable(a))
40
- return s.propertyIsEnumerable(a) && (o = "newstatement"), "builtin";
41
- for (var i = a.length - 1; i >= 0 && (!isNaN(a[i]) || a[i] == "_"); )
42
- --i;
43
- if (i > 0) {
44
- var d = a.substr(0, i + 1);
45
- if (f.propertyIsEnumerable(d))
46
- return s.propertyIsEnumerable(d) && (o = "newstatement"), "type";
47
- }
48
- return E.propertyIsEnumerable(a) ? "atom" : null;
49
- }
50
- function I(e) {
51
- return function(t, n) {
52
- for (var r = !1, a, i = !1; (a = t.next()) != null; ) {
53
- if (a == e && !r) {
54
- i = !0;
55
- break;
56
- }
57
- r = !r && a == "\\";
58
- }
59
- return (i || !r) && (n.tokenize = p), "string";
60
- };
61
- }
62
- function y(e, t) {
63
- for (var n = !1, r; r = e.next(); ) {
64
- if (r == "/" && n) {
65
- t.tokenize = p;
66
- break;
67
- }
68
- n = r == "*";
69
- }
70
- return "comment";
71
- }
72
- function g(e, t, n, r, a) {
73
- this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = a;
74
- }
75
- function c(e, t, n) {
76
- return e.context = new g(e.indented, t, n, null, e.context);
77
- }
78
- function u(e) {
79
- var t = e.context.type;
80
- return (t == ")" || t == "]" || t == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
81
- }
82
- const z = {
83
- name: "ecl",
84
- startState: function(e) {
85
- return {
86
- tokenize: null,
87
- context: new g(-e, 0, "top", !1),
88
- indented: 0,
89
- startOfLine: !0
90
- };
91
- },
92
- token: function(e, t) {
93
- var n = t.context;
94
- if (e.sol() && (n.align == null && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null;
95
- o = null;
96
- var r = (t.tokenize || p)(e, t);
97
- if (r == "comment" || r == "meta") return r;
98
- if (n.align == null && (n.align = !0), (o == ";" || o == ":") && n.type == "statement") u(t);
99
- else if (o == "{") c(t, e.column(), "}");
100
- else if (o == "[") c(t, e.column(), "]");
101
- else if (o == "(") c(t, e.column(), ")");
102
- else if (o == "}") {
103
- for (; n.type == "statement"; ) n = u(t);
104
- for (n.type == "}" && (n = u(t)); n.type == "statement"; ) n = u(t);
105
- } else o == n.type ? u(t) : (n.type == "}" || n.type == "top" || n.type == "statement" && o == "newstatement") && c(t, e.column(), "statement");
106
- return t.startOfLine = !1, r;
107
- },
108
- indent: function(e, t, n) {
109
- if (e.tokenize != p && e.tokenize != null) return 0;
110
- var r = e.context, a = t && t.charAt(0);
111
- r.type == "statement" && a == "}" && (r = r.prev);
112
- var i = a == r.type;
113
- return r.type == "statement" ? r.indented + (a == "{" ? 0 : n.unit) : r.align ? r.column + (i ? 0 : 1) : r.indented + (i ? 0 : n.unit);
114
- },
115
- languageData: {
116
- indentOnInput: /^\s*[{}]$/
117
- }
118
- };
119
- export {
120
- z as ecl
121
- };
@@ -1,110 +0,0 @@
1
- function o(e) {
2
- for (var r = {}, t = 0, n = e.length; t < n; ++t) r[e[t]] = !0;
3
- return r;
4
- }
5
- var u = o([
6
- "note",
7
- "across",
8
- "when",
9
- "variant",
10
- "until",
11
- "unique",
12
- "undefine",
13
- "then",
14
- "strip",
15
- "select",
16
- "retry",
17
- "rescue",
18
- "require",
19
- "rename",
20
- "reference",
21
- "redefine",
22
- "prefix",
23
- "once",
24
- "old",
25
- "obsolete",
26
- "loop",
27
- "local",
28
- "like",
29
- "is",
30
- "inspect",
31
- "infix",
32
- "include",
33
- "if",
34
- "frozen",
35
- "from",
36
- "external",
37
- "export",
38
- "ensure",
39
- "end",
40
- "elseif",
41
- "else",
42
- "do",
43
- "creation",
44
- "create",
45
- "check",
46
- "alias",
47
- "agent",
48
- "separate",
49
- "invariant",
50
- "inherit",
51
- "indexing",
52
- "feature",
53
- "expanded",
54
- "deferred",
55
- "class",
56
- "Void",
57
- "True",
58
- "Result",
59
- "Precursor",
60
- "False",
61
- "Current",
62
- "create",
63
- "attached",
64
- "detachable",
65
- "as",
66
- "and",
67
- "implies",
68
- "not",
69
- "or"
70
- ]), s = o([":=", "and then", "and", "or", "<<", ">>"]);
71
- function c(e, r, t) {
72
- return t.tokenize.push(e), e(r, t);
73
- }
74
- function f(e, r) {
75
- if (e.eatSpace()) return null;
76
- var t = e.next();
77
- return t == '"' || t == "'" ? c(p(t, "string"), e, r) : t == "-" && e.eat("-") ? (e.skipToEnd(), "comment") : t == ":" && e.eat("=") ? "operator" : /[0-9]/.test(t) ? (e.eatWhile(/[xXbBCc0-9\.]/), e.eat(/[\?\!]/), "variable") : /[a-zA-Z_0-9]/.test(t) ? (e.eatWhile(/[a-zA-Z_0-9]/), e.eat(/[\?\!]/), "variable") : /[=+\-\/*^%<>~]/.test(t) ? (e.eatWhile(/[=+\-\/*^%<>~]/), "operator") : null;
78
- }
79
- function p(e, r, t) {
80
- return function(n, l) {
81
- for (var a = !1, i; (i = n.next()) != null; ) {
82
- if (i == e && !a) {
83
- l.tokenize.pop();
84
- break;
85
- }
86
- a = !a && i == "%";
87
- }
88
- return r;
89
- };
90
- }
91
- const d = {
92
- name: "eiffel",
93
- startState: function() {
94
- return { tokenize: [f] };
95
- },
96
- token: function(e, r) {
97
- var t = r.tokenize[r.tokenize.length - 1](e, r);
98
- if (t == "variable") {
99
- var n = e.current();
100
- t = u.propertyIsEnumerable(e.current()) ? "keyword" : s.propertyIsEnumerable(e.current()) ? "operator" : /^[A-Z][A-Z_0-9]*$/g.test(n) ? "tag" : /^0[bB][0-1]+$/g.test(n) || /^0[cC][0-7]+$/g.test(n) || /^0[xX][a-fA-F0-9]+$/g.test(n) || /^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(n) || /^[0-9]+$/g.test(n) ? "number" : "variable";
101
- }
102
- return t;
103
- },
104
- languageData: {
105
- commentTokens: { line: "--" }
106
- }
107
- };
108
- export {
109
- d as eiffel
110
- };
@@ -1,108 +0,0 @@
1
- function a(e, t, r) {
2
- return t(r), r(e, t);
3
- }
4
- var c = /[a-z]/, p = /[A-Z]/, u = /[a-zA-Z0-9_]/, n = /[0-9]/, m = /[0-9A-Fa-f]/, f = /[-&*+.\\/<>=?^|:]/, x = /[(),[\]{}]/, h = /[ \v\f]/;
5
- function i() {
6
- return function(e, t) {
7
- if (e.eatWhile(h))
8
- return null;
9
- var r = e.next();
10
- if (x.test(r))
11
- return r === "{" && e.eat("-") ? a(e, t, s(1)) : r === "[" && e.match("glsl|") ? a(e, t, d) : "builtin";
12
- if (r === "'")
13
- return a(e, t, v);
14
- if (r === '"')
15
- return e.eat('"') ? e.eat('"') ? a(e, t, k) : "string" : a(e, t, g);
16
- if (p.test(r))
17
- return e.eatWhile(u), "type";
18
- if (c.test(r)) {
19
- var o = e.pos === 1;
20
- return e.eatWhile(u), o ? "def" : "variable";
21
- }
22
- if (n.test(r)) {
23
- if (r === "0") {
24
- if (e.eat(/[xX]/))
25
- return e.eatWhile(m), "number";
26
- } else
27
- e.eatWhile(n);
28
- return e.eat(".") && e.eatWhile(n), e.eat(/[eE]/) && (e.eat(/[-+]/), e.eatWhile(n)), "number";
29
- }
30
- return f.test(r) ? r === "-" && e.eat("-") ? (e.skipToEnd(), "comment") : (e.eatWhile(f), "keyword") : r === "_" ? "keyword" : "error";
31
- };
32
- }
33
- function s(e) {
34
- return e == 0 ? i() : function(t, r) {
35
- for (; !t.eol(); ) {
36
- var o = t.next();
37
- if (o == "{" && t.eat("-"))
38
- ++e;
39
- else if (o == "-" && t.eat("}") && (--e, e === 0))
40
- return r(i()), "comment";
41
- }
42
- return r(s(e)), "comment";
43
- };
44
- }
45
- function k(e, t) {
46
- for (; !e.eol(); ) {
47
- var r = e.next();
48
- if (r === '"' && e.eat('"') && e.eat('"'))
49
- return t(i()), "string";
50
- }
51
- return "string";
52
- }
53
- function g(e, t) {
54
- for (; e.skipTo('\\"'); )
55
- e.next(), e.next();
56
- return e.skipTo('"') ? (e.next(), t(i()), "string") : (e.skipToEnd(), t(i()), "error");
57
- }
58
- function v(e, t) {
59
- for (; e.skipTo("\\'"); )
60
- e.next(), e.next();
61
- return e.skipTo("'") ? (e.next(), t(i()), "string") : (e.skipToEnd(), t(i()), "error");
62
- }
63
- function d(e, t) {
64
- for (; !e.eol(); ) {
65
- var r = e.next();
66
- if (r === "|" && e.eat("]"))
67
- return t(i()), "string";
68
- }
69
- return "string";
70
- }
71
- var W = {
72
- case: 1,
73
- of: 1,
74
- as: 1,
75
- if: 1,
76
- then: 1,
77
- else: 1,
78
- let: 1,
79
- in: 1,
80
- type: 1,
81
- alias: 1,
82
- module: 1,
83
- where: 1,
84
- import: 1,
85
- exposing: 1,
86
- port: 1
87
- };
88
- const y = {
89
- name: "elm",
90
- startState: function() {
91
- return { f: i() };
92
- },
93
- copyState: function(e) {
94
- return { f: e.f };
95
- },
96
- token: function(e, t) {
97
- var r = t.f(e, function(l) {
98
- t.f = l;
99
- }), o = e.current();
100
- return W.hasOwnProperty(o) ? "keyword" : r;
101
- },
102
- languageData: {
103
- commentTokens: { line: "--" }
104
- }
105
- };
106
- export {
107
- y as elm
108
- };