@univerjs/uniscript 0.4.0-alpha.0 → 0.4.0-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/abap-BZS-1p12.js +6 -0
- package/lib/abap-D8H3nII2.mjs +1404 -0
- package/lib/apex-B2xdRF0k.js +6 -0
- package/lib/apex-BVHYDV51.mjs +334 -0
- package/lib/azcli-BwJ4gbR1.mjs +74 -0
- package/lib/azcli-CKk2q0zF.js +6 -0
- package/lib/bat-BDmMqWXx.mjs +106 -0
- package/lib/bat-Ehz5Z_mk.js +6 -0
- package/lib/bicep-B5L2IbSj.mjs +110 -0
- package/lib/bicep-WbLMPUMj.js +7 -0
- package/lib/cameligo-B_ldnAvM.js +6 -0
- package/lib/cameligo-CmyOPZUd.mjs +180 -0
- package/lib/cjs/index.js +1 -9
- package/lib/clojure-Dg-qgg-1.js +6 -0
- package/lib/clojure-iSXHsTlR.mjs +767 -0
- package/lib/coffee-BCg0pb49.js +6 -0
- package/lib/coffee-BUCk2FHC.mjs +238 -0
- package/lib/cpp-CJWZ7Zo7.js +6 -0
- package/lib/cpp-MUyeqRt5.mjs +395 -0
- package/lib/csharp-B9vyMfVU.mjs +332 -0
- package/lib/csharp-BZypj8XG.js +6 -0
- package/lib/csp-BfXxGnNN.js +6 -0
- package/lib/csp-CbylPXe5.mjs +59 -0
- package/lib/css-BPDnvT2s.js +8 -0
- package/lib/css-BQSMT8k7.mjs +193 -0
- package/lib/cssMode-B_of5tVd.js +9 -0
- package/lib/cssMode-BuX-eUHc.mjs +1604 -0
- package/lib/cypher-3bNWMNCJ.js +6 -0
- package/lib/cypher-D7IWy_82.mjs +269 -0
- package/lib/dart-BCVbUKaH.mjs +287 -0
- package/lib/dart-C9Glm5m-.js +6 -0
- package/lib/dockerfile-CjnlcV5o.js +6 -0
- package/lib/dockerfile-D2-hSnDX.mjs +136 -0
- package/lib/ecl-DRJlPmOb.mjs +462 -0
- package/lib/ecl-UyoSfv7F.js +6 -0
- package/lib/elixir-Bol0p0Ia.js +6 -0
- package/lib/elixir-D8NBXKCb.mjs +575 -0
- package/lib/es/index.js +5 -262
- package/lib/flow9-Be1OUdJl.js +6 -0
- package/lib/flow9-Dp7h8rKW.mjs +148 -0
- package/lib/freemarker2-D8-fH4uC.mjs +1001 -0
- package/lib/freemarker2-S5ay_GEf.js +8 -0
- package/lib/fsharp-CJxdVP7r.mjs +223 -0
- package/lib/fsharp-CKIYWNYJ.js +6 -0
- package/lib/go-DWj6zslQ.js +6 -0
- package/lib/go-IPaMO3Uz.mjs +224 -0
- package/lib/graphql-BzJpwfxN.js +6 -0
- package/lib/graphql-CMoDK5uf.mjs +157 -0
- package/lib/handlebars-CEMNnGaU.mjs +427 -0
- package/lib/handlebars-CM3PRDRO.js +6 -0
- package/lib/hcl-BCY6T0iq.js +6 -0
- package/lib/hcl-BTAYK4pT.mjs +189 -0
- package/lib/html-BSUn7oJR.mjs +316 -0
- package/lib/html-Df-Osxjs.js +6 -0
- package/lib/htmlMode-Bj4CfAzA.js +9 -0
- package/lib/htmlMode-xJPwX0cD.mjs +1615 -0
- package/lib/index-D6nY5NdF.mjs +116821 -0
- package/lib/index-rYV4VmC2.js +1163 -0
- package/lib/index.css +1 -1
- package/lib/ini-CC3_THb4.js +6 -0
- package/lib/ini-CiaphB6F.mjs +77 -0
- package/lib/java-CwRV8Dsg.js +6 -0
- package/lib/java-DxksziCw.mjs +238 -0
- package/lib/javascript-D1eKEotE.js +6 -0
- package/lib/javascript-c8D1_K05.mjs +76 -0
- package/lib/jsonMode-8-L3-E9k.mjs +2042 -0
- package/lib/jsonMode-BdBVsN9_.js +15 -0
- package/lib/julia-7Z1jwT4W.js +6 -0
- package/lib/julia-TTty8och.mjs +517 -0
- package/lib/kotlin-BAXgl2QX.js +6 -0
- package/lib/kotlin-Dzand-bM.mjs +259 -0
- package/lib/less-CSG9Zdoy.js +7 -0
- package/lib/less-CWDFQI_i.mjs +168 -0
- package/lib/lexon-BiTtMD9F.js +6 -0
- package/lib/lexon-bZpjZioh.mjs +163 -0
- package/lib/liquid-BmlJOXgY.js +6 -0
- package/lib/liquid-Bs7DM5cg.mjs +248 -0
- package/lib/lua-CoWYKXUu.mjs +168 -0
- package/lib/lua-o7UTFJ05.js +6 -0
- package/lib/m3-DIJY3uEe.mjs +216 -0
- package/lib/m3-DOYTRLxi.js +6 -0
- package/lib/markdown-CDlkMTMZ.mjs +235 -0
- package/lib/markdown-Di5faXtP.js +6 -0
- package/lib/mdx-BEI71kqO.mjs +173 -0
- package/lib/mdx-DJV2KJ98.js +6 -0
- package/lib/mips-CIiuS33B.mjs +204 -0
- package/lib/mips-CjGjcf9D.js +6 -0
- package/lib/msdax-4_jBeazN.mjs +381 -0
- package/lib/msdax-DZFpIwAH.js +6 -0
- package/lib/mysql-6Y0DL_eO.js +6 -0
- package/lib/mysql-D_KZRjSR.mjs +884 -0
- package/lib/objective-c-7nsY1fc1.mjs +189 -0
- package/lib/objective-c-BtrzMwBz.js +6 -0
- package/lib/pascal-BF06Dt9I.js +6 -0
- package/lib/pascal-BHpF9PW1.mjs +257 -0
- package/lib/pascaligo-BDrxVOcH.js +6 -0
- package/lib/pascaligo-C3mRbxmU.mjs +170 -0
- package/lib/perl-BMlqAyyD.js +6 -0
- package/lib/perl-F3tWDMLI.mjs +632 -0
- package/lib/pgsql-D62t1RD_.mjs +857 -0
- package/lib/pgsql-DXYBcnYD.js +6 -0
- package/lib/php-C8GGPjjI.mjs +506 -0
- package/lib/php-DmDmMNs3.js +6 -0
- package/lib/pla-2A6q3K8_.js +6 -0
- package/lib/pla-C_W_x2fV.mjs +143 -0
- package/lib/postiats-CMS8WwLg.mjs +913 -0
- package/lib/postiats-DQ-6iLGI.js +6 -0
- package/lib/powerquery-CuZPk7NC.js +6 -0
- package/lib/powerquery-Dcs0XplE.mjs +896 -0
- package/lib/powershell-Brx1N_3T.mjs +245 -0
- package/lib/powershell-D7BqJxnS.js +6 -0
- package/lib/protobuf-CkqkhuUG.js +7 -0
- package/lib/protobuf-UEJDuX6l.mjs +426 -0
- package/lib/pug-65DF18O8.js +6 -0
- package/lib/pug-LDwDmrMc.mjs +408 -0
- package/lib/python-BOeTitp9.mjs +309 -0
- package/lib/python-DRyE-VQQ.js +6 -0
- package/lib/qsharp-Cb7hPwnM.mjs +307 -0
- package/lib/qsharp-Dw07PXbd.js +6 -0
- package/lib/r-BHuY0po5.js +6 -0
- package/lib/r-BiFgSgcs.mjs +249 -0
- package/lib/razor-D0RPXCAO.mjs +558 -0
- package/lib/razor-DtDOotKq.js +6 -0
- package/lib/redis-BdzqoKC2.mjs +308 -0
- package/lib/redis-_Q4kv9ug.js +6 -0
- package/lib/redshift-DNNCHCLR.js +6 -0
- package/lib/redshift-Df6PoiEL.mjs +815 -0
- package/lib/restructuredtext-C9FM3r80.js +6 -0
- package/lib/restructuredtext-CW0ZtQ2l.mjs +180 -0
- package/lib/ruby-DyIFepcy.mjs +517 -0
- package/lib/ruby-DyJmXCYh.js +6 -0
- package/lib/rust-BiRHKB0S.mjs +349 -0
- package/lib/rust-DVvzZ_uH.js +6 -0
- package/lib/sb-CFwmZh3c.js +6 -0
- package/lib/sb-CahkGwPC.mjs +121 -0
- package/lib/scala-Cg9Wfw6B.mjs +376 -0
- package/lib/scala-DjaRe0PR.js +6 -0
- package/lib/scheme-Bqb0wlMX.mjs +114 -0
- package/lib/scheme-ZdeLzG0d.js +6 -0
- package/lib/scss-3qd2syug.mjs +268 -0
- package/lib/scss-Dqv1RljX.js +8 -0
- package/lib/shell-B5iW6U-v.mjs +227 -0
- package/lib/shell-BJ5zD_-e.js +6 -0
- package/lib/solidity-8Ys0iSgd.mjs +1373 -0
- package/lib/solidity-CagYWQAe.js +6 -0
- package/lib/sophia-PnZfErC3.mjs +205 -0
- package/lib/sophia-szuux90p.js +6 -0
- package/lib/sparql-CXz1-gkd.js +6 -0
- package/lib/sparql-CgWX-KRM.mjs +207 -0
- package/lib/sql-CN3Vg4Sm.mjs +859 -0
- package/lib/sql-CWZ5x4mg.js +6 -0
- package/lib/st-CcWMPoh3.js +6 -0
- package/lib/st-DKDuarOh.mjs +422 -0
- package/lib/swift-DUBoAkDR.js +8 -0
- package/lib/swift-DnXH6Con.mjs +318 -0
- package/lib/systemverilog-5hQzl-99.js +6 -0
- package/lib/systemverilog-pJOgZU46.mjs +582 -0
- package/lib/tcl-Bls9iNXn.mjs +238 -0
- package/lib/tcl-CiK0GhJi.js +6 -0
- package/lib/tsMode-BB2mDc5d.mjs +906 -0
- package/lib/tsMode-N-LS5RKx.js +16 -0
- package/lib/twig-B14HEeE0.mjs +398 -0
- package/lib/twig-Cbq-Ua-E.js +6 -0
- package/lib/typescript-CZplv8KD.js +6 -0
- package/lib/typescript-f9PHTVoW.mjs +351 -0
- package/lib/typespec-Br_LC070.js +6 -0
- package/lib/typespec-dAaIdBal.mjs +125 -0
- package/lib/umd/index.js +1914 -2
- package/lib/vb-B1HzwoGL.js +6 -0
- package/lib/vb-CPBujGrP.mjs +378 -0
- package/lib/wgsl-BNAUPMiJ.js +303 -0
- package/lib/wgsl-CqCqdnZC.mjs +448 -0
- package/lib/xml-BSe-ETnG.js +6 -0
- package/lib/xml-Dv0cmUxw.mjs +103 -0
- package/lib/yaml-O_DoXtBP.js +6 -0
- package/lib/yaml-eXS7QSgG.mjs +214 -0
- package/package.json +9 -16
@@ -0,0 +1,332 @@
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/
|
7
|
+
var conf = {
|
8
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
9
|
+
comments: {
|
10
|
+
lineComment: "//",
|
11
|
+
blockComment: ["/*", "*/"]
|
12
|
+
},
|
13
|
+
brackets: [
|
14
|
+
["{", "}"],
|
15
|
+
["[", "]"],
|
16
|
+
["(", ")"]
|
17
|
+
],
|
18
|
+
autoClosingPairs: [
|
19
|
+
{ open: "{", close: "}" },
|
20
|
+
{ open: "[", close: "]" },
|
21
|
+
{ open: "(", close: ")" },
|
22
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
23
|
+
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
24
|
+
],
|
25
|
+
surroundingPairs: [
|
26
|
+
{ open: "{", close: "}" },
|
27
|
+
{ open: "[", close: "]" },
|
28
|
+
{ open: "(", close: ")" },
|
29
|
+
{ open: "<", close: ">" },
|
30
|
+
{ open: "'", close: "'" },
|
31
|
+
{ open: '"', close: '"' }
|
32
|
+
],
|
33
|
+
folding: {
|
34
|
+
markers: {
|
35
|
+
start: new RegExp("^\\s*#region\\b"),
|
36
|
+
end: new RegExp("^\\s*#endregion\\b")
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}, language = {
|
40
|
+
defaultToken: "",
|
41
|
+
tokenPostfix: ".cs",
|
42
|
+
brackets: [
|
43
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
44
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
45
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
46
|
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
47
|
+
],
|
48
|
+
keywords: [
|
49
|
+
"extern",
|
50
|
+
"alias",
|
51
|
+
"using",
|
52
|
+
"bool",
|
53
|
+
"decimal",
|
54
|
+
"sbyte",
|
55
|
+
"byte",
|
56
|
+
"short",
|
57
|
+
"ushort",
|
58
|
+
"int",
|
59
|
+
"uint",
|
60
|
+
"long",
|
61
|
+
"ulong",
|
62
|
+
"char",
|
63
|
+
"float",
|
64
|
+
"double",
|
65
|
+
"object",
|
66
|
+
"dynamic",
|
67
|
+
"string",
|
68
|
+
"assembly",
|
69
|
+
"is",
|
70
|
+
"as",
|
71
|
+
"ref",
|
72
|
+
"out",
|
73
|
+
"this",
|
74
|
+
"base",
|
75
|
+
"new",
|
76
|
+
"typeof",
|
77
|
+
"void",
|
78
|
+
"checked",
|
79
|
+
"unchecked",
|
80
|
+
"default",
|
81
|
+
"delegate",
|
82
|
+
"var",
|
83
|
+
"const",
|
84
|
+
"if",
|
85
|
+
"else",
|
86
|
+
"switch",
|
87
|
+
"case",
|
88
|
+
"while",
|
89
|
+
"do",
|
90
|
+
"for",
|
91
|
+
"foreach",
|
92
|
+
"in",
|
93
|
+
"break",
|
94
|
+
"continue",
|
95
|
+
"goto",
|
96
|
+
"return",
|
97
|
+
"throw",
|
98
|
+
"try",
|
99
|
+
"catch",
|
100
|
+
"finally",
|
101
|
+
"lock",
|
102
|
+
"yield",
|
103
|
+
"from",
|
104
|
+
"let",
|
105
|
+
"where",
|
106
|
+
"join",
|
107
|
+
"on",
|
108
|
+
"equals",
|
109
|
+
"into",
|
110
|
+
"orderby",
|
111
|
+
"ascending",
|
112
|
+
"descending",
|
113
|
+
"select",
|
114
|
+
"group",
|
115
|
+
"by",
|
116
|
+
"namespace",
|
117
|
+
"partial",
|
118
|
+
"class",
|
119
|
+
"field",
|
120
|
+
"event",
|
121
|
+
"method",
|
122
|
+
"param",
|
123
|
+
"public",
|
124
|
+
"protected",
|
125
|
+
"internal",
|
126
|
+
"private",
|
127
|
+
"abstract",
|
128
|
+
"sealed",
|
129
|
+
"static",
|
130
|
+
"struct",
|
131
|
+
"readonly",
|
132
|
+
"volatile",
|
133
|
+
"virtual",
|
134
|
+
"override",
|
135
|
+
"params",
|
136
|
+
"get",
|
137
|
+
"set",
|
138
|
+
"add",
|
139
|
+
"remove",
|
140
|
+
"operator",
|
141
|
+
"true",
|
142
|
+
"false",
|
143
|
+
"implicit",
|
144
|
+
"explicit",
|
145
|
+
"interface",
|
146
|
+
"enum",
|
147
|
+
"null",
|
148
|
+
"async",
|
149
|
+
"await",
|
150
|
+
"fixed",
|
151
|
+
"sizeof",
|
152
|
+
"stackalloc",
|
153
|
+
"unsafe",
|
154
|
+
"nameof",
|
155
|
+
"when"
|
156
|
+
],
|
157
|
+
namespaceFollows: ["namespace", "using"],
|
158
|
+
parenFollows: ["if", "for", "while", "switch", "foreach", "using", "catch", "when"],
|
159
|
+
operators: [
|
160
|
+
"=",
|
161
|
+
"??",
|
162
|
+
"||",
|
163
|
+
"&&",
|
164
|
+
"|",
|
165
|
+
"^",
|
166
|
+
"&",
|
167
|
+
"==",
|
168
|
+
"!=",
|
169
|
+
"<=",
|
170
|
+
">=",
|
171
|
+
"<<",
|
172
|
+
"+",
|
173
|
+
"-",
|
174
|
+
"*",
|
175
|
+
"/",
|
176
|
+
"%",
|
177
|
+
"!",
|
178
|
+
"~",
|
179
|
+
"++",
|
180
|
+
"--",
|
181
|
+
"+=",
|
182
|
+
"-=",
|
183
|
+
"*=",
|
184
|
+
"/=",
|
185
|
+
"%=",
|
186
|
+
"&=",
|
187
|
+
"|=",
|
188
|
+
"^=",
|
189
|
+
"<<=",
|
190
|
+
">>=",
|
191
|
+
">>",
|
192
|
+
"=>"
|
193
|
+
],
|
194
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
195
|
+
// escape sequences
|
196
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
197
|
+
// The main tokenizer for our languages
|
198
|
+
tokenizer: {
|
199
|
+
root: [
|
200
|
+
// identifiers and keywords
|
201
|
+
[
|
202
|
+
/\@?[a-zA-Z_]\w*/,
|
203
|
+
{
|
204
|
+
cases: {
|
205
|
+
"@namespaceFollows": {
|
206
|
+
token: "keyword.$0",
|
207
|
+
next: "@namespace"
|
208
|
+
},
|
209
|
+
"@keywords": {
|
210
|
+
token: "keyword.$0",
|
211
|
+
next: "@qualified"
|
212
|
+
},
|
213
|
+
"@default": { token: "identifier", next: "@qualified" }
|
214
|
+
}
|
215
|
+
}
|
216
|
+
],
|
217
|
+
// whitespace
|
218
|
+
{ include: "@whitespace" },
|
219
|
+
// delimiters and operators
|
220
|
+
[
|
221
|
+
/}/,
|
222
|
+
{
|
223
|
+
cases: {
|
224
|
+
"$S2==interpolatedstring": {
|
225
|
+
token: "string.quote",
|
226
|
+
next: "@pop"
|
227
|
+
},
|
228
|
+
"$S2==litinterpstring": {
|
229
|
+
token: "string.quote",
|
230
|
+
next: "@pop"
|
231
|
+
},
|
232
|
+
"@default": "@brackets"
|
233
|
+
}
|
234
|
+
}
|
235
|
+
],
|
236
|
+
[/[{}()\[\]]/, "@brackets"],
|
237
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
238
|
+
[
|
239
|
+
/@symbols/,
|
240
|
+
{
|
241
|
+
cases: {
|
242
|
+
"@operators": "delimiter",
|
243
|
+
"@default": ""
|
244
|
+
}
|
245
|
+
}
|
246
|
+
],
|
247
|
+
// numbers
|
248
|
+
[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/, "number.float"],
|
249
|
+
[/0[xX][0-9a-fA-F_]+/, "number.hex"],
|
250
|
+
[/0[bB][01_]+/, "number.hex"],
|
251
|
+
// binary: use same theme style as hex
|
252
|
+
[/[0-9_]+/, "number"],
|
253
|
+
// delimiter: after number because of .\d floats
|
254
|
+
[/[;,.]/, "delimiter"],
|
255
|
+
// strings
|
256
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
257
|
+
// non-teminated string
|
258
|
+
[/"/, { token: "string.quote", next: "@string" }],
|
259
|
+
[/\$\@"/, { token: "string.quote", next: "@litinterpstring" }],
|
260
|
+
[/\@"/, { token: "string.quote", next: "@litstring" }],
|
261
|
+
[/\$"/, { token: "string.quote", next: "@interpolatedstring" }],
|
262
|
+
// characters
|
263
|
+
[/'[^\\']'/, "string"],
|
264
|
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
265
|
+
[/'/, "string.invalid"]
|
266
|
+
],
|
267
|
+
qualified: [
|
268
|
+
[
|
269
|
+
/[a-zA-Z_][\w]*/,
|
270
|
+
{
|
271
|
+
cases: {
|
272
|
+
"@keywords": { token: "keyword.$0" },
|
273
|
+
"@default": "identifier"
|
274
|
+
}
|
275
|
+
}
|
276
|
+
],
|
277
|
+
[/\./, "delimiter"],
|
278
|
+
["", "", "@pop"]
|
279
|
+
],
|
280
|
+
namespace: [
|
281
|
+
{ include: "@whitespace" },
|
282
|
+
[/[A-Z]\w*/, "namespace"],
|
283
|
+
[/[\.=]/, "delimiter"],
|
284
|
+
["", "", "@pop"]
|
285
|
+
],
|
286
|
+
comment: [
|
287
|
+
[/[^\/*]+/, "comment"],
|
288
|
+
// [/\/\*/, 'comment', '@push' ], // no nested comments :-(
|
289
|
+
["\\*/", "comment", "@pop"],
|
290
|
+
[/[\/*]/, "comment"]
|
291
|
+
],
|
292
|
+
string: [
|
293
|
+
[/[^\\"]+/, "string"],
|
294
|
+
[/@escapes/, "string.escape"],
|
295
|
+
[/\\./, "string.escape.invalid"],
|
296
|
+
[/"/, { token: "string.quote", next: "@pop" }]
|
297
|
+
],
|
298
|
+
litstring: [
|
299
|
+
[/[^"]+/, "string"],
|
300
|
+
[/""/, "string.escape"],
|
301
|
+
[/"/, { token: "string.quote", next: "@pop" }]
|
302
|
+
],
|
303
|
+
litinterpstring: [
|
304
|
+
[/[^"{]+/, "string"],
|
305
|
+
[/""/, "string.escape"],
|
306
|
+
[/{{/, "string.escape"],
|
307
|
+
[/}}/, "string.escape"],
|
308
|
+
[/{/, { token: "string.quote", next: "root.litinterpstring" }],
|
309
|
+
[/"/, { token: "string.quote", next: "@pop" }]
|
310
|
+
],
|
311
|
+
interpolatedstring: [
|
312
|
+
[/[^\\"{]+/, "string"],
|
313
|
+
[/@escapes/, "string.escape"],
|
314
|
+
[/\\./, "string.escape.invalid"],
|
315
|
+
[/{{/, "string.escape"],
|
316
|
+
[/}}/, "string.escape"],
|
317
|
+
[/{/, { token: "string.quote", next: "root.interpolatedstring" }],
|
318
|
+
[/"/, { token: "string.quote", next: "@pop" }]
|
319
|
+
],
|
320
|
+
whitespace: [
|
321
|
+
[/^[ \t\v\f]*#((r)|(load))(?=\s)/, "directive.csx"],
|
322
|
+
[/^[ \t\v\f]*#\w.*$/, "namespace.cpp"],
|
323
|
+
[/[ \t\v\f\r\n]+/, ""],
|
324
|
+
[/\/\*/, "comment", "@comment"],
|
325
|
+
[/\/\/.*$/, "comment"]
|
326
|
+
]
|
327
|
+
}
|
328
|
+
};
|
329
|
+
export {
|
330
|
+
conf,
|
331
|
+
language
|
332
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/var conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},language={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["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"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@?[a-zA-Z_]\w*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@keywords":{token:"keyword.$0",next:"@qualified"},"@default":{token:"identifier",next:"@qualified"}}}],{include:"@whitespace"},[/}/,{cases:{"$S2==interpolatedstring":{token:"string.quote",next:"@pop"},"$S2==litinterpstring":{token:"string.quote",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}};exports.conf=conf;exports.language=language;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/var conf={brackets:[],autoClosingPairs:[],surroundingPairs:[]},language={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/child-src/,"string.quote"],[/connect-src/,"string.quote"],[/default-src/,"string.quote"],[/font-src/,"string.quote"],[/frame-src/,"string.quote"],[/img-src/,"string.quote"],[/manifest-src/,"string.quote"],[/media-src/,"string.quote"],[/object-src/,"string.quote"],[/script-src/,"string.quote"],[/style-src/,"string.quote"],[/worker-src/,"string.quote"],[/base-uri/,"string.quote"],[/plugin-types/,"string.quote"],[/sandbox/,"string.quote"],[/disown-opener/,"string.quote"],[/form-action/,"string.quote"],[/frame-ancestors/,"string.quote"],[/report-uri/,"string.quote"],[/report-to/,"string.quote"],[/upgrade-insecure-requests/,"string.quote"],[/block-all-mixed-content/,"string.quote"],[/require-sri-for/,"string.quote"],[/reflected-xss/,"string.quote"],[/referrer/,"string.quote"],[/policy-uri/,"string.quote"],[/'self'/,"string.quote"],[/'unsafe-inline'/,"string.quote"],[/'unsafe-eval'/,"string.quote"],[/'strict-dynamic'/,"string.quote"],[/'unsafe-hashed-attributes'/,"string.quote"]]}};exports.conf=conf;exports.language=language;
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/
|
7
|
+
var conf = {
|
8
|
+
brackets: [],
|
9
|
+
autoClosingPairs: [],
|
10
|
+
surroundingPairs: []
|
11
|
+
}, language = {
|
12
|
+
// Set defaultToken to invalid to see what you do not tokenize yet
|
13
|
+
// defaultToken: 'invalid',
|
14
|
+
keywords: [],
|
15
|
+
typeKeywords: [],
|
16
|
+
tokenPostfix: ".csp",
|
17
|
+
operators: [],
|
18
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
19
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
20
|
+
tokenizer: {
|
21
|
+
root: [
|
22
|
+
[/child-src/, "string.quote"],
|
23
|
+
[/connect-src/, "string.quote"],
|
24
|
+
[/default-src/, "string.quote"],
|
25
|
+
[/font-src/, "string.quote"],
|
26
|
+
[/frame-src/, "string.quote"],
|
27
|
+
[/img-src/, "string.quote"],
|
28
|
+
[/manifest-src/, "string.quote"],
|
29
|
+
[/media-src/, "string.quote"],
|
30
|
+
[/object-src/, "string.quote"],
|
31
|
+
[/script-src/, "string.quote"],
|
32
|
+
[/style-src/, "string.quote"],
|
33
|
+
[/worker-src/, "string.quote"],
|
34
|
+
[/base-uri/, "string.quote"],
|
35
|
+
[/plugin-types/, "string.quote"],
|
36
|
+
[/sandbox/, "string.quote"],
|
37
|
+
[/disown-opener/, "string.quote"],
|
38
|
+
[/form-action/, "string.quote"],
|
39
|
+
[/frame-ancestors/, "string.quote"],
|
40
|
+
[/report-uri/, "string.quote"],
|
41
|
+
[/report-to/, "string.quote"],
|
42
|
+
[/upgrade-insecure-requests/, "string.quote"],
|
43
|
+
[/block-all-mixed-content/, "string.quote"],
|
44
|
+
[/require-sri-for/, "string.quote"],
|
45
|
+
[/reflected-xss/, "string.quote"],
|
46
|
+
[/referrer/, "string.quote"],
|
47
|
+
[/policy-uri/, "string.quote"],
|
48
|
+
[/'self'/, "string.quote"],
|
49
|
+
[/'unsafe-inline'/, "string.quote"],
|
50
|
+
[/'unsafe-eval'/, "string.quote"],
|
51
|
+
[/'strict-dynamic'/, "string.quote"],
|
52
|
+
[/'unsafe-hashed-attributes'/, "string.quote"]
|
53
|
+
]
|
54
|
+
}
|
55
|
+
};
|
56
|
+
export {
|
57
|
+
conf,
|
58
|
+
language
|
59
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/var conf={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},language={defaultToken:"",tokenPostfix:".css",ws:`[
|
7
|
+
\r\f]*`,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])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},[`[^)\r
|
8
|
+
]+`,"string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}};exports.conf=conf;exports.language=language;
|
@@ -0,0 +1,193 @@
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/
|
7
|
+
var conf = {
|
8
|
+
wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,
|
9
|
+
comments: {
|
10
|
+
blockComment: ["/*", "*/"]
|
11
|
+
},
|
12
|
+
brackets: [
|
13
|
+
["{", "}"],
|
14
|
+
["[", "]"],
|
15
|
+
["(", ")"]
|
16
|
+
],
|
17
|
+
autoClosingPairs: [
|
18
|
+
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
19
|
+
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
20
|
+
{ open: "(", close: ")", notIn: ["string", "comment"] },
|
21
|
+
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
22
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
23
|
+
],
|
24
|
+
surroundingPairs: [
|
25
|
+
{ open: "{", close: "}" },
|
26
|
+
{ open: "[", close: "]" },
|
27
|
+
{ open: "(", close: ")" },
|
28
|
+
{ open: '"', close: '"' },
|
29
|
+
{ open: "'", close: "'" }
|
30
|
+
],
|
31
|
+
folding: {
|
32
|
+
markers: {
|
33
|
+
start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
|
34
|
+
end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}, language = {
|
38
|
+
defaultToken: "",
|
39
|
+
tokenPostfix: ".css",
|
40
|
+
ws: `[
|
41
|
+
\r\f]*`,
|
42
|
+
// whitespaces (referenced in several rules)
|
43
|
+
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])))*",
|
44
|
+
brackets: [
|
45
|
+
{ open: "{", close: "}", token: "delimiter.bracket" },
|
46
|
+
{ open: "[", close: "]", token: "delimiter.bracket" },
|
47
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
48
|
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
49
|
+
],
|
50
|
+
tokenizer: {
|
51
|
+
root: [{ include: "@selector" }],
|
52
|
+
selector: [
|
53
|
+
{ include: "@comments" },
|
54
|
+
{ include: "@import" },
|
55
|
+
{ include: "@strings" },
|
56
|
+
[
|
57
|
+
"[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",
|
58
|
+
{ token: "keyword", next: "@keyframedeclaration" }
|
59
|
+
],
|
60
|
+
["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
|
61
|
+
["[@](charset|namespace)", { token: "keyword", next: "@declarationbody" }],
|
62
|
+
[
|
63
|
+
"(url-prefix)(\\()",
|
64
|
+
["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
|
65
|
+
],
|
66
|
+
[
|
67
|
+
"(url)(\\()",
|
68
|
+
["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
|
69
|
+
],
|
70
|
+
{ include: "@selectorname" },
|
71
|
+
["[\\*]", "tag"],
|
72
|
+
// selector symbols
|
73
|
+
["[>\\+,]", "delimiter"],
|
74
|
+
// selector operators
|
75
|
+
["\\[", { token: "delimiter.bracket", next: "@selectorattribute" }],
|
76
|
+
["{", { token: "delimiter.bracket", next: "@selectorbody" }]
|
77
|
+
],
|
78
|
+
selectorbody: [
|
79
|
+
{ include: "@comments" },
|
80
|
+
["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"],
|
81
|
+
// rule definition: to distinguish from a nested selector check for whitespace, number or a semicolon
|
82
|
+
["}", { token: "delimiter.bracket", next: "@pop" }]
|
83
|
+
],
|
84
|
+
selectorname: [
|
85
|
+
["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]
|
86
|
+
// selector (.foo, div, ...)
|
87
|
+
],
|
88
|
+
selectorattribute: [{ include: "@term" }, ["]", { token: "delimiter.bracket", next: "@pop" }]],
|
89
|
+
term: [
|
90
|
+
{ include: "@comments" },
|
91
|
+
[
|
92
|
+
"(url-prefix)(\\()",
|
93
|
+
["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
|
94
|
+
],
|
95
|
+
[
|
96
|
+
"(url)(\\()",
|
97
|
+
["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
|
98
|
+
],
|
99
|
+
{ include: "@functioninvocation" },
|
100
|
+
{ include: "@numbers" },
|
101
|
+
{ include: "@name" },
|
102
|
+
{ include: "@strings" },
|
103
|
+
["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "delimiter"],
|
104
|
+
[",", "delimiter"]
|
105
|
+
],
|
106
|
+
rulevalue: [
|
107
|
+
{ include: "@comments" },
|
108
|
+
{ include: "@strings" },
|
109
|
+
{ include: "@term" },
|
110
|
+
["!important", "keyword"],
|
111
|
+
[";", "delimiter", "@pop"],
|
112
|
+
["(?=})", { token: "", next: "@pop" }]
|
113
|
+
// missing semicolon
|
114
|
+
],
|
115
|
+
warndebug: [["[@](warn|debug)", { token: "keyword", next: "@declarationbody" }]],
|
116
|
+
import: [["[@](import)", { token: "keyword", next: "@declarationbody" }]],
|
117
|
+
urldeclaration: [
|
118
|
+
{ include: "@strings" },
|
119
|
+
[`[^)\r
|
120
|
+
]+`, "string"],
|
121
|
+
["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
|
122
|
+
],
|
123
|
+
parenthizedterm: [
|
124
|
+
{ include: "@term" },
|
125
|
+
["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
|
126
|
+
],
|
127
|
+
declarationbody: [
|
128
|
+
{ include: "@term" },
|
129
|
+
[";", "delimiter", "@pop"],
|
130
|
+
["(?=})", { token: "", next: "@pop" }]
|
131
|
+
// missing semicolon
|
132
|
+
],
|
133
|
+
comments: [
|
134
|
+
["\\/\\*", "comment", "@comment"],
|
135
|
+
["\\/\\/+.*", "comment"]
|
136
|
+
],
|
137
|
+
comment: [
|
138
|
+
["\\*\\/", "comment", "@pop"],
|
139
|
+
[/[^*/]+/, "comment"],
|
140
|
+
[/./, "comment"]
|
141
|
+
],
|
142
|
+
name: [["@identifier", "attribute.value"]],
|
143
|
+
numbers: [
|
144
|
+
["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", { token: "attribute.value.number", next: "@units" }],
|
145
|
+
["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]
|
146
|
+
],
|
147
|
+
units: [
|
148
|
+
[
|
149
|
+
"(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
|
150
|
+
"attribute.value.unit",
|
151
|
+
"@pop"
|
152
|
+
]
|
153
|
+
],
|
154
|
+
keyframedeclaration: [
|
155
|
+
["@identifier", "attribute.value"],
|
156
|
+
["{", { token: "delimiter.bracket", switchTo: "@keyframebody" }]
|
157
|
+
],
|
158
|
+
keyframebody: [
|
159
|
+
{ include: "@term" },
|
160
|
+
["{", { token: "delimiter.bracket", next: "@selectorbody" }],
|
161
|
+
["}", { token: "delimiter.bracket", next: "@pop" }]
|
162
|
+
],
|
163
|
+
functioninvocation: [
|
164
|
+
["@identifier\\(", { token: "attribute.value", next: "@functionarguments" }]
|
165
|
+
],
|
166
|
+
functionarguments: [
|
167
|
+
["\\$@identifier@ws:", "attribute.name"],
|
168
|
+
["[,]", "delimiter"],
|
169
|
+
{ include: "@term" },
|
170
|
+
["\\)", { token: "attribute.value", next: "@pop" }]
|
171
|
+
],
|
172
|
+
strings: [
|
173
|
+
['~?"', { token: "string", next: "@stringenddoublequote" }],
|
174
|
+
["~?'", { token: "string", next: "@stringendquote" }]
|
175
|
+
],
|
176
|
+
stringenddoublequote: [
|
177
|
+
["\\\\.", "string"],
|
178
|
+
['"', { token: "string", next: "@pop" }],
|
179
|
+
[/[^\\"]+/, "string"],
|
180
|
+
[".", "string"]
|
181
|
+
],
|
182
|
+
stringendquote: [
|
183
|
+
["\\\\.", "string"],
|
184
|
+
["'", { token: "string", next: "@pop" }],
|
185
|
+
[/[^\\']+/, "string"],
|
186
|
+
[".", "string"]
|
187
|
+
]
|
188
|
+
}
|
189
|
+
};
|
190
|
+
export {
|
191
|
+
conf,
|
192
|
+
language
|
193
|
+
};
|