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,238 @@
|
|
|
1
|
+
function c(n) {
|
|
2
|
+
for (var e = {}, t = 0; t < n.length; t++)
|
|
3
|
+
e[n[t]] = !0;
|
|
4
|
+
return e;
|
|
5
|
+
}
|
|
6
|
+
var l = c([
|
|
7
|
+
"_",
|
|
8
|
+
"var",
|
|
9
|
+
"let",
|
|
10
|
+
"actor",
|
|
11
|
+
"class",
|
|
12
|
+
"enum",
|
|
13
|
+
"extension",
|
|
14
|
+
"import",
|
|
15
|
+
"protocol",
|
|
16
|
+
"struct",
|
|
17
|
+
"func",
|
|
18
|
+
"typealias",
|
|
19
|
+
"associatedtype",
|
|
20
|
+
"open",
|
|
21
|
+
"public",
|
|
22
|
+
"internal",
|
|
23
|
+
"fileprivate",
|
|
24
|
+
"private",
|
|
25
|
+
"deinit",
|
|
26
|
+
"init",
|
|
27
|
+
"new",
|
|
28
|
+
"override",
|
|
29
|
+
"self",
|
|
30
|
+
"subscript",
|
|
31
|
+
"super",
|
|
32
|
+
"convenience",
|
|
33
|
+
"dynamic",
|
|
34
|
+
"final",
|
|
35
|
+
"indirect",
|
|
36
|
+
"lazy",
|
|
37
|
+
"required",
|
|
38
|
+
"static",
|
|
39
|
+
"unowned",
|
|
40
|
+
"unowned(safe)",
|
|
41
|
+
"unowned(unsafe)",
|
|
42
|
+
"weak",
|
|
43
|
+
"as",
|
|
44
|
+
"is",
|
|
45
|
+
"break",
|
|
46
|
+
"case",
|
|
47
|
+
"continue",
|
|
48
|
+
"default",
|
|
49
|
+
"else",
|
|
50
|
+
"fallthrough",
|
|
51
|
+
"for",
|
|
52
|
+
"guard",
|
|
53
|
+
"if",
|
|
54
|
+
"in",
|
|
55
|
+
"repeat",
|
|
56
|
+
"switch",
|
|
57
|
+
"where",
|
|
58
|
+
"while",
|
|
59
|
+
"defer",
|
|
60
|
+
"return",
|
|
61
|
+
"inout",
|
|
62
|
+
"mutating",
|
|
63
|
+
"nonmutating",
|
|
64
|
+
"isolated",
|
|
65
|
+
"nonisolated",
|
|
66
|
+
"catch",
|
|
67
|
+
"do",
|
|
68
|
+
"rethrows",
|
|
69
|
+
"throw",
|
|
70
|
+
"throws",
|
|
71
|
+
"async",
|
|
72
|
+
"await",
|
|
73
|
+
"try",
|
|
74
|
+
"didSet",
|
|
75
|
+
"get",
|
|
76
|
+
"set",
|
|
77
|
+
"willSet",
|
|
78
|
+
"assignment",
|
|
79
|
+
"associativity",
|
|
80
|
+
"infix",
|
|
81
|
+
"left",
|
|
82
|
+
"none",
|
|
83
|
+
"operator",
|
|
84
|
+
"postfix",
|
|
85
|
+
"precedence",
|
|
86
|
+
"precedencegroup",
|
|
87
|
+
"prefix",
|
|
88
|
+
"right",
|
|
89
|
+
"Any",
|
|
90
|
+
"AnyObject",
|
|
91
|
+
"Type",
|
|
92
|
+
"dynamicType",
|
|
93
|
+
"Self",
|
|
94
|
+
"Protocol",
|
|
95
|
+
"__COLUMN__",
|
|
96
|
+
"__FILE__",
|
|
97
|
+
"__FUNCTION__",
|
|
98
|
+
"__LINE__"
|
|
99
|
+
]), p = c(["var", "let", "actor", "class", "enum", "extension", "import", "protocol", "struct", "func", "typealias", "associatedtype", "for"]), d = c(["true", "false", "nil", "self", "super", "_"]), v = c([
|
|
100
|
+
"Array",
|
|
101
|
+
"Bool",
|
|
102
|
+
"Character",
|
|
103
|
+
"Dictionary",
|
|
104
|
+
"Double",
|
|
105
|
+
"Float",
|
|
106
|
+
"Int",
|
|
107
|
+
"Int8",
|
|
108
|
+
"Int16",
|
|
109
|
+
"Int32",
|
|
110
|
+
"Int64",
|
|
111
|
+
"Never",
|
|
112
|
+
"Optional",
|
|
113
|
+
"Set",
|
|
114
|
+
"String",
|
|
115
|
+
"UInt8",
|
|
116
|
+
"UInt16",
|
|
117
|
+
"UInt32",
|
|
118
|
+
"UInt64",
|
|
119
|
+
"Void"
|
|
120
|
+
]), h = "+-/*%=|&<>~^?!", _ = ":;,.(){}[]", s = /^\-?0b[01][01_]*/, k = /^\-?0o[0-7][0-7_]*/, x = /^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/, y = /^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/, g = /^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/, w = /^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/, z = /^\#[A-Za-z]+/, b = /^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;
|
|
121
|
+
function f(n, e, t) {
|
|
122
|
+
if (n.sol() && (e.indented = n.indentation()), n.eatSpace())
|
|
123
|
+
return null;
|
|
124
|
+
var i = n.peek();
|
|
125
|
+
if (i == "/") {
|
|
126
|
+
if (n.match("//"))
|
|
127
|
+
return n.skipToEnd(), "comment";
|
|
128
|
+
if (n.match("/*"))
|
|
129
|
+
return e.tokenize.push(a), a(n, e);
|
|
130
|
+
}
|
|
131
|
+
if (n.match(z))
|
|
132
|
+
return "builtin";
|
|
133
|
+
if (n.match(b))
|
|
134
|
+
return "attribute";
|
|
135
|
+
if (n.match(s) || n.match(k) || n.match(x) || n.match(y))
|
|
136
|
+
return "number";
|
|
137
|
+
if (n.match(w))
|
|
138
|
+
return "property";
|
|
139
|
+
if (h.indexOf(i) > -1)
|
|
140
|
+
return n.next(), "operator";
|
|
141
|
+
if (_.indexOf(i) > -1)
|
|
142
|
+
return n.next(), n.match(".."), "punctuation";
|
|
143
|
+
var r;
|
|
144
|
+
if (r = n.match(/("""|"|')/)) {
|
|
145
|
+
var o = I.bind(null, r[0]);
|
|
146
|
+
return e.tokenize.push(o), o(n, e);
|
|
147
|
+
}
|
|
148
|
+
if (n.match(g)) {
|
|
149
|
+
var u = n.current();
|
|
150
|
+
return v.hasOwnProperty(u) ? "type" : d.hasOwnProperty(u) ? "atom" : l.hasOwnProperty(u) ? (p.hasOwnProperty(u) && (e.prev = "define"), "keyword") : t == "define" ? "def" : "variable";
|
|
151
|
+
}
|
|
152
|
+
return n.next(), null;
|
|
153
|
+
}
|
|
154
|
+
function A() {
|
|
155
|
+
var n = 0;
|
|
156
|
+
return function(e, t, i) {
|
|
157
|
+
var r = f(e, t, i);
|
|
158
|
+
if (r == "punctuation") {
|
|
159
|
+
if (e.current() == "(")
|
|
160
|
+
++n;
|
|
161
|
+
else if (e.current() == ")") {
|
|
162
|
+
if (n == 0)
|
|
163
|
+
return e.backUp(1), t.tokenize.pop(), t.tokenize[t.tokenize.length - 1](e, t);
|
|
164
|
+
--n;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return r;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function I(n, e, t) {
|
|
171
|
+
for (var i = n.length == 1, r, o = !1; r = e.peek(); )
|
|
172
|
+
if (o) {
|
|
173
|
+
if (e.next(), r == "(")
|
|
174
|
+
return t.tokenize.push(A()), "string";
|
|
175
|
+
o = !1;
|
|
176
|
+
} else {
|
|
177
|
+
if (e.match(n))
|
|
178
|
+
return t.tokenize.pop(), "string";
|
|
179
|
+
e.next(), o = r == "\\";
|
|
180
|
+
}
|
|
181
|
+
return i && t.tokenize.pop(), "string";
|
|
182
|
+
}
|
|
183
|
+
function a(n, e) {
|
|
184
|
+
for (var t; t = n.next(); )
|
|
185
|
+
if (t === "/" && n.eat("*"))
|
|
186
|
+
e.tokenize.push(a);
|
|
187
|
+
else if (t === "*" && n.eat("/")) {
|
|
188
|
+
e.tokenize.pop();
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
return "comment";
|
|
192
|
+
}
|
|
193
|
+
function O(n, e, t) {
|
|
194
|
+
this.prev = n, this.align = e, this.indented = t;
|
|
195
|
+
}
|
|
196
|
+
function m(n, e) {
|
|
197
|
+
var t = e.match(/^\s*($|\/[\/\*]|[)}\]])/, !1) ? null : e.column() + 1;
|
|
198
|
+
n.context = new O(n.context, t, n.indented);
|
|
199
|
+
}
|
|
200
|
+
function S(n) {
|
|
201
|
+
n.context && (n.indented = n.context.indented, n.context = n.context.prev);
|
|
202
|
+
}
|
|
203
|
+
const C = {
|
|
204
|
+
name: "swift",
|
|
205
|
+
startState: function() {
|
|
206
|
+
return {
|
|
207
|
+
prev: null,
|
|
208
|
+
context: null,
|
|
209
|
+
indented: 0,
|
|
210
|
+
tokenize: []
|
|
211
|
+
};
|
|
212
|
+
},
|
|
213
|
+
token: function(n, e) {
|
|
214
|
+
var t = e.prev;
|
|
215
|
+
e.prev = null;
|
|
216
|
+
var i = e.tokenize[e.tokenize.length - 1] || f, r = i(n, e, t);
|
|
217
|
+
if (!r || r == "comment" ? e.prev = t : e.prev || (e.prev = r), r == "punctuation") {
|
|
218
|
+
var o = /[\(\[\{]|([\]\)\}])/.exec(n.current());
|
|
219
|
+
o && (o[1] ? S : m)(e, n);
|
|
220
|
+
}
|
|
221
|
+
return r;
|
|
222
|
+
},
|
|
223
|
+
indent: function(n, e, t) {
|
|
224
|
+
var i = n.context;
|
|
225
|
+
if (!i)
|
|
226
|
+
return 0;
|
|
227
|
+
var r = /^[\]\}\)]/.test(e);
|
|
228
|
+
return i.align != null ? i.align - (r ? 1 : 0) : i.indented + (r ? 0 : t.unit);
|
|
229
|
+
},
|
|
230
|
+
languageData: {
|
|
231
|
+
indentOnInput: /^\s*[\)\}\]]$/,
|
|
232
|
+
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
|
|
233
|
+
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] }
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
export {
|
|
237
|
+
C as swift
|
|
238
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
function s(r) {
|
|
2
|
+
for (var n = {}, t = r.split(" "), e = 0; e < t.length; ++e)
|
|
3
|
+
n[t[e]] = !0;
|
|
4
|
+
return n;
|
|
5
|
+
}
|
|
6
|
+
var f = s("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"), u = s("if elseif else and not or eq ne in ni for foreach while switch"), c = /[+\-*&%=<>!?^\/\|]/;
|
|
7
|
+
function i(r, n, t) {
|
|
8
|
+
return n.tokenize = t, t(r, n);
|
|
9
|
+
}
|
|
10
|
+
function o(r, n) {
|
|
11
|
+
var t = n.beforeParams;
|
|
12
|
+
n.beforeParams = !1;
|
|
13
|
+
var e = r.next();
|
|
14
|
+
if ((e == '"' || e == "'") && n.inParams)
|
|
15
|
+
return i(r, n, p(e));
|
|
16
|
+
if (/[\[\]{}\(\),;\.]/.test(e))
|
|
17
|
+
return e == "(" && t ? n.inParams = !0 : e == ")" && (n.inParams = !1), null;
|
|
18
|
+
if (/\d/.test(e))
|
|
19
|
+
return r.eatWhile(/[\w\.]/), "number";
|
|
20
|
+
if (e == "#")
|
|
21
|
+
return r.eat("*") ? i(r, n, d) : e == "#" && r.match(/ *\[ *\[/) ? i(r, n, k) : (r.skipToEnd(), "comment");
|
|
22
|
+
if (e == '"')
|
|
23
|
+
return r.skipTo(/"/), "comment";
|
|
24
|
+
if (e == "$")
|
|
25
|
+
return r.eatWhile(/[$_a-z0-9A-Z\.{:]/), r.eatWhile(/}/), n.beforeParams = !0, "builtin";
|
|
26
|
+
if (c.test(e))
|
|
27
|
+
return r.eatWhile(c), "comment";
|
|
28
|
+
r.eatWhile(/[\w\$_{}\xa1-\uffff]/);
|
|
29
|
+
var a = r.current().toLowerCase();
|
|
30
|
+
return f && f.propertyIsEnumerable(a) ? "keyword" : u && u.propertyIsEnumerable(a) ? (n.beforeParams = !0, "keyword") : null;
|
|
31
|
+
}
|
|
32
|
+
function p(r) {
|
|
33
|
+
return function(n, t) {
|
|
34
|
+
for (var e = !1, a, l = !1; (a = n.next()) != null; ) {
|
|
35
|
+
if (a == r && !e) {
|
|
36
|
+
l = !0;
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
e = !e && a == "\\";
|
|
40
|
+
}
|
|
41
|
+
return l && (t.tokenize = o), "string";
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function d(r, n) {
|
|
45
|
+
for (var t = !1, e; e = r.next(); ) {
|
|
46
|
+
if (e == "#" && t) {
|
|
47
|
+
n.tokenize = o;
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
t = e == "*";
|
|
51
|
+
}
|
|
52
|
+
return "comment";
|
|
53
|
+
}
|
|
54
|
+
function k(r, n) {
|
|
55
|
+
for (var t = 0, e; e = r.next(); ) {
|
|
56
|
+
if (e == "#" && t == 2) {
|
|
57
|
+
n.tokenize = o;
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
e == "]" ? t++ : e != " " && (t = 0);
|
|
61
|
+
}
|
|
62
|
+
return "meta";
|
|
63
|
+
}
|
|
64
|
+
const m = {
|
|
65
|
+
name: "tcl",
|
|
66
|
+
startState: function() {
|
|
67
|
+
return {
|
|
68
|
+
tokenize: o,
|
|
69
|
+
beforeParams: !1,
|
|
70
|
+
inParams: !1
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
token: function(r, n) {
|
|
74
|
+
return r.eatSpace() ? null : n.tokenize(r, n);
|
|
75
|
+
},
|
|
76
|
+
languageData: {
|
|
77
|
+
commentTokens: { line: "#" }
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
export {
|
|
81
|
+
m as tcl
|
|
82
|
+
};
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
var f = {
|
|
2
|
+
addition: "inserted",
|
|
3
|
+
attributes: "propertyName",
|
|
4
|
+
bold: "strong",
|
|
5
|
+
cite: "keyword",
|
|
6
|
+
code: "monospace",
|
|
7
|
+
definitionList: "list",
|
|
8
|
+
deletion: "deleted",
|
|
9
|
+
div: "punctuation",
|
|
10
|
+
em: "emphasis",
|
|
11
|
+
footnote: "variable",
|
|
12
|
+
footCite: "qualifier",
|
|
13
|
+
header: "heading",
|
|
14
|
+
html: "comment",
|
|
15
|
+
image: "atom",
|
|
16
|
+
italic: "emphasis",
|
|
17
|
+
link: "link",
|
|
18
|
+
linkDefinition: "link",
|
|
19
|
+
list1: "list",
|
|
20
|
+
list2: "list.special",
|
|
21
|
+
list3: "list",
|
|
22
|
+
notextile: "string.special",
|
|
23
|
+
pre: "operator",
|
|
24
|
+
p: "content",
|
|
25
|
+
quote: "bracket",
|
|
26
|
+
span: "quote",
|
|
27
|
+
specialChar: "character",
|
|
28
|
+
strong: "strong",
|
|
29
|
+
sub: "content.special",
|
|
30
|
+
sup: "content.special",
|
|
31
|
+
table: "variableName.special",
|
|
32
|
+
tableHeading: "operator"
|
|
33
|
+
};
|
|
34
|
+
function h(i, e) {
|
|
35
|
+
e.mode = r.newLayout, e.tableHeading = !1, e.layoutType === "definitionList" && e.spanningLayout && i.match(l("definitionListEnd"), !1) && (e.spanningLayout = !1);
|
|
36
|
+
}
|
|
37
|
+
function s(i, e, n) {
|
|
38
|
+
if (n === "_")
|
|
39
|
+
return i.eat("_") ? a(i, e, "italic", /__/, 2) : a(i, e, "em", /_/, 1);
|
|
40
|
+
if (n === "*")
|
|
41
|
+
return i.eat("*") ? a(i, e, "bold", /\*\*/, 2) : a(i, e, "strong", /\*/, 1);
|
|
42
|
+
if (n === "[")
|
|
43
|
+
return i.match(/\d+\]/) && (e.footCite = !0), u(e);
|
|
44
|
+
if (n === "(") {
|
|
45
|
+
var o = i.match(/^(r|tm|c)\)/);
|
|
46
|
+
if (o)
|
|
47
|
+
return f.specialChar;
|
|
48
|
+
}
|
|
49
|
+
if (n === "<" && i.match(/(\w+)[^>]+>[^<]+<\/\1>/))
|
|
50
|
+
return f.html;
|
|
51
|
+
if (n === "?" && i.eat("?"))
|
|
52
|
+
return a(i, e, "cite", /\?\?/, 2);
|
|
53
|
+
if (n === "=" && i.eat("="))
|
|
54
|
+
return a(i, e, "notextile", /==/, 2);
|
|
55
|
+
if (n === "-" && !i.eat("-"))
|
|
56
|
+
return a(i, e, "deletion", /-/, 1);
|
|
57
|
+
if (n === "+")
|
|
58
|
+
return a(i, e, "addition", /\+/, 1);
|
|
59
|
+
if (n === "~")
|
|
60
|
+
return a(i, e, "sub", /~/, 1);
|
|
61
|
+
if (n === "^")
|
|
62
|
+
return a(i, e, "sup", /\^/, 1);
|
|
63
|
+
if (n === "%")
|
|
64
|
+
return a(i, e, "span", /%/, 1);
|
|
65
|
+
if (n === "@")
|
|
66
|
+
return a(i, e, "code", /@/, 1);
|
|
67
|
+
if (n === "!") {
|
|
68
|
+
var c = a(i, e, "image", /(?:\([^\)]+\))?!/, 1);
|
|
69
|
+
return i.match(/^:\S+/), c;
|
|
70
|
+
}
|
|
71
|
+
return u(e);
|
|
72
|
+
}
|
|
73
|
+
function a(i, e, n, o, c) {
|
|
74
|
+
var d = i.pos > c ? i.string.charAt(i.pos - c - 1) : null, p = i.peek();
|
|
75
|
+
if (e[n]) {
|
|
76
|
+
if ((!p || /\W/.test(p)) && d && /\S/.test(d)) {
|
|
77
|
+
var y = u(e);
|
|
78
|
+
return e[n] = !1, y;
|
|
79
|
+
}
|
|
80
|
+
} else
|
|
81
|
+
(!d || /\W/.test(d)) && p && /\S/.test(p) && i.match(new RegExp("^.*\\S" + o.source + "(?:\\W|$)"), !1) && (e[n] = !0, e.mode = r.attributes);
|
|
82
|
+
return u(e);
|
|
83
|
+
}
|
|
84
|
+
function u(i) {
|
|
85
|
+
var e = b(i);
|
|
86
|
+
if (e)
|
|
87
|
+
return e;
|
|
88
|
+
var n = [];
|
|
89
|
+
return i.layoutType && n.push(f[i.layoutType]), n = n.concat(g(
|
|
90
|
+
i,
|
|
91
|
+
"addition",
|
|
92
|
+
"bold",
|
|
93
|
+
"cite",
|
|
94
|
+
"code",
|
|
95
|
+
"deletion",
|
|
96
|
+
"em",
|
|
97
|
+
"footCite",
|
|
98
|
+
"image",
|
|
99
|
+
"italic",
|
|
100
|
+
"link",
|
|
101
|
+
"span",
|
|
102
|
+
"strong",
|
|
103
|
+
"sub",
|
|
104
|
+
"sup",
|
|
105
|
+
"table",
|
|
106
|
+
"tableHeading"
|
|
107
|
+
)), i.layoutType === "header" && n.push(f.header + "-" + i.header), n.length ? n.join(" ") : null;
|
|
108
|
+
}
|
|
109
|
+
function b(i) {
|
|
110
|
+
var e = i.layoutType;
|
|
111
|
+
switch (e) {
|
|
112
|
+
case "notextile":
|
|
113
|
+
case "code":
|
|
114
|
+
case "pre":
|
|
115
|
+
return f[e];
|
|
116
|
+
default:
|
|
117
|
+
return i.notextile ? f.notextile + (e ? " " + f[e] : "") : null;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function g(i) {
|
|
121
|
+
for (var e = [], n = 1; n < arguments.length; ++n)
|
|
122
|
+
i[arguments[n]] && e.push(f[arguments[n]]);
|
|
123
|
+
return e;
|
|
124
|
+
}
|
|
125
|
+
function m(i) {
|
|
126
|
+
var e = i.spanningLayout, n = i.layoutType;
|
|
127
|
+
for (var o in i)
|
|
128
|
+
i.hasOwnProperty(o) && delete i[o];
|
|
129
|
+
i.mode = r.newLayout, e && (i.layoutType = n, i.spanningLayout = !0);
|
|
130
|
+
}
|
|
131
|
+
var t = {
|
|
132
|
+
cache: {},
|
|
133
|
+
single: {
|
|
134
|
+
bc: "bc",
|
|
135
|
+
bq: "bq",
|
|
136
|
+
definitionList: /- .*?:=+/,
|
|
137
|
+
definitionListEnd: /.*=:\s*$/,
|
|
138
|
+
div: "div",
|
|
139
|
+
drawTable: /\|.*\|/,
|
|
140
|
+
foot: /fn\d+/,
|
|
141
|
+
header: /h[1-6]/,
|
|
142
|
+
html: /\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,
|
|
143
|
+
link: /[^"]+":\S/,
|
|
144
|
+
linkDefinition: /\[[^\s\]]+\]\S+/,
|
|
145
|
+
list: /(?:#+|\*+)/,
|
|
146
|
+
notextile: "notextile",
|
|
147
|
+
para: "p",
|
|
148
|
+
pre: "pre",
|
|
149
|
+
table: "table",
|
|
150
|
+
tableCellAttributes: /[\/\\]\d+/,
|
|
151
|
+
tableHeading: /\|_\./,
|
|
152
|
+
tableText: /[^"_\*\[\(\?\+~\^%@|-]+/,
|
|
153
|
+
text: /[^!"_=\*\[\(<\?\+~\^%@-]+/
|
|
154
|
+
},
|
|
155
|
+
attributes: {
|
|
156
|
+
align: /(?:<>|<|>|=)/,
|
|
157
|
+
selector: /\([^\(][^\)]+\)/,
|
|
158
|
+
lang: /\[[^\[\]]+\]/,
|
|
159
|
+
pad: /(?:\(+|\)+){1,2}/,
|
|
160
|
+
css: /\{[^\}]+\}/
|
|
161
|
+
},
|
|
162
|
+
createRe: function(i) {
|
|
163
|
+
switch (i) {
|
|
164
|
+
case "drawTable":
|
|
165
|
+
return t.makeRe("^", t.single.drawTable, "$");
|
|
166
|
+
case "html":
|
|
167
|
+
return t.makeRe("^", t.single.html, "(?:", t.single.html, ")*", "$");
|
|
168
|
+
case "linkDefinition":
|
|
169
|
+
return t.makeRe("^", t.single.linkDefinition, "$");
|
|
170
|
+
case "listLayout":
|
|
171
|
+
return t.makeRe("^", t.single.list, l("allAttributes"), "*\\s+");
|
|
172
|
+
case "tableCellAttributes":
|
|
173
|
+
return t.makeRe("^", t.choiceRe(
|
|
174
|
+
t.single.tableCellAttributes,
|
|
175
|
+
l("allAttributes")
|
|
176
|
+
), "+\\.");
|
|
177
|
+
case "type":
|
|
178
|
+
return t.makeRe("^", l("allTypes"));
|
|
179
|
+
case "typeLayout":
|
|
180
|
+
return t.makeRe(
|
|
181
|
+
"^",
|
|
182
|
+
l("allTypes"),
|
|
183
|
+
l("allAttributes"),
|
|
184
|
+
"*\\.\\.?",
|
|
185
|
+
"(\\s+|$)"
|
|
186
|
+
);
|
|
187
|
+
case "attributes":
|
|
188
|
+
return t.makeRe("^", l("allAttributes"), "+");
|
|
189
|
+
case "allTypes":
|
|
190
|
+
return t.choiceRe(
|
|
191
|
+
t.single.div,
|
|
192
|
+
t.single.foot,
|
|
193
|
+
t.single.header,
|
|
194
|
+
t.single.bc,
|
|
195
|
+
t.single.bq,
|
|
196
|
+
t.single.notextile,
|
|
197
|
+
t.single.pre,
|
|
198
|
+
t.single.table,
|
|
199
|
+
t.single.para
|
|
200
|
+
);
|
|
201
|
+
case "allAttributes":
|
|
202
|
+
return t.choiceRe(
|
|
203
|
+
t.attributes.selector,
|
|
204
|
+
t.attributes.css,
|
|
205
|
+
t.attributes.lang,
|
|
206
|
+
t.attributes.align,
|
|
207
|
+
t.attributes.pad
|
|
208
|
+
);
|
|
209
|
+
default:
|
|
210
|
+
return t.makeRe("^", t.single[i]);
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
makeRe: function() {
|
|
214
|
+
for (var i = "", e = 0; e < arguments.length; ++e) {
|
|
215
|
+
var n = arguments[e];
|
|
216
|
+
i += typeof n == "string" ? n : n.source;
|
|
217
|
+
}
|
|
218
|
+
return new RegExp(i);
|
|
219
|
+
},
|
|
220
|
+
choiceRe: function() {
|
|
221
|
+
for (var i = [arguments[0]], e = 1; e < arguments.length; ++e)
|
|
222
|
+
i[e * 2 - 1] = "|", i[e * 2] = arguments[e];
|
|
223
|
+
return i.unshift("(?:"), i.push(")"), t.makeRe.apply(null, i);
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
function l(i) {
|
|
227
|
+
return t.cache[i] || (t.cache[i] = t.createRe(i));
|
|
228
|
+
}
|
|
229
|
+
var r = {
|
|
230
|
+
newLayout: function(i, e) {
|
|
231
|
+
if (i.match(l("typeLayout"), !1))
|
|
232
|
+
return e.spanningLayout = !1, (e.mode = r.blockType)(i, e);
|
|
233
|
+
var n;
|
|
234
|
+
return b(e) || (i.match(l("listLayout"), !1) ? n = r.list : i.match(l("drawTable"), !1) ? n = r.table : i.match(l("linkDefinition"), !1) ? n = r.linkDefinition : i.match(l("definitionList")) ? n = r.definitionList : i.match(l("html"), !1) && (n = r.html)), (e.mode = n || r.text)(i, e);
|
|
235
|
+
},
|
|
236
|
+
blockType: function(i, e) {
|
|
237
|
+
var n, o;
|
|
238
|
+
if (e.layoutType = null, n = i.match(l("type")))
|
|
239
|
+
o = n[0];
|
|
240
|
+
else
|
|
241
|
+
return (e.mode = r.text)(i, e);
|
|
242
|
+
return (n = o.match(l("header"))) ? (e.layoutType = "header", e.header = parseInt(n[0][1])) : o.match(l("bq")) ? e.layoutType = "quote" : o.match(l("bc")) ? e.layoutType = "code" : o.match(l("foot")) ? e.layoutType = "footnote" : o.match(l("notextile")) ? e.layoutType = "notextile" : o.match(l("pre")) ? e.layoutType = "pre" : o.match(l("div")) ? e.layoutType = "div" : o.match(l("table")) && (e.layoutType = "table"), e.mode = r.attributes, u(e);
|
|
243
|
+
},
|
|
244
|
+
text: function(i, e) {
|
|
245
|
+
if (i.match(l("text")))
|
|
246
|
+
return u(e);
|
|
247
|
+
var n = i.next();
|
|
248
|
+
return n === '"' ? (e.mode = r.link)(i, e) : s(i, e, n);
|
|
249
|
+
},
|
|
250
|
+
attributes: function(i, e) {
|
|
251
|
+
return e.mode = r.layoutLength, i.match(l("attributes")) ? f.attributes : u(e);
|
|
252
|
+
},
|
|
253
|
+
layoutLength: function(i, e) {
|
|
254
|
+
return i.eat(".") && i.eat(".") && (e.spanningLayout = !0), e.mode = r.text, u(e);
|
|
255
|
+
},
|
|
256
|
+
list: function(i, e) {
|
|
257
|
+
var n = i.match(l("list"));
|
|
258
|
+
e.listDepth = n[0].length;
|
|
259
|
+
var o = (e.listDepth - 1) % 3;
|
|
260
|
+
return o ? o === 1 ? e.layoutType = "list2" : e.layoutType = "list3" : e.layoutType = "list1", e.mode = r.attributes, u(e);
|
|
261
|
+
},
|
|
262
|
+
link: function(i, e) {
|
|
263
|
+
return e.mode = r.text, i.match(l("link")) ? (i.match(/\S+/), f.link) : u(e);
|
|
264
|
+
},
|
|
265
|
+
linkDefinition: function(i) {
|
|
266
|
+
return i.skipToEnd(), f.linkDefinition;
|
|
267
|
+
},
|
|
268
|
+
definitionList: function(i, e) {
|
|
269
|
+
return i.match(l("definitionList")), e.layoutType = "definitionList", i.match(/\s*$/) ? e.spanningLayout = !0 : e.mode = r.attributes, u(e);
|
|
270
|
+
},
|
|
271
|
+
html: function(i) {
|
|
272
|
+
return i.skipToEnd(), f.html;
|
|
273
|
+
},
|
|
274
|
+
table: function(i, e) {
|
|
275
|
+
return e.layoutType = "table", (e.mode = r.tableCell)(i, e);
|
|
276
|
+
},
|
|
277
|
+
tableCell: function(i, e) {
|
|
278
|
+
return i.match(l("tableHeading")) ? e.tableHeading = !0 : i.eat("|"), e.mode = r.tableCellAttributes, u(e);
|
|
279
|
+
},
|
|
280
|
+
tableCellAttributes: function(i, e) {
|
|
281
|
+
return e.mode = r.tableText, i.match(l("tableCellAttributes")) ? f.attributes : u(e);
|
|
282
|
+
},
|
|
283
|
+
tableText: function(i, e) {
|
|
284
|
+
return i.match(l("tableText")) ? u(e) : i.peek() === "|" ? (e.mode = r.tableCell, u(e)) : s(i, e, i.next());
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
const k = {
|
|
288
|
+
name: "textile",
|
|
289
|
+
startState: function() {
|
|
290
|
+
return { mode: r.newLayout };
|
|
291
|
+
},
|
|
292
|
+
token: function(i, e) {
|
|
293
|
+
return i.sol() && h(i, e), e.mode(i, e);
|
|
294
|
+
},
|
|
295
|
+
blankLine: m
|
|
296
|
+
};
|
|
297
|
+
export {
|
|
298
|
+
k as textile
|
|
299
|
+
};
|