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,262 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/csharp/csharp.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
|
+
notIn: ["string", "comment"]
|
|
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
|
+
open: "\"",
|
|
60
|
+
close: "\""
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
folding: { markers: {
|
|
64
|
+
start: /* @__PURE__ */ RegExp("^\\s*#region\\b"),
|
|
65
|
+
end: /* @__PURE__ */ RegExp("^\\s*#endregion\\b")
|
|
66
|
+
} }
|
|
67
|
+
}, t = {
|
|
68
|
+
defaultToken: "",
|
|
69
|
+
tokenPostfix: ".cs",
|
|
70
|
+
brackets: [
|
|
71
|
+
{
|
|
72
|
+
open: "{",
|
|
73
|
+
close: "}",
|
|
74
|
+
token: "delimiter.curly"
|
|
75
|
+
},
|
|
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.angle"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
keywords: /* @__PURE__ */ "extern.alias.using.bool.decimal.sbyte.byte.short.ushort.int.uint.long.ulong.char.float.double.object.dynamic.string.assembly.is.as.ref.out.this.base.new.typeof.void.checked.unchecked.default.delegate.var.const.if.else.switch.case.while.do.for.foreach.in.break.continue.goto.return.throw.try.catch.finally.lock.yield.from.let.where.join.on.equals.into.orderby.ascending.descending.select.group.by.namespace.partial.class.field.event.method.param.public.protected.internal.private.abstract.sealed.static.struct.readonly.volatile.virtual.override.params.get.set.add.remove.operator.true.false.implicit.explicit.interface.enum.null.async.await.fixed.sizeof.stackalloc.unsafe.nameof.when".split("."),
|
|
93
|
+
namespaceFollows: ["namespace", "using"],
|
|
94
|
+
parenFollows: [
|
|
95
|
+
"if",
|
|
96
|
+
"for",
|
|
97
|
+
"while",
|
|
98
|
+
"switch",
|
|
99
|
+
"foreach",
|
|
100
|
+
"using",
|
|
101
|
+
"catch",
|
|
102
|
+
"when"
|
|
103
|
+
],
|
|
104
|
+
operators: /* @__PURE__ */ "=.??.||.&&.|.^.&.==.!=.<=.>=.<<.+.-.*./.%.!.~.++.--.+=.-=.*=./=.%=.&=.|=.^=.<<=.>>=.>>.=>".split("."),
|
|
105
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
106
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
107
|
+
tokenizer: {
|
|
108
|
+
root: [
|
|
109
|
+
[/\@?[a-zA-Z_]\w*/, { cases: {
|
|
110
|
+
"@namespaceFollows": {
|
|
111
|
+
token: "keyword.$0",
|
|
112
|
+
next: "@namespace"
|
|
113
|
+
},
|
|
114
|
+
"@keywords": {
|
|
115
|
+
token: "keyword.$0",
|
|
116
|
+
next: "@qualified"
|
|
117
|
+
},
|
|
118
|
+
"@default": {
|
|
119
|
+
token: "identifier",
|
|
120
|
+
next: "@qualified"
|
|
121
|
+
}
|
|
122
|
+
} }],
|
|
123
|
+
{ include: "@whitespace" },
|
|
124
|
+
[/}/, { cases: {
|
|
125
|
+
"$S2==interpolatedstring": {
|
|
126
|
+
token: "string.quote",
|
|
127
|
+
next: "@pop"
|
|
128
|
+
},
|
|
129
|
+
"$S2==litinterpstring": {
|
|
130
|
+
token: "string.quote",
|
|
131
|
+
next: "@pop"
|
|
132
|
+
},
|
|
133
|
+
"@default": "@brackets"
|
|
134
|
+
} }],
|
|
135
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
136
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
137
|
+
[/@symbols/, { cases: {
|
|
138
|
+
"@operators": "delimiter",
|
|
139
|
+
"@default": ""
|
|
140
|
+
} }],
|
|
141
|
+
[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/, "number.float"],
|
|
142
|
+
[/0[xX][0-9a-fA-F_]+/, "number.hex"],
|
|
143
|
+
[/0[bB][01_]+/, "number.hex"],
|
|
144
|
+
[/[0-9_]+/, "number"],
|
|
145
|
+
[/[;,.]/, "delimiter"],
|
|
146
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
147
|
+
[/"/, {
|
|
148
|
+
token: "string.quote",
|
|
149
|
+
next: "@string"
|
|
150
|
+
}],
|
|
151
|
+
[/\$\@"/, {
|
|
152
|
+
token: "string.quote",
|
|
153
|
+
next: "@litinterpstring"
|
|
154
|
+
}],
|
|
155
|
+
[/\@"/, {
|
|
156
|
+
token: "string.quote",
|
|
157
|
+
next: "@litstring"
|
|
158
|
+
}],
|
|
159
|
+
[/\$"/, {
|
|
160
|
+
token: "string.quote",
|
|
161
|
+
next: "@interpolatedstring"
|
|
162
|
+
}],
|
|
163
|
+
[/'[^\\']'/, "string"],
|
|
164
|
+
[/(')(@escapes)(')/, [
|
|
165
|
+
"string",
|
|
166
|
+
"string.escape",
|
|
167
|
+
"string"
|
|
168
|
+
]],
|
|
169
|
+
[/'/, "string.invalid"]
|
|
170
|
+
],
|
|
171
|
+
qualified: [
|
|
172
|
+
[/[a-zA-Z_][\w]*/, { cases: {
|
|
173
|
+
"@keywords": { token: "keyword.$0" },
|
|
174
|
+
"@default": "identifier"
|
|
175
|
+
} }],
|
|
176
|
+
[/\./, "delimiter"],
|
|
177
|
+
[
|
|
178
|
+
"",
|
|
179
|
+
"",
|
|
180
|
+
"@pop"
|
|
181
|
+
]
|
|
182
|
+
],
|
|
183
|
+
namespace: [
|
|
184
|
+
{ include: "@whitespace" },
|
|
185
|
+
[/[A-Z]\w*/, "namespace"],
|
|
186
|
+
[/[\.=]/, "delimiter"],
|
|
187
|
+
[
|
|
188
|
+
"",
|
|
189
|
+
"",
|
|
190
|
+
"@pop"
|
|
191
|
+
]
|
|
192
|
+
],
|
|
193
|
+
comment: [
|
|
194
|
+
[/[^\/*]+/, "comment"],
|
|
195
|
+
[
|
|
196
|
+
"\\*/",
|
|
197
|
+
"comment",
|
|
198
|
+
"@pop"
|
|
199
|
+
],
|
|
200
|
+
[/[\/*]/, "comment"]
|
|
201
|
+
],
|
|
202
|
+
string: [
|
|
203
|
+
[/[^\\"]+/, "string"],
|
|
204
|
+
[/@escapes/, "string.escape"],
|
|
205
|
+
[/\\./, "string.escape.invalid"],
|
|
206
|
+
[/"/, {
|
|
207
|
+
token: "string.quote",
|
|
208
|
+
next: "@pop"
|
|
209
|
+
}]
|
|
210
|
+
],
|
|
211
|
+
litstring: [
|
|
212
|
+
[/[^"]+/, "string"],
|
|
213
|
+
[/""/, "string.escape"],
|
|
214
|
+
[/"/, {
|
|
215
|
+
token: "string.quote",
|
|
216
|
+
next: "@pop"
|
|
217
|
+
}]
|
|
218
|
+
],
|
|
219
|
+
litinterpstring: [
|
|
220
|
+
[/[^"{]+/, "string"],
|
|
221
|
+
[/""/, "string.escape"],
|
|
222
|
+
[/{{/, "string.escape"],
|
|
223
|
+
[/}}/, "string.escape"],
|
|
224
|
+
[/{/, {
|
|
225
|
+
token: "string.quote",
|
|
226
|
+
next: "root.litinterpstring"
|
|
227
|
+
}],
|
|
228
|
+
[/"/, {
|
|
229
|
+
token: "string.quote",
|
|
230
|
+
next: "@pop"
|
|
231
|
+
}]
|
|
232
|
+
],
|
|
233
|
+
interpolatedstring: [
|
|
234
|
+
[/[^\\"{]+/, "string"],
|
|
235
|
+
[/@escapes/, "string.escape"],
|
|
236
|
+
[/\\./, "string.escape.invalid"],
|
|
237
|
+
[/{{/, "string.escape"],
|
|
238
|
+
[/}}/, "string.escape"],
|
|
239
|
+
[/{/, {
|
|
240
|
+
token: "string.quote",
|
|
241
|
+
next: "root.interpolatedstring"
|
|
242
|
+
}],
|
|
243
|
+
[/"/, {
|
|
244
|
+
token: "string.quote",
|
|
245
|
+
next: "@pop"
|
|
246
|
+
}]
|
|
247
|
+
],
|
|
248
|
+
whitespace: [
|
|
249
|
+
[/^[ \t\v\f]*#((r)|(load))(?=\s)/, "directive.csx"],
|
|
250
|
+
[/^[ \t\v\f]*#\w.*$/, "namespace.cpp"],
|
|
251
|
+
[/[ \t\v\f\r\n]+/, ""],
|
|
252
|
+
[
|
|
253
|
+
/\/\*/,
|
|
254
|
+
"comment",
|
|
255
|
+
"@comment"
|
|
256
|
+
],
|
|
257
|
+
[/\/\/.*$/, "comment"]
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
//#endregion
|
|
262
|
+
export { e as conf, t as language };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/csp/csp.js
|
|
2
|
+
var e = {
|
|
3
|
+
brackets: [],
|
|
4
|
+
autoClosingPairs: [],
|
|
5
|
+
surroundingPairs: []
|
|
6
|
+
}, t = {
|
|
7
|
+
keywords: [],
|
|
8
|
+
typeKeywords: [],
|
|
9
|
+
tokenPostfix: ".csp",
|
|
10
|
+
operators: [],
|
|
11
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
12
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
13
|
+
tokenizer: { root: [
|
|
14
|
+
[/child-src/, "string.quote"],
|
|
15
|
+
[/connect-src/, "string.quote"],
|
|
16
|
+
[/default-src/, "string.quote"],
|
|
17
|
+
[/font-src/, "string.quote"],
|
|
18
|
+
[/frame-src/, "string.quote"],
|
|
19
|
+
[/img-src/, "string.quote"],
|
|
20
|
+
[/manifest-src/, "string.quote"],
|
|
21
|
+
[/media-src/, "string.quote"],
|
|
22
|
+
[/object-src/, "string.quote"],
|
|
23
|
+
[/script-src/, "string.quote"],
|
|
24
|
+
[/style-src/, "string.quote"],
|
|
25
|
+
[/worker-src/, "string.quote"],
|
|
26
|
+
[/base-uri/, "string.quote"],
|
|
27
|
+
[/plugin-types/, "string.quote"],
|
|
28
|
+
[/sandbox/, "string.quote"],
|
|
29
|
+
[/disown-opener/, "string.quote"],
|
|
30
|
+
[/form-action/, "string.quote"],
|
|
31
|
+
[/frame-ancestors/, "string.quote"],
|
|
32
|
+
[/report-uri/, "string.quote"],
|
|
33
|
+
[/report-to/, "string.quote"],
|
|
34
|
+
[/upgrade-insecure-requests/, "string.quote"],
|
|
35
|
+
[/block-all-mixed-content/, "string.quote"],
|
|
36
|
+
[/require-sri-for/, "string.quote"],
|
|
37
|
+
[/reflected-xss/, "string.quote"],
|
|
38
|
+
[/referrer/, "string.quote"],
|
|
39
|
+
[/policy-uri/, "string.quote"],
|
|
40
|
+
[/'self'/, "string.quote"],
|
|
41
|
+
[/'unsafe-inline'/, "string.quote"],
|
|
42
|
+
[/'unsafe-eval'/, "string.quote"],
|
|
43
|
+
[/'strict-dynamic'/, "string.quote"],
|
|
44
|
+
[/'unsafe-hashed-attributes'/, "string.quote"]
|
|
45
|
+
] }
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
export { e as conf, t as language };
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/css/css.js
|
|
2
|
+
var e = {
|
|
3
|
+
wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,
|
|
4
|
+
comments: { blockComment: ["/*", "*/"] },
|
|
5
|
+
brackets: [
|
|
6
|
+
["{", "}"],
|
|
7
|
+
["[", "]"],
|
|
8
|
+
["(", ")"]
|
|
9
|
+
],
|
|
10
|
+
autoClosingPairs: [
|
|
11
|
+
{
|
|
12
|
+
open: "{",
|
|
13
|
+
close: "}",
|
|
14
|
+
notIn: ["string", "comment"]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
open: "[",
|
|
18
|
+
close: "]",
|
|
19
|
+
notIn: ["string", "comment"]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
open: "(",
|
|
23
|
+
close: ")",
|
|
24
|
+
notIn: ["string", "comment"]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
open: "\"",
|
|
28
|
+
close: "\"",
|
|
29
|
+
notIn: ["string", "comment"]
|
|
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
|
+
folding: { markers: {
|
|
60
|
+
start: /* @__PURE__ */ RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
|
|
61
|
+
end: /* @__PURE__ */ RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
|
|
62
|
+
} }
|
|
63
|
+
}, t = {
|
|
64
|
+
defaultToken: "",
|
|
65
|
+
tokenPostfix: ".css",
|
|
66
|
+
ws: "[ \n\r\f]*",
|
|
67
|
+
identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
|
|
68
|
+
brackets: [
|
|
69
|
+
{
|
|
70
|
+
open: "{",
|
|
71
|
+
close: "}",
|
|
72
|
+
token: "delimiter.bracket"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
open: "[",
|
|
76
|
+
close: "]",
|
|
77
|
+
token: "delimiter.bracket"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
open: "(",
|
|
81
|
+
close: ")",
|
|
82
|
+
token: "delimiter.parenthesis"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
open: "<",
|
|
86
|
+
close: ">",
|
|
87
|
+
token: "delimiter.angle"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
tokenizer: {
|
|
91
|
+
root: [{ include: "@selector" }],
|
|
92
|
+
selector: [
|
|
93
|
+
{ include: "@comments" },
|
|
94
|
+
{ include: "@import" },
|
|
95
|
+
{ include: "@strings" },
|
|
96
|
+
["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)", {
|
|
97
|
+
token: "keyword",
|
|
98
|
+
next: "@keyframedeclaration"
|
|
99
|
+
}],
|
|
100
|
+
["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
|
|
101
|
+
["[@](charset|namespace)", {
|
|
102
|
+
token: "keyword",
|
|
103
|
+
next: "@declarationbody"
|
|
104
|
+
}],
|
|
105
|
+
["(url-prefix)(\\()", ["attribute.value", {
|
|
106
|
+
token: "delimiter.parenthesis",
|
|
107
|
+
next: "@urldeclaration"
|
|
108
|
+
}]],
|
|
109
|
+
["(url)(\\()", ["attribute.value", {
|
|
110
|
+
token: "delimiter.parenthesis",
|
|
111
|
+
next: "@urldeclaration"
|
|
112
|
+
}]],
|
|
113
|
+
{ include: "@selectorname" },
|
|
114
|
+
["[\\*]", "tag"],
|
|
115
|
+
["[>\\+,]", "delimiter"],
|
|
116
|
+
["\\[", {
|
|
117
|
+
token: "delimiter.bracket",
|
|
118
|
+
next: "@selectorattribute"
|
|
119
|
+
}],
|
|
120
|
+
["{", {
|
|
121
|
+
token: "delimiter.bracket",
|
|
122
|
+
next: "@selectorbody"
|
|
123
|
+
}]
|
|
124
|
+
],
|
|
125
|
+
selectorbody: [
|
|
126
|
+
{ include: "@comments" },
|
|
127
|
+
[
|
|
128
|
+
"[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))",
|
|
129
|
+
"attribute.name",
|
|
130
|
+
"@rulevalue"
|
|
131
|
+
],
|
|
132
|
+
["}", {
|
|
133
|
+
token: "delimiter.bracket",
|
|
134
|
+
next: "@pop"
|
|
135
|
+
}]
|
|
136
|
+
],
|
|
137
|
+
selectorname: [["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]],
|
|
138
|
+
selectorattribute: [{ include: "@term" }, ["]", {
|
|
139
|
+
token: "delimiter.bracket",
|
|
140
|
+
next: "@pop"
|
|
141
|
+
}]],
|
|
142
|
+
term: [
|
|
143
|
+
{ include: "@comments" },
|
|
144
|
+
["(url-prefix)(\\()", ["attribute.value", {
|
|
145
|
+
token: "delimiter.parenthesis",
|
|
146
|
+
next: "@urldeclaration"
|
|
147
|
+
}]],
|
|
148
|
+
["(url)(\\()", ["attribute.value", {
|
|
149
|
+
token: "delimiter.parenthesis",
|
|
150
|
+
next: "@urldeclaration"
|
|
151
|
+
}]],
|
|
152
|
+
{ include: "@functioninvocation" },
|
|
153
|
+
{ include: "@numbers" },
|
|
154
|
+
{ include: "@name" },
|
|
155
|
+
{ include: "@strings" },
|
|
156
|
+
["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "delimiter"],
|
|
157
|
+
[",", "delimiter"]
|
|
158
|
+
],
|
|
159
|
+
rulevalue: [
|
|
160
|
+
{ include: "@comments" },
|
|
161
|
+
{ include: "@strings" },
|
|
162
|
+
{ include: "@term" },
|
|
163
|
+
["!important", "keyword"],
|
|
164
|
+
[
|
|
165
|
+
";",
|
|
166
|
+
"delimiter",
|
|
167
|
+
"@pop"
|
|
168
|
+
],
|
|
169
|
+
["(?=})", {
|
|
170
|
+
token: "",
|
|
171
|
+
next: "@pop"
|
|
172
|
+
}]
|
|
173
|
+
],
|
|
174
|
+
warndebug: [["[@](warn|debug)", {
|
|
175
|
+
token: "keyword",
|
|
176
|
+
next: "@declarationbody"
|
|
177
|
+
}]],
|
|
178
|
+
import: [["[@](import)", {
|
|
179
|
+
token: "keyword",
|
|
180
|
+
next: "@declarationbody"
|
|
181
|
+
}]],
|
|
182
|
+
urldeclaration: [
|
|
183
|
+
{ include: "@strings" },
|
|
184
|
+
["[^)\r\n]+", "string"],
|
|
185
|
+
["\\)", {
|
|
186
|
+
token: "delimiter.parenthesis",
|
|
187
|
+
next: "@pop"
|
|
188
|
+
}]
|
|
189
|
+
],
|
|
190
|
+
parenthizedterm: [{ include: "@term" }, ["\\)", {
|
|
191
|
+
token: "delimiter.parenthesis",
|
|
192
|
+
next: "@pop"
|
|
193
|
+
}]],
|
|
194
|
+
declarationbody: [
|
|
195
|
+
{ include: "@term" },
|
|
196
|
+
[
|
|
197
|
+
";",
|
|
198
|
+
"delimiter",
|
|
199
|
+
"@pop"
|
|
200
|
+
],
|
|
201
|
+
["(?=})", {
|
|
202
|
+
token: "",
|
|
203
|
+
next: "@pop"
|
|
204
|
+
}]
|
|
205
|
+
],
|
|
206
|
+
comments: [[
|
|
207
|
+
"\\/\\*",
|
|
208
|
+
"comment",
|
|
209
|
+
"@comment"
|
|
210
|
+
], ["\\/\\/+.*", "comment"]],
|
|
211
|
+
comment: [
|
|
212
|
+
[
|
|
213
|
+
"\\*\\/",
|
|
214
|
+
"comment",
|
|
215
|
+
"@pop"
|
|
216
|
+
],
|
|
217
|
+
[/[^*/]+/, "comment"],
|
|
218
|
+
[/./, "comment"]
|
|
219
|
+
],
|
|
220
|
+
name: [["@identifier", "attribute.value"]],
|
|
221
|
+
numbers: [["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", {
|
|
222
|
+
token: "attribute.value.number",
|
|
223
|
+
next: "@units"
|
|
224
|
+
}], ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]],
|
|
225
|
+
units: [[
|
|
226
|
+
"(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
|
|
227
|
+
"attribute.value.unit",
|
|
228
|
+
"@pop"
|
|
229
|
+
]],
|
|
230
|
+
keyframedeclaration: [["@identifier", "attribute.value"], ["{", {
|
|
231
|
+
token: "delimiter.bracket",
|
|
232
|
+
switchTo: "@keyframebody"
|
|
233
|
+
}]],
|
|
234
|
+
keyframebody: [
|
|
235
|
+
{ include: "@term" },
|
|
236
|
+
["{", {
|
|
237
|
+
token: "delimiter.bracket",
|
|
238
|
+
next: "@selectorbody"
|
|
239
|
+
}],
|
|
240
|
+
["}", {
|
|
241
|
+
token: "delimiter.bracket",
|
|
242
|
+
next: "@pop"
|
|
243
|
+
}]
|
|
244
|
+
],
|
|
245
|
+
functioninvocation: [["@identifier\\(", {
|
|
246
|
+
token: "attribute.value",
|
|
247
|
+
next: "@functionarguments"
|
|
248
|
+
}]],
|
|
249
|
+
functionarguments: [
|
|
250
|
+
["\\$@identifier@ws:", "attribute.name"],
|
|
251
|
+
["[,]", "delimiter"],
|
|
252
|
+
{ include: "@term" },
|
|
253
|
+
["\\)", {
|
|
254
|
+
token: "attribute.value",
|
|
255
|
+
next: "@pop"
|
|
256
|
+
}]
|
|
257
|
+
],
|
|
258
|
+
strings: [["~?\"", {
|
|
259
|
+
token: "string",
|
|
260
|
+
next: "@stringenddoublequote"
|
|
261
|
+
}], ["~?'", {
|
|
262
|
+
token: "string",
|
|
263
|
+
next: "@stringendquote"
|
|
264
|
+
}]],
|
|
265
|
+
stringenddoublequote: [
|
|
266
|
+
["\\\\.", "string"],
|
|
267
|
+
["\"", {
|
|
268
|
+
token: "string",
|
|
269
|
+
next: "@pop"
|
|
270
|
+
}],
|
|
271
|
+
[/[^\\"]+/, "string"],
|
|
272
|
+
[".", "string"]
|
|
273
|
+
],
|
|
274
|
+
stringendquote: [
|
|
275
|
+
["\\\\.", "string"],
|
|
276
|
+
["'", {
|
|
277
|
+
token: "string",
|
|
278
|
+
next: "@pop"
|
|
279
|
+
}],
|
|
280
|
+
[/[^\\']+/, "string"],
|
|
281
|
+
[".", "string"]
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
//#endregion
|
|
286
|
+
export { e as conf, t as language };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/features/css/css.worker.js?worker
|
|
2
|
+
function e(e) {
|
|
3
|
+
return new Worker(new URL("css.worker-zFzGcGyJ.js", import.meta.url).href, { name: e?.name });
|
|
4
|
+
}
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as default };
|