monacozen 0.0.1 → 0.2.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 +219 -0
- package/assets/antimono-ClsI0fxy.js +5 -0
- package/assets/antimono-zBXMptjq.css +1 -0
- package/assets/bat-T2vjbQzY.js +125 -0
- package/assets/bicep-B6UDBWZN.js +220 -0
- package/assets/clojure-BvXzD8Uz.js +148 -0
- package/assets/coffee-D_yet6sT.js +262 -0
- package/assets/cpp-CsfEADPM.js +232 -0
- package/assets/csharp-jw3fFksF.js +262 -0
- package/assets/css-FsiUe-xI.js +286 -0
- package/assets/css.worker-BIsSvM_Q.js +96 -0
- package/assets/css.worker-BSHdDU9y.js +6 -0
- package/assets/cssMode-7U-ime2d.js +65 -0
- package/assets/cypher-B8DgU2PH.js +214 -0
- package/assets/dart-D1x60wEn.js +238 -0
- package/assets/dist-Bx9hOuoB.js +624 -0
- package/assets/dockerfile-DSHxsy4G.js +193 -0
- package/assets/editor.api-ZYFspLPt.js +85776 -0
- package/assets/editorWebWorkerMain-BioN9fGU.js +33 -0
- package/assets/editorWebWorkerMain-DXr8-Jst.js +6 -0
- package/assets/elixir-Cr7BtjRU.js +525 -0
- package/assets/fsharp-CeVKIr0d.js +149 -0
- package/assets/go-BL4_0srD.js +167 -0
- package/assets/graphql-mhWekwK0.js +176 -0
- package/assets/handlebars-rQdtgZoQ.js +412 -0
- package/assets/hcl-CfyDj6z_.js +221 -0
- package/assets/html-DIDrd2Z7.js +333 -0
- package/assets/html.worker-BrBx6eB3.js +6 -0
- package/assets/html.worker-CEvqvEpu.js +509 -0
- package/assets/htmlMode-i6u-9r7u.js +74 -0
- package/assets/ini-DhiXkl_g.js +96 -0
- package/assets/java-Ct9YHm5L.js +175 -0
- package/assets/javascript-By915NHa.js +20 -0
- package/assets/json.worker-B0PzJ5jL.js +6 -0
- package/assets/json.worker-CAiVr-gV.js +65 -0
- package/assets/jsonMode-DAP8CNa2.js +450 -0
- package/assets/julia-BAYXm_pL.js +416 -0
- package/assets/kotlin-JEujETri.js +184 -0
- package/assets/less-oHZXXDVD.js +244 -0
- package/assets/liquid-Cvs1eMgo.js +199 -0
- package/assets/lspLanguageFeatures-D6P77uh_.js +1455 -0
- package/assets/lua-B3ViXcD8.js +202 -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-Ggb6Rgvc.js +264 -0
- package/assets/mdx-Ce7sXDA4.js +329 -0
- package/assets/mips-cYdfQChM.js +130 -0
- package/assets/monaco-d37b1a8f.css +3 -0
- package/assets/monaco-o5F6wkXp.js +40865 -0
- package/assets/mysql-nklBC2QL.js +170 -0
- package/assets/objective-c-x5BzCYEv.js +146 -0
- package/assets/pascal-DWL5ya_C.js +178 -0
- package/assets/perl-CbRoLks6.js +318 -0
- package/assets/pgsql-CVS-AsDB.js +160 -0
- package/assets/php-6gZIubF1.js +473 -0
- package/assets/powershell-DKgJI7BG.js +213 -0
- package/assets/protobuf-N0VyW3k9.js +661 -0
- package/assets/pug-BIMEUctf.js +302 -0
- package/assets/python-BKt2Winm.js +254 -0
- package/assets/r-Cb2uCcX6.js +191 -0
- package/assets/redis-D1CRAuQ1.js +125 -0
- package/assets/ruby-BzpgsYNr.js +529 -0
- package/assets/rust-CkIXqWDr.js +180 -0
- package/assets/scala-CnJ7htCu.js +553 -0
- package/assets/scss-xP2eAFyY.js +419 -0
- package/assets/shell-JSjWPSrk.js +225 -0
- package/assets/solidity-C8AFhoIi.js +149 -0
- package/assets/sql-DqW-LmZI.js +173 -0
- package/assets/swift-BcHKQY-M.js +215 -0
- package/assets/systemverilog-Dmu-Ht4V.js +300 -0
- package/assets/ts.worker-BAchZA3W.js +6 -0
- package/assets/ts.worker-DZhhT1EO.js +67741 -0
- package/assets/tsMode-C_Fsqh0j.js +566 -0
- package/assets/twig-Bj4rwioa.js +390 -0
- package/assets/typescript-Djsb1cC9.js +257 -0
- package/assets/typespec-xwJ6QpRP.js +236 -0
- package/assets/vb-CMxAjmFH.js +262 -0
- package/assets/wgsl-CTYGQRo2.js +147 -0
- package/assets/xml-D7cJD5hW.js +130 -0
- package/assets/yaml-B8A0QdVf.js +223 -0
- package/assets/yaml.worker-Crtsysk5.js +474 -0
- package/assets/yaml.worker-DZ36155v.js +6 -0
- package/lib.d.ts +8403 -0
- package/lib.js +2 -0
- package/package.json +1 -1
- package/src/main.js +29 -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,6 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/editor/common/services/editorWebWorkerMain.js?worker
|
|
2
|
+
function e(e) {
|
|
3
|
+
return new Worker(new URL("editorWebWorkerMain-BioN9fGU.js", import.meta.url).href, { name: e?.name });
|
|
4
|
+
}
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as default };
|
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/definitions/elixir/elixir.js
|
|
2
|
+
var e = {
|
|
3
|
+
comments: { lineComment: "#" },
|
|
4
|
+
brackets: [
|
|
5
|
+
["{", "}"],
|
|
6
|
+
["[", "]"],
|
|
7
|
+
["(", ")"]
|
|
8
|
+
],
|
|
9
|
+
surroundingPairs: [
|
|
10
|
+
{
|
|
11
|
+
open: "{",
|
|
12
|
+
close: "}"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
open: "[",
|
|
16
|
+
close: "]"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
open: "(",
|
|
20
|
+
close: ")"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
open: "'",
|
|
24
|
+
close: "'"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
open: "\"",
|
|
28
|
+
close: "\""
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
autoClosingPairs: [
|
|
32
|
+
{
|
|
33
|
+
open: "'",
|
|
34
|
+
close: "'",
|
|
35
|
+
notIn: ["string", "comment"]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
open: "\"",
|
|
39
|
+
close: "\"",
|
|
40
|
+
notIn: ["comment"]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
open: "\"\"\"",
|
|
44
|
+
close: "\"\"\""
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
open: "`",
|
|
48
|
+
close: "`",
|
|
49
|
+
notIn: ["string", "comment"]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
open: "(",
|
|
53
|
+
close: ")"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
open: "{",
|
|
57
|
+
close: "}"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
open: "[",
|
|
61
|
+
close: "]"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
open: "<<",
|
|
65
|
+
close: ">>"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
indentationRules: {
|
|
69
|
+
increaseIndentPattern: /^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,
|
|
70
|
+
decreaseIndentPattern: /^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/
|
|
71
|
+
}
|
|
72
|
+
}, t = {
|
|
73
|
+
defaultToken: "source",
|
|
74
|
+
tokenPostfix: ".elixir",
|
|
75
|
+
brackets: [
|
|
76
|
+
{
|
|
77
|
+
open: "[",
|
|
78
|
+
close: "]",
|
|
79
|
+
token: "delimiter.square"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
open: "(",
|
|
83
|
+
close: ")",
|
|
84
|
+
token: "delimiter.parenthesis"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
open: "{",
|
|
88
|
+
close: "}",
|
|
89
|
+
token: "delimiter.curly"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
open: "<<",
|
|
93
|
+
close: ">>",
|
|
94
|
+
token: "delimiter.angle.special"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
declarationKeywords: [
|
|
98
|
+
"def",
|
|
99
|
+
"defp",
|
|
100
|
+
"defn",
|
|
101
|
+
"defnp",
|
|
102
|
+
"defguard",
|
|
103
|
+
"defguardp",
|
|
104
|
+
"defmacro",
|
|
105
|
+
"defmacrop",
|
|
106
|
+
"defdelegate",
|
|
107
|
+
"defcallback",
|
|
108
|
+
"defmacrocallback",
|
|
109
|
+
"defmodule",
|
|
110
|
+
"defprotocol",
|
|
111
|
+
"defexception",
|
|
112
|
+
"defimpl",
|
|
113
|
+
"defstruct"
|
|
114
|
+
],
|
|
115
|
+
operatorKeywords: [
|
|
116
|
+
"and",
|
|
117
|
+
"in",
|
|
118
|
+
"not",
|
|
119
|
+
"or",
|
|
120
|
+
"when"
|
|
121
|
+
],
|
|
122
|
+
namespaceKeywords: [
|
|
123
|
+
"alias",
|
|
124
|
+
"import",
|
|
125
|
+
"require",
|
|
126
|
+
"use"
|
|
127
|
+
],
|
|
128
|
+
otherKeywords: [
|
|
129
|
+
"after",
|
|
130
|
+
"case",
|
|
131
|
+
"catch",
|
|
132
|
+
"cond",
|
|
133
|
+
"do",
|
|
134
|
+
"else",
|
|
135
|
+
"end",
|
|
136
|
+
"fn",
|
|
137
|
+
"for",
|
|
138
|
+
"if",
|
|
139
|
+
"quote",
|
|
140
|
+
"raise",
|
|
141
|
+
"receive",
|
|
142
|
+
"rescue",
|
|
143
|
+
"super",
|
|
144
|
+
"throw",
|
|
145
|
+
"try",
|
|
146
|
+
"unless",
|
|
147
|
+
"unquote_splicing",
|
|
148
|
+
"unquote",
|
|
149
|
+
"with"
|
|
150
|
+
],
|
|
151
|
+
constants: [
|
|
152
|
+
"true",
|
|
153
|
+
"false",
|
|
154
|
+
"nil"
|
|
155
|
+
],
|
|
156
|
+
nameBuiltin: [
|
|
157
|
+
"__MODULE__",
|
|
158
|
+
"__DIR__",
|
|
159
|
+
"__ENV__",
|
|
160
|
+
"__CALLER__",
|
|
161
|
+
"__STACKTRACE__"
|
|
162
|
+
],
|
|
163
|
+
operator: /-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,
|
|
164
|
+
variableName: /[a-z_][a-zA-Z0-9_]*[?!]?/,
|
|
165
|
+
atomName: /[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,
|
|
166
|
+
specialAtomName: /\.\.\.|<<>>|%\{\}|%|\{\}/,
|
|
167
|
+
aliasPart: /[A-Z][a-zA-Z0-9_]*/,
|
|
168
|
+
moduleName: /@aliasPart(?:\.@aliasPart)*/,
|
|
169
|
+
sigilSymmetricDelimiter: /"""|'''|"|'|\/|\|/,
|
|
170
|
+
sigilStartDelimiter: /@sigilSymmetricDelimiter|<|\{|\[|\(/,
|
|
171
|
+
sigilEndDelimiter: /@sigilSymmetricDelimiter|>|\}|\]|\)/,
|
|
172
|
+
sigilModifiers: /[a-zA-Z0-9]*/,
|
|
173
|
+
decimal: /\d(?:_?\d)*/,
|
|
174
|
+
hex: /[0-9a-fA-F](_?[0-9a-fA-F])*/,
|
|
175
|
+
octal: /[0-7](_?[0-7])*/,
|
|
176
|
+
binary: /[01](_?[01])*/,
|
|
177
|
+
escape: /\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,
|
|
178
|
+
tokenizer: {
|
|
179
|
+
root: [
|
|
180
|
+
{ include: "@whitespace" },
|
|
181
|
+
{ include: "@comments" },
|
|
182
|
+
{ include: "@keywordsShorthand" },
|
|
183
|
+
{ include: "@numbers" },
|
|
184
|
+
{ include: "@identifiers" },
|
|
185
|
+
{ include: "@strings" },
|
|
186
|
+
{ include: "@atoms" },
|
|
187
|
+
{ include: "@sigils" },
|
|
188
|
+
{ include: "@attributes" },
|
|
189
|
+
{ include: "@symbols" }
|
|
190
|
+
],
|
|
191
|
+
whitespace: [[/\s+/, "white"]],
|
|
192
|
+
comments: [[/(#)(.*)/, ["comment.punctuation", "comment"]]],
|
|
193
|
+
keywordsShorthand: [
|
|
194
|
+
[/(@atomName)(:)(\s+)/, [
|
|
195
|
+
"constant",
|
|
196
|
+
"constant.punctuation",
|
|
197
|
+
"white"
|
|
198
|
+
]],
|
|
199
|
+
[/"(?=([^"]|#\{.*?\}|\\")*":)/, {
|
|
200
|
+
token: "constant.delimiter",
|
|
201
|
+
next: "@doubleQuotedStringKeyword"
|
|
202
|
+
}],
|
|
203
|
+
[/'(?=([^']|#\{.*?\}|\\')*':)/, {
|
|
204
|
+
token: "constant.delimiter",
|
|
205
|
+
next: "@singleQuotedStringKeyword"
|
|
206
|
+
}]
|
|
207
|
+
],
|
|
208
|
+
doubleQuotedStringKeyword: [[/":/, {
|
|
209
|
+
token: "constant.delimiter",
|
|
210
|
+
next: "@pop"
|
|
211
|
+
}], { include: "@stringConstantContentInterpol" }],
|
|
212
|
+
singleQuotedStringKeyword: [[/':/, {
|
|
213
|
+
token: "constant.delimiter",
|
|
214
|
+
next: "@pop"
|
|
215
|
+
}], { include: "@stringConstantContentInterpol" }],
|
|
216
|
+
numbers: [
|
|
217
|
+
[/0b@binary/, "number.binary"],
|
|
218
|
+
[/0o@octal/, "number.octal"],
|
|
219
|
+
[/0x@hex/, "number.hex"],
|
|
220
|
+
[/@decimal\.@decimal([eE]-?@decimal)?/, "number.float"],
|
|
221
|
+
[/@decimal/, "number"]
|
|
222
|
+
],
|
|
223
|
+
identifiers: [
|
|
224
|
+
[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/, [
|
|
225
|
+
"keyword.declaration",
|
|
226
|
+
"white",
|
|
227
|
+
{ cases: {
|
|
228
|
+
unquote: "keyword",
|
|
229
|
+
"@default": "function"
|
|
230
|
+
} }
|
|
231
|
+
]],
|
|
232
|
+
[/(@variableName)(?=\s*\.?\s*\()/, { cases: {
|
|
233
|
+
"@declarationKeywords": "keyword.declaration",
|
|
234
|
+
"@namespaceKeywords": "keyword",
|
|
235
|
+
"@otherKeywords": "keyword",
|
|
236
|
+
"@default": "function.call"
|
|
237
|
+
} }],
|
|
238
|
+
[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/, [
|
|
239
|
+
"type.identifier",
|
|
240
|
+
"white",
|
|
241
|
+
"operator",
|
|
242
|
+
"white",
|
|
243
|
+
"function.call"
|
|
244
|
+
]],
|
|
245
|
+
[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/, [
|
|
246
|
+
"constant.punctuation",
|
|
247
|
+
"constant",
|
|
248
|
+
"white",
|
|
249
|
+
"operator",
|
|
250
|
+
"white",
|
|
251
|
+
"function.call"
|
|
252
|
+
]],
|
|
253
|
+
[/(\|>)(\s*)(@variableName)/, [
|
|
254
|
+
"operator",
|
|
255
|
+
"white",
|
|
256
|
+
{ cases: {
|
|
257
|
+
"@otherKeywords": "keyword",
|
|
258
|
+
"@default": "function.call"
|
|
259
|
+
} }
|
|
260
|
+
]],
|
|
261
|
+
[/(&)(\s*)(@variableName)/, [
|
|
262
|
+
"operator",
|
|
263
|
+
"white",
|
|
264
|
+
"function.call"
|
|
265
|
+
]],
|
|
266
|
+
[/@variableName/, { cases: {
|
|
267
|
+
"@declarationKeywords": "keyword.declaration",
|
|
268
|
+
"@operatorKeywords": "keyword.operator",
|
|
269
|
+
"@namespaceKeywords": "keyword",
|
|
270
|
+
"@otherKeywords": "keyword",
|
|
271
|
+
"@constants": "constant.language",
|
|
272
|
+
"@nameBuiltin": "variable.language",
|
|
273
|
+
"_.*": "comment.unused",
|
|
274
|
+
"@default": "identifier"
|
|
275
|
+
} }],
|
|
276
|
+
[/@moduleName/, "type.identifier"]
|
|
277
|
+
],
|
|
278
|
+
strings: [
|
|
279
|
+
[/"""/, {
|
|
280
|
+
token: "string.delimiter",
|
|
281
|
+
next: "@doubleQuotedHeredoc"
|
|
282
|
+
}],
|
|
283
|
+
[/'''/, {
|
|
284
|
+
token: "string.delimiter",
|
|
285
|
+
next: "@singleQuotedHeredoc"
|
|
286
|
+
}],
|
|
287
|
+
[/"/, {
|
|
288
|
+
token: "string.delimiter",
|
|
289
|
+
next: "@doubleQuotedString"
|
|
290
|
+
}],
|
|
291
|
+
[/'/, {
|
|
292
|
+
token: "string.delimiter",
|
|
293
|
+
next: "@singleQuotedString"
|
|
294
|
+
}]
|
|
295
|
+
],
|
|
296
|
+
doubleQuotedHeredoc: [[/"""/, {
|
|
297
|
+
token: "string.delimiter",
|
|
298
|
+
next: "@pop"
|
|
299
|
+
}], { include: "@stringContentInterpol" }],
|
|
300
|
+
singleQuotedHeredoc: [[/'''/, {
|
|
301
|
+
token: "string.delimiter",
|
|
302
|
+
next: "@pop"
|
|
303
|
+
}], { include: "@stringContentInterpol" }],
|
|
304
|
+
doubleQuotedString: [[/"/, {
|
|
305
|
+
token: "string.delimiter",
|
|
306
|
+
next: "@pop"
|
|
307
|
+
}], { include: "@stringContentInterpol" }],
|
|
308
|
+
singleQuotedString: [[/'/, {
|
|
309
|
+
token: "string.delimiter",
|
|
310
|
+
next: "@pop"
|
|
311
|
+
}], { include: "@stringContentInterpol" }],
|
|
312
|
+
atoms: [
|
|
313
|
+
[/(:)(@atomName)/, ["constant.punctuation", "constant"]],
|
|
314
|
+
[/:"/, {
|
|
315
|
+
token: "constant.delimiter",
|
|
316
|
+
next: "@doubleQuotedStringAtom"
|
|
317
|
+
}],
|
|
318
|
+
[/:'/, {
|
|
319
|
+
token: "constant.delimiter",
|
|
320
|
+
next: "@singleQuotedStringAtom"
|
|
321
|
+
}]
|
|
322
|
+
],
|
|
323
|
+
doubleQuotedStringAtom: [[/"/, {
|
|
324
|
+
token: "constant.delimiter",
|
|
325
|
+
next: "@pop"
|
|
326
|
+
}], { include: "@stringConstantContentInterpol" }],
|
|
327
|
+
singleQuotedStringAtom: [[/'/, {
|
|
328
|
+
token: "constant.delimiter",
|
|
329
|
+
next: "@pop"
|
|
330
|
+
}], { include: "@stringConstantContentInterpol" }],
|
|
331
|
+
sigils: [[/~[a-z]@sigilStartDelimiter/, {
|
|
332
|
+
token: "@rematch",
|
|
333
|
+
next: "@sigil.interpol"
|
|
334
|
+
}], [/~([A-Z]+)@sigilStartDelimiter/, {
|
|
335
|
+
token: "@rematch",
|
|
336
|
+
next: "@sigil.noInterpol"
|
|
337
|
+
}]],
|
|
338
|
+
sigil: [
|
|
339
|
+
[/~([a-z]|[A-Z]+)\{/, {
|
|
340
|
+
token: "@rematch",
|
|
341
|
+
switchTo: "@sigilStart.$S2.$1.{.}"
|
|
342
|
+
}],
|
|
343
|
+
[/~([a-z]|[A-Z]+)\[/, {
|
|
344
|
+
token: "@rematch",
|
|
345
|
+
switchTo: "@sigilStart.$S2.$1.[.]"
|
|
346
|
+
}],
|
|
347
|
+
[/~([a-z]|[A-Z]+)\(/, {
|
|
348
|
+
token: "@rematch",
|
|
349
|
+
switchTo: "@sigilStart.$S2.$1.(.)"
|
|
350
|
+
}],
|
|
351
|
+
[/~([a-z]|[A-Z]+)\</, {
|
|
352
|
+
token: "@rematch",
|
|
353
|
+
switchTo: "@sigilStart.$S2.$1.<.>"
|
|
354
|
+
}],
|
|
355
|
+
[/~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/, {
|
|
356
|
+
token: "@rematch",
|
|
357
|
+
switchTo: "@sigilStart.$S2.$1.$2.$2"
|
|
358
|
+
}]
|
|
359
|
+
],
|
|
360
|
+
"sigilStart.interpol.s": [[/~s@sigilStartDelimiter/, {
|
|
361
|
+
token: "string.delimiter",
|
|
362
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
363
|
+
}]],
|
|
364
|
+
"sigilContinue.interpol.s": [[/(@sigilEndDelimiter)@sigilModifiers/, { cases: {
|
|
365
|
+
"$1==$S5": {
|
|
366
|
+
token: "string.delimiter",
|
|
367
|
+
next: "@pop"
|
|
368
|
+
},
|
|
369
|
+
"@default": "string"
|
|
370
|
+
} }], { include: "@stringContentInterpol" }],
|
|
371
|
+
"sigilStart.noInterpol.S": [[/~S@sigilStartDelimiter/, {
|
|
372
|
+
token: "string.delimiter",
|
|
373
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
374
|
+
}]],
|
|
375
|
+
"sigilContinue.noInterpol.S": [
|
|
376
|
+
[/(^|[^\\])\\@sigilEndDelimiter/, "string"],
|
|
377
|
+
[/(@sigilEndDelimiter)@sigilModifiers/, { cases: {
|
|
378
|
+
"$1==$S5": {
|
|
379
|
+
token: "string.delimiter",
|
|
380
|
+
next: "@pop"
|
|
381
|
+
},
|
|
382
|
+
"@default": "string"
|
|
383
|
+
} }],
|
|
384
|
+
{ include: "@stringContent" }
|
|
385
|
+
],
|
|
386
|
+
"sigilStart.interpol.r": [[/~r@sigilStartDelimiter/, {
|
|
387
|
+
token: "regexp.delimiter",
|
|
388
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
389
|
+
}]],
|
|
390
|
+
"sigilContinue.interpol.r": [[/(@sigilEndDelimiter)@sigilModifiers/, { cases: {
|
|
391
|
+
"$1==$S5": {
|
|
392
|
+
token: "regexp.delimiter",
|
|
393
|
+
next: "@pop"
|
|
394
|
+
},
|
|
395
|
+
"@default": "regexp"
|
|
396
|
+
} }], { include: "@regexpContentInterpol" }],
|
|
397
|
+
"sigilStart.noInterpol.R": [[/~R@sigilStartDelimiter/, {
|
|
398
|
+
token: "regexp.delimiter",
|
|
399
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
400
|
+
}]],
|
|
401
|
+
"sigilContinue.noInterpol.R": [
|
|
402
|
+
[/(^|[^\\])\\@sigilEndDelimiter/, "regexp"],
|
|
403
|
+
[/(@sigilEndDelimiter)@sigilModifiers/, { cases: {
|
|
404
|
+
"$1==$S5": {
|
|
405
|
+
token: "regexp.delimiter",
|
|
406
|
+
next: "@pop"
|
|
407
|
+
},
|
|
408
|
+
"@default": "regexp"
|
|
409
|
+
} }],
|
|
410
|
+
{ include: "@regexpContent" }
|
|
411
|
+
],
|
|
412
|
+
"sigilStart.interpol": [[/~([a-z]|[A-Z]+)@sigilStartDelimiter/, {
|
|
413
|
+
token: "sigil.delimiter",
|
|
414
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
415
|
+
}]],
|
|
416
|
+
"sigilContinue.interpol": [[/(@sigilEndDelimiter)@sigilModifiers/, { cases: {
|
|
417
|
+
"$1==$S5": {
|
|
418
|
+
token: "sigil.delimiter",
|
|
419
|
+
next: "@pop"
|
|
420
|
+
},
|
|
421
|
+
"@default": "sigil"
|
|
422
|
+
} }], { include: "@sigilContentInterpol" }],
|
|
423
|
+
"sigilStart.noInterpol": [[/~([a-z]|[A-Z]+)@sigilStartDelimiter/, {
|
|
424
|
+
token: "sigil.delimiter",
|
|
425
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
426
|
+
}]],
|
|
427
|
+
"sigilContinue.noInterpol": [
|
|
428
|
+
[/(^|[^\\])\\@sigilEndDelimiter/, "sigil"],
|
|
429
|
+
[/(@sigilEndDelimiter)@sigilModifiers/, { cases: {
|
|
430
|
+
"$1==$S5": {
|
|
431
|
+
token: "sigil.delimiter",
|
|
432
|
+
next: "@pop"
|
|
433
|
+
},
|
|
434
|
+
"@default": "sigil"
|
|
435
|
+
} }],
|
|
436
|
+
{ include: "@sigilContent" }
|
|
437
|
+
],
|
|
438
|
+
attributes: [
|
|
439
|
+
[/\@(module|type)?doc (~[sS])?"""/, {
|
|
440
|
+
token: "comment.block.documentation",
|
|
441
|
+
next: "@doubleQuotedHeredocDocstring"
|
|
442
|
+
}],
|
|
443
|
+
[/\@(module|type)?doc (~[sS])?'''/, {
|
|
444
|
+
token: "comment.block.documentation",
|
|
445
|
+
next: "@singleQuotedHeredocDocstring"
|
|
446
|
+
}],
|
|
447
|
+
[/\@(module|type)?doc (~[sS])?"/, {
|
|
448
|
+
token: "comment.block.documentation",
|
|
449
|
+
next: "@doubleQuotedStringDocstring"
|
|
450
|
+
}],
|
|
451
|
+
[/\@(module|type)?doc (~[sS])?'/, {
|
|
452
|
+
token: "comment.block.documentation",
|
|
453
|
+
next: "@singleQuotedStringDocstring"
|
|
454
|
+
}],
|
|
455
|
+
[/\@(module|type)?doc false/, "comment.block.documentation"],
|
|
456
|
+
[/\@(@variableName)/, "variable"]
|
|
457
|
+
],
|
|
458
|
+
doubleQuotedHeredocDocstring: [[/"""/, {
|
|
459
|
+
token: "comment.block.documentation",
|
|
460
|
+
next: "@pop"
|
|
461
|
+
}], { include: "@docstringContent" }],
|
|
462
|
+
singleQuotedHeredocDocstring: [[/'''/, {
|
|
463
|
+
token: "comment.block.documentation",
|
|
464
|
+
next: "@pop"
|
|
465
|
+
}], { include: "@docstringContent" }],
|
|
466
|
+
doubleQuotedStringDocstring: [[/"/, {
|
|
467
|
+
token: "comment.block.documentation",
|
|
468
|
+
next: "@pop"
|
|
469
|
+
}], { include: "@docstringContent" }],
|
|
470
|
+
singleQuotedStringDocstring: [[/'/, {
|
|
471
|
+
token: "comment.block.documentation",
|
|
472
|
+
next: "@pop"
|
|
473
|
+
}], { include: "@docstringContent" }],
|
|
474
|
+
symbols: [
|
|
475
|
+
[/\?(\\.|[^\\\s])/, "number.constant"],
|
|
476
|
+
[/&\d+/, "operator"],
|
|
477
|
+
[/<<<|>>>/, "operator"],
|
|
478
|
+
[/[()\[\]\{\}]|<<|>>/, "@brackets"],
|
|
479
|
+
[/\.\.\./, "identifier"],
|
|
480
|
+
[/=>/, "punctuation"],
|
|
481
|
+
[/@operator/, "operator"],
|
|
482
|
+
[/[:;,.%]/, "punctuation"]
|
|
483
|
+
],
|
|
484
|
+
stringContentInterpol: [
|
|
485
|
+
{ include: "@interpolation" },
|
|
486
|
+
{ include: "@escapeChar" },
|
|
487
|
+
{ include: "@stringContent" }
|
|
488
|
+
],
|
|
489
|
+
stringContent: [[/./, "string"]],
|
|
490
|
+
stringConstantContentInterpol: [
|
|
491
|
+
{ include: "@interpolation" },
|
|
492
|
+
{ include: "@escapeChar" },
|
|
493
|
+
{ include: "@stringConstantContent" }
|
|
494
|
+
],
|
|
495
|
+
stringConstantContent: [[/./, "constant"]],
|
|
496
|
+
regexpContentInterpol: [
|
|
497
|
+
{ include: "@interpolation" },
|
|
498
|
+
{ include: "@escapeChar" },
|
|
499
|
+
{ include: "@regexpContent" }
|
|
500
|
+
],
|
|
501
|
+
regexpContent: [[/(\s)(#)(\s.*)$/, [
|
|
502
|
+
"white",
|
|
503
|
+
"comment.punctuation",
|
|
504
|
+
"comment"
|
|
505
|
+
]], [/./, "regexp"]],
|
|
506
|
+
sigilContentInterpol: [
|
|
507
|
+
{ include: "@interpolation" },
|
|
508
|
+
{ include: "@escapeChar" },
|
|
509
|
+
{ include: "@sigilContent" }
|
|
510
|
+
],
|
|
511
|
+
sigilContent: [[/./, "sigil"]],
|
|
512
|
+
docstringContent: [[/./, "comment.block.documentation"]],
|
|
513
|
+
escapeChar: [[/@escape/, "constant.character.escape"]],
|
|
514
|
+
interpolation: [[/#{/, {
|
|
515
|
+
token: "delimiter.bracket.embed",
|
|
516
|
+
next: "@interpolationContinue"
|
|
517
|
+
}]],
|
|
518
|
+
interpolationContinue: [[/}/, {
|
|
519
|
+
token: "delimiter.bracket.embed",
|
|
520
|
+
next: "@pop"
|
|
521
|
+
}], { include: "@root" }]
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
//#endregion
|
|
525
|
+
export { e as conf, t as language };
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/definitions/fsharp/fsharp.js
|
|
2
|
+
var e = {
|
|
3
|
+
comments: {
|
|
4
|
+
lineComment: "//",
|
|
5
|
+
blockComment: ["(*", "*)"]
|
|
6
|
+
},
|
|
7
|
+
brackets: [
|
|
8
|
+
["{", "}"],
|
|
9
|
+
["[", "]"],
|
|
10
|
+
["(", ")"]
|
|
11
|
+
],
|
|
12
|
+
autoClosingPairs: [
|
|
13
|
+
{
|
|
14
|
+
open: "{",
|
|
15
|
+
close: "}"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
open: "[",
|
|
19
|
+
close: "]"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
open: "(",
|
|
23
|
+
close: ")"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
open: "\"",
|
|
27
|
+
close: "\""
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
surroundingPairs: [
|
|
31
|
+
{
|
|
32
|
+
open: "{",
|
|
33
|
+
close: "}"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
open: "[",
|
|
37
|
+
close: "]"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
open: "(",
|
|
41
|
+
close: ")"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
open: "\"",
|
|
45
|
+
close: "\""
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
open: "'",
|
|
49
|
+
close: "'"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
folding: { markers: {
|
|
53
|
+
start: /* @__PURE__ */ RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),
|
|
54
|
+
end: /* @__PURE__ */ RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")
|
|
55
|
+
} }
|
|
56
|
+
}, t = {
|
|
57
|
+
defaultToken: "",
|
|
58
|
+
tokenPostfix: ".fs",
|
|
59
|
+
keywords: /* @__PURE__ */ "abstract.and.atomic.as.assert.asr.base.begin.break.checked.component.const.constraint.constructor.continue.class.default.delegate.do.done.downcast.downto.elif.else.end.exception.eager.event.external.extern.false.finally.for.fun.function.fixed.functor.global.if.in.include.inherit.inline.interface.internal.land.lor.lsl.lsr.lxor.lazy.let.match.member.mod.module.mutable.namespace.method.mixin.new.not.null.of.open.or.object.override.private.parallel.process.protected.pure.public.rec.return.static.sealed.struct.sig.then.to.true.tailcall.trait.try.type.upcast.use.val.void.virtual.volatile.when.while.with.yield".split("."),
|
|
60
|
+
symbols: /[=><!~?:&|+\-*\^%;\.,\/]+/,
|
|
61
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
62
|
+
integersuffix: /[uU]?[yslnLI]?/,
|
|
63
|
+
floatsuffix: /[fFmM]?/,
|
|
64
|
+
tokenizer: {
|
|
65
|
+
root: [
|
|
66
|
+
[/[a-zA-Z_]\w*/, { cases: {
|
|
67
|
+
"@keywords": { token: "keyword.$0" },
|
|
68
|
+
"@default": "identifier"
|
|
69
|
+
} }],
|
|
70
|
+
{ include: "@whitespace" },
|
|
71
|
+
[/\[<.*>\]/, "annotation"],
|
|
72
|
+
[/^#(if|else|endif)/, "keyword"],
|
|
73
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
74
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
75
|
+
[/@symbols/, "delimiter"],
|
|
76
|
+
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
77
|
+
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
78
|
+
[/0x[0-9a-fA-F]+LF/, "number.float"],
|
|
79
|
+
[/0x[0-9a-fA-F]+(@integersuffix)/, "number.hex"],
|
|
80
|
+
[/0b[0-1]+(@integersuffix)/, "number.bin"],
|
|
81
|
+
[/\d+(@integersuffix)/, "number"],
|
|
82
|
+
[/[;,.]/, "delimiter"],
|
|
83
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
84
|
+
[
|
|
85
|
+
/"""/,
|
|
86
|
+
"string",
|
|
87
|
+
"@string.\"\"\""
|
|
88
|
+
],
|
|
89
|
+
[
|
|
90
|
+
/"/,
|
|
91
|
+
"string",
|
|
92
|
+
"@string.\""
|
|
93
|
+
],
|
|
94
|
+
[/\@"/, {
|
|
95
|
+
token: "string.quote",
|
|
96
|
+
next: "@litstring"
|
|
97
|
+
}],
|
|
98
|
+
[/'[^\\']'B?/, "string"],
|
|
99
|
+
[/(')(@escapes)(')/, [
|
|
100
|
+
"string",
|
|
101
|
+
"string.escape",
|
|
102
|
+
"string"
|
|
103
|
+
]],
|
|
104
|
+
[/'/, "string.invalid"]
|
|
105
|
+
],
|
|
106
|
+
whitespace: [
|
|
107
|
+
[/[ \t\r\n]+/, ""],
|
|
108
|
+
[
|
|
109
|
+
/\(\*(?!\))/,
|
|
110
|
+
"comment",
|
|
111
|
+
"@comment"
|
|
112
|
+
],
|
|
113
|
+
[/\/\/.*$/, "comment"]
|
|
114
|
+
],
|
|
115
|
+
comment: [
|
|
116
|
+
[/[^*(]+/, "comment"],
|
|
117
|
+
[
|
|
118
|
+
/\*\)/,
|
|
119
|
+
"comment",
|
|
120
|
+
"@pop"
|
|
121
|
+
],
|
|
122
|
+
[/\*/, "comment"],
|
|
123
|
+
[/\(\*\)/, "comment"],
|
|
124
|
+
[/\(/, "comment"]
|
|
125
|
+
],
|
|
126
|
+
string: [
|
|
127
|
+
[/[^\\"]+/, "string"],
|
|
128
|
+
[/@escapes/, "string.escape"],
|
|
129
|
+
[/\\./, "string.escape.invalid"],
|
|
130
|
+
[/("""|"B?)/, { cases: {
|
|
131
|
+
"$#==$S2": {
|
|
132
|
+
token: "string",
|
|
133
|
+
next: "@pop"
|
|
134
|
+
},
|
|
135
|
+
"@default": "string"
|
|
136
|
+
} }]
|
|
137
|
+
],
|
|
138
|
+
litstring: [
|
|
139
|
+
[/[^"]+/, "string"],
|
|
140
|
+
[/""/, "string.escape"],
|
|
141
|
+
[/"/, {
|
|
142
|
+
token: "string.quote",
|
|
143
|
+
next: "@pop"
|
|
144
|
+
}]
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
//#endregion
|
|
149
|
+
export { e as conf, t as language };
|