vue-form-craft 2.0.11 → 2.0.13
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/README.md +12 -29
- package/dist/{add-hT59kaby.mjs → add-EoHoyHmQ.mjs} +1 -1
- package/dist/alert-k2rZ-pm2.mjs +53 -0
- package/dist/apl-p0IPP13W.mjs +76 -0
- package/dist/asciiarmor-lJsBxlJJ.mjs +34 -0
- package/dist/asn1-Q9v1zIy5.mjs +102 -0
- package/dist/asterisk-foNkeTjy.mjs +273 -0
- package/dist/brainfuck-0XqyXpNS.mjs +35 -0
- package/dist/{button-GY4d9Y6s.mjs → button-9A6flrTc.mjs} +1 -1
- package/dist/{card-bnWsX8LP.mjs → card-l2TDXmyi.mjs} +1 -1
- package/dist/{cascader-cQst1g0E.mjs → cascader-f8QsYkto.mjs} +1 -1
- package/dist/{checkbox-JWtn28zw.mjs → checkbox-QUwlzHGM.mjs} +1 -1
- package/dist/clike-ak6Z6Yhe.mjs +639 -0
- package/dist/clojure-iYO8U8Sg.mjs +810 -0
- package/dist/cmake-SVzjkxV_.mjs +28 -0
- package/dist/cobol-APHEnAOX.mjs +74 -0
- package/dist/coffeescript-KqQa0SYG.mjs +182 -0
- package/dist/{colorPicker-93LeRPg9.mjs → colorPicker-x6N46_O2.mjs} +1 -1
- package/dist/commonlisp-bwqNqR5V.mjs +79 -0
- package/dist/crystal-BViWuDpA.mjs +217 -0
- package/dist/css-KHXHXfXg.mjs +1572 -0
- package/dist/cypher-XpTt4zQ3.mjs +69 -0
- package/dist/d-fLig6yqY.mjs +139 -0
- package/dist/datePicker-j8yNXBHs.mjs +50 -0
- package/dist/{delete-f_cJBSDh.mjs → delete-xBVATMBo.mjs} +1 -1
- package/dist/{design-yP5EOwhK.mjs → design-x1NREnN9.mjs} +1 -1
- package/dist/diff-WoKGLpy6.mjs +18 -0
- package/dist/dockerfile-P8izJOAf.mjs +194 -0
- package/dist/{document-uyarkumr.mjs → document-O73HbdUh.mjs} +1 -1
- package/dist/dtd-SIJRUW6K.mjs +91 -0
- package/dist/dylan-4HCLhpWP.mjs +238 -0
- package/dist/ebnf-h_0lged5.mjs +77 -0
- package/dist/ecl-Lf4FF0lf.mjs +133 -0
- package/dist/eiffel-qlw8KUyf.mjs +112 -0
- package/dist/elm-QRnB3zXs.mjs +108 -0
- package/dist/erlang-fyVKb7eK.mjs +488 -0
- package/dist/factor-Uq0_GFro.mjs +65 -0
- package/dist/fcl-lRek3hEb.mjs +106 -0
- package/dist/{formList-F8r2l1dB.mjs → formList-hPtEP4Ky.mjs} +1 -1
- package/dist/forth-ua2bRd8T.mjs +60 -0
- package/dist/fortran-WnF7znuN.mjs +443 -0
- package/dist/gas-wowve1o7.mjs +183 -0
- package/dist/gherkin-m7GIChu3.mjs +34 -0
- package/dist/{github-fWRoD_no.mjs → github-KoINobLU.mjs} +1 -1
- package/dist/go-th443Dhb.mjs +158 -0
- package/dist/groovy-tR4RiZnc.mjs +161 -0
- package/dist/haskell-jxVBofv5.mjs +375 -0
- package/dist/haxe-kWPI2tq3.mjs +390 -0
- package/dist/{help-R2LNu7-e.mjs → help-749fhL2P.mjs} +1 -1
- package/dist/http-3GIFWUlG.mjs +45 -0
- package/dist/idl-PvpMZg-l.mjs +947 -0
- package/dist/index-2tOJGL07.mjs +546 -0
- package/dist/index-4wIoK2RV.mjs +76 -0
- package/dist/index-M2pAYnZp.mjs +283 -0
- package/dist/index-NVqZrKkn.mjs +514 -0
- package/dist/index-VLqU2s7k.mjs +99 -0
- package/dist/index-WbISJBFk.mjs +269 -0
- package/dist/index-bbmdPhh5.mjs +163 -0
- package/dist/index-hlA8jpbU.mjs +72 -0
- package/dist/index-k-kmrmDd.mjs +59 -0
- package/dist/index-n44sZXuD.mjs +94 -0
- package/dist/index-p8r3iIzE.mjs +135 -0
- package/dist/index-tLyNcnK8.mjs +141 -0
- package/dist/index-xJCbZsUA.mjs +315 -0
- package/dist/{inline-gwroQeui.mjs → inline-LgsKoZk8.mjs} +1 -1
- package/dist/{input-P8xcJTDu.mjs → input-w22Mgu7d.mjs} +1 -1
- package/dist/{inputNumber-Gq34hoEc.mjs → inputNumber-P71Xzdju.mjs} +1 -1
- package/dist/{itemGroup-h-VYg8H6.mjs → itemGroup-F537CR5s.mjs} +1 -1
- package/dist/javascript-8ZHqHagw.mjs +758 -0
- package/dist/jinja2-vsOFe0qD.mjs +154 -0
- package/dist/{jsonEdit-qjj06Ro-.mjs → jsonEdit-SFTAL9sz.mjs} +1 -1
- package/dist/julia-dlp_pbN1.mjs +241 -0
- package/dist/{library-xpeMt_p0.mjs → library-um2AxRlt.mjs} +1 -1
- package/dist/livescript-Gf5R-LT6.mjs +273 -0
- package/dist/lua-c5Y_JsBp.mjs +221 -0
- package/dist/markdown-WScJtLZn.mjs +31 -0
- package/dist/mathematica-iiGTGmUs.mjs +35 -0
- package/dist/mbox-ZJh86H8B.mjs +78 -0
- package/dist/md/FormDesignDoc.md +44 -0
- package/dist/md/globalConfig.md +22 -0
- package/dist/md/introduce.md +13 -0
- package/dist/md/linkage.md +229 -0
- package/dist/md/lowCode.md +24 -0
- package/dist/md/schema.md +72 -0
- package/dist/md/schemaFormDoc.md +198 -2
- package/dist/md/start.md +5 -5
- package/dist/mirc-i0qkCa0y.mjs +73 -0
- package/dist/mllike-Dy551fZW.mjs +275 -0
- package/dist/modelica-n6tGqUT9.mjs +94 -0
- package/dist/{move-7E4__Mf7.mjs → move-xFoKuPa4.mjs} +1 -1
- package/dist/mscgen-aKSbB7D9.mjs +104 -0
- package/dist/mumps-lNiKA6sp.mjs +25 -0
- package/dist/nginx--YmuCfDj.mjs +93 -0
- package/dist/nsis-gURxwqa7.mjs +62 -0
- package/dist/ntriples-E3jQl3MC.mjs +79 -0
- package/dist/octave-EQvkGIeG.mjs +144 -0
- package/dist/oz-W2cpqFf6.mjs +152 -0
- package/dist/pascal-lCh6ouNZ.mjs +79 -0
- package/dist/{password-Rw7e5EfW.mjs → password-smRUbj5j.mjs} +1 -1
- package/dist/perl-PxEQBX0B.mjs +915 -0
- package/dist/pig-Y_bNcrzS.mjs +56 -0
- package/dist/powershell-GaQP-TZr.mjs +249 -0
- package/dist/properties-mbRyn54L.mjs +26 -0
- package/dist/protobuf-8CJideyJ.mjs +49 -0
- package/dist/puppet-ABBaChNZ.mjs +45 -0
- package/dist/python-sKdHg3Ka.mjs +321 -0
- package/dist/q-_1yG40Nm.mjs +89 -0
- package/dist/r-Ziz56bHT.mjs +108 -0
- package/dist/{radio-kIExfw7_.mjs → radio-i8Osy06n.mjs} +1 -1
- package/dist/{reduce-M0s3xS0f.mjs → reduce-_8z_bJSl.mjs} +1 -1
- package/dist/release-S-TGj6yv.mjs +79353 -0
- package/dist/rpm-ORjGOHaQ.mjs +57 -0
- package/dist/ruby-jlbYq0dT.mjs +233 -0
- package/dist/sas-2n7xeUuO.mjs +107 -0
- package/dist/scheme-XCs-NPeU.mjs +126 -0
- package/dist/{select-S_MiU4fC.mjs → select-6cxe4XOq.mjs} +1 -1
- package/dist/shell-0_1Um7Dq.mjs +184 -0
- package/dist/sieve-7uyJD1x1.mjs +73 -0
- package/dist/simple-mode--HIzBxba.mjs +95 -0
- package/dist/smalltalk-PEFzrlQ-.mjs +48 -0
- package/dist/solr-BLBaHahN.mjs +41 -0
- package/dist/sparql-4F9ZWf1b.mjs +204 -0
- package/dist/spreadsheet-SGSo6blj.mjs +49 -0
- package/dist/sql-tebLBzN0.mjs +291 -0
- package/dist/stex-SFJcFGOO.mjs +130 -0
- package/dist/style.css +1 -1
- package/dist/stylus-rwwWYWFm.mjs +256 -0
- package/dist/swift-eorJ0tCv.mjs +238 -0
- package/dist/{switch-q2ma5cBO.mjs → switch-hPyM9jf5.mjs} +1 -1
- package/dist/tcl-IwXMB8U4.mjs +82 -0
- package/dist/{textarea-kCGp6Dtp.mjs → textarea-5BvvBb9l.mjs} +1 -1
- package/dist/textile-ok2VyjwC.mjs +299 -0
- package/dist/tiddlywiki-DLhz8_pc.mjs +156 -0
- package/dist/tiki-DFAqFElY.mjs +183 -0
- package/dist/toml-ryxpTZEV.mjs +49 -0
- package/dist/troff-ZzZyvNct.mjs +36 -0
- package/dist/ttcn-6gvkqqpW.mjs +136 -0
- package/dist/ttcn-cfg-oSu-Dq5C.mjs +98 -0
- package/dist/turtle-10ofr5au.mjs +87 -0
- package/dist/vb-a6n6fzrD.mjs +74 -0
- package/dist/vbscript-dgvo8jPt.mjs +324 -0
- package/dist/velocity-CBncCrwO.mjs +97 -0
- package/dist/verilog-KlcACt6C.mjs +271 -0
- package/dist/vhdl-NMd7Gf35.mjs +117 -0
- package/dist/vue-form-craft.mjs +2 -2
- package/dist/vue-form-craft.umd.js +271 -148
- package/dist/webidl-z1UE5DN_.mjs +160 -0
- package/dist/xquery-hDt5jWTp.mjs +431 -0
- package/dist/yacas-ftgh_qwr.mjs +74 -0
- package/dist/yaml-DnNTfjXK.mjs +53 -0
- package/dist/z80-dA1PqWe1.mjs +62 -0
- package/package.json +8 -2
- package/dist/release-wq6hOrN5.mjs +0 -44293
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
var S = [
|
|
2
|
+
"-type",
|
|
3
|
+
"-spec",
|
|
4
|
+
"-export_type",
|
|
5
|
+
"-opaque"
|
|
6
|
+
], x = [
|
|
7
|
+
"after",
|
|
8
|
+
"begin",
|
|
9
|
+
"catch",
|
|
10
|
+
"case",
|
|
11
|
+
"cond",
|
|
12
|
+
"end",
|
|
13
|
+
"fun",
|
|
14
|
+
"if",
|
|
15
|
+
"let",
|
|
16
|
+
"of",
|
|
17
|
+
"query",
|
|
18
|
+
"receive",
|
|
19
|
+
"try",
|
|
20
|
+
"when"
|
|
21
|
+
], z = /[\->,;]/, E = [
|
|
22
|
+
"->",
|
|
23
|
+
";",
|
|
24
|
+
","
|
|
25
|
+
], T = [
|
|
26
|
+
"and",
|
|
27
|
+
"andalso",
|
|
28
|
+
"band",
|
|
29
|
+
"bnot",
|
|
30
|
+
"bor",
|
|
31
|
+
"bsl",
|
|
32
|
+
"bsr",
|
|
33
|
+
"bxor",
|
|
34
|
+
"div",
|
|
35
|
+
"not",
|
|
36
|
+
"or",
|
|
37
|
+
"orelse",
|
|
38
|
+
"rem",
|
|
39
|
+
"xor"
|
|
40
|
+
], R = /[\+\-\*\/<>=\|:!]/, A = [
|
|
41
|
+
"=",
|
|
42
|
+
"+",
|
|
43
|
+
"-",
|
|
44
|
+
"*",
|
|
45
|
+
"/",
|
|
46
|
+
">",
|
|
47
|
+
">=",
|
|
48
|
+
"<",
|
|
49
|
+
"=<",
|
|
50
|
+
"=:=",
|
|
51
|
+
"==",
|
|
52
|
+
"=/=",
|
|
53
|
+
"/=",
|
|
54
|
+
"||",
|
|
55
|
+
"<-",
|
|
56
|
+
"!"
|
|
57
|
+
], U = /[<\(\[\{]/, b = [
|
|
58
|
+
"<<",
|
|
59
|
+
"(",
|
|
60
|
+
"[",
|
|
61
|
+
"{"
|
|
62
|
+
], Z = /[>\)\]\}]/, y = [
|
|
63
|
+
"}",
|
|
64
|
+
"]",
|
|
65
|
+
")",
|
|
66
|
+
">>"
|
|
67
|
+
], m = [
|
|
68
|
+
"is_atom",
|
|
69
|
+
"is_binary",
|
|
70
|
+
"is_bitstring",
|
|
71
|
+
"is_boolean",
|
|
72
|
+
"is_float",
|
|
73
|
+
"is_function",
|
|
74
|
+
"is_integer",
|
|
75
|
+
"is_list",
|
|
76
|
+
"is_number",
|
|
77
|
+
"is_pid",
|
|
78
|
+
"is_port",
|
|
79
|
+
"is_record",
|
|
80
|
+
"is_reference",
|
|
81
|
+
"is_tuple",
|
|
82
|
+
"atom",
|
|
83
|
+
"binary",
|
|
84
|
+
"bitstring",
|
|
85
|
+
"boolean",
|
|
86
|
+
"function",
|
|
87
|
+
"integer",
|
|
88
|
+
"list",
|
|
89
|
+
"number",
|
|
90
|
+
"pid",
|
|
91
|
+
"port",
|
|
92
|
+
"record",
|
|
93
|
+
"reference",
|
|
94
|
+
"tuple"
|
|
95
|
+
], P = [
|
|
96
|
+
"abs",
|
|
97
|
+
"adler32",
|
|
98
|
+
"adler32_combine",
|
|
99
|
+
"alive",
|
|
100
|
+
"apply",
|
|
101
|
+
"atom_to_binary",
|
|
102
|
+
"atom_to_list",
|
|
103
|
+
"binary_to_atom",
|
|
104
|
+
"binary_to_existing_atom",
|
|
105
|
+
"binary_to_list",
|
|
106
|
+
"binary_to_term",
|
|
107
|
+
"bit_size",
|
|
108
|
+
"bitstring_to_list",
|
|
109
|
+
"byte_size",
|
|
110
|
+
"check_process_code",
|
|
111
|
+
"contact_binary",
|
|
112
|
+
"crc32",
|
|
113
|
+
"crc32_combine",
|
|
114
|
+
"date",
|
|
115
|
+
"decode_packet",
|
|
116
|
+
"delete_module",
|
|
117
|
+
"disconnect_node",
|
|
118
|
+
"element",
|
|
119
|
+
"erase",
|
|
120
|
+
"exit",
|
|
121
|
+
"float",
|
|
122
|
+
"float_to_list",
|
|
123
|
+
"garbage_collect",
|
|
124
|
+
"get",
|
|
125
|
+
"get_keys",
|
|
126
|
+
"group_leader",
|
|
127
|
+
"halt",
|
|
128
|
+
"hd",
|
|
129
|
+
"integer_to_list",
|
|
130
|
+
"internal_bif",
|
|
131
|
+
"iolist_size",
|
|
132
|
+
"iolist_to_binary",
|
|
133
|
+
"is_alive",
|
|
134
|
+
"is_atom",
|
|
135
|
+
"is_binary",
|
|
136
|
+
"is_bitstring",
|
|
137
|
+
"is_boolean",
|
|
138
|
+
"is_float",
|
|
139
|
+
"is_function",
|
|
140
|
+
"is_integer",
|
|
141
|
+
"is_list",
|
|
142
|
+
"is_number",
|
|
143
|
+
"is_pid",
|
|
144
|
+
"is_port",
|
|
145
|
+
"is_process_alive",
|
|
146
|
+
"is_record",
|
|
147
|
+
"is_reference",
|
|
148
|
+
"is_tuple",
|
|
149
|
+
"length",
|
|
150
|
+
"link",
|
|
151
|
+
"list_to_atom",
|
|
152
|
+
"list_to_binary",
|
|
153
|
+
"list_to_bitstring",
|
|
154
|
+
"list_to_existing_atom",
|
|
155
|
+
"list_to_float",
|
|
156
|
+
"list_to_integer",
|
|
157
|
+
"list_to_pid",
|
|
158
|
+
"list_to_tuple",
|
|
159
|
+
"load_module",
|
|
160
|
+
"make_ref",
|
|
161
|
+
"module_loaded",
|
|
162
|
+
"monitor_node",
|
|
163
|
+
"node",
|
|
164
|
+
"node_link",
|
|
165
|
+
"node_unlink",
|
|
166
|
+
"nodes",
|
|
167
|
+
"notalive",
|
|
168
|
+
"now",
|
|
169
|
+
"open_port",
|
|
170
|
+
"pid_to_list",
|
|
171
|
+
"port_close",
|
|
172
|
+
"port_command",
|
|
173
|
+
"port_connect",
|
|
174
|
+
"port_control",
|
|
175
|
+
"pre_loaded",
|
|
176
|
+
"process_flag",
|
|
177
|
+
"process_info",
|
|
178
|
+
"processes",
|
|
179
|
+
"purge_module",
|
|
180
|
+
"put",
|
|
181
|
+
"register",
|
|
182
|
+
"registered",
|
|
183
|
+
"round",
|
|
184
|
+
"self",
|
|
185
|
+
"setelement",
|
|
186
|
+
"size",
|
|
187
|
+
"spawn",
|
|
188
|
+
"spawn_link",
|
|
189
|
+
"spawn_monitor",
|
|
190
|
+
"spawn_opt",
|
|
191
|
+
"split_binary",
|
|
192
|
+
"statistics",
|
|
193
|
+
"term_to_binary",
|
|
194
|
+
"time",
|
|
195
|
+
"throw",
|
|
196
|
+
"tl",
|
|
197
|
+
"trunc",
|
|
198
|
+
"tuple_size",
|
|
199
|
+
"tuple_to_list",
|
|
200
|
+
"unlink",
|
|
201
|
+
"unregister",
|
|
202
|
+
"whereis"
|
|
203
|
+
], p = /[\w@Ø-ÞÀ-Öß-öø-ÿ]/, q = /[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;
|
|
204
|
+
function j(e, n) {
|
|
205
|
+
if (n.in_string)
|
|
206
|
+
return n.in_string = !v(e), t(n, e, "string");
|
|
207
|
+
if (n.in_atom)
|
|
208
|
+
return n.in_atom = !h(e), t(n, e, "atom");
|
|
209
|
+
if (e.eatSpace())
|
|
210
|
+
return t(n, e, "whitespace");
|
|
211
|
+
if (!_(n) && e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))
|
|
212
|
+
return u(e.current(), S) ? t(n, e, "type") : t(n, e, "attribute");
|
|
213
|
+
var r = e.next();
|
|
214
|
+
if (r == "%")
|
|
215
|
+
return e.skipToEnd(), t(n, e, "comment");
|
|
216
|
+
if (r == ":")
|
|
217
|
+
return t(n, e, "colon");
|
|
218
|
+
if (r == "?")
|
|
219
|
+
return e.eatSpace(), e.eatWhile(p), t(n, e, "macro");
|
|
220
|
+
if (r == "#")
|
|
221
|
+
return e.eatSpace(), e.eatWhile(p), t(n, e, "record");
|
|
222
|
+
if (r == "$")
|
|
223
|
+
return e.next() == "\\" && !e.match(q) ? t(n, e, "error") : t(n, e, "number");
|
|
224
|
+
if (r == ".")
|
|
225
|
+
return t(n, e, "dot");
|
|
226
|
+
if (r == "'") {
|
|
227
|
+
if (!(n.in_atom = !h(e))) {
|
|
228
|
+
if (e.match(/\s*\/\s*[0-9]/, !1))
|
|
229
|
+
return e.match(/\s*\/\s*[0-9]/, !0), t(n, e, "fun");
|
|
230
|
+
if (e.match(/\s*\(/, !1) || e.match(/\s*:/, !1))
|
|
231
|
+
return t(n, e, "function");
|
|
232
|
+
}
|
|
233
|
+
return t(n, e, "atom");
|
|
234
|
+
}
|
|
235
|
+
if (r == '"')
|
|
236
|
+
return n.in_string = !v(e), t(n, e, "string");
|
|
237
|
+
if (/[A-Z_Ø-ÞÀ-Ö]/.test(r))
|
|
238
|
+
return e.eatWhile(p), t(n, e, "variable");
|
|
239
|
+
if (/[a-z_ß-öø-ÿ]/.test(r)) {
|
|
240
|
+
if (e.eatWhile(p), e.match(/\s*\/\s*[0-9]/, !1))
|
|
241
|
+
return e.match(/\s*\/\s*[0-9]/, !0), t(n, e, "fun");
|
|
242
|
+
var i = e.current();
|
|
243
|
+
return u(i, x) ? t(n, e, "keyword") : u(i, T) ? t(n, e, "operator") : e.match(/\s*\(/, !1) ? u(i, P) && (_(n).token != ":" || _(n, 2).token == "erlang") ? t(n, e, "builtin") : u(i, m) ? t(n, e, "guard") : t(n, e, "function") : Q(e) == ":" ? i == "erlang" ? t(n, e, "builtin") : t(n, e, "function") : u(i, ["true", "false"]) ? t(n, e, "boolean") : t(n, e, "atom");
|
|
244
|
+
}
|
|
245
|
+
var l = /[0-9]/, o = /[0-9a-zA-Z]/;
|
|
246
|
+
return l.test(r) ? (e.eatWhile(l), e.eat("#") ? e.eatWhile(o) || e.backUp(1) : e.eat(".") && (e.eatWhile(l) ? e.eat(/[eE]/) && (e.eat(/[-+]/) ? e.eatWhile(l) || e.backUp(2) : e.eatWhile(l) || e.backUp(1)) : e.backUp(1)), t(n, e, "number")) : g(e, U, b) ? t(n, e, "open_paren") : g(e, Z, y) ? t(n, e, "close_paren") : k(e, z, E) ? t(n, e, "separator") : k(e, R, A) ? t(n, e, "operator") : t(n, e, null);
|
|
247
|
+
}
|
|
248
|
+
function g(e, n, r) {
|
|
249
|
+
if (e.current().length == 1 && n.test(e.current())) {
|
|
250
|
+
for (e.backUp(1); n.test(e.peek()); )
|
|
251
|
+
if (e.next(), u(e.current(), r))
|
|
252
|
+
return !0;
|
|
253
|
+
e.backUp(e.current().length - 1);
|
|
254
|
+
}
|
|
255
|
+
return !1;
|
|
256
|
+
}
|
|
257
|
+
function k(e, n, r) {
|
|
258
|
+
if (e.current().length == 1 && n.test(e.current())) {
|
|
259
|
+
for (; n.test(e.peek()); )
|
|
260
|
+
e.next();
|
|
261
|
+
for (; 0 < e.current().length; ) {
|
|
262
|
+
if (u(e.current(), r))
|
|
263
|
+
return !0;
|
|
264
|
+
e.backUp(1);
|
|
265
|
+
}
|
|
266
|
+
e.next();
|
|
267
|
+
}
|
|
268
|
+
return !1;
|
|
269
|
+
}
|
|
270
|
+
function v(e) {
|
|
271
|
+
return w(e, '"', "\\");
|
|
272
|
+
}
|
|
273
|
+
function h(e) {
|
|
274
|
+
return w(e, "'", "\\");
|
|
275
|
+
}
|
|
276
|
+
function w(e, n, r) {
|
|
277
|
+
for (; !e.eol(); ) {
|
|
278
|
+
var i = e.next();
|
|
279
|
+
if (i == n)
|
|
280
|
+
return !0;
|
|
281
|
+
i == r && e.next();
|
|
282
|
+
}
|
|
283
|
+
return !1;
|
|
284
|
+
}
|
|
285
|
+
function Q(e) {
|
|
286
|
+
var n = e.match(/^\s*([^\s%])/, !1);
|
|
287
|
+
return n ? n[1] : "";
|
|
288
|
+
}
|
|
289
|
+
function u(e, n) {
|
|
290
|
+
return -1 < n.indexOf(e);
|
|
291
|
+
}
|
|
292
|
+
function t(e, n, r) {
|
|
293
|
+
switch (N(e, D(r, n)), r) {
|
|
294
|
+
case "atom":
|
|
295
|
+
return "atom";
|
|
296
|
+
case "attribute":
|
|
297
|
+
return "attribute";
|
|
298
|
+
case "boolean":
|
|
299
|
+
return "atom";
|
|
300
|
+
case "builtin":
|
|
301
|
+
return "builtin";
|
|
302
|
+
case "close_paren":
|
|
303
|
+
return null;
|
|
304
|
+
case "colon":
|
|
305
|
+
return null;
|
|
306
|
+
case "comment":
|
|
307
|
+
return "comment";
|
|
308
|
+
case "dot":
|
|
309
|
+
return null;
|
|
310
|
+
case "error":
|
|
311
|
+
return "error";
|
|
312
|
+
case "fun":
|
|
313
|
+
return "meta";
|
|
314
|
+
case "function":
|
|
315
|
+
return "tag";
|
|
316
|
+
case "guard":
|
|
317
|
+
return "property";
|
|
318
|
+
case "keyword":
|
|
319
|
+
return "keyword";
|
|
320
|
+
case "macro":
|
|
321
|
+
return "macroName";
|
|
322
|
+
case "number":
|
|
323
|
+
return "number";
|
|
324
|
+
case "open_paren":
|
|
325
|
+
return null;
|
|
326
|
+
case "operator":
|
|
327
|
+
return "operator";
|
|
328
|
+
case "record":
|
|
329
|
+
return "bracket";
|
|
330
|
+
case "separator":
|
|
331
|
+
return null;
|
|
332
|
+
case "string":
|
|
333
|
+
return "string";
|
|
334
|
+
case "type":
|
|
335
|
+
return "def";
|
|
336
|
+
case "variable":
|
|
337
|
+
return "variable";
|
|
338
|
+
default:
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
function W(e, n, r, i) {
|
|
343
|
+
return {
|
|
344
|
+
token: e,
|
|
345
|
+
column: n,
|
|
346
|
+
indent: r,
|
|
347
|
+
type: i
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
function D(e, n) {
|
|
351
|
+
return W(
|
|
352
|
+
n.current(),
|
|
353
|
+
n.column(),
|
|
354
|
+
n.indentation(),
|
|
355
|
+
e
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
function I(e) {
|
|
359
|
+
return W(e, 0, 0, e);
|
|
360
|
+
}
|
|
361
|
+
function _(e, n) {
|
|
362
|
+
var r = e.tokenStack.length, i = n || 1;
|
|
363
|
+
return r < i ? !1 : e.tokenStack[r - i];
|
|
364
|
+
}
|
|
365
|
+
function N(e, n) {
|
|
366
|
+
n.type == "comment" || n.type == "whitespace" || (e.tokenStack = O(e.tokenStack, n), e.tokenStack = $(e.tokenStack));
|
|
367
|
+
}
|
|
368
|
+
function O(e, n) {
|
|
369
|
+
var r = e.length - 1;
|
|
370
|
+
return 0 < r && e[r].type === "record" && n.type === "dot" ? e.pop() : (0 < r && e[r].type === "group" && e.pop(), e.push(n)), e;
|
|
371
|
+
}
|
|
372
|
+
function $(e) {
|
|
373
|
+
if (!e.length)
|
|
374
|
+
return e;
|
|
375
|
+
var n = e.length - 1;
|
|
376
|
+
if (e[n].type === "dot")
|
|
377
|
+
return [];
|
|
378
|
+
if (n > 1 && e[n].type === "fun" && e[n - 1].token === "fun")
|
|
379
|
+
return e.slice(0, n - 1);
|
|
380
|
+
switch (e[n].token) {
|
|
381
|
+
case "}":
|
|
382
|
+
return a(e, { g: ["{"] });
|
|
383
|
+
case "]":
|
|
384
|
+
return a(e, { i: ["["] });
|
|
385
|
+
case ")":
|
|
386
|
+
return a(e, { i: ["("] });
|
|
387
|
+
case ">>":
|
|
388
|
+
return a(e, { i: ["<<"] });
|
|
389
|
+
case "end":
|
|
390
|
+
return a(e, { i: ["begin", "case", "fun", "if", "receive", "try"] });
|
|
391
|
+
case ",":
|
|
392
|
+
return a(e, { e: [
|
|
393
|
+
"begin",
|
|
394
|
+
"try",
|
|
395
|
+
"when",
|
|
396
|
+
"->",
|
|
397
|
+
",",
|
|
398
|
+
"(",
|
|
399
|
+
"[",
|
|
400
|
+
"{",
|
|
401
|
+
"<<"
|
|
402
|
+
] });
|
|
403
|
+
case "->":
|
|
404
|
+
return a(e, {
|
|
405
|
+
r: ["when"],
|
|
406
|
+
m: ["try", "if", "case", "receive"]
|
|
407
|
+
});
|
|
408
|
+
case ";":
|
|
409
|
+
return a(e, { E: ["case", "fun", "if", "receive", "try", "when"] });
|
|
410
|
+
case "catch":
|
|
411
|
+
return a(e, { e: ["try"] });
|
|
412
|
+
case "of":
|
|
413
|
+
return a(e, { e: ["case"] });
|
|
414
|
+
case "after":
|
|
415
|
+
return a(e, { e: ["receive", "try"] });
|
|
416
|
+
default:
|
|
417
|
+
return e;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function a(e, n) {
|
|
421
|
+
for (var r in n)
|
|
422
|
+
for (var i = e.length - 1, l = n[r], o = i - 1; -1 < o; o--)
|
|
423
|
+
if (u(e[o].token, l)) {
|
|
424
|
+
var c = e.slice(0, o);
|
|
425
|
+
switch (r) {
|
|
426
|
+
case "m":
|
|
427
|
+
return c.concat(e[o]).concat(e[i]);
|
|
428
|
+
case "r":
|
|
429
|
+
return c.concat(e[i]);
|
|
430
|
+
case "i":
|
|
431
|
+
return c;
|
|
432
|
+
case "g":
|
|
433
|
+
return c.concat(I("group"));
|
|
434
|
+
case "E":
|
|
435
|
+
return c.concat(e[o]);
|
|
436
|
+
case "e":
|
|
437
|
+
return c.concat(e[o]);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
return r == "E" ? [] : e;
|
|
441
|
+
}
|
|
442
|
+
function B(e, n, r) {
|
|
443
|
+
var i, l = C(n), o = _(e, 1), c = _(e, 2);
|
|
444
|
+
return e.in_string || e.in_atom ? null : c ? o.token == "when" ? o.column + r.unit : l === "when" && c.type === "function" ? c.indent + r.unit : l === "(" && o.token === "fun" ? o.column + 3 : l === "catch" && (i = s(e, ["try"])) ? i.column : u(l, ["end", "after", "of"]) ? (i = s(e, ["begin", "case", "fun", "if", "receive", "try"]), i ? i.column : null) : u(l, y) ? (i = s(e, b), i ? i.column : null) : u(o.token, [",", "|", "||"]) || u(l, [",", "|", "||"]) ? (i = F(e), i ? i.column + i.token.length : r.unit) : o.token == "->" ? u(c.token, ["receive", "case", "if", "try"]) ? c.column + r.unit + r.unit : c.column + r.unit : u(o.token, b) ? o.column + o.token.length : (i = G(e), f(i) ? i.column + r.unit : 0) : 0;
|
|
445
|
+
}
|
|
446
|
+
function C(e) {
|
|
447
|
+
var n = e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);
|
|
448
|
+
return f(n) && n.index === 0 ? n[0] : "";
|
|
449
|
+
}
|
|
450
|
+
function F(e) {
|
|
451
|
+
var n = e.tokenStack.slice(0, -1), r = d(n, "type", ["open_paren"]);
|
|
452
|
+
return f(n[r]) ? n[r] : !1;
|
|
453
|
+
}
|
|
454
|
+
function G(e) {
|
|
455
|
+
var n = e.tokenStack, r = d(n, "type", ["open_paren", "separator", "keyword"]), i = d(n, "type", ["operator"]);
|
|
456
|
+
return f(r) && f(i) && r < i ? n[r + 1] : f(r) ? n[r] : !1;
|
|
457
|
+
}
|
|
458
|
+
function s(e, n) {
|
|
459
|
+
var r = e.tokenStack, i = d(r, "token", n);
|
|
460
|
+
return f(r[i]) ? r[i] : !1;
|
|
461
|
+
}
|
|
462
|
+
function d(e, n, r) {
|
|
463
|
+
for (var i = e.length - 1; -1 < i; i--)
|
|
464
|
+
if (u(e[i][n], r))
|
|
465
|
+
return i;
|
|
466
|
+
return !1;
|
|
467
|
+
}
|
|
468
|
+
function f(e) {
|
|
469
|
+
return e !== !1 && e != null;
|
|
470
|
+
}
|
|
471
|
+
const H = {
|
|
472
|
+
name: "erlang",
|
|
473
|
+
startState() {
|
|
474
|
+
return {
|
|
475
|
+
tokenStack: [],
|
|
476
|
+
in_string: !1,
|
|
477
|
+
in_atom: !1
|
|
478
|
+
};
|
|
479
|
+
},
|
|
480
|
+
token: j,
|
|
481
|
+
indent: B,
|
|
482
|
+
languageData: {
|
|
483
|
+
commentTokens: { line: "%" }
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
export {
|
|
487
|
+
H as erlang
|
|
488
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { s as e } from "./simple-mode--HIzBxba.mjs";
|
|
2
|
+
const n = e({
|
|
3
|
+
start: [
|
|
4
|
+
// comments
|
|
5
|
+
{ regex: /#?!.*/, token: "comment" },
|
|
6
|
+
// strings """, multiline --> state
|
|
7
|
+
{ regex: /"""/, token: "string", next: "string3" },
|
|
8
|
+
{ regex: /(STRING:)(\s)/, token: ["keyword", null], next: "string2" },
|
|
9
|
+
{ regex: /\S*?"/, token: "string", next: "string" },
|
|
10
|
+
// numbers: dec, hex, unicode, bin, fractional, complex
|
|
11
|
+
{ regex: /(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/, token: "number" },
|
|
12
|
+
//{regex: /[+-]?/} //fractional
|
|
13
|
+
// definition: defining word, defined word, etc
|
|
14
|
+
{ regex: /((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/, token: ["keyword", null, "def", null, "bracket"], next: "stack" },
|
|
15
|
+
// method definition: defining word, type, defined word, etc
|
|
16
|
+
{ regex: /(M\:)(\s+)(\S+)(\s+)(\S+)/, token: ["keyword", null, "def", null, "tag"] },
|
|
17
|
+
// vocabulary using --> state
|
|
18
|
+
{ regex: /USING\:/, token: "keyword", next: "vocabulary" },
|
|
19
|
+
// vocabulary definition/use
|
|
20
|
+
{ regex: /(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/, token: ["keyword", null, "tag"] },
|
|
21
|
+
// definition: a defining word, defined word
|
|
22
|
+
{ regex: /(\S+\:)(\s+)(\S+)(?=\s|$)/, token: ["keyword", null, "def"] },
|
|
23
|
+
// "keywords", incl. ; t f . [ ] { } defining words
|
|
24
|
+
{ regex: /(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|<PRIVATE|\.|\S*\[|\]|\S*\{|\})(?=\s|$)/, token: "keyword" },
|
|
25
|
+
// <constructors> and the like
|
|
26
|
+
{ regex: /\S+[\)>\.\*\?]+(?=\s|$)/, token: "builtin" },
|
|
27
|
+
{ regex: /[\)><]+\S+(?=\s|$)/, token: "builtin" },
|
|
28
|
+
// operators
|
|
29
|
+
{ regex: /(?:[\+\-\=\/\*<>])(?=\s|$)/, token: "keyword" },
|
|
30
|
+
// any id (?)
|
|
31
|
+
{ regex: /\S+/, token: "variable" },
|
|
32
|
+
{ regex: /\s+|./, token: null }
|
|
33
|
+
],
|
|
34
|
+
vocabulary: [
|
|
35
|
+
{ regex: /;/, token: "keyword", next: "start" },
|
|
36
|
+
{ regex: /\S+/, token: "tag" },
|
|
37
|
+
{ regex: /\s+|./, token: null }
|
|
38
|
+
],
|
|
39
|
+
string: [
|
|
40
|
+
{ regex: /(?:[^\\]|\\.)*?"/, token: "string", next: "start" },
|
|
41
|
+
{ regex: /.*/, token: "string" }
|
|
42
|
+
],
|
|
43
|
+
string2: [
|
|
44
|
+
{ regex: /^;/, token: "keyword", next: "start" },
|
|
45
|
+
{ regex: /.*/, token: "string" }
|
|
46
|
+
],
|
|
47
|
+
string3: [
|
|
48
|
+
{ regex: /(?:[^\\]|\\.)*?"""/, token: "string", next: "start" },
|
|
49
|
+
{ regex: /.*/, token: "string" }
|
|
50
|
+
],
|
|
51
|
+
stack: [
|
|
52
|
+
{ regex: /\)/, token: "bracket", next: "start" },
|
|
53
|
+
{ regex: /--/, token: "bracket" },
|
|
54
|
+
{ regex: /\S+/, token: "meta" },
|
|
55
|
+
{ regex: /\s+|./, token: null }
|
|
56
|
+
],
|
|
57
|
+
languageData: {
|
|
58
|
+
name: "factor",
|
|
59
|
+
dontIndentStates: ["start", "vocabulary", "string", "string3", "stack"],
|
|
60
|
+
commentTokens: { line: "!" }
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
n as factor
|
|
65
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
var d = {
|
|
2
|
+
term: !0,
|
|
3
|
+
method: !0,
|
|
4
|
+
accu: !0,
|
|
5
|
+
rule: !0,
|
|
6
|
+
then: !0,
|
|
7
|
+
is: !0,
|
|
8
|
+
and: !0,
|
|
9
|
+
or: !0,
|
|
10
|
+
if: !0,
|
|
11
|
+
default: !0
|
|
12
|
+
}, f = {
|
|
13
|
+
var_input: !0,
|
|
14
|
+
var_output: !0,
|
|
15
|
+
fuzzify: !0,
|
|
16
|
+
defuzzify: !0,
|
|
17
|
+
function_block: !0,
|
|
18
|
+
ruleblock: !0
|
|
19
|
+
}, o = {
|
|
20
|
+
end_ruleblock: !0,
|
|
21
|
+
end_defuzzify: !0,
|
|
22
|
+
end_function_block: !0,
|
|
23
|
+
end_fuzzify: !0,
|
|
24
|
+
end_var: !0
|
|
25
|
+
}, p = {
|
|
26
|
+
true: !0,
|
|
27
|
+
false: !0,
|
|
28
|
+
nan: !0,
|
|
29
|
+
real: !0,
|
|
30
|
+
min: !0,
|
|
31
|
+
max: !0,
|
|
32
|
+
cog: !0,
|
|
33
|
+
cogs: !0
|
|
34
|
+
}, l = /[+\-*&^%:=<>!|\/]/;
|
|
35
|
+
function i(e, n) {
|
|
36
|
+
var t = e.next();
|
|
37
|
+
if (/[\d\.]/.test(t))
|
|
38
|
+
return t == "." ? e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/) : t == "0" ? e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^0[0-7]+/) : e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/), "number";
|
|
39
|
+
if (t == "/" || t == "(") {
|
|
40
|
+
if (e.eat("*"))
|
|
41
|
+
return n.tokenize = c, c(e, n);
|
|
42
|
+
if (e.eat("/"))
|
|
43
|
+
return e.skipToEnd(), "comment";
|
|
44
|
+
}
|
|
45
|
+
if (l.test(t))
|
|
46
|
+
return e.eatWhile(l), "operator";
|
|
47
|
+
e.eatWhile(/[\w\$_\xa1-\uffff]/);
|
|
48
|
+
var r = e.current().toLowerCase();
|
|
49
|
+
return d.propertyIsEnumerable(r) || f.propertyIsEnumerable(r) || o.propertyIsEnumerable(r) ? "keyword" : p.propertyIsEnumerable(r) ? "atom" : "variable";
|
|
50
|
+
}
|
|
51
|
+
function c(e, n) {
|
|
52
|
+
for (var t = !1, r; r = e.next(); ) {
|
|
53
|
+
if ((r == "/" || r == ")") && t) {
|
|
54
|
+
n.tokenize = i;
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
t = r == "*";
|
|
58
|
+
}
|
|
59
|
+
return "comment";
|
|
60
|
+
}
|
|
61
|
+
function a(e, n, t, r, u) {
|
|
62
|
+
this.indented = e, this.column = n, this.type = t, this.align = r, this.prev = u;
|
|
63
|
+
}
|
|
64
|
+
function k(e, n, t) {
|
|
65
|
+
return e.context = new a(e.indented, n, t, null, e.context);
|
|
66
|
+
}
|
|
67
|
+
function v(e) {
|
|
68
|
+
if (e.context.prev) {
|
|
69
|
+
var n = e.context.type;
|
|
70
|
+
return n == "end_block" && (e.indented = e.context.indented), e.context = e.context.prev;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const x = {
|
|
74
|
+
name: "fcl",
|
|
75
|
+
startState: function(e) {
|
|
76
|
+
return {
|
|
77
|
+
tokenize: null,
|
|
78
|
+
context: new a(-e, 0, "top", !1),
|
|
79
|
+
indented: 0,
|
|
80
|
+
startOfLine: !0
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
token: function(e, n) {
|
|
84
|
+
var t = n.context;
|
|
85
|
+
if (e.sol() && (t.align == null && (t.align = !1), n.indented = e.indentation(), n.startOfLine = !0), e.eatSpace())
|
|
86
|
+
return null;
|
|
87
|
+
var r = (n.tokenize || i)(e, n);
|
|
88
|
+
if (r == "comment")
|
|
89
|
+
return r;
|
|
90
|
+
t.align == null && (t.align = !0);
|
|
91
|
+
var u = e.current().toLowerCase();
|
|
92
|
+
return f.propertyIsEnumerable(u) ? k(n, e.column(), "end_block") : o.propertyIsEnumerable(u) && v(n), n.startOfLine = !1, r;
|
|
93
|
+
},
|
|
94
|
+
indent: function(e, n, t) {
|
|
95
|
+
if (e.tokenize != i && e.tokenize != null)
|
|
96
|
+
return 0;
|
|
97
|
+
var r = e.context, u = o.propertyIsEnumerable(n);
|
|
98
|
+
return r.align ? r.column + (u ? 0 : 1) : r.indented + (u ? 0 : t.unit);
|
|
99
|
+
},
|
|
100
|
+
languageData: {
|
|
101
|
+
commentTokens: { line: "//", block: { open: "(*", close: "*)" } }
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
x as fcl
|
|
106
|
+
};
|