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.
Files changed (153) hide show
  1. package/README.md +12 -29
  2. package/dist/{add-hT59kaby.mjs → add-EoHoyHmQ.mjs} +1 -1
  3. package/dist/alert-k2rZ-pm2.mjs +53 -0
  4. package/dist/apl-p0IPP13W.mjs +76 -0
  5. package/dist/asciiarmor-lJsBxlJJ.mjs +34 -0
  6. package/dist/asn1-Q9v1zIy5.mjs +102 -0
  7. package/dist/asterisk-foNkeTjy.mjs +273 -0
  8. package/dist/brainfuck-0XqyXpNS.mjs +35 -0
  9. package/dist/{button-GY4d9Y6s.mjs → button-9A6flrTc.mjs} +1 -1
  10. package/dist/{card-bnWsX8LP.mjs → card-l2TDXmyi.mjs} +1 -1
  11. package/dist/{cascader-cQst1g0E.mjs → cascader-f8QsYkto.mjs} +1 -1
  12. package/dist/{checkbox-JWtn28zw.mjs → checkbox-QUwlzHGM.mjs} +1 -1
  13. package/dist/clike-ak6Z6Yhe.mjs +639 -0
  14. package/dist/clojure-iYO8U8Sg.mjs +810 -0
  15. package/dist/cmake-SVzjkxV_.mjs +28 -0
  16. package/dist/cobol-APHEnAOX.mjs +74 -0
  17. package/dist/coffeescript-KqQa0SYG.mjs +182 -0
  18. package/dist/{colorPicker-93LeRPg9.mjs → colorPicker-x6N46_O2.mjs} +1 -1
  19. package/dist/commonlisp-bwqNqR5V.mjs +79 -0
  20. package/dist/crystal-BViWuDpA.mjs +217 -0
  21. package/dist/css-KHXHXfXg.mjs +1572 -0
  22. package/dist/cypher-XpTt4zQ3.mjs +69 -0
  23. package/dist/d-fLig6yqY.mjs +139 -0
  24. package/dist/datePicker-j8yNXBHs.mjs +50 -0
  25. package/dist/{delete-f_cJBSDh.mjs → delete-xBVATMBo.mjs} +1 -1
  26. package/dist/{design-yP5EOwhK.mjs → design-x1NREnN9.mjs} +1 -1
  27. package/dist/diff-WoKGLpy6.mjs +18 -0
  28. package/dist/dockerfile-P8izJOAf.mjs +194 -0
  29. package/dist/{document-uyarkumr.mjs → document-O73HbdUh.mjs} +1 -1
  30. package/dist/dtd-SIJRUW6K.mjs +91 -0
  31. package/dist/dylan-4HCLhpWP.mjs +238 -0
  32. package/dist/ebnf-h_0lged5.mjs +77 -0
  33. package/dist/ecl-Lf4FF0lf.mjs +133 -0
  34. package/dist/eiffel-qlw8KUyf.mjs +112 -0
  35. package/dist/elm-QRnB3zXs.mjs +108 -0
  36. package/dist/erlang-fyVKb7eK.mjs +488 -0
  37. package/dist/factor-Uq0_GFro.mjs +65 -0
  38. package/dist/fcl-lRek3hEb.mjs +106 -0
  39. package/dist/{formList-F8r2l1dB.mjs → formList-hPtEP4Ky.mjs} +1 -1
  40. package/dist/forth-ua2bRd8T.mjs +60 -0
  41. package/dist/fortran-WnF7znuN.mjs +443 -0
  42. package/dist/gas-wowve1o7.mjs +183 -0
  43. package/dist/gherkin-m7GIChu3.mjs +34 -0
  44. package/dist/{github-fWRoD_no.mjs → github-KoINobLU.mjs} +1 -1
  45. package/dist/go-th443Dhb.mjs +158 -0
  46. package/dist/groovy-tR4RiZnc.mjs +161 -0
  47. package/dist/haskell-jxVBofv5.mjs +375 -0
  48. package/dist/haxe-kWPI2tq3.mjs +390 -0
  49. package/dist/{help-R2LNu7-e.mjs → help-749fhL2P.mjs} +1 -1
  50. package/dist/http-3GIFWUlG.mjs +45 -0
  51. package/dist/idl-PvpMZg-l.mjs +947 -0
  52. package/dist/index-2tOJGL07.mjs +546 -0
  53. package/dist/index-4wIoK2RV.mjs +76 -0
  54. package/dist/index-M2pAYnZp.mjs +283 -0
  55. package/dist/index-NVqZrKkn.mjs +514 -0
  56. package/dist/index-VLqU2s7k.mjs +99 -0
  57. package/dist/index-WbISJBFk.mjs +269 -0
  58. package/dist/index-bbmdPhh5.mjs +163 -0
  59. package/dist/index-hlA8jpbU.mjs +72 -0
  60. package/dist/index-k-kmrmDd.mjs +59 -0
  61. package/dist/index-n44sZXuD.mjs +94 -0
  62. package/dist/index-p8r3iIzE.mjs +135 -0
  63. package/dist/index-tLyNcnK8.mjs +141 -0
  64. package/dist/index-xJCbZsUA.mjs +315 -0
  65. package/dist/{inline-gwroQeui.mjs → inline-LgsKoZk8.mjs} +1 -1
  66. package/dist/{input-P8xcJTDu.mjs → input-w22Mgu7d.mjs} +1 -1
  67. package/dist/{inputNumber-Gq34hoEc.mjs → inputNumber-P71Xzdju.mjs} +1 -1
  68. package/dist/{itemGroup-h-VYg8H6.mjs → itemGroup-F537CR5s.mjs} +1 -1
  69. package/dist/javascript-8ZHqHagw.mjs +758 -0
  70. package/dist/jinja2-vsOFe0qD.mjs +154 -0
  71. package/dist/{jsonEdit-qjj06Ro-.mjs → jsonEdit-SFTAL9sz.mjs} +1 -1
  72. package/dist/julia-dlp_pbN1.mjs +241 -0
  73. package/dist/{library-xpeMt_p0.mjs → library-um2AxRlt.mjs} +1 -1
  74. package/dist/livescript-Gf5R-LT6.mjs +273 -0
  75. package/dist/lua-c5Y_JsBp.mjs +221 -0
  76. package/dist/markdown-WScJtLZn.mjs +31 -0
  77. package/dist/mathematica-iiGTGmUs.mjs +35 -0
  78. package/dist/mbox-ZJh86H8B.mjs +78 -0
  79. package/dist/md/FormDesignDoc.md +44 -0
  80. package/dist/md/globalConfig.md +22 -0
  81. package/dist/md/introduce.md +13 -0
  82. package/dist/md/linkage.md +229 -0
  83. package/dist/md/lowCode.md +24 -0
  84. package/dist/md/schema.md +72 -0
  85. package/dist/md/schemaFormDoc.md +198 -2
  86. package/dist/md/start.md +5 -5
  87. package/dist/mirc-i0qkCa0y.mjs +73 -0
  88. package/dist/mllike-Dy551fZW.mjs +275 -0
  89. package/dist/modelica-n6tGqUT9.mjs +94 -0
  90. package/dist/{move-7E4__Mf7.mjs → move-xFoKuPa4.mjs} +1 -1
  91. package/dist/mscgen-aKSbB7D9.mjs +104 -0
  92. package/dist/mumps-lNiKA6sp.mjs +25 -0
  93. package/dist/nginx--YmuCfDj.mjs +93 -0
  94. package/dist/nsis-gURxwqa7.mjs +62 -0
  95. package/dist/ntriples-E3jQl3MC.mjs +79 -0
  96. package/dist/octave-EQvkGIeG.mjs +144 -0
  97. package/dist/oz-W2cpqFf6.mjs +152 -0
  98. package/dist/pascal-lCh6ouNZ.mjs +79 -0
  99. package/dist/{password-Rw7e5EfW.mjs → password-smRUbj5j.mjs} +1 -1
  100. package/dist/perl-PxEQBX0B.mjs +915 -0
  101. package/dist/pig-Y_bNcrzS.mjs +56 -0
  102. package/dist/powershell-GaQP-TZr.mjs +249 -0
  103. package/dist/properties-mbRyn54L.mjs +26 -0
  104. package/dist/protobuf-8CJideyJ.mjs +49 -0
  105. package/dist/puppet-ABBaChNZ.mjs +45 -0
  106. package/dist/python-sKdHg3Ka.mjs +321 -0
  107. package/dist/q-_1yG40Nm.mjs +89 -0
  108. package/dist/r-Ziz56bHT.mjs +108 -0
  109. package/dist/{radio-kIExfw7_.mjs → radio-i8Osy06n.mjs} +1 -1
  110. package/dist/{reduce-M0s3xS0f.mjs → reduce-_8z_bJSl.mjs} +1 -1
  111. package/dist/release-S-TGj6yv.mjs +79353 -0
  112. package/dist/rpm-ORjGOHaQ.mjs +57 -0
  113. package/dist/ruby-jlbYq0dT.mjs +233 -0
  114. package/dist/sas-2n7xeUuO.mjs +107 -0
  115. package/dist/scheme-XCs-NPeU.mjs +126 -0
  116. package/dist/{select-S_MiU4fC.mjs → select-6cxe4XOq.mjs} +1 -1
  117. package/dist/shell-0_1Um7Dq.mjs +184 -0
  118. package/dist/sieve-7uyJD1x1.mjs +73 -0
  119. package/dist/simple-mode--HIzBxba.mjs +95 -0
  120. package/dist/smalltalk-PEFzrlQ-.mjs +48 -0
  121. package/dist/solr-BLBaHahN.mjs +41 -0
  122. package/dist/sparql-4F9ZWf1b.mjs +204 -0
  123. package/dist/spreadsheet-SGSo6blj.mjs +49 -0
  124. package/dist/sql-tebLBzN0.mjs +291 -0
  125. package/dist/stex-SFJcFGOO.mjs +130 -0
  126. package/dist/style.css +1 -1
  127. package/dist/stylus-rwwWYWFm.mjs +256 -0
  128. package/dist/swift-eorJ0tCv.mjs +238 -0
  129. package/dist/{switch-q2ma5cBO.mjs → switch-hPyM9jf5.mjs} +1 -1
  130. package/dist/tcl-IwXMB8U4.mjs +82 -0
  131. package/dist/{textarea-kCGp6Dtp.mjs → textarea-5BvvBb9l.mjs} +1 -1
  132. package/dist/textile-ok2VyjwC.mjs +299 -0
  133. package/dist/tiddlywiki-DLhz8_pc.mjs +156 -0
  134. package/dist/tiki-DFAqFElY.mjs +183 -0
  135. package/dist/toml-ryxpTZEV.mjs +49 -0
  136. package/dist/troff-ZzZyvNct.mjs +36 -0
  137. package/dist/ttcn-6gvkqqpW.mjs +136 -0
  138. package/dist/ttcn-cfg-oSu-Dq5C.mjs +98 -0
  139. package/dist/turtle-10ofr5au.mjs +87 -0
  140. package/dist/vb-a6n6fzrD.mjs +74 -0
  141. package/dist/vbscript-dgvo8jPt.mjs +324 -0
  142. package/dist/velocity-CBncCrwO.mjs +97 -0
  143. package/dist/verilog-KlcACt6C.mjs +271 -0
  144. package/dist/vhdl-NMd7Gf35.mjs +117 -0
  145. package/dist/vue-form-craft.mjs +2 -2
  146. package/dist/vue-form-craft.umd.js +271 -148
  147. package/dist/webidl-z1UE5DN_.mjs +160 -0
  148. package/dist/xquery-hDt5jWTp.mjs +431 -0
  149. package/dist/yacas-ftgh_qwr.mjs +74 -0
  150. package/dist/yaml-DnNTfjXK.mjs +53 -0
  151. package/dist/z80-dA1PqWe1.mjs +62 -0
  152. package/package.json +8 -2
  153. package/dist/release-wq6hOrN5.mjs +0 -44293
