monacozen 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +124 -0
- package/assets/antimono-ClsI0fxy.js +5 -0
- package/assets/antimono-zBXMptjq.css +1 -0
- package/assets/azcli-ue5GhsHI.js +55 -0
- package/assets/bat-C6DzPBcU.js +125 -0
- package/assets/bicep-B6UDBWZN.js +220 -0
- package/assets/cameligo-BoKy-zSd.js +191 -0
- package/assets/clojure-D8WHGr6v.js +148 -0
- package/assets/coffee-C16Mnhbm.js +262 -0
- package/assets/cpp-_HbkGdoj.js +232 -0
- package/assets/csharp-DeGXkEgi.js +262 -0
- package/assets/csp-DGVEba9U.js +48 -0
- package/assets/css-DmO2GtiT.js +286 -0
- package/assets/css.worker-B59bB4vF.js +6 -0
- package/assets/css.worker-zFzGcGyJ.js +96 -0
- package/assets/cssMode-B-yiAIn5.js +65 -0
- package/assets/cypher-5654EJL_.js +214 -0
- package/assets/dart-BjXVSQM-.js +238 -0
- package/assets/dist-Bx9hOuoB.js +624 -0
- package/assets/dockerfile-DSA8TJLS.js +193 -0
- package/assets/ecl-DoDWSDGs.js +228 -0
- package/assets/editor.api-C_6h_pYy.js +83476 -0
- package/assets/editorWebWorkerMain-Cpqca1A3.js +6 -0
- package/assets/editorWebWorkerMain-_4oyTYIl.js +33 -0
- package/assets/elixir-CzC02SL7.js +525 -0
- package/assets/freemarker2-Jvnudjht.js +718 -0
- package/assets/fsharp-DRGCXPNW.js +149 -0
- package/assets/go-CyErB8P9.js +167 -0
- package/assets/graphql-CNnvnjR8.js +176 -0
- package/assets/handlebars-B9HHtHT5.js +412 -0
- package/assets/hcl-D4a6HBjk.js +221 -0
- package/assets/html-B5_5MvV-.js +333 -0
- package/assets/html.worker-Czi9KUKj.js +6 -0
- package/assets/html.worker-D4M1xqlZ.js +509 -0
- package/assets/htmlMode-DcETbRqN.js +74 -0
- package/assets/ini-CpSjysbn.js +96 -0
- package/assets/java-DkRrYYRp.js +175 -0
- package/assets/javascript-Da2MNB2t.js +20 -0
- package/assets/json.worker-D3-21m4I.js +65 -0
- package/assets/json.worker-pkLWnKxn.js +6 -0
- package/assets/jsonMode-BtwFVp_X.js +450 -0
- package/assets/julia-DXDdnD4p.js +416 -0
- package/assets/kotlin-BNDyMshT.js +184 -0
- package/assets/less-3yDKfG4U.js +244 -0
- package/assets/liquid-DCciKNzb.js +199 -0
- package/assets/lspLanguageFeatures-CAn_K3Js.js +1455 -0
- package/assets/lua-CqDy9oHE.js +202 -0
- package/assets/m3-DyBtJGhR.js +195 -0
- package/assets/main-16cPxgwS.js +107 -0
- package/assets/main-CB71Lf5W.js +129 -0
- package/assets/main-HEYSEiwe.js +66 -0
- package/assets/markdown-DIkeztiD.js +264 -0
- package/assets/mdx-BcOG7QFm.js +329 -0
- package/assets/mips-BUbWxz0r.js +130 -0
- package/assets/monaco-BMsB0TPD.js +39430 -0
- package/assets/monaco-ffd8b062.css +3 -0
- package/assets/msdax-95fojGvn.js +158 -0
- package/assets/mysql-CX3tETwr.js +170 -0
- package/assets/objective-c-CK2i53vc.js +146 -0
- package/assets/pascal-wnGRqmNG.js +178 -0
- package/assets/pascaligo-DR2NqTqc.js +203 -0
- package/assets/perl-DXuijcFO.js +318 -0
- package/assets/pgsql-BFvD7ctB.js +160 -0
- package/assets/php-FZHoZ5C_.js +473 -0
- package/assets/pla-Cmb_VVG6.js +148 -0
- package/assets/postiats-DUwtyBVk.js +506 -0
- package/assets/powerquery-wUlwxvME.js +192 -0
- package/assets/powershell-Wf4X7WOf.js +213 -0
- package/assets/protobuf-CcMDFVG6.js +661 -0
- package/assets/pug-OPBd_9cN.js +302 -0
- package/assets/python-D2Z49Cw8.js +254 -0
- package/assets/qsharp-C4P6iWbB.js +145 -0
- package/assets/r-FHjiK9Ff.js +191 -0
- package/assets/razor-CfcSDTvR.js +519 -0
- package/assets/redis-CLJ_Tkzp.js +125 -0
- package/assets/redshift-Cn0YgnO8.js +160 -0
- package/assets/restructuredtext-Ckzl4aRZ.js +289 -0
- package/assets/ruby-Dhjv9xsd.js +529 -0
- package/assets/rust-Bq7le2bN.js +180 -0
- package/assets/scala-Bth6QY64.js +553 -0
- package/assets/scheme-BHXdn3HT.js +172 -0
- package/assets/scss-DVPfVfp2.js +419 -0
- package/assets/shell-DYY2DoAm.js +225 -0
- package/assets/solidity-C2dWya5C.js +149 -0
- package/assets/sophia-BdPli0VA.js +149 -0
- package/assets/sparql-Ca6NBL_y.js +126 -0
- package/assets/sql-CE5EfRV1.js +173 -0
- package/assets/st-BKcHiAlg.js +478 -0
- package/assets/swift-v0LuaFKN.js +215 -0
- package/assets/systemverilog-BRC61WOW.js +300 -0
- package/assets/tcl-Xx48oN1j.js +225 -0
- package/assets/ts.worker-CokkJ1Lk.js +6 -0
- package/assets/ts.worker-De3FAST6.js +67741 -0
- package/assets/tsMode-cdcRizUc.js +567 -0
- package/assets/twig-Dq5WyzaF.js +390 -0
- package/assets/typescript-B25ZZJLy.js +257 -0
- package/assets/typespec-DVZXVZWY.js +236 -0
- package/assets/vb--Ows3SAS.js +262 -0
- package/assets/wgsl-gwRTfDFE.js +147 -0
- package/assets/workers-qpP7-_JR.js +48 -0
- package/assets/xml-BD6eVsMx.js +130 -0
- package/assets/yaml-unVkvP57.js +223 -0
- package/lib.d.ts +8379 -0
- package/package.json +1 -1
- package/src/main.js +24 -0
- package/index.d.ts +0 -6
- package/index.js +0 -1
- package/readme.md +0 -1
- /package/{license.txt → LICENSE} +0 -0
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/pug/pug.js
|
|
2
|
+
var e = {
|
|
3
|
+
comments: { lineComment: "//" },
|
|
4
|
+
brackets: [
|
|
5
|
+
["{", "}"],
|
|
6
|
+
["[", "]"],
|
|
7
|
+
["(", ")"]
|
|
8
|
+
],
|
|
9
|
+
autoClosingPairs: [
|
|
10
|
+
{
|
|
11
|
+
open: "\"",
|
|
12
|
+
close: "\"",
|
|
13
|
+
notIn: ["string", "comment"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
open: "'",
|
|
17
|
+
close: "'",
|
|
18
|
+
notIn: ["string", "comment"]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
open: "{",
|
|
22
|
+
close: "}",
|
|
23
|
+
notIn: ["string", "comment"]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
open: "[",
|
|
27
|
+
close: "]",
|
|
28
|
+
notIn: ["string", "comment"]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
open: "(",
|
|
32
|
+
close: ")",
|
|
33
|
+
notIn: ["string", "comment"]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
folding: { offSide: !0 }
|
|
37
|
+
}, t = {
|
|
38
|
+
defaultToken: "",
|
|
39
|
+
tokenPostfix: ".pug",
|
|
40
|
+
ignoreCase: !0,
|
|
41
|
+
brackets: [
|
|
42
|
+
{
|
|
43
|
+
token: "delimiter.curly",
|
|
44
|
+
open: "{",
|
|
45
|
+
close: "}"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
token: "delimiter.array",
|
|
49
|
+
open: "[",
|
|
50
|
+
close: "]"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
token: "delimiter.parenthesis",
|
|
54
|
+
open: "(",
|
|
55
|
+
close: ")"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
keywords: [
|
|
59
|
+
"append",
|
|
60
|
+
"block",
|
|
61
|
+
"case",
|
|
62
|
+
"default",
|
|
63
|
+
"doctype",
|
|
64
|
+
"each",
|
|
65
|
+
"else",
|
|
66
|
+
"extends",
|
|
67
|
+
"for",
|
|
68
|
+
"if",
|
|
69
|
+
"in",
|
|
70
|
+
"include",
|
|
71
|
+
"mixin",
|
|
72
|
+
"typeof",
|
|
73
|
+
"unless",
|
|
74
|
+
"var",
|
|
75
|
+
"when"
|
|
76
|
+
],
|
|
77
|
+
tags: /* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.base.basefont.bdi.bdo.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.command.datalist.dd.del.details.dfn.div.dl.dt.em.embed.fieldset.figcaption.figure.font.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.keygen.kbd.label.li.link.map.mark.menu.meta.meter.nav.noframes.noscript.object.ol.optgroup.option.output.p.param.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strike.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.tracks.tt.u.ul.video.wbr".split("."),
|
|
78
|
+
symbols: /[\+\-\*\%\&\|\!\=\/\.\,\:]+/,
|
|
79
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
80
|
+
tokenizer: {
|
|
81
|
+
root: [
|
|
82
|
+
[/^(\s*)([a-zA-Z_-][\w-]*)/, { cases: {
|
|
83
|
+
"$2@tags": { cases: {
|
|
84
|
+
"@eos": ["", "tag"],
|
|
85
|
+
"@default": ["", {
|
|
86
|
+
token: "tag",
|
|
87
|
+
next: "@tag.$1"
|
|
88
|
+
}]
|
|
89
|
+
} },
|
|
90
|
+
"$2@keywords": ["", { token: "keyword.$2" }],
|
|
91
|
+
"@default": ["", ""]
|
|
92
|
+
} }],
|
|
93
|
+
[/^(\s*)(#[a-zA-Z_-][\w-]*)/, { cases: {
|
|
94
|
+
"@eos": ["", "tag.id"],
|
|
95
|
+
"@default": ["", {
|
|
96
|
+
token: "tag.id",
|
|
97
|
+
next: "@tag.$1"
|
|
98
|
+
}]
|
|
99
|
+
} }],
|
|
100
|
+
[/^(\s*)(\.[a-zA-Z_-][\w-]*)/, { cases: {
|
|
101
|
+
"@eos": ["", "tag.class"],
|
|
102
|
+
"@default": ["", {
|
|
103
|
+
token: "tag.class",
|
|
104
|
+
next: "@tag.$1"
|
|
105
|
+
}]
|
|
106
|
+
} }],
|
|
107
|
+
[/^(\s*)(\|.*)$/, ""],
|
|
108
|
+
{ include: "@whitespace" },
|
|
109
|
+
[/[a-zA-Z_$][\w$]*/, { cases: {
|
|
110
|
+
"@keywords": { token: "keyword.$0" },
|
|
111
|
+
"@default": ""
|
|
112
|
+
} }],
|
|
113
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
114
|
+
[/@symbols/, "delimiter"],
|
|
115
|
+
[/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
116
|
+
[/\d+/, "number"],
|
|
117
|
+
[
|
|
118
|
+
/"/,
|
|
119
|
+
"string",
|
|
120
|
+
"@string.\""
|
|
121
|
+
],
|
|
122
|
+
[
|
|
123
|
+
/'/,
|
|
124
|
+
"string",
|
|
125
|
+
"@string.'"
|
|
126
|
+
]
|
|
127
|
+
],
|
|
128
|
+
tag: [
|
|
129
|
+
[/(\.)(\s*$)/, [{
|
|
130
|
+
token: "delimiter",
|
|
131
|
+
next: "@blockText.$S2."
|
|
132
|
+
}, ""]],
|
|
133
|
+
[/\s+/, {
|
|
134
|
+
token: "",
|
|
135
|
+
next: "@simpleText"
|
|
136
|
+
}],
|
|
137
|
+
[/#[a-zA-Z_-][\w-]*/, { cases: {
|
|
138
|
+
"@eos": {
|
|
139
|
+
token: "tag.id",
|
|
140
|
+
next: "@pop"
|
|
141
|
+
},
|
|
142
|
+
"@default": "tag.id"
|
|
143
|
+
} }],
|
|
144
|
+
[/\.[a-zA-Z_-][\w-]*/, { cases: {
|
|
145
|
+
"@eos": {
|
|
146
|
+
token: "tag.class",
|
|
147
|
+
next: "@pop"
|
|
148
|
+
},
|
|
149
|
+
"@default": "tag.class"
|
|
150
|
+
} }],
|
|
151
|
+
[/\(/, {
|
|
152
|
+
token: "delimiter.parenthesis",
|
|
153
|
+
next: "@attributeList"
|
|
154
|
+
}]
|
|
155
|
+
],
|
|
156
|
+
simpleText: [
|
|
157
|
+
[/[^#]+$/, {
|
|
158
|
+
token: "",
|
|
159
|
+
next: "@popall"
|
|
160
|
+
}],
|
|
161
|
+
[/[^#]+/, { token: "" }],
|
|
162
|
+
[/(#{)([^}]*)(})/, { cases: {
|
|
163
|
+
"@eos": [
|
|
164
|
+
"interpolation.delimiter",
|
|
165
|
+
"interpolation",
|
|
166
|
+
{
|
|
167
|
+
token: "interpolation.delimiter",
|
|
168
|
+
next: "@popall"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"@default": [
|
|
172
|
+
"interpolation.delimiter",
|
|
173
|
+
"interpolation",
|
|
174
|
+
"interpolation.delimiter"
|
|
175
|
+
]
|
|
176
|
+
} }],
|
|
177
|
+
[/#$/, {
|
|
178
|
+
token: "",
|
|
179
|
+
next: "@popall"
|
|
180
|
+
}],
|
|
181
|
+
[/#/, ""]
|
|
182
|
+
],
|
|
183
|
+
attributeList: [
|
|
184
|
+
[/\s+/, ""],
|
|
185
|
+
[/(\w+)(\s*=\s*)("|')/, [
|
|
186
|
+
"attribute.name",
|
|
187
|
+
"delimiter",
|
|
188
|
+
{
|
|
189
|
+
token: "attribute.value",
|
|
190
|
+
next: "@value.$3"
|
|
191
|
+
}
|
|
192
|
+
]],
|
|
193
|
+
[/\w+/, "attribute.name"],
|
|
194
|
+
[/,/, { cases: {
|
|
195
|
+
"@eos": {
|
|
196
|
+
token: "attribute.delimiter",
|
|
197
|
+
next: "@popall"
|
|
198
|
+
},
|
|
199
|
+
"@default": "attribute.delimiter"
|
|
200
|
+
} }],
|
|
201
|
+
[/\)$/, {
|
|
202
|
+
token: "delimiter.parenthesis",
|
|
203
|
+
next: "@popall"
|
|
204
|
+
}],
|
|
205
|
+
[/\)/, {
|
|
206
|
+
token: "delimiter.parenthesis",
|
|
207
|
+
next: "@pop"
|
|
208
|
+
}]
|
|
209
|
+
],
|
|
210
|
+
whitespace: [
|
|
211
|
+
[/^(\s*)(\/\/.*)$/, {
|
|
212
|
+
token: "comment",
|
|
213
|
+
next: "@blockText.$1.comment"
|
|
214
|
+
}],
|
|
215
|
+
[/[ \t\r\n]+/, ""],
|
|
216
|
+
[/<!--/, {
|
|
217
|
+
token: "comment",
|
|
218
|
+
next: "@comment"
|
|
219
|
+
}]
|
|
220
|
+
],
|
|
221
|
+
blockText: [[/^\s+.*$/, { cases: {
|
|
222
|
+
"($S2\\s+.*$)": { token: "$S3" },
|
|
223
|
+
"@default": {
|
|
224
|
+
token: "@rematch",
|
|
225
|
+
next: "@popall"
|
|
226
|
+
}
|
|
227
|
+
} }], [/./, {
|
|
228
|
+
token: "@rematch",
|
|
229
|
+
next: "@popall"
|
|
230
|
+
}]],
|
|
231
|
+
comment: [
|
|
232
|
+
[/[^<\-]+/, "comment.content"],
|
|
233
|
+
[/-->/, {
|
|
234
|
+
token: "comment",
|
|
235
|
+
next: "@pop"
|
|
236
|
+
}],
|
|
237
|
+
[/<!--/, "comment.content.invalid"],
|
|
238
|
+
[/[<\-]/, "comment.content"]
|
|
239
|
+
],
|
|
240
|
+
string: [
|
|
241
|
+
[/[^\\"'#]+/, { cases: {
|
|
242
|
+
"@eos": {
|
|
243
|
+
token: "string",
|
|
244
|
+
next: "@popall"
|
|
245
|
+
},
|
|
246
|
+
"@default": "string"
|
|
247
|
+
} }],
|
|
248
|
+
[/@escapes/, { cases: {
|
|
249
|
+
"@eos": {
|
|
250
|
+
token: "string.escape",
|
|
251
|
+
next: "@popall"
|
|
252
|
+
},
|
|
253
|
+
"@default": "string.escape"
|
|
254
|
+
} }],
|
|
255
|
+
[/\\./, { cases: {
|
|
256
|
+
"@eos": {
|
|
257
|
+
token: "string.escape.invalid",
|
|
258
|
+
next: "@popall"
|
|
259
|
+
},
|
|
260
|
+
"@default": "string.escape.invalid"
|
|
261
|
+
} }],
|
|
262
|
+
[/(#{)([^}]*)(})/, [
|
|
263
|
+
"interpolation.delimiter",
|
|
264
|
+
"interpolation",
|
|
265
|
+
"interpolation.delimiter"
|
|
266
|
+
]],
|
|
267
|
+
[/#/, "string"],
|
|
268
|
+
[/["']/, { cases: {
|
|
269
|
+
"$#==$S2": {
|
|
270
|
+
token: "string",
|
|
271
|
+
next: "@pop"
|
|
272
|
+
},
|
|
273
|
+
"@default": { token: "string" }
|
|
274
|
+
} }]
|
|
275
|
+
],
|
|
276
|
+
value: [
|
|
277
|
+
[/[^\\"']+/, { cases: {
|
|
278
|
+
"@eos": {
|
|
279
|
+
token: "attribute.value",
|
|
280
|
+
next: "@popall"
|
|
281
|
+
},
|
|
282
|
+
"@default": "attribute.value"
|
|
283
|
+
} }],
|
|
284
|
+
[/\\./, { cases: {
|
|
285
|
+
"@eos": {
|
|
286
|
+
token: "attribute.value",
|
|
287
|
+
next: "@popall"
|
|
288
|
+
},
|
|
289
|
+
"@default": "attribute.value"
|
|
290
|
+
} }],
|
|
291
|
+
[/["']/, { cases: {
|
|
292
|
+
"$#==$S2": {
|
|
293
|
+
token: "attribute.value",
|
|
294
|
+
next: "@pop"
|
|
295
|
+
},
|
|
296
|
+
"@default": { token: "attribute.value" }
|
|
297
|
+
} }]
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
//#endregion
|
|
302
|
+
export { e as conf, t as language };
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { m as e } from "./editor.api-C_6h_pYy.js";
|
|
2
|
+
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/python/python.js
|
|
3
|
+
var t = {
|
|
4
|
+
comments: {
|
|
5
|
+
lineComment: "#",
|
|
6
|
+
blockComment: ["'''", "'''"]
|
|
7
|
+
},
|
|
8
|
+
brackets: [
|
|
9
|
+
["{", "}"],
|
|
10
|
+
["[", "]"],
|
|
11
|
+
["(", ")"]
|
|
12
|
+
],
|
|
13
|
+
autoClosingPairs: [
|
|
14
|
+
{
|
|
15
|
+
open: "{",
|
|
16
|
+
close: "}"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
open: "[",
|
|
20
|
+
close: "]"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
open: "(",
|
|
24
|
+
close: ")"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
open: "\"",
|
|
28
|
+
close: "\"",
|
|
29
|
+
notIn: ["string"]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
open: "'",
|
|
33
|
+
close: "'",
|
|
34
|
+
notIn: ["string", "comment"]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
surroundingPairs: [
|
|
38
|
+
{
|
|
39
|
+
open: "{",
|
|
40
|
+
close: "}"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
open: "[",
|
|
44
|
+
close: "]"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
open: "(",
|
|
48
|
+
close: ")"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
open: "\"",
|
|
52
|
+
close: "\""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
open: "'",
|
|
56
|
+
close: "'"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
onEnterRules: [{
|
|
60
|
+
beforeText: /* @__PURE__ */ RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),
|
|
61
|
+
action: { indentAction: e.IndentAction.Indent }
|
|
62
|
+
}],
|
|
63
|
+
folding: {
|
|
64
|
+
offSide: !0,
|
|
65
|
+
markers: {
|
|
66
|
+
start: /* @__PURE__ */ RegExp("^\\s*#region\\b"),
|
|
67
|
+
end: /* @__PURE__ */ RegExp("^\\s*#endregion\\b")
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}, n = {
|
|
71
|
+
defaultToken: "",
|
|
72
|
+
tokenPostfix: ".python",
|
|
73
|
+
keywords: /* @__PURE__ */ "False.None.True._.and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.exec.finally.for.from.global.if.import.in.is.lambda.match.nonlocal.not.or.pass.print.raise.return.try.type.while.with.yield.int.float.long.complex.hex.abs.all.any.apply.basestring.bin.bool.buffer.bytearray.callable.chr.classmethod.cmp.coerce.compile.complex.delattr.dict.dir.divmod.enumerate.eval.execfile.file.filter.format.frozenset.getattr.globals.hasattr.hash.help.id.input.intern.isinstance.issubclass.iter.len.locals.list.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.reversed.range.raw_input.reduce.reload.repr.reversed.round.self.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.unichr.unicode.vars.xrange.zip.__dict__.__methods__.__members__.__class__.__bases__.__name__.__mro__.__subclasses__.__init__.__import__".split("."),
|
|
74
|
+
brackets: [
|
|
75
|
+
{
|
|
76
|
+
open: "{",
|
|
77
|
+
close: "}",
|
|
78
|
+
token: "delimiter.curly"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
open: "[",
|
|
82
|
+
close: "]",
|
|
83
|
+
token: "delimiter.bracket"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
open: "(",
|
|
87
|
+
close: ")",
|
|
88
|
+
token: "delimiter.parenthesis"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
tokenizer: {
|
|
92
|
+
root: [
|
|
93
|
+
{ include: "@whitespace" },
|
|
94
|
+
{ include: "@numbers" },
|
|
95
|
+
{ include: "@strings" },
|
|
96
|
+
[/[,:;]/, "delimiter"],
|
|
97
|
+
[/[{}\[\]()]/, "@brackets"],
|
|
98
|
+
[/@[a-zA-Z_]\w*/, "tag"],
|
|
99
|
+
[/[a-zA-Z_]\w*/, { cases: {
|
|
100
|
+
"@keywords": "keyword",
|
|
101
|
+
"@default": "identifier"
|
|
102
|
+
} }]
|
|
103
|
+
],
|
|
104
|
+
whitespace: [
|
|
105
|
+
[/\s+/, "white"],
|
|
106
|
+
[/(^#.*$)/, "comment"],
|
|
107
|
+
[
|
|
108
|
+
/'''/,
|
|
109
|
+
"string",
|
|
110
|
+
"@endDocString"
|
|
111
|
+
],
|
|
112
|
+
[
|
|
113
|
+
/"""/,
|
|
114
|
+
"string",
|
|
115
|
+
"@endDblDocString"
|
|
116
|
+
]
|
|
117
|
+
],
|
|
118
|
+
endDocString: [
|
|
119
|
+
[/[^']+/, "string"],
|
|
120
|
+
[/\\'/, "string"],
|
|
121
|
+
[
|
|
122
|
+
/'''/,
|
|
123
|
+
"string",
|
|
124
|
+
"@popall"
|
|
125
|
+
],
|
|
126
|
+
[/'/, "string"]
|
|
127
|
+
],
|
|
128
|
+
endDblDocString: [
|
|
129
|
+
[/[^"]+/, "string"],
|
|
130
|
+
[/\\"/, "string"],
|
|
131
|
+
[
|
|
132
|
+
/"""/,
|
|
133
|
+
"string",
|
|
134
|
+
"@popall"
|
|
135
|
+
],
|
|
136
|
+
[/"/, "string"]
|
|
137
|
+
],
|
|
138
|
+
numbers: [[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/, "number.hex"], [/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/, "number"]],
|
|
139
|
+
strings: [
|
|
140
|
+
[
|
|
141
|
+
/'$/,
|
|
142
|
+
"string.escape",
|
|
143
|
+
"@popall"
|
|
144
|
+
],
|
|
145
|
+
[
|
|
146
|
+
/f'{1,3}/,
|
|
147
|
+
"string.escape",
|
|
148
|
+
"@fStringBody"
|
|
149
|
+
],
|
|
150
|
+
[
|
|
151
|
+
/'/,
|
|
152
|
+
"string.escape",
|
|
153
|
+
"@stringBody"
|
|
154
|
+
],
|
|
155
|
+
[
|
|
156
|
+
/"$/,
|
|
157
|
+
"string.escape",
|
|
158
|
+
"@popall"
|
|
159
|
+
],
|
|
160
|
+
[
|
|
161
|
+
/f"{1,3}/,
|
|
162
|
+
"string.escape",
|
|
163
|
+
"@fDblStringBody"
|
|
164
|
+
],
|
|
165
|
+
[
|
|
166
|
+
/"/,
|
|
167
|
+
"string.escape",
|
|
168
|
+
"@dblStringBody"
|
|
169
|
+
]
|
|
170
|
+
],
|
|
171
|
+
fStringBody: [
|
|
172
|
+
[
|
|
173
|
+
/[^\\'\{\}]+$/,
|
|
174
|
+
"string",
|
|
175
|
+
"@popall"
|
|
176
|
+
],
|
|
177
|
+
[/[^\\'\{\}]+/, "string"],
|
|
178
|
+
[
|
|
179
|
+
/\{[^\}':!=]+/,
|
|
180
|
+
"identifier",
|
|
181
|
+
"@fStringDetail"
|
|
182
|
+
],
|
|
183
|
+
[/\\./, "string"],
|
|
184
|
+
[
|
|
185
|
+
/'/,
|
|
186
|
+
"string.escape",
|
|
187
|
+
"@popall"
|
|
188
|
+
],
|
|
189
|
+
[/\\$/, "string"]
|
|
190
|
+
],
|
|
191
|
+
stringBody: [
|
|
192
|
+
[
|
|
193
|
+
/[^\\']+$/,
|
|
194
|
+
"string",
|
|
195
|
+
"@popall"
|
|
196
|
+
],
|
|
197
|
+
[/[^\\']+/, "string"],
|
|
198
|
+
[/\\./, "string"],
|
|
199
|
+
[
|
|
200
|
+
/'/,
|
|
201
|
+
"string.escape",
|
|
202
|
+
"@popall"
|
|
203
|
+
],
|
|
204
|
+
[/\\$/, "string"]
|
|
205
|
+
],
|
|
206
|
+
fDblStringBody: [
|
|
207
|
+
[
|
|
208
|
+
/[^\\"\{\}]+$/,
|
|
209
|
+
"string",
|
|
210
|
+
"@popall"
|
|
211
|
+
],
|
|
212
|
+
[/[^\\"\{\}]+/, "string"],
|
|
213
|
+
[
|
|
214
|
+
/\{[^\}':!=]+/,
|
|
215
|
+
"identifier",
|
|
216
|
+
"@fStringDetail"
|
|
217
|
+
],
|
|
218
|
+
[/\\./, "string"],
|
|
219
|
+
[
|
|
220
|
+
/"/,
|
|
221
|
+
"string.escape",
|
|
222
|
+
"@popall"
|
|
223
|
+
],
|
|
224
|
+
[/\\$/, "string"]
|
|
225
|
+
],
|
|
226
|
+
dblStringBody: [
|
|
227
|
+
[
|
|
228
|
+
/[^\\"]+$/,
|
|
229
|
+
"string",
|
|
230
|
+
"@popall"
|
|
231
|
+
],
|
|
232
|
+
[/[^\\"]+/, "string"],
|
|
233
|
+
[/\\./, "string"],
|
|
234
|
+
[
|
|
235
|
+
/"/,
|
|
236
|
+
"string.escape",
|
|
237
|
+
"@popall"
|
|
238
|
+
],
|
|
239
|
+
[/\\$/, "string"]
|
|
240
|
+
],
|
|
241
|
+
fStringDetail: [
|
|
242
|
+
[/[:][^}]+/, "string"],
|
|
243
|
+
[/[!][ars]/, "string"],
|
|
244
|
+
[/=/, "string"],
|
|
245
|
+
[
|
|
246
|
+
/\}/,
|
|
247
|
+
"identifier",
|
|
248
|
+
"@pop"
|
|
249
|
+
]
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
//#endregion
|
|
254
|
+
export { t as conf, n as language };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/qsharp/qsharp.js
|
|
2
|
+
var e = {
|
|
3
|
+
comments: { lineComment: "//" },
|
|
4
|
+
brackets: [
|
|
5
|
+
["{", "}"],
|
|
6
|
+
["[", "]"],
|
|
7
|
+
["(", ")"]
|
|
8
|
+
],
|
|
9
|
+
autoClosingPairs: [
|
|
10
|
+
{
|
|
11
|
+
open: "{",
|
|
12
|
+
close: "}"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
open: "[",
|
|
16
|
+
close: "]"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
open: "(",
|
|
20
|
+
close: ")"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
open: "\"",
|
|
24
|
+
close: "\"",
|
|
25
|
+
notIn: ["string", "comment"]
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
surroundingPairs: [
|
|
29
|
+
{
|
|
30
|
+
open: "{",
|
|
31
|
+
close: "}"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
open: "[",
|
|
35
|
+
close: "]"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
open: "(",
|
|
39
|
+
close: ")"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
open: "\"",
|
|
43
|
+
close: "\""
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}, t = {
|
|
47
|
+
keywords: /* @__PURE__ */ "namespace.open.import.export.as.operation.function.body.adjoint.newtype.struct.controlled.if.elif.else.repeat.until.fixup.for.in.while.return.fail.within.apply.Adjoint.Controlled.Adj.Ctl.is.self.auto.distribute.invert.intrinsic.let.set.w/.new.not.and.or.use.borrow.using.borrowing.mutable.internal".split("."),
|
|
48
|
+
typeKeywords: [
|
|
49
|
+
"Unit",
|
|
50
|
+
"Int",
|
|
51
|
+
"BigInt",
|
|
52
|
+
"Double",
|
|
53
|
+
"Bool",
|
|
54
|
+
"String",
|
|
55
|
+
"Qubit",
|
|
56
|
+
"Result",
|
|
57
|
+
"Pauli",
|
|
58
|
+
"Range"
|
|
59
|
+
],
|
|
60
|
+
invalidKeywords: /* @__PURE__ */ "abstract.base.bool.break.byte.case.catch.char.checked.class.const.continue.decimal.default.delegate.do.double.enum.event.explicit.extern.finally.fixed.float.foreach.goto.implicit.int.interface.lock.long.null.object.operator.out.override.params.private.protected.public.readonly.ref.sbyte.sealed.short.sizeof.stackalloc.static.string.switch.this.throw.try.typeof.unit.ulong.unchecked.unsafe.ushort.virtual.void.volatile".split("."),
|
|
61
|
+
constants: [
|
|
62
|
+
"true",
|
|
63
|
+
"false",
|
|
64
|
+
"PauliI",
|
|
65
|
+
"PauliX",
|
|
66
|
+
"PauliY",
|
|
67
|
+
"PauliZ",
|
|
68
|
+
"One",
|
|
69
|
+
"Zero"
|
|
70
|
+
],
|
|
71
|
+
builtin: /* @__PURE__ */ "X.Y.Z.H.HY.S.T.SWAP.CNOT.CCNOT.MultiX.R.RFrac.Rx.Ry.Rz.R1.R1Frac.Exp.ExpFrac.Measure.M.MultiM.Message.Length.Assert.AssertProb.AssertEqual".split("."),
|
|
72
|
+
operators: /* @__PURE__ */ "and=,<-,->,*,*=,@,!,^,^=,:,::,.,..,==,...,=,=>,>,>=,<,<=,-,-=,!=,or=,%,%=,|,+,+=,?,/,/=,&&&,&&&=,^^^,^^^=,>>>,>>>=,<<<,<<<=,|||,|||=,~~~,_,w/,w/=".split(","),
|
|
73
|
+
namespaceFollows: ["namespace", "open"],
|
|
74
|
+
importsFollows: ["import"],
|
|
75
|
+
symbols: /[=><!~?:&|+\-*\/\^%@._]+/,
|
|
76
|
+
escapes: /\\[\s\S]/,
|
|
77
|
+
tokenizer: {
|
|
78
|
+
root: [
|
|
79
|
+
[/[a-zA-Z_$][\w$]*/, { cases: {
|
|
80
|
+
"@namespaceFollows": {
|
|
81
|
+
token: "keyword.$0",
|
|
82
|
+
next: "@namespace"
|
|
83
|
+
},
|
|
84
|
+
"@importsFollows": {
|
|
85
|
+
token: "keyword.$0",
|
|
86
|
+
next: "@imports"
|
|
87
|
+
},
|
|
88
|
+
"@typeKeywords": "type",
|
|
89
|
+
"@keywords": "keyword",
|
|
90
|
+
"@constants": "constant",
|
|
91
|
+
"@builtin": "keyword",
|
|
92
|
+
"@invalidKeywords": "invalid",
|
|
93
|
+
"@default": "identifier"
|
|
94
|
+
} }],
|
|
95
|
+
{ include: "@whitespace" },
|
|
96
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
97
|
+
[/@symbols/, { cases: {
|
|
98
|
+
"@operators": "operator",
|
|
99
|
+
"@default": ""
|
|
100
|
+
} }],
|
|
101
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
102
|
+
[/\d+/, "number"],
|
|
103
|
+
[/[;,.]/, "delimiter"],
|
|
104
|
+
[/"/, {
|
|
105
|
+
token: "string.quote",
|
|
106
|
+
bracket: "@open",
|
|
107
|
+
next: "@string"
|
|
108
|
+
}]
|
|
109
|
+
],
|
|
110
|
+
string: [
|
|
111
|
+
[/[^\\"]+/, "string"],
|
|
112
|
+
[/@escapes/, "string.escape"],
|
|
113
|
+
[/"/, {
|
|
114
|
+
token: "string.quote",
|
|
115
|
+
bracket: "@close",
|
|
116
|
+
next: "@pop"
|
|
117
|
+
}]
|
|
118
|
+
],
|
|
119
|
+
namespace: [
|
|
120
|
+
{ include: "@whitespace" },
|
|
121
|
+
[/[A-Za-z]\w*/, "namespace"],
|
|
122
|
+
[/[\.]/, "delimiter"],
|
|
123
|
+
[
|
|
124
|
+
"",
|
|
125
|
+
"",
|
|
126
|
+
"@pop"
|
|
127
|
+
]
|
|
128
|
+
],
|
|
129
|
+
imports: [
|
|
130
|
+
{ include: "@whitespace" },
|
|
131
|
+
[/[A-Za-z]\w*(?=\.)/, "namespace"],
|
|
132
|
+
[/[A-Za-z]\w*/, "identifier"],
|
|
133
|
+
[/\*/, "wildcard"],
|
|
134
|
+
[/[\.,]/, "delimiter"],
|
|
135
|
+
[
|
|
136
|
+
"",
|
|
137
|
+
"",
|
|
138
|
+
"@pop"
|
|
139
|
+
]
|
|
140
|
+
],
|
|
141
|
+
whitespace: [[/[ \t\r\n]+/, "white"], [/(\/\/).*/, "comment"]]
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
//#endregion
|
|
145
|
+
export { e as conf, t as language };
|