@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,431 @@
|
|
|
1
|
+
var h = function() {
|
|
2
|
+
function e(z) {
|
|
3
|
+
return { type: z, style: "keyword" };
|
|
4
|
+
}
|
|
5
|
+
for (var n = e("operator"), t = { type: "atom", style: "atom" }, i = { type: "punctuation", style: null }, c = { type: "axis_specifier", style: "qualifier" }, a = {
|
|
6
|
+
",": i
|
|
7
|
+
}, g = [
|
|
8
|
+
"after",
|
|
9
|
+
"all",
|
|
10
|
+
"allowing",
|
|
11
|
+
"ancestor",
|
|
12
|
+
"ancestor-or-self",
|
|
13
|
+
"any",
|
|
14
|
+
"array",
|
|
15
|
+
"as",
|
|
16
|
+
"ascending",
|
|
17
|
+
"at",
|
|
18
|
+
"attribute",
|
|
19
|
+
"base-uri",
|
|
20
|
+
"before",
|
|
21
|
+
"boundary-space",
|
|
22
|
+
"by",
|
|
23
|
+
"case",
|
|
24
|
+
"cast",
|
|
25
|
+
"castable",
|
|
26
|
+
"catch",
|
|
27
|
+
"child",
|
|
28
|
+
"collation",
|
|
29
|
+
"comment",
|
|
30
|
+
"construction",
|
|
31
|
+
"contains",
|
|
32
|
+
"content",
|
|
33
|
+
"context",
|
|
34
|
+
"copy",
|
|
35
|
+
"copy-namespaces",
|
|
36
|
+
"count",
|
|
37
|
+
"decimal-format",
|
|
38
|
+
"declare",
|
|
39
|
+
"default",
|
|
40
|
+
"delete",
|
|
41
|
+
"descendant",
|
|
42
|
+
"descendant-or-self",
|
|
43
|
+
"descending",
|
|
44
|
+
"diacritics",
|
|
45
|
+
"different",
|
|
46
|
+
"distance",
|
|
47
|
+
"document",
|
|
48
|
+
"document-node",
|
|
49
|
+
"element",
|
|
50
|
+
"else",
|
|
51
|
+
"empty",
|
|
52
|
+
"empty-sequence",
|
|
53
|
+
"encoding",
|
|
54
|
+
"end",
|
|
55
|
+
"entire",
|
|
56
|
+
"every",
|
|
57
|
+
"exactly",
|
|
58
|
+
"except",
|
|
59
|
+
"external",
|
|
60
|
+
"first",
|
|
61
|
+
"following",
|
|
62
|
+
"following-sibling",
|
|
63
|
+
"for",
|
|
64
|
+
"from",
|
|
65
|
+
"ftand",
|
|
66
|
+
"ftnot",
|
|
67
|
+
"ft-option",
|
|
68
|
+
"ftor",
|
|
69
|
+
"function",
|
|
70
|
+
"fuzzy",
|
|
71
|
+
"greatest",
|
|
72
|
+
"group",
|
|
73
|
+
"if",
|
|
74
|
+
"import",
|
|
75
|
+
"in",
|
|
76
|
+
"inherit",
|
|
77
|
+
"insensitive",
|
|
78
|
+
"insert",
|
|
79
|
+
"instance",
|
|
80
|
+
"intersect",
|
|
81
|
+
"into",
|
|
82
|
+
"invoke",
|
|
83
|
+
"is",
|
|
84
|
+
"item",
|
|
85
|
+
"language",
|
|
86
|
+
"last",
|
|
87
|
+
"lax",
|
|
88
|
+
"least",
|
|
89
|
+
"let",
|
|
90
|
+
"levels",
|
|
91
|
+
"lowercase",
|
|
92
|
+
"map",
|
|
93
|
+
"modify",
|
|
94
|
+
"module",
|
|
95
|
+
"most",
|
|
96
|
+
"namespace",
|
|
97
|
+
"next",
|
|
98
|
+
"no",
|
|
99
|
+
"node",
|
|
100
|
+
"nodes",
|
|
101
|
+
"no-inherit",
|
|
102
|
+
"no-preserve",
|
|
103
|
+
"not",
|
|
104
|
+
"occurs",
|
|
105
|
+
"of",
|
|
106
|
+
"only",
|
|
107
|
+
"option",
|
|
108
|
+
"order",
|
|
109
|
+
"ordered",
|
|
110
|
+
"ordering",
|
|
111
|
+
"paragraph",
|
|
112
|
+
"paragraphs",
|
|
113
|
+
"parent",
|
|
114
|
+
"phrase",
|
|
115
|
+
"preceding",
|
|
116
|
+
"preceding-sibling",
|
|
117
|
+
"preserve",
|
|
118
|
+
"previous",
|
|
119
|
+
"processing-instruction",
|
|
120
|
+
"relationship",
|
|
121
|
+
"rename",
|
|
122
|
+
"replace",
|
|
123
|
+
"return",
|
|
124
|
+
"revalidation",
|
|
125
|
+
"same",
|
|
126
|
+
"satisfies",
|
|
127
|
+
"schema",
|
|
128
|
+
"schema-attribute",
|
|
129
|
+
"schema-element",
|
|
130
|
+
"score",
|
|
131
|
+
"self",
|
|
132
|
+
"sensitive",
|
|
133
|
+
"sentence",
|
|
134
|
+
"sentences",
|
|
135
|
+
"sequence",
|
|
136
|
+
"skip",
|
|
137
|
+
"sliding",
|
|
138
|
+
"some",
|
|
139
|
+
"stable",
|
|
140
|
+
"start",
|
|
141
|
+
"stemming",
|
|
142
|
+
"stop",
|
|
143
|
+
"strict",
|
|
144
|
+
"strip",
|
|
145
|
+
"switch",
|
|
146
|
+
"text",
|
|
147
|
+
"then",
|
|
148
|
+
"thesaurus",
|
|
149
|
+
"times",
|
|
150
|
+
"to",
|
|
151
|
+
"transform",
|
|
152
|
+
"treat",
|
|
153
|
+
"try",
|
|
154
|
+
"tumbling",
|
|
155
|
+
"type",
|
|
156
|
+
"typeswitch",
|
|
157
|
+
"union",
|
|
158
|
+
"unordered",
|
|
159
|
+
"update",
|
|
160
|
+
"updating",
|
|
161
|
+
"uppercase",
|
|
162
|
+
"using",
|
|
163
|
+
"validate",
|
|
164
|
+
"value",
|
|
165
|
+
"variable",
|
|
166
|
+
"version",
|
|
167
|
+
"weight",
|
|
168
|
+
"when",
|
|
169
|
+
"where",
|
|
170
|
+
"wildcards",
|
|
171
|
+
"window",
|
|
172
|
+
"with",
|
|
173
|
+
"without",
|
|
174
|
+
"word",
|
|
175
|
+
"words",
|
|
176
|
+
"xquery"
|
|
177
|
+
], r = 0, o = g.length; r < o; r++)
|
|
178
|
+
a[g[r]] = e(g[r]);
|
|
179
|
+
for (var d = [
|
|
180
|
+
"xs:anyAtomicType",
|
|
181
|
+
"xs:anySimpleType",
|
|
182
|
+
"xs:anyType",
|
|
183
|
+
"xs:anyURI",
|
|
184
|
+
"xs:base64Binary",
|
|
185
|
+
"xs:boolean",
|
|
186
|
+
"xs:byte",
|
|
187
|
+
"xs:date",
|
|
188
|
+
"xs:dateTime",
|
|
189
|
+
"xs:dateTimeStamp",
|
|
190
|
+
"xs:dayTimeDuration",
|
|
191
|
+
"xs:decimal",
|
|
192
|
+
"xs:double",
|
|
193
|
+
"xs:duration",
|
|
194
|
+
"xs:ENTITIES",
|
|
195
|
+
"xs:ENTITY",
|
|
196
|
+
"xs:float",
|
|
197
|
+
"xs:gDay",
|
|
198
|
+
"xs:gMonth",
|
|
199
|
+
"xs:gMonthDay",
|
|
200
|
+
"xs:gYear",
|
|
201
|
+
"xs:gYearMonth",
|
|
202
|
+
"xs:hexBinary",
|
|
203
|
+
"xs:ID",
|
|
204
|
+
"xs:IDREF",
|
|
205
|
+
"xs:IDREFS",
|
|
206
|
+
"xs:int",
|
|
207
|
+
"xs:integer",
|
|
208
|
+
"xs:item",
|
|
209
|
+
"xs:java",
|
|
210
|
+
"xs:language",
|
|
211
|
+
"xs:long",
|
|
212
|
+
"xs:Name",
|
|
213
|
+
"xs:NCName",
|
|
214
|
+
"xs:negativeInteger",
|
|
215
|
+
"xs:NMTOKEN",
|
|
216
|
+
"xs:NMTOKENS",
|
|
217
|
+
"xs:nonNegativeInteger",
|
|
218
|
+
"xs:nonPositiveInteger",
|
|
219
|
+
"xs:normalizedString",
|
|
220
|
+
"xs:NOTATION",
|
|
221
|
+
"xs:numeric",
|
|
222
|
+
"xs:positiveInteger",
|
|
223
|
+
"xs:precisionDecimal",
|
|
224
|
+
"xs:QName",
|
|
225
|
+
"xs:short",
|
|
226
|
+
"xs:string",
|
|
227
|
+
"xs:time",
|
|
228
|
+
"xs:token",
|
|
229
|
+
"xs:unsignedByte",
|
|
230
|
+
"xs:unsignedInt",
|
|
231
|
+
"xs:unsignedLong",
|
|
232
|
+
"xs:unsignedShort",
|
|
233
|
+
"xs:untyped",
|
|
234
|
+
"xs:untypedAtomic",
|
|
235
|
+
"xs:yearMonthDuration"
|
|
236
|
+
], r = 0, o = d.length; r < o; r++)
|
|
237
|
+
a[d[r]] = t;
|
|
238
|
+
for (var f = ["eq", "ne", "lt", "le", "gt", "ge", ":=", "=", ">", ">=", "<", "<=", ".", "|", "?", "and", "or", "div", "idiv", "mod", "*", "/", "+", "-"], r = 0, o = f.length; r < o; r++)
|
|
239
|
+
a[f[r]] = n;
|
|
240
|
+
for (var m = [
|
|
241
|
+
"self::",
|
|
242
|
+
"attribute::",
|
|
243
|
+
"child::",
|
|
244
|
+
"descendant::",
|
|
245
|
+
"descendant-or-self::",
|
|
246
|
+
"parent::",
|
|
247
|
+
"ancestor::",
|
|
248
|
+
"ancestor-or-self::",
|
|
249
|
+
"following::",
|
|
250
|
+
"preceding::",
|
|
251
|
+
"following-sibling::",
|
|
252
|
+
"preceding-sibling::"
|
|
253
|
+
], r = 0, o = m.length; r < o; r++)
|
|
254
|
+
a[m[r]] = c;
|
|
255
|
+
return a;
|
|
256
|
+
}();
|
|
257
|
+
function p(e, n, t) {
|
|
258
|
+
return n.tokenize = t, t(e, n);
|
|
259
|
+
}
|
|
260
|
+
function u(e, n) {
|
|
261
|
+
var t = e.next(), i = !1, c = _(e);
|
|
262
|
+
if (t == "<") {
|
|
263
|
+
if (e.match("!--", !0))
|
|
264
|
+
return p(e, n, S);
|
|
265
|
+
if (e.match("![CDATA", !1))
|
|
266
|
+
return n.tokenize = N, "tag";
|
|
267
|
+
if (e.match("?", !1))
|
|
268
|
+
return p(e, n, E);
|
|
269
|
+
var a = e.eat("/");
|
|
270
|
+
e.eatSpace();
|
|
271
|
+
for (var g = "", r; r = e.eat(/[^\s\u00a0=<>\"\'\/?]/); )
|
|
272
|
+
g += r;
|
|
273
|
+
return p(e, n, T(g, a));
|
|
274
|
+
} else {
|
|
275
|
+
if (t == "{")
|
|
276
|
+
return s(n, { type: "codeblock" }), null;
|
|
277
|
+
if (t == "}")
|
|
278
|
+
return l(n), null;
|
|
279
|
+
if (b(n))
|
|
280
|
+
return t == ">" ? "tag" : t == "/" && e.eat(">") ? (l(n), "tag") : "variable";
|
|
281
|
+
if (/\d/.test(t))
|
|
282
|
+
return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/), "atom";
|
|
283
|
+
if (t === "(" && e.eat(":"))
|
|
284
|
+
return s(n, { type: "comment" }), p(e, n, w);
|
|
285
|
+
if (!c && (t === '"' || t === "'"))
|
|
286
|
+
return p(e, n, v(t));
|
|
287
|
+
if (t === "$")
|
|
288
|
+
return p(e, n, I);
|
|
289
|
+
if (t === ":" && e.eat("="))
|
|
290
|
+
return "keyword";
|
|
291
|
+
if (t === "(")
|
|
292
|
+
return s(n, { type: "paren" }), null;
|
|
293
|
+
if (t === ")")
|
|
294
|
+
return l(n), null;
|
|
295
|
+
if (t === "[")
|
|
296
|
+
return s(n, { type: "bracket" }), null;
|
|
297
|
+
if (t === "]")
|
|
298
|
+
return l(n), null;
|
|
299
|
+
var o = h.propertyIsEnumerable(t) && h[t];
|
|
300
|
+
if (c && t === '"')
|
|
301
|
+
for (; e.next() !== '"'; )
|
|
302
|
+
;
|
|
303
|
+
if (c && t === "'")
|
|
304
|
+
for (; e.next() !== "'"; )
|
|
305
|
+
;
|
|
306
|
+
o || e.eatWhile(/[\w\$_-]/);
|
|
307
|
+
var d = e.eat(":");
|
|
308
|
+
!e.eat(":") && d && e.eatWhile(/[\w\$_-]/), e.match(/^[ \t]*\(/, !1) && (i = !0);
|
|
309
|
+
var f = e.current();
|
|
310
|
+
return o = h.propertyIsEnumerable(f) && h[f], i && !o && (o = { type: "function_call", style: "def" }), A(n) ? (l(n), "variable") : ((f == "element" || f == "attribute" || o.type == "axis_specifier") && s(n, { type: "xmlconstructor" }), o ? o.style : "variable");
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
function w(e, n) {
|
|
314
|
+
for (var t = !1, i = !1, c = 0, a; a = e.next(); ) {
|
|
315
|
+
if (a == ")" && t)
|
|
316
|
+
if (c > 0)
|
|
317
|
+
c--;
|
|
318
|
+
else {
|
|
319
|
+
l(n);
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
else
|
|
323
|
+
a == ":" && i && c++;
|
|
324
|
+
t = a == ":", i = a == "(";
|
|
325
|
+
}
|
|
326
|
+
return "comment";
|
|
327
|
+
}
|
|
328
|
+
function v(e, n) {
|
|
329
|
+
return function(t, i) {
|
|
330
|
+
var c;
|
|
331
|
+
if (D(i) && t.current() == e)
|
|
332
|
+
return l(i), n && (i.tokenize = n), "string";
|
|
333
|
+
if (s(i, { type: "string", name: e, tokenize: v(e, n) }), t.match("{", !1) && x(i))
|
|
334
|
+
return i.tokenize = u, "string";
|
|
335
|
+
for (; c = t.next(); )
|
|
336
|
+
if (c == e) {
|
|
337
|
+
l(i), n && (i.tokenize = n);
|
|
338
|
+
break;
|
|
339
|
+
} else if (t.match("{", !1) && x(i))
|
|
340
|
+
return i.tokenize = u, "string";
|
|
341
|
+
return "string";
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
function I(e, n) {
|
|
345
|
+
var t = /[\w\$_-]/;
|
|
346
|
+
if (e.eat('"')) {
|
|
347
|
+
for (; e.next() !== '"'; )
|
|
348
|
+
;
|
|
349
|
+
e.eat(":");
|
|
350
|
+
} else
|
|
351
|
+
e.eatWhile(t), e.match(":=", !1) || e.eat(":");
|
|
352
|
+
return e.eatWhile(t), n.tokenize = u, "variable";
|
|
353
|
+
}
|
|
354
|
+
function T(e, n) {
|
|
355
|
+
return function(t, i) {
|
|
356
|
+
if (t.eatSpace(), n && t.eat(">"))
|
|
357
|
+
return l(i), i.tokenize = u, "tag";
|
|
358
|
+
if (t.eat("/") || s(i, { type: "tag", name: e, tokenize: u }), t.eat(">"))
|
|
359
|
+
i.tokenize = u;
|
|
360
|
+
else
|
|
361
|
+
return i.tokenize = k, "tag";
|
|
362
|
+
return "tag";
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
function k(e, n) {
|
|
366
|
+
var t = e.next();
|
|
367
|
+
return t == "/" && e.eat(">") ? (x(n) && l(n), b(n) && l(n), "tag") : t == ">" ? (x(n) && l(n), "tag") : t == "=" ? null : t == '"' || t == "'" ? p(e, n, v(t, k)) : (x(n) || s(n, { type: "attribute", tokenize: k }), e.eat(/[a-zA-Z_:]/), e.eatWhile(/[-a-zA-Z0-9_:.]/), e.eatSpace(), (e.match(">", !1) || e.match("/", !1)) && (l(n), n.tokenize = u), "attribute");
|
|
368
|
+
}
|
|
369
|
+
function S(e, n) {
|
|
370
|
+
for (var t; t = e.next(); )
|
|
371
|
+
if (t == "-" && e.match("->", !0))
|
|
372
|
+
return n.tokenize = u, "comment";
|
|
373
|
+
}
|
|
374
|
+
function N(e, n) {
|
|
375
|
+
for (var t; t = e.next(); )
|
|
376
|
+
if (t == "]" && e.match("]", !0))
|
|
377
|
+
return n.tokenize = u, "comment";
|
|
378
|
+
}
|
|
379
|
+
function E(e, n) {
|
|
380
|
+
for (var t; t = e.next(); )
|
|
381
|
+
if (t == "?" && e.match(">", !0))
|
|
382
|
+
return n.tokenize = u, "processingInstruction";
|
|
383
|
+
}
|
|
384
|
+
function b(e) {
|
|
385
|
+
return y(e, "tag");
|
|
386
|
+
}
|
|
387
|
+
function x(e) {
|
|
388
|
+
return y(e, "attribute");
|
|
389
|
+
}
|
|
390
|
+
function A(e) {
|
|
391
|
+
return y(e, "xmlconstructor");
|
|
392
|
+
}
|
|
393
|
+
function D(e) {
|
|
394
|
+
return y(e, "string");
|
|
395
|
+
}
|
|
396
|
+
function _(e) {
|
|
397
|
+
return e.current() === '"' ? e.match(/^[^\"]+\"\:/, !1) : e.current() === "'" ? e.match(/^[^\"]+\'\:/, !1) : !1;
|
|
398
|
+
}
|
|
399
|
+
function y(e, n) {
|
|
400
|
+
return e.stack.length && e.stack[e.stack.length - 1].type == n;
|
|
401
|
+
}
|
|
402
|
+
function s(e, n) {
|
|
403
|
+
e.stack.push(n);
|
|
404
|
+
}
|
|
405
|
+
function l(e) {
|
|
406
|
+
e.stack.pop();
|
|
407
|
+
var n = e.stack.length && e.stack[e.stack.length - 1].tokenize;
|
|
408
|
+
e.tokenize = n || u;
|
|
409
|
+
}
|
|
410
|
+
const C = {
|
|
411
|
+
name: "xquery",
|
|
412
|
+
startState: function() {
|
|
413
|
+
return {
|
|
414
|
+
tokenize: u,
|
|
415
|
+
cc: [],
|
|
416
|
+
stack: []
|
|
417
|
+
};
|
|
418
|
+
},
|
|
419
|
+
token: function(e, n) {
|
|
420
|
+
if (e.eatSpace())
|
|
421
|
+
return null;
|
|
422
|
+
var t = n.tokenize(e, n);
|
|
423
|
+
return t;
|
|
424
|
+
},
|
|
425
|
+
languageData: {
|
|
426
|
+
commentTokens: { block: { open: "(:", close: ":)" } }
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
export {
|
|
430
|
+
C as xQuery
|
|
431
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
function t(e) {
|
|
2
|
+
for (var n = {}, r = e.split(" "), o = 0; o < r.length; ++o)
|
|
3
|
+
n[r[o]] = !0;
|
|
4
|
+
return n;
|
|
5
|
+
}
|
|
6
|
+
var a = t("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"), f = "(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)", u = "(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)", p = new RegExp(f), d = new RegExp(u), k = new RegExp(u + "?_" + u), s = new RegExp(u + "\\s*\\(");
|
|
7
|
+
function l(e, n) {
|
|
8
|
+
var r;
|
|
9
|
+
if (r = e.next(), r === '"')
|
|
10
|
+
return n.tokenize = v, n.tokenize(e, n);
|
|
11
|
+
if (r === "/") {
|
|
12
|
+
if (e.eat("*"))
|
|
13
|
+
return n.tokenize = h, n.tokenize(e, n);
|
|
14
|
+
if (e.eat("/"))
|
|
15
|
+
return e.skipToEnd(), "comment";
|
|
16
|
+
}
|
|
17
|
+
e.backUp(1);
|
|
18
|
+
var o = e.match(/^(\w+)\s*\(/, !1);
|
|
19
|
+
o !== null && a.hasOwnProperty(o[1]) && n.scopes.push("bodied");
|
|
20
|
+
var i = c(n);
|
|
21
|
+
if (i === "bodied" && r === "[" && n.scopes.pop(), (r === "[" || r === "{" || r === "(") && n.scopes.push(r), i = c(n), (i === "[" && r === "]" || i === "{" && r === "}" || i === "(" && r === ")") && n.scopes.pop(), r === ";")
|
|
22
|
+
for (; i === "bodied"; )
|
|
23
|
+
n.scopes.pop(), i = c(n);
|
|
24
|
+
return e.match(/\d+ *#/, !0, !1) ? "qualifier" : e.match(p, !0, !1) ? "number" : e.match(k, !0, !1) ? "variableName.special" : e.match(/(?:\[|\]|{|}|\(|\))/, !0, !1) ? "bracket" : e.match(s, !0, !1) ? (e.backUp(1), "variableName.function") : e.match(d, !0, !1) ? "variable" : e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/, !0, !1) ? "operator" : "error";
|
|
25
|
+
}
|
|
26
|
+
function v(e, n) {
|
|
27
|
+
for (var r, o = !1, i = !1; (r = e.next()) != null; ) {
|
|
28
|
+
if (r === '"' && !i) {
|
|
29
|
+
o = !0;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
i = !i && r === "\\";
|
|
33
|
+
}
|
|
34
|
+
return o && !i && (n.tokenize = l), "string";
|
|
35
|
+
}
|
|
36
|
+
function h(e, n) {
|
|
37
|
+
for (var r, o; (o = e.next()) != null; ) {
|
|
38
|
+
if (r === "*" && o === "/") {
|
|
39
|
+
n.tokenize = l;
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
r = o;
|
|
43
|
+
}
|
|
44
|
+
return "comment";
|
|
45
|
+
}
|
|
46
|
+
function c(e) {
|
|
47
|
+
var n = null;
|
|
48
|
+
return e.scopes.length > 0 && (n = e.scopes[e.scopes.length - 1]), n;
|
|
49
|
+
}
|
|
50
|
+
const b = {
|
|
51
|
+
name: "yacas",
|
|
52
|
+
startState: function() {
|
|
53
|
+
return {
|
|
54
|
+
tokenize: l,
|
|
55
|
+
scopes: []
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
token: function(e, n) {
|
|
59
|
+
return e.eatSpace() ? null : n.tokenize(e, n);
|
|
60
|
+
},
|
|
61
|
+
indent: function(e, n, r) {
|
|
62
|
+
if (e.tokenize !== l && e.tokenize !== null)
|
|
63
|
+
return null;
|
|
64
|
+
var o = 0;
|
|
65
|
+
return (n === "]" || n === "];" || n === "}" || n === "};" || n === ");") && (o = -1), (e.scopes.length + o) * r.unit;
|
|
66
|
+
},
|
|
67
|
+
languageData: {
|
|
68
|
+
electricInput: /[{}\[\]()\;]/,
|
|
69
|
+
commentTokens: { line: "//", block: { open: "/*", close: "*/" } }
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
b as yacas
|
|
74
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var l = ["true", "false", "on", "off", "yes", "no"], f = new RegExp("\\b((" + l.join(")|(") + "))$", "i");
|
|
2
|
+
const a = {
|
|
3
|
+
name: "yaml",
|
|
4
|
+
token: function(n, i) {
|
|
5
|
+
var r = n.peek(), e = i.escaped;
|
|
6
|
+
if (i.escaped = !1, r == "#" && (n.pos == 0 || /\s/.test(n.string.charAt(n.pos - 1))))
|
|
7
|
+
return n.skipToEnd(), "comment";
|
|
8
|
+
if (n.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))
|
|
9
|
+
return "string";
|
|
10
|
+
if (i.literal && n.indentation() > i.keyCol)
|
|
11
|
+
return n.skipToEnd(), "string";
|
|
12
|
+
if (i.literal && (i.literal = !1), n.sol()) {
|
|
13
|
+
if (i.keyCol = 0, i.pair = !1, i.pairStart = !1, n.match("---") || n.match("..."))
|
|
14
|
+
return "def";
|
|
15
|
+
if (n.match(/^\s*-\s+/))
|
|
16
|
+
return "meta";
|
|
17
|
+
}
|
|
18
|
+
if (n.match(/^(\{|\}|\[|\])/))
|
|
19
|
+
return r == "{" ? i.inlinePairs++ : r == "}" ? i.inlinePairs-- : r == "[" ? i.inlineList++ : i.inlineList--, "meta";
|
|
20
|
+
if (i.inlineList > 0 && !e && r == ",")
|
|
21
|
+
return n.next(), "meta";
|
|
22
|
+
if (i.inlinePairs > 0 && !e && r == ",")
|
|
23
|
+
return i.keyCol = 0, i.pair = !1, i.pairStart = !1, n.next(), "meta";
|
|
24
|
+
if (i.pairStart) {
|
|
25
|
+
if (n.match(/^\s*(\||\>)\s*/))
|
|
26
|
+
return i.literal = !0, "meta";
|
|
27
|
+
if (n.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))
|
|
28
|
+
return "variable";
|
|
29
|
+
if (i.inlinePairs == 0 && n.match(/^\s*-?[0-9\.\,]+\s?$/) || i.inlinePairs > 0 && n.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))
|
|
30
|
+
return "number";
|
|
31
|
+
if (n.match(f))
|
|
32
|
+
return "keyword";
|
|
33
|
+
}
|
|
34
|
+
return !i.pair && n.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/) ? (i.pair = !0, i.keyCol = n.indentation(), "atom") : i.pair && n.match(/^:\s*/) ? (i.pairStart = !0, "meta") : (i.pairStart = !1, i.escaped = r == "\\", n.next(), null);
|
|
35
|
+
},
|
|
36
|
+
startState: function() {
|
|
37
|
+
return {
|
|
38
|
+
pair: !1,
|
|
39
|
+
pairStart: !1,
|
|
40
|
+
keyCol: 0,
|
|
41
|
+
inlinePairs: 0,
|
|
42
|
+
inlineList: 0,
|
|
43
|
+
literal: !1,
|
|
44
|
+
escaped: !1
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
languageData: {
|
|
48
|
+
commentTokens: { line: "#" }
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
a as yaml
|
|
53
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
function o(t) {
|
|
2
|
+
var n, l;
|
|
3
|
+
t ? (n = /^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i, l = /^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i) : (n = /^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i, l = /^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);
|
|
4
|
+
var u = /^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i, d = /^(n?[zc]|p[oe]?|m)\b/i, f = /^([hl][xy]|i[xy][hl]|slia|sll)\b/i, c = /^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;
|
|
5
|
+
return {
|
|
6
|
+
name: "z80",
|
|
7
|
+
startState: function() {
|
|
8
|
+
return {
|
|
9
|
+
context: 0
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
token: function(e, i) {
|
|
13
|
+
if (e.column() || (i.context = 0), e.eatSpace())
|
|
14
|
+
return null;
|
|
15
|
+
var r;
|
|
16
|
+
if (e.eatWhile(/\w/))
|
|
17
|
+
if (t && e.eat(".") && e.eatWhile(/\w/), r = e.current(), e.indentation()) {
|
|
18
|
+
if ((i.context == 1 || i.context == 4) && u.test(r))
|
|
19
|
+
return i.context = 4, "variable";
|
|
20
|
+
if (i.context == 2 && d.test(r))
|
|
21
|
+
return i.context = 4, "variableName.special";
|
|
22
|
+
if (n.test(r))
|
|
23
|
+
return i.context = 1, "keyword";
|
|
24
|
+
if (l.test(r))
|
|
25
|
+
return i.context = 2, "keyword";
|
|
26
|
+
if (i.context == 4 && c.test(r))
|
|
27
|
+
return "number";
|
|
28
|
+
if (f.test(r))
|
|
29
|
+
return "error";
|
|
30
|
+
} else
|
|
31
|
+
return e.match(c) ? "number" : null;
|
|
32
|
+
else {
|
|
33
|
+
if (e.eat(";"))
|
|
34
|
+
return e.skipToEnd(), "comment";
|
|
35
|
+
if (e.eat('"')) {
|
|
36
|
+
for (; (r = e.next()) && r != '"'; )
|
|
37
|
+
r == "\\" && e.next();
|
|
38
|
+
return "string";
|
|
39
|
+
} else if (e.eat("'")) {
|
|
40
|
+
if (e.match(/\\?.'/))
|
|
41
|
+
return "number";
|
|
42
|
+
} else if (e.eat(".") || e.sol() && e.eat("#")) {
|
|
43
|
+
if (i.context = 5, e.eatWhile(/\w/))
|
|
44
|
+
return "def";
|
|
45
|
+
} else if (e.eat("$")) {
|
|
46
|
+
if (e.eatWhile(/[\da-f]/i))
|
|
47
|
+
return "number";
|
|
48
|
+
} else if (e.eat("%")) {
|
|
49
|
+
if (e.eatWhile(/[01]/))
|
|
50
|
+
return "number";
|
|
51
|
+
} else
|
|
52
|
+
e.next();
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
const a = o(!1), s = o(!0);
|
|
59
|
+
export {
|
|
60
|
+
s as ez80,
|
|
61
|
+
a as z80
|
|
62
|
+
};
|