react-schema-form 1.0.5 → 1.0.7

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/react-schema-form.css +1 -0
  2. package/dist/react-schema-form.js +24552 -5
  3. package/dist/react-schema-form.js.map +1 -0
  4. package/dist/react-schema-form.umd.cjs +76 -168
  5. package/dist/react-schema-form.umd.cjs.map +1 -0
  6. package/package.json +32 -10
  7. package/dist/apl-B2DGVGxc.js +0 -76
  8. package/dist/asciiarmor-2LVJmxlE.js +0 -34
  9. package/dist/asn1-DF4fnRHj.js +0 -93
  10. package/dist/asterisk-DS281yxp.js +0 -271
  11. package/dist/brainfuck-C_p9pTT8.js +0 -34
  12. package/dist/clike-l4mx49Q1.js +0 -621
  13. package/dist/clojure-CCKyeQKf.js +0 -800
  14. package/dist/cmake-CuaCgAKt.js +0 -28
  15. package/dist/cobol-CJVkMW0i.js +0 -73
  16. package/dist/coffeescript-BVCvwO8I.js +0 -179
  17. package/dist/commonlisp-D_kxz07b.js +0 -75
  18. package/dist/crystal-D309uH6_.js +0 -217
  19. package/dist/css-bIlmDBTK.js +0 -1560
  20. package/dist/cypher-BMq4Fwjl.js +0 -68
  21. package/dist/d-BZcgY6La.js +0 -127
  22. package/dist/diff-Cg9d_RX2.js +0 -18
  23. package/dist/dockerfile-CFG_IPGn.js +0 -194
  24. package/dist/dtd-CtLokQ-U.js +0 -84
  25. package/dist/dylan-QYeExnWK.js +0 -234
  26. package/dist/ebnf-Xa2PN7SI.js +0 -77
  27. package/dist/ecl-CiXN-g_D.js +0 -121
  28. package/dist/eiffel-yQhjl4T1.js +0 -110
  29. package/dist/elm-CNT9vbN0.js +0 -108
  30. package/dist/erlang-CFOYdy9e.js +0 -487
  31. package/dist/factor-DJHfQ4a1.js +0 -65
  32. package/dist/fcl-CPC2WYrI.js +0 -103
  33. package/dist/forth-BmxRyE9S.js +0 -60
  34. package/dist/fortran-9bvPyrOW.js +0 -442
  35. package/dist/gas-BdfkXJT_.js +0 -183
  36. package/dist/gherkin-CJuwpceU.js +0 -34
  37. package/dist/groovy-DZeT_VM-.js +0 -146
  38. package/dist/haskell-Bvt3Qq1t.js +0 -375
  39. package/dist/haxe-pdDS1aE8.js +0 -359
  40. package/dist/http-D9LttvKF.js +0 -44
  41. package/dist/idl-B6TRFYjl.js +0 -947
  42. package/dist/index-BE87KcZQ.js +0 -98
  43. package/dist/index-BLB2mjTh.js +0 -312
  44. package/dist/index-Bar6lBni.js +0 -75
  45. package/dist/index-BzGQIlo_.js +0 -134
  46. package/dist/index-BzqHMC7H.js +0 -58
  47. package/dist/index-C1_9PR5w.js +0 -156
  48. package/dist/index-C8EGvqpJ.js +0 -135
  49. package/dist/index-CFDpG1dM.js +0 -243
  50. package/dist/index-Cjv9KcfW.js +0 -93
  51. package/dist/index-CvvBPxcf.js +0 -341
  52. package/dist/index-DDn1Bvsm.js +0 -538
  53. package/dist/index-DeMNkpAe.js +0 -299
  54. package/dist/index-DjyHTjks.js +0 -265
  55. package/dist/index-JL0W82NW.js +0 -598
  56. package/dist/index-RrAWWB2k.js +0 -71
  57. package/dist/index-kp5oFDKj.js +0 -288
  58. package/dist/javascript-CWGekh08.js +0 -690
  59. package/dist/jinja2-DnB6dQmV.js +0 -154
  60. package/dist/julia-DpvXAuO6.js +0 -241
  61. package/dist/livescript-CE_BxZmN.js +0 -272
  62. package/dist/lua-XplVlWi_.js +0 -217
  63. package/dist/main-gT5TlPcm.js +0 -85834
  64. package/dist/mathematica-jaRHnSxC.js +0 -35
  65. package/dist/mbox-BctzC1hL.js +0 -76
  66. package/dist/mirc-CFBPAOaF.js +0 -72
  67. package/dist/mllike-1yy7Y7jE.js +0 -275
  68. package/dist/modelica-vUgVs--1.js +0 -93
  69. package/dist/mscgen-Cpl0NYLN.js +0 -104
  70. package/dist/mumps-CQoS1kWX.js +0 -25
  71. package/dist/nginx-zDPm3Z74.js +0 -89
  72. package/dist/nsis-BtA0qkjU.js +0 -62
  73. package/dist/ntriples-CsNjv2QF.js +0 -79
  74. package/dist/octave-C8PmmSRH.js +0 -143
  75. package/dist/oz-Ce8aN8oE.js +0 -151
  76. package/dist/pascal-ixanSKUz.js +0 -77
  77. package/dist/perl-B4bSCe1C.js +0 -915
  78. package/dist/pig-D24Z8EXi.js +0 -54
  79. package/dist/powershell-DkYVfTzP.js +0 -249
  80. package/dist/properties-Dn9wna3M.js +0 -26
  81. package/dist/protobuf-BPIjwpzm.js +0 -49
  82. package/dist/pug-CW1q1xhQ.js +0 -248
  83. package/dist/puppet-nyd4dhjf.js +0 -45
  84. package/dist/python-B5QdSKoL.js +0 -313
  85. package/dist/q-DXjKs-tC.js +0 -83
  86. package/dist/r-Bz1d3XP0.js +0 -104
  87. package/dist/rpm-IznJm2Xc.js +0 -57
  88. package/dist/ruby-CcYfvIk6.js +0 -228
  89. package/dist/sas-7E8yHoCW.js +0 -105
  90. package/dist/scheme-DjibxsNh.js +0 -124
  91. package/dist/shell-C0C2sNA_.js +0 -182
  92. package/dist/sieve-Bwz7vjP5.js +0 -72
  93. package/dist/simple-mode-HGTvdazT.js +0 -88
  94. package/dist/smalltalk-Bhddl2pB.js +0 -48
  95. package/dist/solr-BNlsLglM.js +0 -41
  96. package/dist/sparql-FarWu_Gb.js +0 -197
  97. package/dist/spreadsheet-C-cy4P5N.js +0 -49
  98. package/dist/sql-uoWIYwDX.js +0 -284
  99. package/dist/stex-92raWT1r.js +0 -129
  100. package/dist/style.css +0 -1
  101. package/dist/stylus-DRcbY16X.js +0 -250
  102. package/dist/swift-DSxqR9R6.js +0 -230
  103. package/dist/tcl-xfoLljhY.js +0 -81
  104. package/dist/textile-D1AWE-pc.js +0 -295
  105. package/dist/tiddlywiki-5wqsXtSk.js +0 -155
  106. package/dist/tiki-D9z-T0ea.js +0 -178
  107. package/dist/toml-BHiuTcfn.js +0 -49
  108. package/dist/troff-D2UO-fKf.js +0 -35
  109. package/dist/ttcn-DmjTzZb6.js +0 -125
  110. package/dist/ttcn-cfg-B2U3U7dn.js +0 -90
  111. package/dist/turtle-xwJUxoPV.js +0 -80
  112. package/dist/vb-c2kQGd6-.js +0 -74
  113. package/dist/vbscript-Dz1TtKsy.js +0 -324
  114. package/dist/velocity-DJd0pTTC.js +0 -96
  115. package/dist/verilog-C4VGD9n1.js +0 -263
  116. package/dist/vhdl-T9HkrbI2.js +0 -106
  117. package/dist/vite.svg +0 -1
  118. package/dist/webidl-CjfDENEo.js +0 -155
  119. package/dist/xquery-xQxle02u.js +0 -426
  120. package/dist/yacas-C0absKBh.js +0 -73
  121. package/dist/z80-C8rPtw-0.js +0 -61
