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,262 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.57.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,286 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.57.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 };
|