@@ -0,0 +1,87 @@
1
+ var r;
2
+ function p(e) {
3
+ return new RegExp("^(?:" + e.join("|") + ")$", "i");
4
+ }
5
+ p([]);
6
+ var d = p(["@prefix", "@base", "a"]), f = /[*+\-<>=&|]/;
7
+ function x(e, n) {
8
+ var t = e.next();
9
+ if (r = null, t == "<" && !e.match(/^[\s\u00a0=]/, !1))
10
+ return e.match(/^[^\s\u00a0>]*>?/), "atom";
11
+ if (t == '"' || t == "'")
12
+ return n.tokenize = v(t), n.tokenize(e, n);
13
+ if (/[{}\(\),\.;\[\]]/.test(t))
14
+ return r = t, null;
15
+ if (t == "#")
16
+ return e.skipToEnd(), "comment";
17
+ if (f.test(t))
18
+ return e.eatWhile(f), null;
19
+ if (t == ":")
20
+ return "operator";
21
+ if (e.eatWhile(/[_\w\d]/), e.peek() == ":")
22
+ return "variableName.special";
23
+ var i = e.current();
24
+ return d.test(i) ? "meta" : t >= "A" && t <= "Z" ? "comment" : "keyword";
25
+ var i = e.current();
26
+ }
27
+ function v(e) {
28
+ return function(n, t) {
29
+ for (var i = !1, o; (o = n.next()) != null; ) {
30
+ if (o == e && !i) {
31
+ t.tokenize = x;
32
+ break;
33
+ }
34
+ i = !i && o == "\\";
35
+ }
36
+ return "string";
37
+ };
38
+ }
39
+ function l(e, n, t) {
40
+ e.context = { prev: e.context, indent: e.indent, col: t, type: n };
41
+ }
42
+ function c(e) {
43
+ e.indent = e.context.indent, e.context = e.context.prev;
44
+ }
45
+ const g = {
46
+ name: "turtle",
47
+ startState: function() {
48
+ return {
49
+ tokenize: x,
50
+ context: null,
51
+ indent: 0,
52
+ col: 0
53
+ };
54
+ },
55
+ token: function(e, n) {
56
+ if (e.sol() && (n.context && n.context.align == null && (n.context.align = !1), n.indent = e.indentation()), e.eatSpace())
57
+ return null;
58
+ var t = n.tokenize(e, n);
59
+ if (t != "comment" && n.context && n.context.align == null && n.context.type != "pattern" && (n.context.align = !0), r == "(")
60
+ l(n, ")", e.column());
61
+ else if (r == "[")
62
+ l(n, "]", e.column());
63
+ else if (r == "{")
64
+ l(n, "}", e.column());
65
+ else if (/[\]\}\)]/.test(r)) {
66
+ for (; n.context && n.context.type == "pattern"; )
67
+ c(n);
68
+ n.context && r == n.context.type && c(n);
69
+ } else
70
+ r == "." && n.context && n.context.type == "pattern" ? c(n) : /atom|string|variable/.test(t) && n.context && (/[\}\]]/.test(n.context.type) ? l(n, "pattern", e.column()) : n.context.type == "pattern" && !n.context.align && (n.context.align = !0, n.context.col = e.column()));
71
+ return t;
72
+ },
73
+ indent: function(e, n, t) {
74
+ var i = n && n.charAt(0), o = e.context;
75
+ if (/[\]\}]/.test(i))
76
+ for (; o && o.type == "pattern"; )
77
+ o = o.prev;
78
+ var u = o && i == o.type;
79
+ return o ? o.type == "pattern" ? o.col : o.align ? o.col + (u ? 0 : 1) : o.indent + (u ? 0 : t.unit) : 0;
80
+ },
81
+ languageData: {
82
+ commentTokens: { line: "#" }
83
+ }
84
+ };
85
+ export {
86
+ g as turtle
87
+ };
@@ -0,0 +1,74 @@
1
+ var u = "error";
2
+ function o(e) {
3
+ return new RegExp("^((" + e.join(")|(") + "))\\b", "i");
4
+ }
5
+ var b = new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"), k = new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"), x = new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"), m = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"), I = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"), R = new RegExp("^[_A-Za-z][_A-Za-z0-9]*"), a = ["class", "module", "sub", "enum", "select", "while", "if", "function", "get", "set", "property", "try", "structure", "synclock", "using", "with"], f = ["else", "elseif", "case", "catch", "finally"], h = ["next", "loop"], s = ["and", "andalso", "or", "orelse", "xor", "in", "not", "is", "isnot", "like"], O = o(s), v = ["#const", "#else", "#elseif", "#end", "#if", "#region", "addhandler", "addressof", "alias", "as", "byref", "byval", "cbool", "cbyte", "cchar", "cdate", "cdbl", "cdec", "cint", "clng", "cobj", "compare", "const", "continue", "csbyte", "cshort", "csng", "cstr", "cuint", "culng", "cushort", "declare", "default", "delegate", "dim", "directcast", "each", "erase", "error", "event", "exit", "explicit", "false", "for", "friend", "gettype", "goto", "handles", "implements", "imports", "infer", "inherits", "interface", "isfalse", "istrue", "lib", "me", "mod", "mustinherit", "mustoverride", "my", "mybase", "myclass", "namespace", "narrowing", "new", "nothing", "notinheritable", "notoverridable", "of", "off", "on", "operator", "option", "optional", "out", "overloads", "overridable", "overrides", "paramarray", "partial", "private", "protected", "public", "raiseevent", "readonly", "redim", "removehandler", "resume", "return", "shadows", "shared", "static", "step", "stop", "strict", "then", "throw", "to", "true", "trycast", "typeof", "until", "until", "when", "widening", "withevents", "writeonly"], p = ["object", "boolean", "char", "string", "byte", "sbyte", "short", "ushort", "int16", "uint16", "integer", "uinteger", "int32", "uint32", "long", "ulong", "int64", "uint64", "decimal", "single", "double", "float", "date", "datetime", "intptr", "uintptr"], z = o(v), E = o(p), C = '"', S = o(a), g = o(f), y = o(h), w = o(["end"]), T = o(["do"]);
6
+ function l(e, n) {
7
+ n.currentIndent++;
8
+ }
9
+ function c(e, n) {
10
+ n.currentIndent--;
11
+ }
12
+ function d(e, n) {
13
+ if (e.eatSpace())
14
+ return null;
15
+ var i = e.peek();
16
+ if (i === "'")
17
+ return e.skipToEnd(), "comment";
18
+ if (e.match(/^((&H)|(&O))?[0-9\.a-f]/i, !1)) {
19
+ var r = !1;
20
+ if ((e.match(/^\d*\.\d+F?/i) || e.match(/^\d+\.\d*F?/) || e.match(/^\.\d+F?/)) && (r = !0), r)
21
+ return e.eat(/J/i), "number";
22
+ var t = !1;
23
+ if (e.match(/^&H[0-9a-f]+/i) || e.match(/^&O[0-7]+/i) ? t = !0 : e.match(/^[1-9]\d*F?/) ? (e.eat(/J/i), t = !0) : e.match(/^0(?![\dx])/i) && (t = !0), t)
24
+ return e.eat(/L/i), "number";
25
+ }
26
+ return e.match(C) ? (n.tokenize = F(e.current()), n.tokenize(e, n)) : e.match(I) || e.match(m) ? null : e.match(x) || e.match(b) || e.match(O) ? "operator" : e.match(k) ? null : e.match(T) ? (l(e, n), n.doInCurrentLine = !0, "keyword") : e.match(S) ? (n.doInCurrentLine ? n.doInCurrentLine = !1 : l(e, n), "keyword") : e.match(g) ? "keyword" : e.match(w) ? (c(e, n), c(e, n), "keyword") : e.match(y) ? (c(e, n), "keyword") : e.match(E) || e.match(z) ? "keyword" : e.match(R) ? "variable" : (e.next(), u);
27
+ }
28
+ function F(e) {
29
+ var n = e.length == 1, i = "string";
30
+ return function(r, t) {
31
+ for (; !r.eol(); ) {
32
+ if (r.eatWhile(/[^'"]/), r.match(e))
33
+ return t.tokenize = d, i;
34
+ r.eat(/['"]/);
35
+ }
36
+ return n && (t.tokenize = d), i;
37
+ };
38
+ }
39
+ function K(e, n) {
40
+ var i = n.tokenize(e, n), r = e.current();
41
+ if (r === ".")
42
+ return i = n.tokenize(e, n), i === "variable" ? "variable" : u;
43
+ var t = "[({".indexOf(r);
44
+ return t !== -1 && l(e, n), t = "])}".indexOf(r), t !== -1 && c(e, n) ? u : i;
45
+ }
46
+ const L = {
47
+ name: "vb",
48
+ startState: function() {
49
+ return {
50
+ tokenize: d,
51
+ lastToken: null,
52
+ currentIndent: 0,
53
+ nextLineIndent: 0,
54
+ doInCurrentLine: !1
55
+ };
56
+ },
57
+ token: function(e, n) {
58
+ e.sol() && (n.currentIndent += n.nextLineIndent, n.nextLineIndent = 0, n.doInCurrentLine = 0);
59
+ var i = K(e, n);
60
+ return n.lastToken = { style: i, content: e.current() }, i;
61
+ },
62
+ indent: function(e, n, i) {
63
+ var r = n.replace(/^\s+|\s+$/g, "");
64
+ return r.match(y) || r.match(w) || r.match(g) ? i.unit * (e.currentIndent - 1) : e.currentIndent < 0 ? 0 : e.currentIndent * i.unit;
65
+ },
66
+ languageData: {
67
+ closeBrackets: { brackets: ["(", "[", "{", '"'] },
68
+ commentTokens: { line: "'" },
69
+ autocomplete: a.concat(f).concat(h).concat(s).concat(v).concat(p)
70
+ }
71
+ };
72
+ export {
73
+ L as vb
74
+ };
@@ -0,0 +1,324 @@
1
+ function p(h) {
2
+ var v = "error";
3
+ function i(e) {
4
+ return new RegExp("^((" + e.join(")|(") + "))\\b", "i");
5
+ }
6
+ var y = new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"), g = new RegExp("^((<>)|(<=)|(>=))"), m = new RegExp("^[\\.,]"), w = new RegExp("^[\\(\\)]"), k = new RegExp("^[A-Za-z][_A-Za-z0-9]*"), x = ["class", "sub", "select", "while", "if", "function", "property", "with", "for"], C = ["else", "elseif", "case"], I = ["next", "loop", "wend"], S = i(["and", "or", "not", "xor", "is", "mod", "eqv", "imp"]), O = [
7
+ "dim",
8
+ "redim",
9
+ "then",
10
+ "until",
11
+ "randomize",
12
+ "byval",
13
+ "byref",
14
+ "new",
15
+ "property",
16
+ "exit",
17
+ "in",
18
+ "const",
19
+ "private",
20
+ "public",
21
+ "get",
22
+ "set",
23
+ "let",
24
+ "stop",
25
+ "on error resume next",
26
+ "on error goto 0",
27
+ "option explicit",
28
+ "call",
29
+ "me"
30
+ ], D = ["true", "false", "nothing", "empty", "null"], R = [
31
+ "abs",
32
+ "array",
33
+ "asc",
34
+ "atn",
35
+ "cbool",
36
+ "cbyte",
37
+ "ccur",
38
+ "cdate",
39
+ "cdbl",
40
+ "chr",
41
+ "cint",
42
+ "clng",
43
+ "cos",
44
+ "csng",
45
+ "cstr",
46
+ "date",
47
+ "dateadd",
48
+ "datediff",
49
+ "datepart",
50
+ "dateserial",
51
+ "datevalue",
52
+ "day",
53
+ "escape",
54
+ "eval",
55
+ "execute",
56
+ "exp",
57
+ "filter",
58
+ "formatcurrency",
59
+ "formatdatetime",
60
+ "formatnumber",
61
+ "formatpercent",
62
+ "getlocale",
63
+ "getobject",
64
+ "getref",
65
+ "hex",
66
+ "hour",
67
+ "inputbox",
68
+ "instr",
69
+ "instrrev",
70
+ "int",
71
+ "fix",
72
+ "isarray",
73
+ "isdate",
74
+ "isempty",
75
+ "isnull",
76
+ "isnumeric",
77
+ "isobject",
78
+ "join",
79
+ "lbound",
80
+ "lcase",
81
+ "left",
82
+ "len",
83
+ "loadpicture",
84
+ "log",
85
+ "ltrim",
86
+ "rtrim",
87
+ "trim",
88
+ "maths",
89
+ "mid",
90
+ "minute",
91
+ "month",
92
+ "monthname",
93
+ "msgbox",
94
+ "now",
95
+ "oct",
96
+ "replace",
97
+ "rgb",
98
+ "right",
99
+ "rnd",
100
+ "round",
101
+ "scriptengine",
102
+ "scriptenginebuildversion",
103
+ "scriptenginemajorversion",
104
+ "scriptengineminorversion",
105
+ "second",
106
+ "setlocale",
107
+ "sgn",
108
+ "sin",
109
+ "space",
110
+ "split",
111
+ "sqr",
112
+ "strcomp",
113
+ "string",
114
+ "strreverse",
115
+ "tan",
116
+ "time",
117
+ "timer",
118
+ "timeserial",
119
+ "timevalue",
120
+ "typename",
121
+ "ubound",
122
+ "ucase",
123
+ "unescape",
124
+ "vartype",
125
+ "weekday",
126
+ "weekdayname",
127
+ "year"
128
+ ], E = [
129
+ "vbBlack",
130
+ "vbRed",
131
+ "vbGreen",
132
+ "vbYellow",
133
+ "vbBlue",
134
+ "vbMagenta",
135
+ "vbCyan",
136
+ "vbWhite",
137
+ "vbBinaryCompare",
138
+ "vbTextCompare",
139
+ "vbSunday",
140
+ "vbMonday",
141
+ "vbTuesday",
142
+ "vbWednesday",
143
+ "vbThursday",
144
+ "vbFriday",
145
+ "vbSaturday",
146
+ "vbUseSystemDayOfWeek",
147
+ "vbFirstJan1",
148
+ "vbFirstFourDays",
149
+ "vbFirstFullWeek",
150
+ "vbGeneralDate",
151
+ "vbLongDate",
152
+ "vbShortDate",
153
+ "vbLongTime",
154
+ "vbShortTime",
155
+ "vbObjectError",
156
+ "vbOKOnly",
157
+ "vbOKCancel",
158
+ "vbAbortRetryIgnore",
159
+ "vbYesNoCancel",
160
+ "vbYesNo",
161
+ "vbRetryCancel",
162
+ "vbCritical",
163
+ "vbQuestion",
164
+ "vbExclamation",
165
+ "vbInformation",
166
+ "vbDefaultButton1",
167
+ "vbDefaultButton2",
168
+ "vbDefaultButton3",
169
+ "vbDefaultButton4",
170
+ "vbApplicationModal",
171
+ "vbSystemModal",
172
+ "vbOK",
173
+ "vbCancel",
174
+ "vbAbort",
175
+ "vbRetry",
176
+ "vbIgnore",
177
+ "vbYes",
178
+ "vbNo",
179
+ "vbCr",
180
+ "VbCrLf",
181
+ "vbFormFeed",
182
+ "vbLf",
183
+ "vbNewLine",
184
+ "vbNullChar",
185
+ "vbNullString",
186
+ "vbTab",
187
+ "vbVerticalTab",
188
+ "vbUseDefault",
189
+ "vbTrue",
190
+ "vbFalse",
191
+ "vbEmpty",
192
+ "vbNull",
193
+ "vbInteger",
194
+ "vbLong",
195
+ "vbSingle",
196
+ "vbDouble",
197
+ "vbCurrency",
198
+ "vbDate",
199
+ "vbString",
200
+ "vbObject",
201
+ "vbError",
202
+ "vbBoolean",
203
+ "vbVariant",
204
+ "vbDataObject",
205
+ "vbDecimal",
206
+ "vbByte",
207
+ "vbArray"
208
+ ], a = ["WScript", "err", "debug", "RegExp"], L = ["description", "firstindex", "global", "helpcontext", "helpfile", "ignorecase", "length", "number", "pattern", "source", "value", "count"], T = ["clear", "execute", "raise", "replace", "test", "write", "writeline", "close", "open", "state", "eof", "update", "addnew", "end", "createobject", "quit"], j = ["server", "response", "request", "session", "application"], F = [
209
+ "buffer",
210
+ "cachecontrol",
211
+ "charset",
212
+ "contenttype",
213
+ "expires",
214
+ "expiresabsolute",
215
+ "isclientconnected",
216
+ "pics",
217
+ "status",
218
+ //response
219
+ "clientcertificate",
220
+ "cookies",
221
+ "form",
222
+ "querystring",
223
+ "servervariables",
224
+ "totalbytes",
225
+ //request
226
+ "contents",
227
+ "staticobjects",
228
+ //application
229
+ "codepage",
230
+ "lcid",
231
+ "sessionid",
232
+ "timeout",
233
+ //session
234
+ "scripttimeout"
235
+ ], B = [
236
+ "addheader",
237
+ "appendtolog",
238
+ "binarywrite",
239
+ "end",
240
+ "flush",
241
+ "redirect",
242
+ //response
243
+ "binaryread",
244
+ //request
245
+ "remove",
246
+ "removeall",
247
+ "lock",
248
+ "unlock",
249
+ //application
250
+ "abandon",
251
+ //session
252
+ "getlasterror",
253
+ "htmlencode",
254
+ "mappath",
255
+ "transfer",
256
+ "urlencode"
257
+ ], c = T.concat(L);
258
+ a = a.concat(E), h.isASP && (a = a.concat(j), c = c.concat(B, F));
259
+ var W = i(O), z = i(D), A = i(R), K = i(a), N = i(c), M = '"', P = i(x), b = i(C), d = i(I), s = i(["end"]), q = i(["do"]), V = i(["on error resume next", "exit"]), Y = i(["rem"]);
260
+ function f(e, n) {
261
+ n.currentIndent++;
262
+ }
263
+ function u(e, n) {
264
+ n.currentIndent--;
265
+ }
266
+ function l(e, n) {
267
+ if (e.eatSpace())
268
+ return null;
269
+ var r = e.peek();
270
+ if (r === "'" || e.match(Y))
271
+ return e.skipToEnd(), "comment";
272
+ if (e.match(/^((&H)|(&O))?[0-9\.]/i, !1) && !e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i, !1)) {
273
+ var t = !1;
274
+ if ((e.match(/^\d*\.\d+/i) || e.match(/^\d+\.\d*/) || e.match(/^\.\d+/)) && (t = !0), t)
275
+ return e.eat(/J/i), "number";
276
+ var o = !1;
277
+ if (e.match(/^&H[0-9a-f]+/i) || e.match(/^&O[0-7]+/i) ? o = !0 : e.match(/^[1-9]\d*F?/) ? (e.eat(/J/i), o = !0) : e.match(/^0(?![\dx])/i) && (o = !0), o)
278
+ return e.eat(/L/i), "number";
279
+ }
280
+ return e.match(M) ? (n.tokenize = _(e.current()), n.tokenize(e, n)) : e.match(g) || e.match(y) || e.match(S) ? "operator" : e.match(m) ? null : e.match(w) ? "bracket" : e.match(V) ? (n.doInCurrentLine = !0, "keyword") : e.match(q) ? (f(e, n), n.doInCurrentLine = !0, "keyword") : e.match(P) ? (n.doInCurrentLine ? n.doInCurrentLine = !1 : f(e, n), "keyword") : e.match(b) ? "keyword" : e.match(s) ? (u(e, n), u(e, n), "keyword") : e.match(d) ? (n.doInCurrentLine ? n.doInCurrentLine = !1 : u(e, n), "keyword") : e.match(W) ? "keyword" : e.match(z) ? "atom" : e.match(N) ? "variableName.special" : e.match(A) || e.match(K) ? "builtin" : e.match(k) ? "variable" : (e.next(), v);
281
+ }
282
+ function _(e) {
283
+ var n = e.length == 1, r = "string";
284
+ return function(t, o) {
285
+ for (; !t.eol(); ) {
286
+ if (t.eatWhile(/[^'"]/), t.match(e))
287
+ return o.tokenize = l, r;
288
+ t.eat(/['"]/);
289
+ }
290
+ return n && (o.tokenize = l), r;
291
+ };
292
+ }
293
+ function H(e, n) {
294
+ var r = n.tokenize(e, n), t = e.current();
295
+ return t === "." ? (r = n.tokenize(e, n), t = e.current(), r && (r.substr(0, 8) === "variable" || r === "builtin" || r === "keyword") ? ((r === "builtin" || r === "keyword") && (r = "variable"), c.indexOf(t.substr(1)) > -1 && (r = "keyword"), r) : v) : r;
296
+ }
297
+ return {
298
+ name: "vbscript",
299
+ startState: function() {
300
+ return {
301
+ tokenize: l,
302
+ lastToken: null,
303
+ currentIndent: 0,
304
+ nextLineIndent: 0,
305
+ doInCurrentLine: !1,
306
+ ignoreKeyword: !1
307
+ };
308
+ },
309
+ token: function(e, n) {
310
+ e.sol() && (n.currentIndent += n.nextLineIndent, n.nextLineIndent = 0, n.doInCurrentLine = 0);
311
+ var r = H(e, n);
312
+ return n.lastToken = { style: r, content: e.current() }, r === null && (r = null), r;
313
+ },
314
+ indent: function(e, n, r) {
315
+ var t = n.replace(/^\s+|\s+$/g, "");
316
+ return t.match(d) || t.match(s) || t.match(b) ? r.unit * (e.currentIndent - 1) : e.currentIndent < 0 ? 0 : e.currentIndent * r.unit;
317
+ }
318
+ };
319
+ }
320
+ const J = p({}), U = p({ isASP: !0 });
321
+ export {
322
+ J as vbScript,
323
+ U as vbScriptASP
324
+ };
@@ -0,0 +1,97 @@
1
+ function u(n) {
2
+ for (var e = {}, i = n.split(" "), r = 0; r < i.length; ++r)
3
+ e[i[r]] = !0;
4
+ return e;
5
+ }
6
+ var s = u("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"), a = u("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"), c = u("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"), k = /[+\-*&%=<>!?:\/|]/;
7
+ function o(n, e, i) {
8
+ return e.tokenize = i, i(n, e);
9
+ }
10
+ function t(n, e) {
11
+ var i = e.beforeParams;
12
+ e.beforeParams = !1;
13
+ var r = n.next();
14
+ if (r == "'" && !e.inString && e.inParams)
15
+ return e.lastTokenWasBuiltin = !1, o(n, e, p(r));
16
+ if (r == '"') {
17
+ if (e.lastTokenWasBuiltin = !1, e.inString)
18
+ return e.inString = !1, "string";
19
+ if (e.inParams)
20
+ return o(n, e, p(r));
21
+ } else {
22
+ if (/[\[\]{}\(\),;\.]/.test(r))
23
+ return r == "(" && i ? e.inParams = !0 : r == ")" && (e.inParams = !1, e.lastTokenWasBuiltin = !0), null;
24
+ if (/\d/.test(r))
25
+ return e.lastTokenWasBuiltin = !1, n.eatWhile(/[\w\.]/), "number";
26
+ if (r == "#" && n.eat("*"))
27
+ return e.lastTokenWasBuiltin = !1, o(n, e, h);
28
+ if (r == "#" && n.match(/ *\[ *\[/))
29
+ return e.lastTokenWasBuiltin = !1, o(n, e, b);
30
+ if (r == "#" && n.eat("#"))
31
+ return e.lastTokenWasBuiltin = !1, n.skipToEnd(), "comment";
32
+ if (r == "$")
33
+ return n.eat("!"), n.eatWhile(/[\w\d\$_\.{}-]/), c && c.propertyIsEnumerable(n.current()) ? "keyword" : (e.lastTokenWasBuiltin = !0, e.beforeParams = !0, "builtin");
34
+ if (k.test(r))
35
+ return e.lastTokenWasBuiltin = !1, n.eatWhile(k), "operator";
36
+ n.eatWhile(/[\w\$_{}@]/);
37
+ var l = n.current();
38
+ return s && s.propertyIsEnumerable(l) ? "keyword" : a && a.propertyIsEnumerable(l) || n.current().match(/^#@?[a-z0-9_]+ *$/i) && n.peek() == "(" && !(a && a.propertyIsEnumerable(l.toLowerCase())) ? (e.beforeParams = !0, e.lastTokenWasBuiltin = !1, "keyword") : e.inString ? (e.lastTokenWasBuiltin = !1, "string") : n.pos > l.length && n.string.charAt(n.pos - l.length - 1) == "." && e.lastTokenWasBuiltin ? "builtin" : (e.lastTokenWasBuiltin = !1, null);
39
+ }
40
+ }
41
+ function p(n) {
42
+ return function(e, i) {
43
+ for (var r = !1, l, f = !1; (l = e.next()) != null; ) {
44
+ if (l == n && !r) {
45
+ f = !0;
46
+ break;
47
+ }
48
+ if (n == '"' && e.peek() == "$" && !r) {
49
+ i.inString = !0, f = !0;
50
+ break;
51
+ }
52
+ r = !r && l == "\\";
53
+ }
54
+ return f && (i.tokenize = t), "string";
55
+ };
56
+ }
57
+ function h(n, e) {
58
+ for (var i = !1, r; r = n.next(); ) {
59
+ if (r == "#" && i) {
60
+ e.tokenize = t;
61
+ break;
62
+ }
63
+ i = r == "*";
64
+ }
65
+ return "comment";
66
+ }
67
+ function b(n, e) {
68
+ for (var i = 0, r; r = n.next(); ) {
69
+ if (r == "#" && i == 2) {
70
+ e.tokenize = t;
71
+ break;
72
+ }
73
+ r == "]" ? i++ : r != " " && (i = 0);
74
+ }
75
+ return "meta";
76
+ }
77
+ const W = {
78
+ name: "velocity",
79
+ startState: function() {
80
+ return {
81
+ tokenize: t,
82
+ beforeParams: !1,
83
+ inParams: !1,
84
+ inString: !1,
85
+ lastTokenWasBuiltin: !1
86
+ };
87
+ },
88
+ token: function(n, e) {
89
+ return n.eatSpace() ? null : e.tokenize(n, e);
90
+ },
91
+ languageData: {
92
+ commentTokens: { line: "##", block: { open: "#*", close: "*#" } }
93
+ }
94
+ };
95
+ export {
96
+ W as velocity
97
+ };