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,416 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/definitions/julia/julia.js
|
|
2
|
+
var e = {
|
|
3
|
+
brackets: [
|
|
4
|
+
["{", "}"],
|
|
5
|
+
["[", "]"],
|
|
6
|
+
["(", ")"]
|
|
7
|
+
],
|
|
8
|
+
autoClosingPairs: [
|
|
9
|
+
{
|
|
10
|
+
open: "{",
|
|
11
|
+
close: "}"
|
|
12
|
+
},
|
|
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
|
+
}, t = {
|
|
53
|
+
tokenPostfix: ".julia",
|
|
54
|
+
keywords: /* @__PURE__ */ "begin.while.if.for.try.return.break.continue.function.macro.quote.let.local.global.const.do.struct.module.baremodule.using.import.export.end.else.elseif.catch.finally.mutable.primitive.abstract.type.in.isa.where.new".split("."),
|
|
55
|
+
types: /* @__PURE__ */ "LinRange.LineNumberNode.LinearIndices.LoadError.MIME.Matrix.Method.MethodError.Missing.MissingException.Module.NTuple.NamedTuple.Nothing.Number.OrdinalRange.OutOfMemoryError.OverflowError.Pair.PartialQuickSort.PermutedDimsArray.Pipe.Ptr.QuoteNode.Rational.RawFD.ReadOnlyMemoryError.Real.ReentrantLock.Ref.Regex.RegexMatch.RoundingMode.SegmentationFault.Set.Signed.Some.StackOverflowError.StepRange.StepRangeLen.StridedArray.StridedMatrix.StridedVecOrMat.StridedVector.String.StringIndexError.SubArray.SubString.SubstitutionString.Symbol.SystemError.Task.Text.TextDisplay.Timer.Tuple.Type.TypeError.TypeVar.UInt.UInt128.UInt16.UInt32.UInt64.UInt8.UndefInitializer.AbstractArray.UndefKeywordError.AbstractChannel.UndefRefError.AbstractChar.UndefVarError.AbstractDict.Union.AbstractDisplay.UnionAll.AbstractFloat.UnitRange.AbstractIrrational.Unsigned.AbstractMatrix.AbstractRange.Val.AbstractSet.Vararg.AbstractString.VecElement.AbstractUnitRange.VecOrMat.AbstractVecOrMat.Vector.AbstractVector.VersionNumber.Any.WeakKeyDict.ArgumentError.WeakRef.Array.AssertionError.BigFloat.BigInt.BitArray.BitMatrix.BitSet.BitVector.Bool.BoundsError.CapturedException.CartesianIndex.CartesianIndices.Cchar.Cdouble.Cfloat.Channel.Char.Cint.Cintmax_t.Clong.Clonglong.Cmd.Colon.Complex.ComplexF16.ComplexF32.ComplexF64.CompositeException.Condition.Cptrdiff_t.Cshort.Csize_t.Cssize_t.Cstring.Cuchar.Cuint.Cuintmax_t.Culong.Culonglong.Cushort.Cvoid.Cwchar_t.Cwstring.DataType.DenseArray.DenseMatrix.DenseVecOrMat.DenseVector.Dict.DimensionMismatch.Dims.DivideError.DomainError.EOFError.Enum.ErrorException.Exception.ExponentialBackOff.Expr.Float16.Float32.Float64.Function.GlobalRef.HTML.IO.IOBuffer.IOContext.IOStream.IdDict.IndexCartesian.IndexLinear.IndexStyle.InexactError.InitError.Int.Int128.Int16.Int32.Int64.Int8.Integer.InterruptException.InvalidStateException.Irrational.KeyError".split("."),
|
|
56
|
+
keywordops: [
|
|
57
|
+
"<:",
|
|
58
|
+
">:",
|
|
59
|
+
":",
|
|
60
|
+
"=>",
|
|
61
|
+
"...",
|
|
62
|
+
".",
|
|
63
|
+
"->",
|
|
64
|
+
"?"
|
|
65
|
+
],
|
|
66
|
+
allops: /[^\w\d\s()\[\]{}"'#]+/,
|
|
67
|
+
constants: [
|
|
68
|
+
"true",
|
|
69
|
+
"false",
|
|
70
|
+
"nothing",
|
|
71
|
+
"missing",
|
|
72
|
+
"undef",
|
|
73
|
+
"Inf",
|
|
74
|
+
"pi",
|
|
75
|
+
"NaN",
|
|
76
|
+
"π",
|
|
77
|
+
"ℯ",
|
|
78
|
+
"ans",
|
|
79
|
+
"PROGRAM_FILE",
|
|
80
|
+
"ARGS",
|
|
81
|
+
"C_NULL",
|
|
82
|
+
"VERSION",
|
|
83
|
+
"DEPOT_PATH",
|
|
84
|
+
"LOAD_PATH"
|
|
85
|
+
],
|
|
86
|
+
operators: /* @__PURE__ */ "!.!=.!==.%.&.*.+.-././/.<.<<.<=.==.===.=>.>.>=.>>.>>>.\\.^.|.|>.~.÷.∈.∉.∋.∌.∘.√.∛.∩.∪.≈.≉.≠.≡.≢.≤.≥.⊆.⊇.⊈.⊉.⊊.⊋.⊻".split("."),
|
|
87
|
+
brackets: [
|
|
88
|
+
{
|
|
89
|
+
open: "(",
|
|
90
|
+
close: ")",
|
|
91
|
+
token: "delimiter.parenthesis"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
open: "{",
|
|
95
|
+
close: "}",
|
|
96
|
+
token: "delimiter.curly"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
open: "[",
|
|
100
|
+
close: "]",
|
|
101
|
+
token: "delimiter.square"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
ident: /π|ℯ|\b(?!\d)\w+\b/,
|
|
105
|
+
escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,
|
|
106
|
+
escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,
|
|
107
|
+
tokenizer: {
|
|
108
|
+
root: [
|
|
109
|
+
[
|
|
110
|
+
/(::)\s*|\b(isa)\s+/,
|
|
111
|
+
"keyword",
|
|
112
|
+
"@typeanno"
|
|
113
|
+
],
|
|
114
|
+
[/\b(isa)(\s*\(@ident\s*,\s*)/, ["keyword", {
|
|
115
|
+
token: "",
|
|
116
|
+
next: "@typeanno"
|
|
117
|
+
}]],
|
|
118
|
+
[
|
|
119
|
+
/\b(type|struct)[ \t]+/,
|
|
120
|
+
"keyword",
|
|
121
|
+
"@typeanno"
|
|
122
|
+
],
|
|
123
|
+
[/^\s*:@ident[!?]?/, "metatag"],
|
|
124
|
+
[/(return)(\s*:@ident[!?]?)/, ["keyword", "metatag"]],
|
|
125
|
+
[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/, ["", "metatag"]],
|
|
126
|
+
[
|
|
127
|
+
/:\(/,
|
|
128
|
+
"metatag",
|
|
129
|
+
"@quote"
|
|
130
|
+
],
|
|
131
|
+
[
|
|
132
|
+
/r"""/,
|
|
133
|
+
"regexp.delim",
|
|
134
|
+
"@tregexp"
|
|
135
|
+
],
|
|
136
|
+
[
|
|
137
|
+
/r"/,
|
|
138
|
+
"regexp.delim",
|
|
139
|
+
"@sregexp"
|
|
140
|
+
],
|
|
141
|
+
[
|
|
142
|
+
/raw"""/,
|
|
143
|
+
"string.delim",
|
|
144
|
+
"@rtstring"
|
|
145
|
+
],
|
|
146
|
+
[
|
|
147
|
+
/[bv]?"""/,
|
|
148
|
+
"string.delim",
|
|
149
|
+
"@dtstring"
|
|
150
|
+
],
|
|
151
|
+
[
|
|
152
|
+
/raw"/,
|
|
153
|
+
"string.delim",
|
|
154
|
+
"@rsstring"
|
|
155
|
+
],
|
|
156
|
+
[
|
|
157
|
+
/[bv]?"/,
|
|
158
|
+
"string.delim",
|
|
159
|
+
"@dsstring"
|
|
160
|
+
],
|
|
161
|
+
[/(@ident)\{/, { cases: {
|
|
162
|
+
"$1@types": {
|
|
163
|
+
token: "type",
|
|
164
|
+
next: "@gen"
|
|
165
|
+
},
|
|
166
|
+
"@default": {
|
|
167
|
+
token: "type",
|
|
168
|
+
next: "@gen"
|
|
169
|
+
}
|
|
170
|
+
} }],
|
|
171
|
+
[/@ident[!?'']?(?=\.?\()/, { cases: {
|
|
172
|
+
"@types": "type",
|
|
173
|
+
"@keywords": "keyword",
|
|
174
|
+
"@constants": "variable",
|
|
175
|
+
"@default": "keyword.flow"
|
|
176
|
+
} }],
|
|
177
|
+
[/@ident[!?']?/, { cases: {
|
|
178
|
+
"@types": "type",
|
|
179
|
+
"@keywords": "keyword",
|
|
180
|
+
"@constants": "variable",
|
|
181
|
+
"@default": "identifier"
|
|
182
|
+
} }],
|
|
183
|
+
[/\$\w+/, "key"],
|
|
184
|
+
[
|
|
185
|
+
/\$\(/,
|
|
186
|
+
"key",
|
|
187
|
+
"@paste"
|
|
188
|
+
],
|
|
189
|
+
[/@@@ident/, "annotation"],
|
|
190
|
+
{ include: "@whitespace" },
|
|
191
|
+
[/'(?:@escapes|.)'/, "string.character"],
|
|
192
|
+
[/[()\[\]{}]/, "@brackets"],
|
|
193
|
+
[/@allops/, { cases: {
|
|
194
|
+
"@keywordops": "keyword",
|
|
195
|
+
"@operators": "operator"
|
|
196
|
+
} }],
|
|
197
|
+
[/[;,]/, "delimiter"],
|
|
198
|
+
[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"],
|
|
199
|
+
[/0[_oO][0-7](_?[0-7])*/, "number.octal"],
|
|
200
|
+
[/0[bB][01](_?[01])*/, "number.binary"],
|
|
201
|
+
[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/, "number"]
|
|
202
|
+
],
|
|
203
|
+
typeanno: [
|
|
204
|
+
[
|
|
205
|
+
/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,
|
|
206
|
+
"type",
|
|
207
|
+
"@gen"
|
|
208
|
+
],
|
|
209
|
+
[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/, ["type", "keyword"]],
|
|
210
|
+
[
|
|
211
|
+
/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,
|
|
212
|
+
"type",
|
|
213
|
+
"@pop"
|
|
214
|
+
],
|
|
215
|
+
[
|
|
216
|
+
"",
|
|
217
|
+
"",
|
|
218
|
+
"@pop"
|
|
219
|
+
]
|
|
220
|
+
],
|
|
221
|
+
gen: [
|
|
222
|
+
[
|
|
223
|
+
/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,
|
|
224
|
+
"type",
|
|
225
|
+
"@push"
|
|
226
|
+
],
|
|
227
|
+
[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type"],
|
|
228
|
+
[/<:/, "keyword"],
|
|
229
|
+
[/(\})(\s*<:\s*)/, ["type", {
|
|
230
|
+
token: "keyword",
|
|
231
|
+
next: "@pop"
|
|
232
|
+
}]],
|
|
233
|
+
[
|
|
234
|
+
/\}/,
|
|
235
|
+
"type",
|
|
236
|
+
"@pop"
|
|
237
|
+
],
|
|
238
|
+
{ include: "@root" }
|
|
239
|
+
],
|
|
240
|
+
quote: [
|
|
241
|
+
[
|
|
242
|
+
/\$\(/,
|
|
243
|
+
"key",
|
|
244
|
+
"@paste"
|
|
245
|
+
],
|
|
246
|
+
[
|
|
247
|
+
/\(/,
|
|
248
|
+
"@brackets",
|
|
249
|
+
"@paren"
|
|
250
|
+
],
|
|
251
|
+
[
|
|
252
|
+
/\)/,
|
|
253
|
+
"metatag",
|
|
254
|
+
"@pop"
|
|
255
|
+
],
|
|
256
|
+
{ include: "@root" }
|
|
257
|
+
],
|
|
258
|
+
paste: [
|
|
259
|
+
[
|
|
260
|
+
/:\(/,
|
|
261
|
+
"metatag",
|
|
262
|
+
"@quote"
|
|
263
|
+
],
|
|
264
|
+
[
|
|
265
|
+
/\(/,
|
|
266
|
+
"@brackets",
|
|
267
|
+
"@paren"
|
|
268
|
+
],
|
|
269
|
+
[
|
|
270
|
+
/\)/,
|
|
271
|
+
"key",
|
|
272
|
+
"@pop"
|
|
273
|
+
],
|
|
274
|
+
{ include: "@root" }
|
|
275
|
+
],
|
|
276
|
+
paren: [
|
|
277
|
+
[
|
|
278
|
+
/\$\(/,
|
|
279
|
+
"key",
|
|
280
|
+
"@paste"
|
|
281
|
+
],
|
|
282
|
+
[
|
|
283
|
+
/:\(/,
|
|
284
|
+
"metatag",
|
|
285
|
+
"@quote"
|
|
286
|
+
],
|
|
287
|
+
[
|
|
288
|
+
/\(/,
|
|
289
|
+
"@brackets",
|
|
290
|
+
"@push"
|
|
291
|
+
],
|
|
292
|
+
[
|
|
293
|
+
/\)/,
|
|
294
|
+
"@brackets",
|
|
295
|
+
"@pop"
|
|
296
|
+
],
|
|
297
|
+
{ include: "@root" }
|
|
298
|
+
],
|
|
299
|
+
sregexp: [
|
|
300
|
+
[/^.*/, "invalid"],
|
|
301
|
+
[/[^\\"()\[\]{}]/, "regexp"],
|
|
302
|
+
[/[()\[\]{}]/, "@brackets"],
|
|
303
|
+
[/\\./, "operator.scss"],
|
|
304
|
+
[
|
|
305
|
+
/"[imsx]*/,
|
|
306
|
+
"regexp.delim",
|
|
307
|
+
"@pop"
|
|
308
|
+
]
|
|
309
|
+
],
|
|
310
|
+
tregexp: [
|
|
311
|
+
[/[^\\"()\[\]{}]/, "regexp"],
|
|
312
|
+
[/[()\[\]{}]/, "@brackets"],
|
|
313
|
+
[/\\./, "operator.scss"],
|
|
314
|
+
[/"(?!"")/, "string"],
|
|
315
|
+
[
|
|
316
|
+
/"""[imsx]*/,
|
|
317
|
+
"regexp.delim",
|
|
318
|
+
"@pop"
|
|
319
|
+
]
|
|
320
|
+
],
|
|
321
|
+
rsstring: [
|
|
322
|
+
[/^.*/, "invalid"],
|
|
323
|
+
[/[^\\"]/, "string"],
|
|
324
|
+
[/\\./, "string.escape"],
|
|
325
|
+
[
|
|
326
|
+
/"/,
|
|
327
|
+
"string.delim",
|
|
328
|
+
"@pop"
|
|
329
|
+
]
|
|
330
|
+
],
|
|
331
|
+
rtstring: [
|
|
332
|
+
[/[^\\"]/, "string"],
|
|
333
|
+
[/\\./, "string.escape"],
|
|
334
|
+
[/"(?!"")/, "string"],
|
|
335
|
+
[
|
|
336
|
+
/"""/,
|
|
337
|
+
"string.delim",
|
|
338
|
+
"@pop"
|
|
339
|
+
]
|
|
340
|
+
],
|
|
341
|
+
dsstring: [
|
|
342
|
+
[/^.*/, "invalid"],
|
|
343
|
+
[/[^\\"\$]/, "string"],
|
|
344
|
+
[
|
|
345
|
+
/\$/,
|
|
346
|
+
"",
|
|
347
|
+
"@interpolated"
|
|
348
|
+
],
|
|
349
|
+
[/@escapes/, "string.escape"],
|
|
350
|
+
[/\\./, "string.escape.invalid"],
|
|
351
|
+
[
|
|
352
|
+
/"/,
|
|
353
|
+
"string.delim",
|
|
354
|
+
"@pop"
|
|
355
|
+
]
|
|
356
|
+
],
|
|
357
|
+
dtstring: [
|
|
358
|
+
[/[^\\"\$]/, "string"],
|
|
359
|
+
[
|
|
360
|
+
/\$/,
|
|
361
|
+
"",
|
|
362
|
+
"@interpolated"
|
|
363
|
+
],
|
|
364
|
+
[/@escapes/, "string.escape"],
|
|
365
|
+
[/\\./, "string.escape.invalid"],
|
|
366
|
+
[/"(?!"")/, "string"],
|
|
367
|
+
[
|
|
368
|
+
/"""/,
|
|
369
|
+
"string.delim",
|
|
370
|
+
"@pop"
|
|
371
|
+
]
|
|
372
|
+
],
|
|
373
|
+
interpolated: [
|
|
374
|
+
[/\(/, {
|
|
375
|
+
token: "",
|
|
376
|
+
switchTo: "@interpolated_compound"
|
|
377
|
+
}],
|
|
378
|
+
[/[a-zA-Z_]\w*/, "identifier"],
|
|
379
|
+
[
|
|
380
|
+
"",
|
|
381
|
+
"",
|
|
382
|
+
"@pop"
|
|
383
|
+
]
|
|
384
|
+
],
|
|
385
|
+
interpolated_compound: [[
|
|
386
|
+
/\)/,
|
|
387
|
+
"",
|
|
388
|
+
"@pop"
|
|
389
|
+
], { include: "@root" }],
|
|
390
|
+
whitespace: [
|
|
391
|
+
[/[ \t\r\n]+/, ""],
|
|
392
|
+
[
|
|
393
|
+
/#=/,
|
|
394
|
+
"comment",
|
|
395
|
+
"@multi_comment"
|
|
396
|
+
],
|
|
397
|
+
[/#.*$/, "comment"]
|
|
398
|
+
],
|
|
399
|
+
multi_comment: [
|
|
400
|
+
[
|
|
401
|
+
/#=/,
|
|
402
|
+
"comment",
|
|
403
|
+
"@push"
|
|
404
|
+
],
|
|
405
|
+
[
|
|
406
|
+
/=#/,
|
|
407
|
+
"comment",
|
|
408
|
+
"@pop"
|
|
409
|
+
],
|
|
410
|
+
[/=(?!#)|#(?!=)/, "comment"],
|
|
411
|
+
[/[^#=]+/, "comment"]
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
//#endregion
|
|
416
|
+
export { e as conf, t as language };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/definitions/kotlin/kotlin.js
|
|
2
|
+
var e = {
|
|
3
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
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
|
+
},
|
|
30
|
+
{
|
|
31
|
+
open: "'",
|
|
32
|
+
close: "'"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
surroundingPairs: [
|
|
36
|
+
{
|
|
37
|
+
open: "{",
|
|
38
|
+
close: "}"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
open: "[",
|
|
42
|
+
close: "]"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
open: "(",
|
|
46
|
+
close: ")"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
open: "\"",
|
|
50
|
+
close: "\""
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
open: "'",
|
|
54
|
+
close: "'"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
open: "<",
|
|
58
|
+
close: ">"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
folding: { markers: {
|
|
62
|
+
start: /* @__PURE__ */ RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
|
63
|
+
end: /* @__PURE__ */ RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
|
64
|
+
} }
|
|
65
|
+
}, t = {
|
|
66
|
+
defaultToken: "",
|
|
67
|
+
tokenPostfix: ".kt",
|
|
68
|
+
keywords: /* @__PURE__ */ "as.as?.break.class.continue.do.else.false.for.fun.if.in.!in.interface.is.!is.null.object.package.return.super.this.throw.true.try.typealias.val.var.when.while.by.catch.constructor.delegate.dynamic.field.file.finally.get.import.init.param.property.receiver.set.setparam.where.actual.abstract.annotation.companion.const.crossinline.data.enum.expect.external.final.infix.inline.inner.internal.lateinit.noinline.open.operator.out.override.private.protected.public.reified.sealed.suspend.tailrec.vararg.field.it".split("."),
|
|
69
|
+
operators: /* @__PURE__ */ "+,-,*,/,%,=,+=,-=,*=,/=,%=,++,--,&&,||,!,==,!=,===,!==,>,<,<=,>=,[,],!!,?.,?:,::,..,:,?,->,@,;,$,_".split(","),
|
|
70
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
71
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
72
|
+
digits: /\d+(_+\d+)*/,
|
|
73
|
+
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
|
74
|
+
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
|
75
|
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
|
76
|
+
tokenizer: {
|
|
77
|
+
root: [
|
|
78
|
+
[/[A-Z][\w\$]*/, "type.identifier"],
|
|
79
|
+
[/[a-zA-Z_$][\w$]*/, { cases: {
|
|
80
|
+
"@keywords": { token: "keyword.$0" },
|
|
81
|
+
"@default": "identifier"
|
|
82
|
+
} }],
|
|
83
|
+
{ include: "@whitespace" },
|
|
84
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
85
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
86
|
+
[/@symbols/, { cases: {
|
|
87
|
+
"@operators": "delimiter",
|
|
88
|
+
"@default": ""
|
|
89
|
+
} }],
|
|
90
|
+
[/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
|
|
91
|
+
[/(@digits)[eE]([\-+]?(@digits))?[fF]?/, "number.float"],
|
|
92
|
+
[/(@digits)?\.(@digits)([eE][\-+]?(@digits))?[fF]?/, "number.float"],
|
|
93
|
+
[/0[xX](@hexdigits)[uU]?L?/, "number.hex"],
|
|
94
|
+
[/0[bB](@binarydigits)[uU]?L?/, "number.binary"],
|
|
95
|
+
[/(@digits)[fF]/, "number.float"],
|
|
96
|
+
[/(@digits)[uU]?L?/, "number"],
|
|
97
|
+
[/[;,.]/, "delimiter"],
|
|
98
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
99
|
+
[
|
|
100
|
+
/"""/,
|
|
101
|
+
"string",
|
|
102
|
+
"@multistring"
|
|
103
|
+
],
|
|
104
|
+
[
|
|
105
|
+
/"/,
|
|
106
|
+
"string",
|
|
107
|
+
"@string"
|
|
108
|
+
],
|
|
109
|
+
[/'[^\\']'/, "string"],
|
|
110
|
+
[/(')(@escapes)(')/, [
|
|
111
|
+
"string",
|
|
112
|
+
"string.escape",
|
|
113
|
+
"string"
|
|
114
|
+
]],
|
|
115
|
+
[/'/, "string.invalid"]
|
|
116
|
+
],
|
|
117
|
+
whitespace: [
|
|
118
|
+
[/[ \t\r\n]+/, ""],
|
|
119
|
+
[
|
|
120
|
+
/\/\*\*(?!\/)/,
|
|
121
|
+
"comment.doc",
|
|
122
|
+
"@javadoc"
|
|
123
|
+
],
|
|
124
|
+
[
|
|
125
|
+
/\/\*/,
|
|
126
|
+
"comment",
|
|
127
|
+
"@comment"
|
|
128
|
+
],
|
|
129
|
+
[/\/\/.*$/, "comment"]
|
|
130
|
+
],
|
|
131
|
+
comment: [
|
|
132
|
+
[/[^\/*]+/, "comment"],
|
|
133
|
+
[
|
|
134
|
+
/\/\*/,
|
|
135
|
+
"comment",
|
|
136
|
+
"@comment"
|
|
137
|
+
],
|
|
138
|
+
[
|
|
139
|
+
/\*\//,
|
|
140
|
+
"comment",
|
|
141
|
+
"@pop"
|
|
142
|
+
],
|
|
143
|
+
[/[\/*]/, "comment"]
|
|
144
|
+
],
|
|
145
|
+
javadoc: [
|
|
146
|
+
[/[^\/*]+/, "comment.doc"],
|
|
147
|
+
[
|
|
148
|
+
/\/\*/,
|
|
149
|
+
"comment.doc",
|
|
150
|
+
"@push"
|
|
151
|
+
],
|
|
152
|
+
[/\/\*/, "comment.doc.invalid"],
|
|
153
|
+
[
|
|
154
|
+
/\*\//,
|
|
155
|
+
"comment.doc",
|
|
156
|
+
"@pop"
|
|
157
|
+
],
|
|
158
|
+
[/[\/*]/, "comment.doc"]
|
|
159
|
+
],
|
|
160
|
+
string: [
|
|
161
|
+
[/[^\\"]+/, "string"],
|
|
162
|
+
[/@escapes/, "string.escape"],
|
|
163
|
+
[/\\./, "string.escape.invalid"],
|
|
164
|
+
[
|
|
165
|
+
/"/,
|
|
166
|
+
"string",
|
|
167
|
+
"@pop"
|
|
168
|
+
]
|
|
169
|
+
],
|
|
170
|
+
multistring: [
|
|
171
|
+
[/[^\\"]+/, "string"],
|
|
172
|
+
[/@escapes/, "string.escape"],
|
|
173
|
+
[/\\./, "string.escape.invalid"],
|
|
174
|
+
[
|
|
175
|
+
/"""/,
|
|
176
|
+
"string",
|
|
177
|
+
"@pop"
|
|
178
|
+
],
|
|
179
|
+
[/./, "string"]
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
//#endregion
|
|
184
|
+
export { e as conf, t as language };
|