@milkdown/crepe 7.3.3
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/LICENSE +21 -0
- package/README.md +11 -0
- package/lib/apl-p0IPP13W.js +76 -0
- package/lib/asciiarmor-lJsBxlJJ.js +34 -0
- package/lib/asn1-Q9v1zIy5.js +102 -0
- package/lib/asterisk-foNkeTjy.js +273 -0
- package/lib/brainfuck-0XqyXpNS.js +35 -0
- package/lib/clike-ak6Z6Yhe.js +639 -0
- package/lib/clojure-iYO8U8Sg.js +810 -0
- package/lib/clsx-7d8NmkQq.js +21 -0
- package/lib/cmake-SVzjkxV_.js +28 -0
- package/lib/cobol-APHEnAOX.js +74 -0
- package/lib/coffeescript-KqQa0SYG.js +182 -0
- package/lib/commonlisp-bwqNqR5V.js +79 -0
- package/lib/core/crepe.d.ts +21 -0
- package/lib/core/crepe.d.ts.map +1 -0
- package/lib/core/index.d.ts +3 -0
- package/lib/core/index.d.ts.map +1 -0
- package/lib/core/slice.d.ts +12 -0
- package/lib/core/slice.d.ts.map +1 -0
- package/lib/crystal-BViWuDpA.js +217 -0
- package/lib/css-KHXHXfXg.js +1572 -0
- package/lib/cypher-XpTt4zQ3.js +69 -0
- package/lib/d-fLig6yqY.js +139 -0
- package/lib/diff-WoKGLpy6.js +18 -0
- package/lib/dockerfile-u6f6Vw2s.js +194 -0
- package/lib/dtd-SIJRUW6K.js +91 -0
- package/lib/dylan-4HCLhpWP.js +238 -0
- package/lib/ebnf-h_0lged5.js +77 -0
- package/lib/ecl-Lf4FF0lf.js +133 -0
- package/lib/eiffel-qlw8KUyf.js +112 -0
- package/lib/elm-QRnB3zXs.js +108 -0
- package/lib/erlang-fyVKb7eK.js +488 -0
- package/lib/factor-BEeN4upY.js +65 -0
- package/lib/fcl-lRek3hEb.js +106 -0
- package/lib/feature/block-edit/handle/component.d.ts +9 -0
- package/lib/feature/block-edit/handle/component.d.ts.map +1 -0
- package/lib/feature/block-edit/handle/index.d.ts +12 -0
- package/lib/feature/block-edit/handle/index.d.ts.map +1 -0
- package/lib/feature/block-edit/index.d.ts +3 -0
- package/lib/feature/block-edit/index.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/component.d.ts +14 -0
- package/lib/feature/block-edit/menu/component.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/config.d.ts +21 -0
- package/lib/feature/block-edit/menu/config.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/icons.d.ts +14 -0
- package/lib/feature/block-edit/menu/icons.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/index.d.ts +9 -0
- package/lib/feature/block-edit/menu/index.d.ts.map +1 -0
- package/lib/feature/code-mirror/index.d.ts +3 -0
- package/lib/feature/code-mirror/index.d.ts.map +1 -0
- package/lib/feature/gap-cursor/index.d.ts +3 -0
- package/lib/feature/gap-cursor/index.d.ts.map +1 -0
- package/lib/feature/image-block/index.d.ts +3 -0
- package/lib/feature/image-block/index.d.ts.map +1 -0
- package/lib/feature/index.d.ts +18 -0
- package/lib/feature/index.d.ts.map +1 -0
- package/lib/feature/link-tooltip/consts.d.ts +5 -0
- package/lib/feature/link-tooltip/consts.d.ts.map +1 -0
- package/lib/feature/link-tooltip/index.d.ts +3 -0
- package/lib/feature/link-tooltip/index.d.ts.map +1 -0
- package/lib/feature/list-item/consts.d.ts +2 -0
- package/lib/feature/list-item/consts.d.ts.map +1 -0
- package/lib/feature/list-item/index.d.ts +3 -0
- package/lib/feature/list-item/index.d.ts.map +1 -0
- package/lib/feature/placeholder/index.d.ts +10 -0
- package/lib/feature/placeholder/index.d.ts.map +1 -0
- package/lib/feature/shared.d.ts +3 -0
- package/lib/feature/shared.d.ts.map +1 -0
- package/lib/feature/toolbar/component.d.ts +13 -0
- package/lib/feature/toolbar/component.d.ts.map +1 -0
- package/lib/feature/toolbar/consts.d.ts +5 -0
- package/lib/feature/toolbar/consts.d.ts.map +1 -0
- package/lib/feature/toolbar/index.d.ts +3 -0
- package/lib/feature/toolbar/index.d.ts.map +1 -0
- package/lib/forth-ua2bRd8T.js +60 -0
- package/lib/fortran-WnF7znuN.js +443 -0
- package/lib/gas-wowve1o7.js +183 -0
- package/lib/gherkin-m7GIChu3.js +34 -0
- package/lib/go-th443Dhb.js +158 -0
- package/lib/groovy-tR4RiZnc.js +161 -0
- package/lib/haskell-jxVBofv5.js +375 -0
- package/lib/haxe-kWPI2tq3.js +390 -0
- package/lib/hooks-82sqkbtE.js +21 -0
- package/lib/http-3GIFWUlG.js +45 -0
- package/lib/icons-HYkfuR-O.js +50 -0
- package/lib/idl-PvpMZg-l.js +947 -0
- package/lib/index-0RbcZMbq.js +8 -0
- package/lib/index-4afXjFMY.js +517 -0
- package/lib/index-7MeyepDG.js +78 -0
- package/lib/index-7QgQq3x3.js +551 -0
- package/lib/index-7pgP6qYs.js +107 -0
- package/lib/index-8DvtgRVa.js +19511 -0
- package/lib/index-8Gg-jEP4.js +288 -0
- package/lib/index-8S8qcncB.js +507 -0
- package/lib/index-9A_GmGh4.js +1039 -0
- package/lib/index-EJJfYLzA.js +928 -0
- package/lib/index-Eg39w5kL.js +984 -0
- package/lib/index-FIk_7oPb.js +168 -0
- package/lib/index-LlbrXb_n.js +368 -0
- package/lib/index-MovKtgMG.js +121 -0
- package/lib/index-N9GtIS4X.js +64 -0
- package/lib/index-Pwn25-kf.js +8 -0
- package/lib/index-SdFSDosa.js +1295 -0
- package/lib/index-W5Th22-Z.js +1744 -0
- package/lib/index-XiXSFLmI.js +20975 -0
- package/lib/index-bknOViGv.js +47 -0
- package/lib/index-bkuIUPFS.js +275 -0
- package/lib/index-jPA8J9Eo.js +8 -0
- package/lib/index-lsG76a9s.js +552 -0
- package/lib/index-oTRzPo3B.js +146 -0
- package/lib/index-rrf6_6DC.js +317 -0
- package/lib/index-vJbZIHYF.js +81 -0
- package/lib/index-vPRh55CO.js +137 -0
- package/lib/index-vxy63hib.js +323 -0
- package/lib/index-wn1_LgCS.js +99 -0
- package/lib/index-xHADmDT3.js +12 -0
- package/lib/index-yt2EpMtv.js +141 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.es.js +7 -0
- package/lib/javascript-8ZHqHagw.js +758 -0
- package/lib/jinja2-vsOFe0qD.js +154 -0
- package/lib/julia-dlp_pbN1.js +241 -0
- package/lib/livescript-Gf5R-LT6.js +273 -0
- package/lib/lua-c5Y_JsBp.js +221 -0
- package/lib/mathematica-iiGTGmUs.js +35 -0
- package/lib/mbox-ZJh86H8B.js +78 -0
- package/lib/meta-tAGyVRPE.js +511 -0
- package/lib/mirc-i0qkCa0y.js +73 -0
- package/lib/mllike-Dy551fZW.js +275 -0
- package/lib/modelica-n6tGqUT9.js +94 -0
- package/lib/mscgen-aKSbB7D9.js +104 -0
- package/lib/mumps-lNiKA6sp.js +25 -0
- package/lib/nginx--YmuCfDj.js +93 -0
- package/lib/nsis-zhS8iA09.js +62 -0
- package/lib/ntriples-E3jQl3MC.js +79 -0
- package/lib/octave-EQvkGIeG.js +144 -0
- package/lib/oz-W2cpqFf6.js +152 -0
- package/lib/pascal-lCh6ouNZ.js +79 -0
- package/lib/perl-PxEQBX0B.js +915 -0
- package/lib/pig-Y_bNcrzS.js +56 -0
- package/lib/powershell-GaQP-TZr.js +249 -0
- package/lib/properties-mbRyn54L.js +26 -0
- package/lib/prosemirror-noTDkx-k.js +4 -0
- package/lib/protobuf-8CJideyJ.js +49 -0
- package/lib/puppet-ABBaChNZ.js +45 -0
- package/lib/python-sKdHg3Ka.js +321 -0
- package/lib/q-_1yG40Nm.js +89 -0
- package/lib/r-Ziz56bHT.js +108 -0
- package/lib/rpm-ORjGOHaQ.js +57 -0
- package/lib/ruby-jlbYq0dT.js +233 -0
- package/lib/sas-2n7xeUuO.js +107 -0
- package/lib/schema-tKk3m1fu.js +62 -0
- package/lib/scheme-XCs-NPeU.js +126 -0
- package/lib/shell-0_1Um7Dq.js +184 -0
- package/lib/sieve-7uyJD1x1.js +73 -0
- package/lib/simple-mode--HIzBxba.js +95 -0
- package/lib/smalltalk-PEFzrlQ-.js +48 -0
- package/lib/solr-BLBaHahN.js +41 -0
- package/lib/sparql-4F9ZWf1b.js +204 -0
- package/lib/spreadsheet-SGSo6blj.js +49 -0
- package/lib/sql-tebLBzN0.js +291 -0
- package/lib/stex-SFJcFGOO.js +130 -0
- package/lib/stylus-rwwWYWFm.js +256 -0
- package/lib/swift-eorJ0tCv.js +238 -0
- package/lib/tcl-IwXMB8U4.js +82 -0
- package/lib/textile-ok2VyjwC.js +299 -0
- package/lib/theme/classic/index.d.ts +3 -0
- package/lib/theme/classic/index.d.ts.map +1 -0
- package/lib/theme/classic-dark/index.d.ts +3 -0
- package/lib/theme/classic-dark/index.d.ts.map +1 -0
- package/lib/theme/headless/index.d.ts +3 -0
- package/lib/theme/headless/index.d.ts.map +1 -0
- package/lib/theme/index.d.ts +8 -0
- package/lib/theme/index.d.ts.map +1 -0
- package/lib/theme/shared.d.ts +3 -0
- package/lib/theme/shared.d.ts.map +1 -0
- package/lib/tiddlywiki-DLhz8_pc.js +156 -0
- package/lib/tiki-DFAqFElY.js +183 -0
- package/lib/tippy.esm-MZ2vxByW.js +1813 -0
- package/lib/toml-ryxpTZEV.js +49 -0
- package/lib/tooltip-plugin-gcwyQdiT.js +119 -0
- package/lib/troff-ZzZyvNct.js +36 -0
- package/lib/ttcn-6gvkqqpW.js +136 -0
- package/lib/ttcn-cfg-oSu-Dq5C.js +98 -0
- package/lib/turtle-10ofr5au.js +87 -0
- package/lib/use-css-light-dom-EKWZDmbJ.js +82 -0
- package/lib/utils/index.d.ts +4 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/vb-a6n6fzrD.js +74 -0
- package/lib/vbscript-dgvo8jPt.js +324 -0
- package/lib/velocity-CBncCrwO.js +97 -0
- package/lib/verilog-KlcACt6C.js +271 -0
- package/lib/vhdl-NMd7Gf35.js +117 -0
- package/lib/webidl-z1UE5DN_.js +160 -0
- package/lib/xquery-hDt5jWTp.js +431 -0
- package/lib/yacas-ftgh_qwr.js +74 -0
- package/lib/yaml-DnNTfjXK.js +53 -0
- package/lib/z80-dA1PqWe1.js +62 -0
- package/package.json +87 -0
- package/src/core/crepe.ts +98 -0
- package/src/core/index.ts +4 -0
- package/src/core/slice.ts +44 -0
- package/src/feature/block-edit/handle/component.ts +68 -0
- package/src/feature/block-edit/handle/index.ts +81 -0
- package/src/feature/block-edit/index.ts +17 -0
- package/src/feature/block-edit/menu/component.ts +210 -0
- package/src/feature/block-edit/menu/config.ts +335 -0
- package/src/feature/block-edit/menu/icons.ts +171 -0
- package/src/feature/block-edit/menu/index.ts +113 -0
- package/src/feature/block-edit/style.css +126 -0
- package/src/feature/code-mirror/index.ts +60 -0
- package/src/feature/code-mirror/style.css +159 -0
- package/src/feature/gap-cursor/index.ts +31 -0
- package/src/feature/image-block/index.ts +59 -0
- package/src/feature/image-block/style.css +215 -0
- package/src/feature/index.ts +66 -0
- package/src/feature/link-tooltip/consts.ts +47 -0
- package/src/feature/link-tooltip/index.ts +22 -0
- package/src/feature/link-tooltip/style.css +107 -0
- package/src/feature/list-item/consts.ts +15 -0
- package/src/feature/list-item/index.ts +30 -0
- package/src/feature/list-item/style.css +23 -0
- package/src/feature/placeholder/index.ts +87 -0
- package/src/feature/placeholder/style.css +9 -0
- package/src/feature/shared.ts +4 -0
- package/src/feature/toolbar/component.ts +101 -0
- package/src/feature/toolbar/consts.ts +26 -0
- package/src/feature/toolbar/index.ts +92 -0
- package/src/feature/toolbar/style.css +37 -0
- package/src/index.ts +5 -0
- package/src/theme/classic/index.ts +12 -0
- package/src/theme/classic/style.css +192 -0
- package/src/theme/classic-dark/index.ts +12 -0
- package/src/theme/classic-dark/style.css +197 -0
- package/src/theme/headless/index.ts +9 -0
- package/src/theme/index.ts +26 -0
- package/src/theme/shared.ts +4 -0
- package/src/utils/index.ts +12 -0
- package/src/vite-env.d.ts +2 -0
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
function o(e) {
|
|
2
|
+
return { type: e, style: "keyword" };
|
|
3
|
+
}
|
|
4
|
+
var P = o("keyword a"), W = o("keyword b"), g = o("keyword c"), K = o("operator"), z = { type: "atom", style: "atom" }, y = { type: "attribute", style: "attribute" }, c = o("typedef"), B = {
|
|
5
|
+
if: P,
|
|
6
|
+
while: P,
|
|
7
|
+
else: W,
|
|
8
|
+
do: W,
|
|
9
|
+
try: W,
|
|
10
|
+
return: g,
|
|
11
|
+
break: g,
|
|
12
|
+
continue: g,
|
|
13
|
+
new: g,
|
|
14
|
+
throw: g,
|
|
15
|
+
var: o("var"),
|
|
16
|
+
inline: y,
|
|
17
|
+
static: y,
|
|
18
|
+
using: o("import"),
|
|
19
|
+
public: y,
|
|
20
|
+
private: y,
|
|
21
|
+
cast: o("cast"),
|
|
22
|
+
import: o("import"),
|
|
23
|
+
macro: o("macro"),
|
|
24
|
+
function: o("function"),
|
|
25
|
+
catch: o("catch"),
|
|
26
|
+
untyped: o("untyped"),
|
|
27
|
+
callback: o("cb"),
|
|
28
|
+
for: o("for"),
|
|
29
|
+
switch: o("switch"),
|
|
30
|
+
case: o("case"),
|
|
31
|
+
default: o("default"),
|
|
32
|
+
in: K,
|
|
33
|
+
never: o("property_access"),
|
|
34
|
+
trace: o("trace"),
|
|
35
|
+
class: c,
|
|
36
|
+
abstract: c,
|
|
37
|
+
enum: c,
|
|
38
|
+
interface: c,
|
|
39
|
+
typedef: c,
|
|
40
|
+
extends: c,
|
|
41
|
+
implements: c,
|
|
42
|
+
dynamic: c,
|
|
43
|
+
true: z,
|
|
44
|
+
false: z,
|
|
45
|
+
null: z
|
|
46
|
+
}, E = /[+\-*&%=<>!?|]/;
|
|
47
|
+
function I(e, r, n) {
|
|
48
|
+
return r.tokenize = n, n(e, r);
|
|
49
|
+
}
|
|
50
|
+
function L(e, r) {
|
|
51
|
+
for (var n = !1, i; (i = e.next()) != null; ) {
|
|
52
|
+
if (i == r && !n)
|
|
53
|
+
return !0;
|
|
54
|
+
n = !n && i == "\\";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
var c, N;
|
|
58
|
+
function p(e, r, n) {
|
|
59
|
+
return c = e, N = n, r;
|
|
60
|
+
}
|
|
61
|
+
function A(e, r) {
|
|
62
|
+
var n = e.next();
|
|
63
|
+
if (n == '"' || n == "'")
|
|
64
|
+
return I(e, r, M(n));
|
|
65
|
+
if (/[\[\]{}\(\),;\:\.]/.test(n))
|
|
66
|
+
return p(n);
|
|
67
|
+
if (n == "0" && e.eat(/x/i))
|
|
68
|
+
return e.eatWhile(/[\da-f]/i), p("number", "number");
|
|
69
|
+
if (/\d/.test(n) || n == "-" && e.eat(/\d/))
|
|
70
|
+
return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/), p("number", "number");
|
|
71
|
+
if (r.reAllowed && n == "~" && e.eat(/\//))
|
|
72
|
+
return L(e, "/"), e.eatWhile(/[gimsu]/), p("regexp", "string.special");
|
|
73
|
+
if (n == "/")
|
|
74
|
+
return e.eat("*") ? I(e, r, Q) : e.eat("/") ? (e.skipToEnd(), p("comment", "comment")) : (e.eatWhile(E), p("operator", null, e.current()));
|
|
75
|
+
if (n == "#")
|
|
76
|
+
return e.skipToEnd(), p("conditional", "meta");
|
|
77
|
+
if (n == "@")
|
|
78
|
+
return e.eat(/:/), e.eatWhile(/[\w_]/), p("metadata", "meta");
|
|
79
|
+
if (E.test(n))
|
|
80
|
+
return e.eatWhile(E), p("operator", null, e.current());
|
|
81
|
+
var i;
|
|
82
|
+
if (/[A-Z]/.test(n))
|
|
83
|
+
return e.eatWhile(/[\w_<>]/), i = e.current(), p("type", "type", i);
|
|
84
|
+
e.eatWhile(/[\w_]/);
|
|
85
|
+
var i = e.current(), u = B.propertyIsEnumerable(i) && B[i];
|
|
86
|
+
return u && r.kwAllowed ? p(u.type, u.style, i) : p("variable", "variable", i);
|
|
87
|
+
}
|
|
88
|
+
function M(e) {
|
|
89
|
+
return function(r, n) {
|
|
90
|
+
return L(r, e) && (n.tokenize = A), p("string", "string");
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function Q(e, r) {
|
|
94
|
+
for (var n = !1, i; i = e.next(); ) {
|
|
95
|
+
if (i == "/" && n) {
|
|
96
|
+
r.tokenize = A;
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
n = i == "*";
|
|
100
|
+
}
|
|
101
|
+
return p("comment", "comment");
|
|
102
|
+
}
|
|
103
|
+
var $ = { atom: !0, number: !0, variable: !0, string: !0, regexp: !0 };
|
|
104
|
+
function j(e, r, n, i, u, s) {
|
|
105
|
+
this.indented = e, this.column = r, this.type = n, this.prev = u, this.info = s, i != null && (this.align = i);
|
|
106
|
+
}
|
|
107
|
+
function R(e, r) {
|
|
108
|
+
for (var n = e.localVars; n; n = n.next)
|
|
109
|
+
if (n.name == r)
|
|
110
|
+
return !0;
|
|
111
|
+
}
|
|
112
|
+
function X(e, r, n, i, u) {
|
|
113
|
+
var s = e.cc;
|
|
114
|
+
for (a.state = e, a.stream = u, a.marked = null, a.cc = s, e.lexical.hasOwnProperty("align") || (e.lexical.align = !0); ; ) {
|
|
115
|
+
var k = s.length ? s.pop() : x;
|
|
116
|
+
if (k(n, i)) {
|
|
117
|
+
for (; s.length && s[s.length - 1].lex; )
|
|
118
|
+
s.pop()();
|
|
119
|
+
return a.marked ? a.marked : n == "variable" && R(e, i) ? "variableName.local" : n == "variable" && Y(e, i) ? "variableName.special" : r;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function Y(e, r) {
|
|
124
|
+
if (/[a-z]/.test(r.charAt(0)))
|
|
125
|
+
return !1;
|
|
126
|
+
for (var n = e.importedtypes.length, i = 0; i < n; i++)
|
|
127
|
+
if (e.importedtypes[i] == r)
|
|
128
|
+
return !0;
|
|
129
|
+
}
|
|
130
|
+
function F(e) {
|
|
131
|
+
for (var r = a.state, n = r.importedtypes; n; n = n.next)
|
|
132
|
+
if (n.name == e)
|
|
133
|
+
return;
|
|
134
|
+
r.importedtypes = { name: e, next: r.importedtypes };
|
|
135
|
+
}
|
|
136
|
+
var a = { state: null, column: null, marked: null, cc: null };
|
|
137
|
+
function b() {
|
|
138
|
+
for (var e = arguments.length - 1; e >= 0; e--)
|
|
139
|
+
a.cc.push(arguments[e]);
|
|
140
|
+
}
|
|
141
|
+
function t() {
|
|
142
|
+
return b.apply(null, arguments), !0;
|
|
143
|
+
}
|
|
144
|
+
function H(e, r) {
|
|
145
|
+
for (var n = r; n; n = n.next)
|
|
146
|
+
if (n.name == e)
|
|
147
|
+
return !0;
|
|
148
|
+
return !1;
|
|
149
|
+
}
|
|
150
|
+
function S(e) {
|
|
151
|
+
var r = a.state;
|
|
152
|
+
if (r.context) {
|
|
153
|
+
if (a.marked = "def", H(e, r.localVars))
|
|
154
|
+
return;
|
|
155
|
+
r.localVars = { name: e, next: r.localVars };
|
|
156
|
+
} else if (r.globalVars) {
|
|
157
|
+
if (H(e, r.globalVars))
|
|
158
|
+
return;
|
|
159
|
+
r.globalVars = { name: e, next: r.globalVars };
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
var ee = { name: "this", next: null };
|
|
163
|
+
function D() {
|
|
164
|
+
a.state.context || (a.state.localVars = ee), a.state.context = { prev: a.state.context, vars: a.state.localVars };
|
|
165
|
+
}
|
|
166
|
+
function V() {
|
|
167
|
+
a.state.localVars = a.state.context.vars, a.state.context = a.state.context.prev;
|
|
168
|
+
}
|
|
169
|
+
V.lex = !0;
|
|
170
|
+
function l(e, r) {
|
|
171
|
+
var n = function() {
|
|
172
|
+
var i = a.state;
|
|
173
|
+
i.lexical = new j(i.indented, a.stream.column(), e, null, i.lexical, r);
|
|
174
|
+
};
|
|
175
|
+
return n.lex = !0, n;
|
|
176
|
+
}
|
|
177
|
+
function f() {
|
|
178
|
+
var e = a.state;
|
|
179
|
+
e.lexical.prev && (e.lexical.type == ")" && (e.indented = e.lexical.indented), e.lexical = e.lexical.prev);
|
|
180
|
+
}
|
|
181
|
+
f.lex = !0;
|
|
182
|
+
function d(e) {
|
|
183
|
+
function r(n) {
|
|
184
|
+
return n == e ? t() : e == ";" ? b() : t(r);
|
|
185
|
+
}
|
|
186
|
+
return r;
|
|
187
|
+
}
|
|
188
|
+
function x(e) {
|
|
189
|
+
return e == "@" ? t(Z) : e == "var" ? t(l("vardef"), C, d(";"), f) : e == "keyword a" ? t(l("form"), h, x, f) : e == "keyword b" ? t(l("form"), x, f) : e == "{" ? t(l("}"), D, _, f, V) : e == ";" ? t() : e == "attribute" ? t(U) : e == "function" ? t(w) : e == "for" ? t(
|
|
190
|
+
l("form"),
|
|
191
|
+
d("("),
|
|
192
|
+
l(")"),
|
|
193
|
+
ae,
|
|
194
|
+
d(")"),
|
|
195
|
+
f,
|
|
196
|
+
x,
|
|
197
|
+
f
|
|
198
|
+
) : e == "variable" ? t(l("stat"), te) : e == "switch" ? t(
|
|
199
|
+
l("form"),
|
|
200
|
+
h,
|
|
201
|
+
l("}", "switch"),
|
|
202
|
+
d("{"),
|
|
203
|
+
_,
|
|
204
|
+
f,
|
|
205
|
+
f
|
|
206
|
+
) : e == "case" ? t(h, d(":")) : e == "default" ? t(d(":")) : e == "catch" ? t(
|
|
207
|
+
l("form"),
|
|
208
|
+
D,
|
|
209
|
+
d("("),
|
|
210
|
+
J,
|
|
211
|
+
d(")"),
|
|
212
|
+
x,
|
|
213
|
+
f,
|
|
214
|
+
V
|
|
215
|
+
) : e == "import" ? t(q, d(";")) : e == "typedef" ? t(ne) : b(l("stat"), h, d(";"), f);
|
|
216
|
+
}
|
|
217
|
+
function h(e) {
|
|
218
|
+
return $.hasOwnProperty(e) || e == "type" ? t(v) : e == "function" ? t(w) : e == "keyword c" ? t(O) : e == "(" ? t(l(")"), O, d(")"), f, v) : e == "operator" ? t(h) : e == "[" ? t(l("]"), m(O, "]"), f, v) : e == "{" ? t(l("}"), m(ue, "}"), f, v) : t();
|
|
219
|
+
}
|
|
220
|
+
function O(e) {
|
|
221
|
+
return e.match(/[;\}\)\],]/) ? b() : b(h);
|
|
222
|
+
}
|
|
223
|
+
function v(e, r) {
|
|
224
|
+
if (e == "operator" && /\+\+|--/.test(r))
|
|
225
|
+
return t(v);
|
|
226
|
+
if (e == "operator" || e == ":")
|
|
227
|
+
return t(h);
|
|
228
|
+
if (e != ";") {
|
|
229
|
+
if (e == "(")
|
|
230
|
+
return t(l(")"), m(h, ")"), f, v);
|
|
231
|
+
if (e == ".")
|
|
232
|
+
return t(ie, v);
|
|
233
|
+
if (e == "[")
|
|
234
|
+
return t(l("]"), h, d("]"), f, v);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
function U(e) {
|
|
238
|
+
if (e == "attribute")
|
|
239
|
+
return t(U);
|
|
240
|
+
if (e == "function")
|
|
241
|
+
return t(w);
|
|
242
|
+
if (e == "var")
|
|
243
|
+
return t(C);
|
|
244
|
+
}
|
|
245
|
+
function Z(e) {
|
|
246
|
+
if (e == ":" || e == "variable")
|
|
247
|
+
return t(Z);
|
|
248
|
+
if (e == "(")
|
|
249
|
+
return t(l(")"), m(re, ")"), f, x);
|
|
250
|
+
}
|
|
251
|
+
function re(e) {
|
|
252
|
+
if (e == "variable")
|
|
253
|
+
return t();
|
|
254
|
+
}
|
|
255
|
+
function q(e, r) {
|
|
256
|
+
if (e == "variable" && /[A-Z]/.test(r.charAt(0)))
|
|
257
|
+
return F(r), t();
|
|
258
|
+
if (e == "variable" || e == "property" || e == "." || r == "*")
|
|
259
|
+
return t(q);
|
|
260
|
+
}
|
|
261
|
+
function ne(e, r) {
|
|
262
|
+
if (e == "variable" && /[A-Z]/.test(r.charAt(0)))
|
|
263
|
+
return F(r), t();
|
|
264
|
+
if (e == "type" && /[A-Z]/.test(r.charAt(0)))
|
|
265
|
+
return t();
|
|
266
|
+
}
|
|
267
|
+
function te(e) {
|
|
268
|
+
return e == ":" ? t(f, x) : b(v, d(";"), f);
|
|
269
|
+
}
|
|
270
|
+
function ie(e) {
|
|
271
|
+
if (e == "variable")
|
|
272
|
+
return a.marked = "property", t();
|
|
273
|
+
}
|
|
274
|
+
function ue(e) {
|
|
275
|
+
if (e == "variable" && (a.marked = "property"), $.hasOwnProperty(e))
|
|
276
|
+
return t(d(":"), h);
|
|
277
|
+
}
|
|
278
|
+
function m(e, r) {
|
|
279
|
+
function n(i) {
|
|
280
|
+
return i == "," ? t(e, n) : i == r ? t() : t(d(r));
|
|
281
|
+
}
|
|
282
|
+
return function(i) {
|
|
283
|
+
return i == r ? t() : b(e, n);
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
function _(e) {
|
|
287
|
+
return e == "}" ? t() : b(x, _);
|
|
288
|
+
}
|
|
289
|
+
function C(e, r) {
|
|
290
|
+
return e == "variable" ? (S(r), t(T, G)) : t();
|
|
291
|
+
}
|
|
292
|
+
function G(e, r) {
|
|
293
|
+
if (r == "=")
|
|
294
|
+
return t(h, G);
|
|
295
|
+
if (e == ",")
|
|
296
|
+
return t(C);
|
|
297
|
+
}
|
|
298
|
+
function ae(e, r) {
|
|
299
|
+
return e == "variable" ? (S(r), t(fe, h)) : b();
|
|
300
|
+
}
|
|
301
|
+
function fe(e, r) {
|
|
302
|
+
if (r == "in")
|
|
303
|
+
return t();
|
|
304
|
+
}
|
|
305
|
+
function w(e, r) {
|
|
306
|
+
if (e == "variable" || e == "type")
|
|
307
|
+
return S(r), t(w);
|
|
308
|
+
if (r == "new")
|
|
309
|
+
return t(w);
|
|
310
|
+
if (e == "(")
|
|
311
|
+
return t(l(")"), D, m(J, ")"), f, T, x, V);
|
|
312
|
+
}
|
|
313
|
+
function T(e) {
|
|
314
|
+
if (e == ":")
|
|
315
|
+
return t(oe);
|
|
316
|
+
}
|
|
317
|
+
function oe(e) {
|
|
318
|
+
if (e == "type" || e == "variable")
|
|
319
|
+
return t();
|
|
320
|
+
if (e == "{")
|
|
321
|
+
return t(l("}"), m(le, "}"), f);
|
|
322
|
+
}
|
|
323
|
+
function le(e) {
|
|
324
|
+
if (e == "variable")
|
|
325
|
+
return t(T);
|
|
326
|
+
}
|
|
327
|
+
function J(e, r) {
|
|
328
|
+
if (e == "variable")
|
|
329
|
+
return S(r), t(T);
|
|
330
|
+
}
|
|
331
|
+
const ce = {
|
|
332
|
+
name: "haxe",
|
|
333
|
+
startState: function(e) {
|
|
334
|
+
var r = ["Int", "Float", "String", "Void", "Std", "Bool", "Dynamic", "Array"], n = {
|
|
335
|
+
tokenize: A,
|
|
336
|
+
reAllowed: !0,
|
|
337
|
+
kwAllowed: !0,
|
|
338
|
+
cc: [],
|
|
339
|
+
lexical: new j(-e, 0, "block", !1),
|
|
340
|
+
importedtypes: r,
|
|
341
|
+
context: null,
|
|
342
|
+
indented: 0
|
|
343
|
+
};
|
|
344
|
+
return n;
|
|
345
|
+
},
|
|
346
|
+
token: function(e, r) {
|
|
347
|
+
if (e.sol() && (r.lexical.hasOwnProperty("align") || (r.lexical.align = !1), r.indented = e.indentation()), e.eatSpace())
|
|
348
|
+
return null;
|
|
349
|
+
var n = r.tokenize(e, r);
|
|
350
|
+
return c == "comment" ? n : (r.reAllowed = !!(c == "operator" || c == "keyword c" || c.match(/^[\[{}\(,;:]$/)), r.kwAllowed = c != ".", X(r, n, c, N, e));
|
|
351
|
+
},
|
|
352
|
+
indent: function(e, r, n) {
|
|
353
|
+
if (e.tokenize != A)
|
|
354
|
+
return 0;
|
|
355
|
+
var i = r && r.charAt(0), u = e.lexical;
|
|
356
|
+
u.type == "stat" && i == "}" && (u = u.prev);
|
|
357
|
+
var s = u.type, k = i == s;
|
|
358
|
+
return s == "vardef" ? u.indented + 4 : s == "form" && i == "{" ? u.indented : s == "stat" || s == "form" ? u.indented + n.unit : u.info == "switch" && !k ? u.indented + (/^(?:case|default)\b/.test(r) ? n.unit : 2 * n.unit) : u.align ? u.column + (k ? 0 : 1) : u.indented + (k ? 0 : n.unit);
|
|
359
|
+
},
|
|
360
|
+
languageData: {
|
|
361
|
+
indentOnInput: /^\s*[{}]$/,
|
|
362
|
+
commentTokens: { line: "//", block: { open: "/*", close: "*/" } }
|
|
363
|
+
}
|
|
364
|
+
}, se = {
|
|
365
|
+
name: "hxml",
|
|
366
|
+
startState: function() {
|
|
367
|
+
return {
|
|
368
|
+
define: !1,
|
|
369
|
+
inString: !1
|
|
370
|
+
};
|
|
371
|
+
},
|
|
372
|
+
token: function(e, r) {
|
|
373
|
+
var u = e.peek(), n = e.sol();
|
|
374
|
+
if (u == "#")
|
|
375
|
+
return e.skipToEnd(), "comment";
|
|
376
|
+
if (n && u == "-") {
|
|
377
|
+
var i = "variable-2";
|
|
378
|
+
return e.eat(/-/), e.peek() == "-" && (e.eat(/-/), i = "keyword a"), e.peek() == "D" && (e.eat(/[D]/), i = "keyword c", r.define = !0), e.eatWhile(/[A-Z]/i), i;
|
|
379
|
+
}
|
|
380
|
+
var u = e.peek();
|
|
381
|
+
return r.inString == !1 && u == "'" && (r.inString = !0, e.next()), r.inString == !0 ? (e.skipTo("'") || e.skipToEnd(), e.peek() == "'" && (e.next(), r.inString = !1), "string") : (e.next(), null);
|
|
382
|
+
},
|
|
383
|
+
languageData: {
|
|
384
|
+
commentTokens: { line: "#" }
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
export {
|
|
388
|
+
ce as haxe,
|
|
389
|
+
se as hxml
|
|
390
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { f, g as r, i as p, j as a } from "./meta-tAGyVRPE.js";
|
|
2
|
+
const b = (i) => {
|
|
3
|
+
const u = f();
|
|
4
|
+
return r((s = []) => {
|
|
5
|
+
if (!s[1]) {
|
|
6
|
+
const n = (o) => a(o) ? o(s[0]) : o;
|
|
7
|
+
s[0] = n(i), s[1] = (o) => {
|
|
8
|
+
o = n(o), s[0] !== o && (s[0] = o, u());
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
return s;
|
|
12
|
+
});
|
|
13
|
+
}, d = (i, u) => {
|
|
14
|
+
const [s] = r(([n, o, c = 0] = []) => ((!o || o && !p(o, u)) && (n = i()), [n, u, c]));
|
|
15
|
+
return s;
|
|
16
|
+
}, k = (i, u) => d(() => i, u);
|
|
17
|
+
export {
|
|
18
|
+
d as a,
|
|
19
|
+
k as b,
|
|
20
|
+
b as u
|
|
21
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function u(r, n) {
|
|
2
|
+
return r.skipToEnd(), n.cur = t, "error";
|
|
3
|
+
}
|
|
4
|
+
function i(r, n) {
|
|
5
|
+
return r.match(/^HTTP\/\d\.\d/) ? (n.cur = f, "keyword") : r.match(/^[A-Z]+/) && /[ \t]/.test(r.peek()) ? (n.cur = d, "keyword") : u(r, n);
|
|
6
|
+
}
|
|
7
|
+
function f(r, n) {
|
|
8
|
+
var e = r.match(/^\d+/);
|
|
9
|
+
if (!e)
|
|
10
|
+
return u(r, n);
|
|
11
|
+
n.cur = l;
|
|
12
|
+
var o = Number(e[0]);
|
|
13
|
+
return o >= 100 && o < 400 ? "atom" : "error";
|
|
14
|
+
}
|
|
15
|
+
function l(r, n) {
|
|
16
|
+
return r.skipToEnd(), n.cur = t, null;
|
|
17
|
+
}
|
|
18
|
+
function d(r, n) {
|
|
19
|
+
return r.eatWhile(/\S/), n.cur = s, "string.special";
|
|
20
|
+
}
|
|
21
|
+
function s(r, n) {
|
|
22
|
+
return r.match(/^HTTP\/\d\.\d$/) ? (n.cur = t, "keyword") : u(r, n);
|
|
23
|
+
}
|
|
24
|
+
function t(r) {
|
|
25
|
+
return r.sol() && !r.eat(/[ \t]/) ? r.match(/^.*?:/) ? "atom" : (r.skipToEnd(), "error") : (r.skipToEnd(), "string");
|
|
26
|
+
}
|
|
27
|
+
function c(r) {
|
|
28
|
+
return r.skipToEnd(), null;
|
|
29
|
+
}
|
|
30
|
+
const p = {
|
|
31
|
+
name: "http",
|
|
32
|
+
token: function(r, n) {
|
|
33
|
+
var e = n.cur;
|
|
34
|
+
return e != t && e != c && r.eatSpace() ? null : e(r, n);
|
|
35
|
+
},
|
|
36
|
+
blankLine: function(r) {
|
|
37
|
+
r.cur = c;
|
|
38
|
+
},
|
|
39
|
+
startState: function() {
|
|
40
|
+
return { cur: i };
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
p as http
|
|
45
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { h as o } from "./meta-tAGyVRPE.js";
|
|
2
|
+
const r = o`
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
|
4
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10" />
|
|
5
|
+
</svg>
|
|
6
|
+
`, t = o`
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
|
8
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z" />
|
|
9
|
+
</svg>
|
|
10
|
+
`, n = o`
|
|
11
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
|
12
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z" />
|
|
13
|
+
</svg>
|
|
14
|
+
`;
|
|
15
|
+
o`
|
|
16
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
|
17
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5" />
|
|
18
|
+
</svg>
|
|
19
|
+
`;
|
|
20
|
+
const e = o`
|
|
21
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
|
22
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
|
|
23
|
+
</svg>
|
|
24
|
+
`, l = o`
|
|
25
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
|
26
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
27
|
+
</svg>
|
|
28
|
+
`, a = o`
|
|
29
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
|
30
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z" />
|
|
31
|
+
</svg>
|
|
32
|
+
`, w = o`
|
|
33
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
|
34
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244" />
|
|
35
|
+
</svg>
|
|
36
|
+
`, i = o`
|
|
37
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
|
38
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" />
|
|
39
|
+
</svg>
|
|
40
|
+
`;
|
|
41
|
+
export {
|
|
42
|
+
n as a,
|
|
43
|
+
e as c,
|
|
44
|
+
r as e,
|
|
45
|
+
t as i,
|
|
46
|
+
w as l,
|
|
47
|
+
a as s,
|
|
48
|
+
i as t,
|
|
49
|
+
l as x
|
|
50
|
+
};
|