@@ -1,234 +0,0 @@
1
- function p(e, i) {
2
- for (var n = 0; n < e.length; n++) i(e[n], n);
3
- }
4
- function x(e, i) {
5
- for (var n = 0; n < e.length; n++) if (i(e[n], n)) return !0;
6
- return !1;
7
- }
8
- var t = {
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
- t.otherDefinition = t.unnamedDefinition.concat(t.namedDefinition).concat(t.otherParameterizedDefinition);
108
- t.definition = t.typeParameterizedDefinition.concat(t.otherDefinition);
109
- t.parameterizedDefinition = t.typeParameterizedDefinition.concat(t.otherParameterizedDefinition);
110
- t.simpleDefinition = t.constantSimpleDefinition.concat(t.variableSimpleDefinition).concat(t.otherSimpleDefinition);
111
- t.keyword = t.statement.concat(t.separator).concat(t.other);
112
- var f = "[-_a-zA-Z?!*@<>$%]+", v = new RegExp("^" + f), a = {
113
- // Symbols with special syntax
114
- symbolKeyword: f + ":",
115
- symbolClass: "<" + f + ">",
116
- symbolGlobal: "\\*" + f + "\\*",
117
- symbolConstant: "\\$" + f
118
- }, w = {
119
- symbolKeyword: "atom",
120
- symbolClass: "tag",
121
- symbolGlobal: "variableName.standard",
122
- symbolConstant: "variableName.constant"
123
- };
124
- for (var c in a)
125
- a.hasOwnProperty(c) && (a[c] = new RegExp("^" + a[c]));
126
- a.keyword = [/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];
127
- var u = {};
128
- u.keyword = "keyword";
129
- u.definition = "def";
130
- u.simpleDefinition = "def";
131
- u.signalingCalls = "builtin";
132
- var y = {}, k = {};
133
- p([
134
- "keyword",
135
- "definition",
136
- "simpleDefinition",
137
- "signalingCalls"
138
- ], function(e) {
139
- p(t[e], function(i) {
140
- y[i] = e, k[i] = u[e];
141
- });
142
- });
143
- function d(e, i, n) {
144
- return i.tokenize = n, n(e, i);
145
- }
146
- function s(e, i) {
147
- var n = e.peek();
148
- if (n == "'" || n == '"')
149
- return e.next(), d(e, i, h(n, "string"));
150
- if (n == "/") {
151
- if (e.next(), e.eat("*"))
152
- return d(e, i, D);
153
- if (e.eat("/"))
154
- return e.skipToEnd(), "comment";
155
- e.backUp(1);
156
- } else if (/[+\-\d\.]/.test(n)) {
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 (n == "#")
161
- return e.next(), n = e.peek(), n == '"' ? (e.next(), d(e, i, h('"', "string"))) : n == "b" ? (e.next(), e.eatWhile(/[01]/), "number") : n == "x" ? (e.next(), e.eatWhile(/[\da-f]/i), "number") : n == "o" ? (e.next(), e.eatWhile(/[0-7]/), "number") : n == "#" ? (e.next(), "punctuation") : n == "[" || n == "(" ? (e.next(), "bracket") : e.match(/f|t|all-keys|include|key|next|rest/i) ? "atom" : (e.eatWhile(/[-a-zA-Z]/), "error");
162
- if (n == "~")
163
- return e.next(), n = e.peek(), n == "=" ? (e.next(), n = e.peek(), n == "=" && e.next(), "operator") : "operator";
164
- if (n == ":") {
165
- if (e.next(), n = e.peek(), n == "=")
166
- return e.next(), "operator";
167
- if (n == ":")
168
- return e.next(), "punctuation";
169
- } else {
170
- if ("[](){}".indexOf(n) != -1)
171
- return e.next(), "bracket";
172
- if (".,".indexOf(n) != -1)
173
- return e.next(), "punctuation";
174
- if (e.match("end"))
175
- return "keyword";
176
- }
177
- }
178
- for (var l in a)
179
- if (a.hasOwnProperty(l)) {
180
- var r = a[l];
181
- if (r instanceof Array && x(r, function(o) {
182
- return e.match(o);
183
- }) || e.match(r))
184
- return w[l];
185
- }
186
- return /[+\-*\/^=<>&|]/.test(n) ? (e.next(), "operator") : e.match("define") ? "def" : (e.eatWhile(/[\w\-]/), y.hasOwnProperty(e.current()) ? k[e.current()] : e.current().match(v) ? "variable" : (e.next(), "variableName.standard"));
187
- }
188
- function D(e, i) {
189
- for (var n = !1, l = !1, r = 0, o; o = e.next(); ) {
190
- if (o == "/" && n)
191
- if (r > 0)
192
- r--;
193
- else {
194
- i.tokenize = s;
195
- break;
196
- }
197
- else o == "*" && l && r++;
198
- n = o == "*", l = o == "/";
199
- }
200
- return "comment";
201
- }
202
- function h(e, i) {
203
- return function(n, l) {
204
- for (var r = !1, o, b = !1; (o = n.next()) != null; ) {
205
- if (o == e && !r) {
206
- b = !0;
207
- break;
208
- }
209
- r = !r && o == "\\";
210
- }
211
- return (b || !r) && (l.tokenize = s), i;
212
- };
213
- }
214
- const g = {
215
- name: "dylan",
216
- startState: function() {
217
- return {
218
- tokenize: s,
219
- currentIndent: 0
220
- };
221
- },
222
- token: function(e, i) {
223
- if (e.eatSpace())
224
- return null;
225
- var n = i.tokenize(e, i);
226
- return n;
227
- },
228
- languageData: {
229
- commentTokens: { block: { open: "/*", close: "*/" } }
230
- }
231
- };
232
- export {
233
- g as dylan
234
- };
@@ -1,77 +0,0 @@
1
- var i = { slash: 0, parenthesis: 1 }, n = { comment: 0, _string: 1, characterClass: 2 };
2
- const l = {
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(e, c) {
16
- if (e) {
17
- switch (c.stack.length === 0 && (e.peek() == '"' || e.peek() == "'" ? (c.stringType = e.peek(), e.next(), c.stack.unshift(n._string)) : e.match("/*") ? (c.stack.unshift(n.comment), c.commentType = i.slash) : e.match("(*") && (c.stack.unshift(n.comment), c.commentType = i.parenthesis)), c.stack[0]) {
18
- case n._string:
19
- for (; c.stack[0] === n._string && !e.eol(); )
20
- e.peek() === c.stringType ? (e.next(), c.stack.shift()) : e.peek() === "\\" ? (e.next(), e.next()) : e.match(/^.[^\\\"\']*/);
21
- return c.lhs ? "property" : "string";
22
- case n.comment:
23
- for (; c.stack[0] === n.comment && !e.eol(); )
24
- c.commentType === i.slash && e.match("*/") || c.commentType === i.parenthesis && e.match("*)") ? (c.stack.shift(), c.commentType = null) : e.match(/^.[^\*]*/);
25
- return "comment";
26
- case n.characterClass:
27
- for (; c.stack[0] === n.characterClass && !e.eol(); )
28
- e.match(/^[^\]\\]+/) || e.match(".") || c.stack.shift();
29
- return "operator";
30
- }
31
- var t = e.peek();
32
- switch (t) {
33
- case "[":
34
- return e.next(), c.stack.unshift(n.characterClass), "bracket";
35
- case ":":
36
- case "|":
37
- case ";":
38
- return e.next(), "operator";
39
- case "%":
40
- if (e.match("%%"))
41
- return "header";
42
- if (e.match(/[%][A-Za-z]+/))
43
- return "keyword";
44
- if (e.match(/[%][}]/))
45
- return "bracket";
46
- break;
47
- case "/":
48
- if (e.match(/[\/][A-Za-z]+/))
49
- return "keyword";
50
- case "\\":
51
- if (e.match(/[\][a-z]+/))
52
- return "string.special";
53
- case ".":
54
- if (e.match("."))
55
- return "atom";
56
- case "*":
57
- case "-":
58
- case "+":
59
- case "^":
60
- if (e.match(t))
61
- return "atom";
62
- case "$":
63
- if (e.match("$$"))
64
- return "builtin";
65
- if (e.match(/[$][0-9]+/))
66
- return "variableName.special";
67
- case "<":
68
- if (e.match(/<<[a-zA-Z_]+>>/))
69
- return "builtin";
70
- }
71
- return e.match("//") ? (e.skipToEnd(), "comment") : e.match("return") ? "operator" : e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/) ? e.match(/(?=[\(.])/) ? "variable" : e.match(/(?=[\s\n]*[:=])/) ? "def" : "variableName.special" : ["[", "]", "(", ")"].indexOf(e.peek()) != -1 ? (e.next(), "bracket") : (e.eatSpace() || e.next(), null);
72
- }
73
- }
74
- };
75
- export {
76
- l as ebnf
77
- };
@@ -1,121 +0,0 @@
1
- function l(e) {
2
- for (var n = {}, t = e.split(" "), r = 0; r < t.length; ++r) n[t[r]] = !0;
3
- return n;
4
- }
5
- function b(e, n) {
6
- return n.startOfLine ? (e.skipToEnd(), "meta") : !1;
7
- }
8
- var g = 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"), w = l("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"), x = 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"), k = 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, n) {
10
- var t = e.next();
11
- if (m[t]) {
12
- var r = m[t](e, n);
13
- if (r !== !1) return r;
14
- }
15
- if (t == '"' || t == "'")
16
- return n.tokenize = I(t), n.tokenize(e, n);
17
- if (/[\[\]{}\(\),;\:\.]/.test(t))
18
- return o = t, null;
19
- if (/\d/.test(t))
20
- return e.eatWhile(/[\w\.]/), "number";
21
- if (t == "/") {
22
- if (e.eat("*"))
23
- return n.tokenize = y, y(e, n);
24
- if (e.eat("/"))
25
- return e.skipToEnd(), "comment";
26
- }
27
- if (h.test(t))
28
- return e.eatWhile(h), "operator";
29
- e.eatWhile(/[\w\$_]/);
30
- var i = e.current().toLowerCase();
31
- if (g.propertyIsEnumerable(i))
32
- return s.propertyIsEnumerable(i) && (o = "newstatement"), "keyword";
33
- if (w.propertyIsEnumerable(i))
34
- return s.propertyIsEnumerable(i) && (o = "newstatement"), "variable";
35
- if (x.propertyIsEnumerable(i))
36
- return s.propertyIsEnumerable(i) && (o = "newstatement"), "modifier";
37
- if (f.propertyIsEnumerable(i))
38
- return s.propertyIsEnumerable(i) && (o = "newstatement"), "type";
39
- if (k.propertyIsEnumerable(i))
40
- return s.propertyIsEnumerable(i) && (o = "newstatement"), "builtin";
41
- for (var a = i.length - 1; a >= 0 && (!isNaN(i[a]) || i[a] == "_"); )
42
- --a;
43
- if (a > 0) {
44
- var d = i.substr(0, a + 1);
45
- if (f.propertyIsEnumerable(d))
46
- return s.propertyIsEnumerable(d) && (o = "newstatement"), "type";
47
- }
48
- return E.propertyIsEnumerable(i) ? "atom" : null;
49
- }
50
- function I(e) {
51
- return function(n, t) {
52
- for (var r = !1, i, a = !1; (i = n.next()) != null; ) {
53
- if (i == e && !r) {
54
- a = !0;
55
- break;
56
- }
57
- r = !r && i == "\\";
58
- }
59
- return (a || !r) && (t.tokenize = p), "string";
60
- };
61
- }
62
- function y(e, n) {
63
- for (var t = !1, r; r = e.next(); ) {
64
- if (r == "/" && t) {
65
- n.tokenize = p;
66
- break;
67
- }
68
- t = r == "*";
69
- }
70
- return "comment";
71
- }
72
- function v(e, n, t, r, i) {
73
- this.indented = e, this.column = n, this.type = t, this.align = r, this.prev = i;
74
- }
75
- function c(e, n, t) {
76
- return e.context = new v(e.indented, n, t, null, e.context);
77
- }
78
- function u(e) {
79
- var n = e.context.type;
80
- return (n == ")" || n == "]" || n == "}") && (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 v(-e, 0, "top", !1),
88
- indented: 0,
89
- startOfLine: !0
90
- };
91
- },
92
- token: function(e, n) {
93
- var t = n.context;
94
- if (e.sol() && (t.align == null && (t.align = !1), n.indented = e.indentation(), n.startOfLine = !0), e.eatSpace()) return null;
95
- o = null;
96
- var r = (n.tokenize || p)(e, n);
97
- if (r == "comment" || r == "meta") return r;
98
- if (t.align == null && (t.align = !0), (o == ";" || o == ":") && t.type == "statement") u(n);
99
- else if (o == "{") c(n, e.column(), "}");
100
- else if (o == "[") c(n, e.column(), "]");
101
- else if (o == "(") c(n, e.column(), ")");
102
- else if (o == "}") {
103
- for (; t.type == "statement"; ) t = u(n);
104
- for (t.type == "}" && (t = u(n)); t.type == "statement"; ) t = u(n);
105
- } else o == t.type ? u(n) : (t.type == "}" || t.type == "top" || t.type == "statement" && o == "newstatement") && c(n, e.column(), "statement");
106
- return n.startOfLine = !1, r;
107
- },
108
- indent: function(e, n, t) {
109
- if (e.tokenize != p && e.tokenize != null) return 0;
110
- var r = e.context, i = n && n.charAt(0);
111
- r.type == "statement" && i == "}" && (r = r.prev);
112
- var a = i == r.type;
113
- return r.type == "statement" ? r.indented + (i == "{" ? 0 : t.unit) : r.align ? r.column + (a ? 0 : 1) : r.indented + (a ? 0 : t.unit);
114
- },
115
- languageData: {
116
- indentOnInput: /^\s*[{}]$/
117
- }
118
- };
119
- export {
120
- z as ecl
121
- };
@@ -1,110 +0,0 @@
1
- function u(e) {
2
- for (var r = {}, n = 0, t = e.length; n < t; ++n) r[e[n]] = !0;
3
- return r;
4
- }
5
- var l = u([
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
- ]), c = u([":=", "and then", "and", "or", "<<", ">>"]);
71
- function f(e, r, n) {
72
- return n.tokenize.push(e), e(r, n);
73
- }
74
- function s(e, r) {
75
- if (e.eatSpace()) return null;
76
- var n = e.next();
77
- return n == '"' || n == "'" ? f(p(n, "string"), e, r) : n == "-" && e.eat("-") ? (e.skipToEnd(), "comment") : n == ":" && e.eat("=") ? "operator" : /[0-9]/.test(n) ? (e.eatWhile(/[xXbBCc0-9\.]/), e.eat(/[\?\!]/), "variable") : /[a-zA-Z_0-9]/.test(n) ? (e.eatWhile(/[a-zA-Z_0-9]/), e.eat(/[\?\!]/), "variable") : /[=+\-\/*^%<>~]/.test(n) ? (e.eatWhile(/[=+\-\/*^%<>~]/), "operator") : null;
78
- }
79
- function p(e, r, n) {
80
- return function(t, o) {
81
- for (var a = !1, i; (i = t.next()) != null; ) {
82
- if (i == e && !a) {
83
- o.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: [s] };
95
- },
96
- token: function(e, r) {
97
- var n = r.tokenize[r.tokenize.length - 1](e, r);
98
- if (n == "variable") {
99
- var t = e.current();
100
- n = l.propertyIsEnumerable(e.current()) ? "keyword" : c.propertyIsEnumerable(e.current()) ? "operator" : /^[A-Z][A-Z_0-9]*$/g.test(t) ? "tag" : /^0[bB][0-1]+$/g.test(t) || /^0[cC][0-7]+$/g.test(t) || /^0[xX][a-fA-F0-9]+$/g.test(t) || /^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(t) || /^[0-9]+$/g.test(t) ? "number" : "variable";
101
- }
102
- return n;
103
- },
104
- languageData: {
105
- commentTokens: { line: "--" }
106
- }
107
- };
108
- export {
109
- d as eiffel
110
- };
@@ -1,108 +0,0 @@
1
- function a(n, t, i) {
2
- return t(i), i(n, t);
3
- }
4
- var v = /[a-z]/, g = /[A-Z]/, l = /[a-zA-Z0-9_]/, f = /[0-9]/, o = /[0-9A-Fa-f]/, p = /[-&*+.\\/<>=?^|:]/, w = /[(),[\]{}]/, x = /[ \v\f]/;
5
- function r() {
6
- return function(n, t) {
7
- if (n.eatWhile(x))
8
- return null;
9
- var i = n.next();
10
- if (w.test(i))
11
- return i === "{" && n.eat("-") ? a(n, t, h(1)) : i === "[" && n.match("glsl|") ? a(n, t, u) : "builtin";
12
- if (i === "'")
13
- return a(n, t, d);
14
- if (i === '"')
15
- return n.eat('"') ? n.eat('"') ? a(n, t, k) : "string" : a(n, t, E);
16
- if (g.test(i))
17
- return n.eatWhile(l), "type";
18
- if (v.test(i)) {
19
- var e = n.pos === 1;
20
- return n.eatWhile(l), e ? "def" : "variable";
21
- }
22
- if (f.test(i)) {
23
- if (i === "0") {
24
- if (n.eat(/[xX]/))
25
- return n.eatWhile(o), "number";
26
- } else
27
- n.eatWhile(f);
28
- return n.eat(".") && n.eatWhile(f), n.eat(/[eE]/) && (n.eat(/[-+]/), n.eatWhile(f)), "number";
29
- }
30
- return p.test(i) ? i === "-" && n.eat("-") ? (n.skipToEnd(), "comment") : (n.eatWhile(p), "keyword") : i === "_" ? "keyword" : "error";
31
- };
32
- }
33
- function h(n) {
34
- return n == 0 ? r() : function(t, i) {
35
- for (; !t.eol(); ) {
36
- var e = t.next();
37
- if (e == "{" && t.eat("-"))
38
- ++n;
39
- else if (e == "-" && t.eat("}") && (--n, n === 0))
40
- return i(r()), "comment";
41
- }
42
- return i(h(n)), "comment";
43
- };
44
- }
45
- function k(n, t) {
46
- for (; !n.eol(); ) {
47
- var i = n.next();
48
- if (i === '"' && n.eat('"') && n.eat('"'))
49
- return t(r()), "string";
50
- }
51
- return "string";
52
- }
53
- function E(n, t) {
54
- for (; n.skipTo('\\"'); )
55
- n.next(), n.next();
56
- return n.skipTo('"') ? (n.next(), t(r()), "string") : (n.skipToEnd(), t(r()), "error");
57
- }
58
- function d(n, t) {
59
- for (; n.skipTo("\\'"); )
60
- n.next(), n.next();
61
- return n.skipTo("'") ? (n.next(), t(r()), "string") : (n.skipToEnd(), t(r()), "error");
62
- }
63
- function u(n, t) {
64
- for (; !n.eol(); ) {
65
- var i = n.next();
66
- if (i === "|" && n.eat("]"))
67
- return t(r()), "string";
68
- }
69
- return "string";
70
- }
71
- var y = {
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 W = {
89
- name: "elm",
90
- startState: function() {
91
- return { f: r() };
92
- },
93
- copyState: function(n) {
94
- return { f: n.f };
95
- },
96
- token: function(n, t) {
97
- var i = t.f(n, function(m) {
98
- t.f = m;
99
- }), e = n.current();
100
- return y.hasOwnProperty(e) ? "keyword" : i;
101
- },
102
- languageData: {
103
- commentTokens: { line: "--" }
104
- }
105
- };
106
- export {
107
- W as elm
108
- };