@vc-shell/framework 1.1.23 → 1.1.25
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/CHANGELOG.md +13 -0
- package/core/composables/useDynamicProperties/index.ts +1 -1
- package/dist/apl-B2DGVGxc.js +76 -0
- package/dist/asciiarmor-2LVJmxlE.js +34 -0
- package/dist/asn1-jKiBa2Ya.js +95 -0
- package/dist/asterisk-DS281yxp.js +271 -0
- package/dist/brainfuck-C_p9pTT8.js +34 -0
- package/dist/clike-DGTaUp48.js +620 -0
- package/dist/clojure-CCKyeQKf.js +800 -0
- package/dist/cmake-CuaCgAKt.js +28 -0
- package/dist/cobol-BlTKFDRj.js +72 -0
- package/dist/coffeescript-BVCvwO8I.js +179 -0
- package/dist/commonlisp-D_kxz07b.js +75 -0
- package/dist/core/composables/useDynamicProperties/index.d.ts +1 -2
- package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
- package/dist/crystal-D309uH6_.js +217 -0
- package/dist/css-BkF-NPzE.js +1553 -0
- package/dist/cypher-BMq4Fwjl.js +68 -0
- package/dist/d-BZcgY6La.js +127 -0
- package/dist/diff-Cg9d_RX2.js +18 -0
- package/dist/dockerfile-DIy8NleC.js +194 -0
- package/dist/dtd-CtLokQ-U.js +84 -0
- package/dist/dylan-QYeExnWK.js +234 -0
- package/dist/ebnf-DUPDuY4r.js +78 -0
- package/dist/ecl-CiXN-g_D.js +121 -0
- package/dist/eiffel-yQhjl4T1.js +110 -0
- package/dist/elm-CNT9vbN0.js +108 -0
- package/dist/erlang-CFOYdy9e.js +487 -0
- package/dist/factor-DDOC7X6P.js +65 -0
- package/dist/fcl-CPC2WYrI.js +103 -0
- package/dist/forth-BmxRyE9S.js +60 -0
- package/dist/fortran-9bvPyrOW.js +442 -0
- package/dist/framework.js +290 -0
- package/dist/gas-cpmYfFX2.js +183 -0
- package/dist/gherkin-CJuwpceU.js +34 -0
- package/dist/groovy-DZeT_VM-.js +146 -0
- package/dist/haskell-Bvt3Qq1t.js +375 -0
- package/dist/haxe-70NVW1pR.js +359 -0
- package/dist/http-D9LttvKF.js +44 -0
- package/dist/idl-B6TRFYjl.js +947 -0
- package/dist/index-BLmjssqE.js +58 -0
- package/dist/index-BYcoxn-f.js +611 -0
- package/dist/index-BbuBDu8A.js +134 -0
- package/dist/index-BnqqEJTE.js +156 -0
- package/dist/index-Br7ZwtRW.js +341 -0
- package/dist/index-CGL9e-cM.js +137 -0
- package/dist/index-CIzLBvgg.js +98 -0
- package/dist/index-CLAYu8Qj.js +71 -0
- package/dist/index-CRwMOCjN.js +288 -0
- package/dist/index-Cmbxdwnl.js +538 -0
- package/dist/index-Cxkjjuah.js +308 -0
- package/dist/index-DAnceKLv.js +249 -0
- package/dist/index-Dk1K3-27.js +299 -0
- package/dist/index-DoArZBIw.js +268 -0
- package/dist/index-DvenBxy6.js +147760 -0
- package/dist/index-cuex9jil.js +93 -0
- package/dist/index-eOG-NNYN.js +75 -0
- package/dist/index.css +9 -0
- package/dist/javascript-C2yteZeJ.js +691 -0
- package/dist/jinja2-DnB6dQmV.js +154 -0
- package/dist/julia-DpvXAuO6.js +241 -0
- package/dist/livescript-CanGTf8u.js +272 -0
- package/dist/lua-XplVlWi_.js +217 -0
- package/dist/mathematica-jaRHnSxC.js +35 -0
- package/dist/mbox-BctzC1hL.js +76 -0
- package/dist/mirc-CFBPAOaF.js +72 -0
- package/dist/mllike-BSnXJBGA.js +272 -0
- package/dist/modelica-vUgVs--1.js +93 -0
- package/dist/mscgen-Cpl0NYLN.js +104 -0
- package/dist/mumps-CQoS1kWX.js +25 -0
- package/dist/nginx-zDPm3Z74.js +89 -0
- package/dist/nsis-fePjrhq7.js +62 -0
- package/dist/ntriples-CsNjv2QF.js +79 -0
- package/dist/octave-C8PmmSRH.js +143 -0
- package/dist/oz-Ce8aN8oE.js +151 -0
- package/dist/pascal-De0D6mP7.js +77 -0
- package/dist/perl-B4bSCe1C.js +915 -0
- package/dist/pig-D24Z8EXi.js +54 -0
- package/dist/powershell-DkYVfTzP.js +249 -0
- package/dist/properties-Dn9wna3M.js +26 -0
- package/dist/protobuf-BPIjwpzm.js +49 -0
- package/dist/pug-CwAQJzGR.js +248 -0
- package/dist/puppet-nyd4dhjf.js +45 -0
- package/dist/python-BkR3uSy8.js +313 -0
- package/dist/q-DXjKs-tC.js +83 -0
- package/dist/r-LKEuhEGI.js +104 -0
- package/dist/rpm-IznJm2Xc.js +57 -0
- package/dist/ruby-CcYfvIk6.js +228 -0
- package/dist/sas-7E8yHoCW.js +105 -0
- package/dist/scheme-DjibxsNh.js +124 -0
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +6 -6
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
- package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts +102 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +131 -0
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/shell-C0C2sNA_.js +182 -0
- package/dist/sieve-Bwz7vjP5.js +72 -0
- package/dist/simple-mode-B0dvCdAA.js +89 -0
- package/dist/smalltalk-Bhddl2pB.js +48 -0
- package/dist/solr-BNlsLglM.js +41 -0
- package/dist/sparql-FarWu_Gb.js +197 -0
- package/dist/spreadsheet-C-cy4P5N.js +49 -0
- package/dist/sql-CfG5lQ3l.js +282 -0
- package/dist/stex-Du4h4KAU.js +129 -0
- package/dist/stylus-CAdqWld3.js +250 -0
- package/dist/swift-DSxqR9R6.js +230 -0
- package/dist/tcl-xfoLljhY.js +81 -0
- package/dist/textile-D1AWE-pc.js +295 -0
- package/dist/tiddlywiki-5wqsXtSk.js +155 -0
- package/dist/tiki-__Kn3CeS.js +181 -0
- package/dist/toml-BHiuTcfn.js +49 -0
- package/dist/troff-D2UO-fKf.js +35 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ttcn-Bsa4sfRm.js +123 -0
- package/dist/ttcn-cfg-Bac_acMi.js +88 -0
- package/dist/turtle-xwJUxoPV.js +80 -0
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.backupsb.d.ts +3 -3
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/vb-c2kQGd6-.js +74 -0
- package/dist/vbscript-1f_Dhg5H.js +324 -0
- package/dist/velocity-DJd0pTTC.js +96 -0
- package/dist/verilog-CiS1jyi5.js +262 -0
- package/dist/vhdl-T9HkrbI2.js +106 -0
- package/dist/webidl-CjfDENEo.js +155 -0
- package/dist/xquery-BUQdORAS.js +422 -0
- package/dist/yacas-C0absKBh.js +73 -0
- package/dist/z80-Pki2zAjW.js +61 -0
- package/package.json +4 -4
- package/ui/components/atoms/vc-icon/vc-icon.vue +5 -10
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
function s(r) {
|
|
2
|
+
for (var n = {}, t = r.split(" "), e = 0; e < t.length; ++e) n[t[e]] = !0;
|
|
3
|
+
return n;
|
|
4
|
+
}
|
|
5
|
+
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 = /[+\-*&%=<>!?^\/\|]/;
|
|
6
|
+
function i(r, n, t) {
|
|
7
|
+
return n.tokenize = t, t(r, n);
|
|
8
|
+
}
|
|
9
|
+
function o(r, n) {
|
|
10
|
+
var t = n.beforeParams;
|
|
11
|
+
n.beforeParams = !1;
|
|
12
|
+
var e = r.next();
|
|
13
|
+
if ((e == '"' || e == "'") && n.inParams)
|
|
14
|
+
return i(r, n, p(e));
|
|
15
|
+
if (/[\[\]{}\(\),;\.]/.test(e))
|
|
16
|
+
return e == "(" && t ? n.inParams = !0 : e == ")" && (n.inParams = !1), null;
|
|
17
|
+
if (/\d/.test(e))
|
|
18
|
+
return r.eatWhile(/[\w\.]/), "number";
|
|
19
|
+
if (e == "#")
|
|
20
|
+
return r.eat("*") ? i(r, n, d) : e == "#" && r.match(/ *\[ *\[/) ? i(r, n, k) : (r.skipToEnd(), "comment");
|
|
21
|
+
if (e == '"')
|
|
22
|
+
return r.skipTo(/"/), "comment";
|
|
23
|
+
if (e == "$")
|
|
24
|
+
return r.eatWhile(/[$_a-z0-9A-Z\.{:]/), r.eatWhile(/}/), n.beforeParams = !0, "builtin";
|
|
25
|
+
if (c.test(e))
|
|
26
|
+
return r.eatWhile(c), "comment";
|
|
27
|
+
r.eatWhile(/[\w\$_{}\xa1-\uffff]/);
|
|
28
|
+
var a = r.current().toLowerCase();
|
|
29
|
+
return f && f.propertyIsEnumerable(a) ? "keyword" : u && u.propertyIsEnumerable(a) ? (n.beforeParams = !0, "keyword") : null;
|
|
30
|
+
}
|
|
31
|
+
function p(r) {
|
|
32
|
+
return function(n, t) {
|
|
33
|
+
for (var e = !1, a, l = !1; (a = n.next()) != null; ) {
|
|
34
|
+
if (a == r && !e) {
|
|
35
|
+
l = !0;
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
e = !e && a == "\\";
|
|
39
|
+
}
|
|
40
|
+
return l && (t.tokenize = o), "string";
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function d(r, n) {
|
|
44
|
+
for (var t = !1, e; e = r.next(); ) {
|
|
45
|
+
if (e == "#" && t) {
|
|
46
|
+
n.tokenize = o;
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
t = e == "*";
|
|
50
|
+
}
|
|
51
|
+
return "comment";
|
|
52
|
+
}
|
|
53
|
+
function k(r, n) {
|
|
54
|
+
for (var t = 0, e; e = r.next(); ) {
|
|
55
|
+
if (e == "#" && t == 2) {
|
|
56
|
+
n.tokenize = o;
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
e == "]" ? t++ : e != " " && (t = 0);
|
|
60
|
+
}
|
|
61
|
+
return "meta";
|
|
62
|
+
}
|
|
63
|
+
const m = {
|
|
64
|
+
name: "tcl",
|
|
65
|
+
startState: function() {
|
|
66
|
+
return {
|
|
67
|
+
tokenize: o,
|
|
68
|
+
beforeParams: !1,
|
|
69
|
+
inParams: !1
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
token: function(r, n) {
|
|
73
|
+
return r.eatSpace() ? null : n.tokenize(r, n);
|
|
74
|
+
},
|
|
75
|
+
languageData: {
|
|
76
|
+
commentTokens: { line: "#" }
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
m as tcl
|
|
81
|
+
};
|
|
@@ -0,0 +1,295 @@
|
|
|
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 (!d || /\W/.test(d)) && p && /\S/.test(p) && i.match(new RegExp("^.*\\S" + o.source + "(?:\\W|$)"), !1) && (e[n] = !0, e.mode = r.attributes);
|
|
81
|
+
return u(e);
|
|
82
|
+
}
|
|
83
|
+
function u(i) {
|
|
84
|
+
var e = b(i);
|
|
85
|
+
if (e) return e;
|
|
86
|
+
var n = [];
|
|
87
|
+
return i.layoutType && n.push(f[i.layoutType]), n = n.concat(g(
|
|
88
|
+
i,
|
|
89
|
+
"addition",
|
|
90
|
+
"bold",
|
|
91
|
+
"cite",
|
|
92
|
+
"code",
|
|
93
|
+
"deletion",
|
|
94
|
+
"em",
|
|
95
|
+
"footCite",
|
|
96
|
+
"image",
|
|
97
|
+
"italic",
|
|
98
|
+
"link",
|
|
99
|
+
"span",
|
|
100
|
+
"strong",
|
|
101
|
+
"sub",
|
|
102
|
+
"sup",
|
|
103
|
+
"table",
|
|
104
|
+
"tableHeading"
|
|
105
|
+
)), i.layoutType === "header" && n.push(f.header + "-" + i.header), n.length ? n.join(" ") : null;
|
|
106
|
+
}
|
|
107
|
+
function b(i) {
|
|
108
|
+
var e = i.layoutType;
|
|
109
|
+
switch (e) {
|
|
110
|
+
case "notextile":
|
|
111
|
+
case "code":
|
|
112
|
+
case "pre":
|
|
113
|
+
return f[e];
|
|
114
|
+
default:
|
|
115
|
+
return i.notextile ? f.notextile + (e ? " " + f[e] : "") : null;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function g(i) {
|
|
119
|
+
for (var e = [], n = 1; n < arguments.length; ++n)
|
|
120
|
+
i[arguments[n]] && e.push(f[arguments[n]]);
|
|
121
|
+
return e;
|
|
122
|
+
}
|
|
123
|
+
function m(i) {
|
|
124
|
+
var e = i.spanningLayout, n = i.layoutType;
|
|
125
|
+
for (var o in i) i.hasOwnProperty(o) && delete i[o];
|
|
126
|
+
i.mode = r.newLayout, e && (i.layoutType = n, i.spanningLayout = !0);
|
|
127
|
+
}
|
|
128
|
+
var t = {
|
|
129
|
+
cache: {},
|
|
130
|
+
single: {
|
|
131
|
+
bc: "bc",
|
|
132
|
+
bq: "bq",
|
|
133
|
+
definitionList: /- .*?:=+/,
|
|
134
|
+
definitionListEnd: /.*=:\s*$/,
|
|
135
|
+
div: "div",
|
|
136
|
+
drawTable: /\|.*\|/,
|
|
137
|
+
foot: /fn\d+/,
|
|
138
|
+
header: /h[1-6]/,
|
|
139
|
+
html: /\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,
|
|
140
|
+
link: /[^"]+":\S/,
|
|
141
|
+
linkDefinition: /\[[^\s\]]+\]\S+/,
|
|
142
|
+
list: /(?:#+|\*+)/,
|
|
143
|
+
notextile: "notextile",
|
|
144
|
+
para: "p",
|
|
145
|
+
pre: "pre",
|
|
146
|
+
table: "table",
|
|
147
|
+
tableCellAttributes: /[\/\\]\d+/,
|
|
148
|
+
tableHeading: /\|_\./,
|
|
149
|
+
tableText: /[^"_\*\[\(\?\+~\^%@|-]+/,
|
|
150
|
+
text: /[^!"_=\*\[\(<\?\+~\^%@-]+/
|
|
151
|
+
},
|
|
152
|
+
attributes: {
|
|
153
|
+
align: /(?:<>|<|>|=)/,
|
|
154
|
+
selector: /\([^\(][^\)]+\)/,
|
|
155
|
+
lang: /\[[^\[\]]+\]/,
|
|
156
|
+
pad: /(?:\(+|\)+){1,2}/,
|
|
157
|
+
css: /\{[^\}]+\}/
|
|
158
|
+
},
|
|
159
|
+
createRe: function(i) {
|
|
160
|
+
switch (i) {
|
|
161
|
+
case "drawTable":
|
|
162
|
+
return t.makeRe("^", t.single.drawTable, "$");
|
|
163
|
+
case "html":
|
|
164
|
+
return t.makeRe("^", t.single.html, "(?:", t.single.html, ")*", "$");
|
|
165
|
+
case "linkDefinition":
|
|
166
|
+
return t.makeRe("^", t.single.linkDefinition, "$");
|
|
167
|
+
case "listLayout":
|
|
168
|
+
return t.makeRe("^", t.single.list, l("allAttributes"), "*\\s+");
|
|
169
|
+
case "tableCellAttributes":
|
|
170
|
+
return t.makeRe("^", t.choiceRe(
|
|
171
|
+
t.single.tableCellAttributes,
|
|
172
|
+
l("allAttributes")
|
|
173
|
+
), "+\\.");
|
|
174
|
+
case "type":
|
|
175
|
+
return t.makeRe("^", l("allTypes"));
|
|
176
|
+
case "typeLayout":
|
|
177
|
+
return t.makeRe(
|
|
178
|
+
"^",
|
|
179
|
+
l("allTypes"),
|
|
180
|
+
l("allAttributes"),
|
|
181
|
+
"*\\.\\.?",
|
|
182
|
+
"(\\s+|$)"
|
|
183
|
+
);
|
|
184
|
+
case "attributes":
|
|
185
|
+
return t.makeRe("^", l("allAttributes"), "+");
|
|
186
|
+
case "allTypes":
|
|
187
|
+
return t.choiceRe(
|
|
188
|
+
t.single.div,
|
|
189
|
+
t.single.foot,
|
|
190
|
+
t.single.header,
|
|
191
|
+
t.single.bc,
|
|
192
|
+
t.single.bq,
|
|
193
|
+
t.single.notextile,
|
|
194
|
+
t.single.pre,
|
|
195
|
+
t.single.table,
|
|
196
|
+
t.single.para
|
|
197
|
+
);
|
|
198
|
+
case "allAttributes":
|
|
199
|
+
return t.choiceRe(
|
|
200
|
+
t.attributes.selector,
|
|
201
|
+
t.attributes.css,
|
|
202
|
+
t.attributes.lang,
|
|
203
|
+
t.attributes.align,
|
|
204
|
+
t.attributes.pad
|
|
205
|
+
);
|
|
206
|
+
default:
|
|
207
|
+
return t.makeRe("^", t.single[i]);
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
makeRe: function() {
|
|
211
|
+
for (var i = "", e = 0; e < arguments.length; ++e) {
|
|
212
|
+
var n = arguments[e];
|
|
213
|
+
i += typeof n == "string" ? n : n.source;
|
|
214
|
+
}
|
|
215
|
+
return new RegExp(i);
|
|
216
|
+
},
|
|
217
|
+
choiceRe: function() {
|
|
218
|
+
for (var i = [arguments[0]], e = 1; e < arguments.length; ++e)
|
|
219
|
+
i[e * 2 - 1] = "|", i[e * 2] = arguments[e];
|
|
220
|
+
return i.unshift("(?:"), i.push(")"), t.makeRe.apply(null, i);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
function l(i) {
|
|
224
|
+
return t.cache[i] || (t.cache[i] = t.createRe(i));
|
|
225
|
+
}
|
|
226
|
+
var r = {
|
|
227
|
+
newLayout: function(i, e) {
|
|
228
|
+
if (i.match(l("typeLayout"), !1))
|
|
229
|
+
return e.spanningLayout = !1, (e.mode = r.blockType)(i, e);
|
|
230
|
+
var n;
|
|
231
|
+
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);
|
|
232
|
+
},
|
|
233
|
+
blockType: function(i, e) {
|
|
234
|
+
var n, o;
|
|
235
|
+
if (e.layoutType = null, n = i.match(l("type")))
|
|
236
|
+
o = n[0];
|
|
237
|
+
else
|
|
238
|
+
return (e.mode = r.text)(i, e);
|
|
239
|
+
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);
|
|
240
|
+
},
|
|
241
|
+
text: function(i, e) {
|
|
242
|
+
if (i.match(l("text"))) return u(e);
|
|
243
|
+
var n = i.next();
|
|
244
|
+
return n === '"' ? (e.mode = r.link)(i, e) : s(i, e, n);
|
|
245
|
+
},
|
|
246
|
+
attributes: function(i, e) {
|
|
247
|
+
return e.mode = r.layoutLength, i.match(l("attributes")) ? f.attributes : u(e);
|
|
248
|
+
},
|
|
249
|
+
layoutLength: function(i, e) {
|
|
250
|
+
return i.eat(".") && i.eat(".") && (e.spanningLayout = !0), e.mode = r.text, u(e);
|
|
251
|
+
},
|
|
252
|
+
list: function(i, e) {
|
|
253
|
+
var n = i.match(l("list"));
|
|
254
|
+
e.listDepth = n[0].length;
|
|
255
|
+
var o = (e.listDepth - 1) % 3;
|
|
256
|
+
return o ? o === 1 ? e.layoutType = "list2" : e.layoutType = "list3" : e.layoutType = "list1", e.mode = r.attributes, u(e);
|
|
257
|
+
},
|
|
258
|
+
link: function(i, e) {
|
|
259
|
+
return e.mode = r.text, i.match(l("link")) ? (i.match(/\S+/), f.link) : u(e);
|
|
260
|
+
},
|
|
261
|
+
linkDefinition: function(i) {
|
|
262
|
+
return i.skipToEnd(), f.linkDefinition;
|
|
263
|
+
},
|
|
264
|
+
definitionList: function(i, e) {
|
|
265
|
+
return i.match(l("definitionList")), e.layoutType = "definitionList", i.match(/\s*$/) ? e.spanningLayout = !0 : e.mode = r.attributes, u(e);
|
|
266
|
+
},
|
|
267
|
+
html: function(i) {
|
|
268
|
+
return i.skipToEnd(), f.html;
|
|
269
|
+
},
|
|
270
|
+
table: function(i, e) {
|
|
271
|
+
return e.layoutType = "table", (e.mode = r.tableCell)(i, e);
|
|
272
|
+
},
|
|
273
|
+
tableCell: function(i, e) {
|
|
274
|
+
return i.match(l("tableHeading")) ? e.tableHeading = !0 : i.eat("|"), e.mode = r.tableCellAttributes, u(e);
|
|
275
|
+
},
|
|
276
|
+
tableCellAttributes: function(i, e) {
|
|
277
|
+
return e.mode = r.tableText, i.match(l("tableCellAttributes")) ? f.attributes : u(e);
|
|
278
|
+
},
|
|
279
|
+
tableText: function(i, e) {
|
|
280
|
+
return i.match(l("tableText")) ? u(e) : i.peek() === "|" ? (e.mode = r.tableCell, u(e)) : s(i, e, i.next());
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
const k = {
|
|
284
|
+
name: "textile",
|
|
285
|
+
startState: function() {
|
|
286
|
+
return { mode: r.newLayout };
|
|
287
|
+
},
|
|
288
|
+
token: function(i, e) {
|
|
289
|
+
return i.sol() && h(i, e), e.mode(i, e);
|
|
290
|
+
},
|
|
291
|
+
blankLine: m
|
|
292
|
+
};
|
|
293
|
+
export {
|
|
294
|
+
k as textile
|
|
295
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
var c = {}, l = {
|
|
2
|
+
allTags: !0,
|
|
3
|
+
closeAll: !0,
|
|
4
|
+
list: !0,
|
|
5
|
+
newJournal: !0,
|
|
6
|
+
newTiddler: !0,
|
|
7
|
+
permaview: !0,
|
|
8
|
+
saveChanges: !0,
|
|
9
|
+
search: !0,
|
|
10
|
+
slider: !0,
|
|
11
|
+
tabs: !0,
|
|
12
|
+
tag: !0,
|
|
13
|
+
tagging: !0,
|
|
14
|
+
tags: !0,
|
|
15
|
+
tiddler: !0,
|
|
16
|
+
timeline: !0,
|
|
17
|
+
today: !0,
|
|
18
|
+
version: !0,
|
|
19
|
+
option: !0,
|
|
20
|
+
with: !0,
|
|
21
|
+
filter: !0
|
|
22
|
+
}, f = /[\w_\-]/i, k = /^\-\-\-\-+$/, h = /^\/\*\*\*$/, d = /^\*\*\*\/$/, a = /^<<<$/, p = /^\/\/\{\{\{$/, w = /^\/\/\}\}\}$/, b = /^<!--\{\{\{-->$/, v = /^<!--\}\}\}-->$/, S = /^\{\{\{$/, y = /^\}\}\}$/, $ = /.*?\}\}\}/;
|
|
23
|
+
function o(e, t, r) {
|
|
24
|
+
return t.tokenize = r, r(e, t);
|
|
25
|
+
}
|
|
26
|
+
function i(e, t) {
|
|
27
|
+
var r = e.sol(), n = e.peek();
|
|
28
|
+
if (t.block = !1, r && /[<\/\*{}\-]/.test(n)) {
|
|
29
|
+
if (e.match(S))
|
|
30
|
+
return t.block = !0, o(e, t, u);
|
|
31
|
+
if (e.match(a))
|
|
32
|
+
return "quote";
|
|
33
|
+
if (e.match(h) || e.match(d) || e.match(p) || e.match(w) || e.match(b) || e.match(v))
|
|
34
|
+
return "comment";
|
|
35
|
+
if (e.match(k))
|
|
36
|
+
return "contentSeparator";
|
|
37
|
+
}
|
|
38
|
+
if (e.next(), r && /[\/\*!#;:>|]/.test(n)) {
|
|
39
|
+
if (n == "!")
|
|
40
|
+
return e.skipToEnd(), "header";
|
|
41
|
+
if (n == "*")
|
|
42
|
+
return e.eatWhile("*"), "comment";
|
|
43
|
+
if (n == "#")
|
|
44
|
+
return e.eatWhile("#"), "comment";
|
|
45
|
+
if (n == ";")
|
|
46
|
+
return e.eatWhile(";"), "comment";
|
|
47
|
+
if (n == ":")
|
|
48
|
+
return e.eatWhile(":"), "comment";
|
|
49
|
+
if (n == ">")
|
|
50
|
+
return e.eatWhile(">"), "quote";
|
|
51
|
+
if (n == "|")
|
|
52
|
+
return "header";
|
|
53
|
+
}
|
|
54
|
+
if (n == "{" && e.match("{{"))
|
|
55
|
+
return o(e, t, u);
|
|
56
|
+
if (/[hf]/i.test(n) && /[ti]/i.test(e.peek()) && e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))
|
|
57
|
+
return "link";
|
|
58
|
+
if (n == '"')
|
|
59
|
+
return "string";
|
|
60
|
+
if (n == "~" || /[\[\]]/.test(n) && e.match(n))
|
|
61
|
+
return "brace";
|
|
62
|
+
if (n == "@")
|
|
63
|
+
return e.eatWhile(f), "link";
|
|
64
|
+
if (/\d/.test(n))
|
|
65
|
+
return e.eatWhile(/\d/), "number";
|
|
66
|
+
if (n == "/") {
|
|
67
|
+
if (e.eat("%"))
|
|
68
|
+
return o(e, t, z);
|
|
69
|
+
if (e.eat("/"))
|
|
70
|
+
return o(e, t, W);
|
|
71
|
+
}
|
|
72
|
+
if (n == "_" && e.eat("_"))
|
|
73
|
+
return o(e, t, x);
|
|
74
|
+
if (n == "-" && e.eat("-")) {
|
|
75
|
+
if (e.peek() != " ")
|
|
76
|
+
return o(e, t, g);
|
|
77
|
+
if (e.peek() == " ")
|
|
78
|
+
return "brace";
|
|
79
|
+
}
|
|
80
|
+
return n == "'" && e.eat("'") ? o(e, t, C) : n == "<" && e.eat("<") ? o(e, t, T) : (e.eatWhile(/[\w\$_]/), c.propertyIsEnumerable(e.current()) ? "keyword" : null);
|
|
81
|
+
}
|
|
82
|
+
function z(e, t) {
|
|
83
|
+
for (var r = !1, n; n = e.next(); ) {
|
|
84
|
+
if (n == "/" && r) {
|
|
85
|
+
t.tokenize = i;
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
r = n == "%";
|
|
89
|
+
}
|
|
90
|
+
return "comment";
|
|
91
|
+
}
|
|
92
|
+
function C(e, t) {
|
|
93
|
+
for (var r = !1, n; n = e.next(); ) {
|
|
94
|
+
if (n == "'" && r) {
|
|
95
|
+
t.tokenize = i;
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
r = n == "'";
|
|
99
|
+
}
|
|
100
|
+
return "strong";
|
|
101
|
+
}
|
|
102
|
+
function u(e, t) {
|
|
103
|
+
var r = t.block;
|
|
104
|
+
return r && e.current() ? "comment" : !r && e.match($) || r && e.sol() && e.match(y) ? (t.tokenize = i, "comment") : (e.next(), "comment");
|
|
105
|
+
}
|
|
106
|
+
function W(e, t) {
|
|
107
|
+
for (var r = !1, n; n = e.next(); ) {
|
|
108
|
+
if (n == "/" && r) {
|
|
109
|
+
t.tokenize = i;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
r = n == "/";
|
|
113
|
+
}
|
|
114
|
+
return "emphasis";
|
|
115
|
+
}
|
|
116
|
+
function x(e, t) {
|
|
117
|
+
for (var r = !1, n; n = e.next(); ) {
|
|
118
|
+
if (n == "_" && r) {
|
|
119
|
+
t.tokenize = i;
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
r = n == "_";
|
|
123
|
+
}
|
|
124
|
+
return "link";
|
|
125
|
+
}
|
|
126
|
+
function g(e, t) {
|
|
127
|
+
for (var r = !1, n; n = e.next(); ) {
|
|
128
|
+
if (n == "-" && r) {
|
|
129
|
+
t.tokenize = i;
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
r = n == "-";
|
|
133
|
+
}
|
|
134
|
+
return "deleted";
|
|
135
|
+
}
|
|
136
|
+
function T(e, t) {
|
|
137
|
+
if (e.current() == "<<")
|
|
138
|
+
return "meta";
|
|
139
|
+
var r = e.next();
|
|
140
|
+
return r ? r == ">" && e.peek() == ">" ? (e.next(), t.tokenize = i, "meta") : (e.eatWhile(/[\w\$_]/), l.propertyIsEnumerable(e.current()) ? "keyword" : null) : (t.tokenize = i, null);
|
|
141
|
+
}
|
|
142
|
+
const m = {
|
|
143
|
+
name: "tiddlywiki",
|
|
144
|
+
startState: function() {
|
|
145
|
+
return { tokenize: i };
|
|
146
|
+
},
|
|
147
|
+
token: function(e, t) {
|
|
148
|
+
if (e.eatSpace()) return null;
|
|
149
|
+
var r = t.tokenize(e, t);
|
|
150
|
+
return r;
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
export {
|
|
154
|
+
m as tiddlyWiki
|
|
155
|
+
};
|