@codingame/monaco-vscode-standalone-languages 23.1.1 → 23.2.1
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/index.js +48 -82
- package/package.json +2 -2
- package/_.contribution.js +0 -74
- package/abap/abap.contribution.js +0 -19
- package/abap/abap.js +0 -1406
- package/apex/apex.contribution.js +0 -20
- package/apex/apex.js +0 -338
- package/azcli/azcli.contribution.js +0 -19
- package/azcli/azcli.js +0 -76
- package/bat/bat.contribution.js +0 -19
- package/bat/bat.js +0 -108
- package/bicep/bicep.contribution.js +0 -19
- package/bicep/bicep.js +0 -117
- package/cameligo/cameligo.contribution.js +0 -19
- package/cameligo/cameligo.js +0 -182
- package/clojure/clojure.contribution.js +0 -19
- package/clojure/clojure.js +0 -769
- package/coffee/coffee.contribution.js +0 -20
- package/coffee/coffee.js +0 -240
- package/cpp/cpp.contribution.js +0 -29
- package/cpp/cpp.js +0 -397
- package/csharp/csharp.contribution.js +0 -19
- package/csharp/csharp.js +0 -334
- package/csp/csp.contribution.js +0 -19
- package/csp/csp.js +0 -61
- package/css/css.contribution.js +0 -20
- package/css/css.js +0 -193
- package/cypher/cypher.contribution.js +0 -19
- package/cypher/cypher.js +0 -271
- package/dart/dart.contribution.js +0 -20
- package/dart/dart.js +0 -289
- package/dockerfile/dockerfile.contribution.js +0 -20
- package/dockerfile/dockerfile.js +0 -138
- package/ecl/ecl.contribution.js +0 -19
- package/ecl/ecl.js +0 -464
- package/elixir/elixir.contribution.js +0 -19
- package/elixir/elixir.js +0 -577
- package/flow9/flow9.contribution.js +0 -19
- package/flow9/flow9.js +0 -150
- package/freemarker2/freemarker2.contribution.js +0 -73
- package/freemarker2/freemarker2.js +0 -1016
- package/fsharp/fsharp.contribution.js +0 -19
- package/fsharp/fsharp.js +0 -225
- package/go/go.contribution.js +0 -19
- package/go/go.js +0 -226
- package/graphql/graphql.contribution.js +0 -20
- package/graphql/graphql.js +0 -159
- package/handlebars/handlebars.contribution.js +0 -20
- package/handlebars/handlebars.js +0 -439
- package/hcl/hcl.contribution.js +0 -19
- package/hcl/hcl.js +0 -191
- package/html/html.contribution.js +0 -20
- package/html/html.js +0 -328
- package/ini/ini.contribution.js +0 -20
- package/ini/ini.js +0 -79
- package/java/java.contribution.js +0 -20
- package/java/java.js +0 -240
- package/javascript/javascript.contribution.js +0 -22
- package/javascript/javascript.js +0 -77
- package/julia/julia.contribution.js +0 -19
- package/julia/julia.js +0 -519
- package/kotlin/kotlin.contribution.js +0 -20
- package/kotlin/kotlin.js +0 -261
- package/less/less.contribution.js +0 -20
- package/less/less.js +0 -169
- package/lexon/lexon.contribution.js +0 -19
- package/lexon/lexon.js +0 -165
- package/liquid/liquid.contribution.js +0 -20
- package/liquid/liquid.js +0 -260
- package/lua/lua.contribution.js +0 -19
- package/lua/lua.js +0 -170
- package/m3/m3.contribution.js +0 -19
- package/m3/m3.js +0 -218
- package/markdown/markdown.contribution.js +0 -19
- package/markdown/markdown.js +0 -237
- package/mdx/mdx.contribution.js +0 -19
- package/mdx/mdx.js +0 -184
- package/mips/mips.contribution.js +0 -20
- package/mips/mips.js +0 -206
- package/msdax/msdax.contribution.js +0 -19
- package/msdax/msdax.js +0 -383
- package/mysql/mysql.contribution.js +0 -19
- package/mysql/mysql.js +0 -886
- package/objective-c/objective-c.contribution.js +0 -19
- package/objective-c/objective-c.js +0 -191
- package/pascal/pascal.contribution.js +0 -20
- package/pascal/pascal.js +0 -259
- package/pascaligo/pascaligo.contribution.js +0 -19
- package/pascaligo/pascaligo.js +0 -172
- package/perl/perl.contribution.js +0 -19
- package/perl/perl.js +0 -634
- package/pgsql/pgsql.contribution.js +0 -19
- package/pgsql/pgsql.js +0 -859
- package/php/php.contribution.js +0 -20
- package/php/php.js +0 -508
- package/pla/pla.contribution.js +0 -18
- package/pla/pla.js +0 -145
- package/postiats/postiats.contribution.js +0 -19
- package/postiats/postiats.js +0 -915
- package/powerquery/powerquery.contribution.js +0 -19
- package/powerquery/powerquery.js +0 -898
- package/powershell/powershell.contribution.js +0 -19
- package/powershell/powershell.js +0 -247
- package/protobuf/protobuf.contribution.js +0 -19
- package/protobuf/protobuf.js +0 -428
- package/pug/pug.contribution.js +0 -19
- package/pug/pug.js +0 -410
- package/python/python.contribution.js +0 -20
- package/python/python.js +0 -320
- package/qsharp/qsharp.contribution.js +0 -19
- package/qsharp/qsharp.js +0 -309
- package/r/r.contribution.js +0 -19
- package/r/r.js +0 -251
- package/razor/razor.contribution.js +0 -20
- package/razor/razor.js +0 -570
- package/redis/redis.contribution.js +0 -19
- package/redis/redis.js +0 -310
- package/redshift/redshift.contribution.js +0 -19
- package/redshift/redshift.js +0 -817
- package/restructuredtext/restructuredtext.contribution.js +0 -19
- package/restructuredtext/restructuredtext.js +0 -182
- package/ruby/ruby.contribution.js +0 -20
- package/ruby/ruby.js +0 -519
- package/rust/rust.contribution.js +0 -19
- package/rust/rust.js +0 -351
- package/sb/sb.contribution.js +0 -19
- package/sb/sb.js +0 -123
- package/scala/scala.contribution.js +0 -20
- package/scala/scala.js +0 -378
- package/scheme/scheme.contribution.js +0 -19
- package/scheme/scheme.js +0 -116
- package/scss/scss.contribution.js +0 -20
- package/scss/scss.js +0 -268
- package/shell/shell.contribution.js +0 -19
- package/shell/shell.js +0 -229
- package/solidity/solidity.contribution.js +0 -19
- package/solidity/solidity.js +0 -1375
- package/sophia/sophia.contribution.js +0 -19
- package/sophia/sophia.js +0 -207
- package/sparql/sparql.contribution.js +0 -19
- package/sparql/sparql.js +0 -209
- package/sql/sql.contribution.js +0 -19
- package/sql/sql.js +0 -861
- package/st/st.contribution.js +0 -19
- package/st/st.js +0 -424
- package/swift/swift.contribution.js +0 -20
- package/swift/swift.js +0 -320
- package/systemverilog/systemverilog.contribution.js +0 -29
- package/systemverilog/systemverilog.js +0 -584
- package/tcl/tcl.contribution.js +0 -19
- package/tcl/tcl.js +0 -240
- package/twig/twig.contribution.js +0 -20
- package/twig/twig.js +0 -400
- package/typescript/typescript.contribution.js +0 -20
- package/typescript/typescript.js +0 -362
- package/typespec/typespec.contribution.js +0 -19
- package/typespec/typespec.js +0 -135
- package/vb/vb.contribution.js +0 -19
- package/vb/vb.js +0 -380
- package/wgsl/wgsl.contribution.js +0 -19
- package/wgsl/wgsl.js +0 -461
- package/xml/xml.contribution.js +0 -39
- package/xml/xml.js +0 -114
- package/yaml/yaml.contribution.js +0 -20
- package/yaml/yaml.js +0 -225
package/vb/vb.js
DELETED
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.54.0(undefined)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// src/basic-languages/vb/vb.ts
|
|
10
|
-
var conf = {
|
|
11
|
-
comments: {
|
|
12
|
-
lineComment: "'",
|
|
13
|
-
blockComment: ["/*", "*/"]
|
|
14
|
-
},
|
|
15
|
-
brackets: [
|
|
16
|
-
["{", "}"],
|
|
17
|
-
["[", "]"],
|
|
18
|
-
["(", ")"],
|
|
19
|
-
["<", ">"],
|
|
20
|
-
["addhandler", "end addhandler"],
|
|
21
|
-
["class", "end class"],
|
|
22
|
-
["enum", "end enum"],
|
|
23
|
-
["event", "end event"],
|
|
24
|
-
["function", "end function"],
|
|
25
|
-
["get", "end get"],
|
|
26
|
-
["if", "end if"],
|
|
27
|
-
["interface", "end interface"],
|
|
28
|
-
["module", "end module"],
|
|
29
|
-
["namespace", "end namespace"],
|
|
30
|
-
["operator", "end operator"],
|
|
31
|
-
["property", "end property"],
|
|
32
|
-
["raiseevent", "end raiseevent"],
|
|
33
|
-
["removehandler", "end removehandler"],
|
|
34
|
-
["select", "end select"],
|
|
35
|
-
["set", "end set"],
|
|
36
|
-
["structure", "end structure"],
|
|
37
|
-
["sub", "end sub"],
|
|
38
|
-
["synclock", "end synclock"],
|
|
39
|
-
["try", "end try"],
|
|
40
|
-
["while", "end while"],
|
|
41
|
-
["with", "end with"],
|
|
42
|
-
["using", "end using"],
|
|
43
|
-
["do", "loop"],
|
|
44
|
-
["for", "next"]
|
|
45
|
-
],
|
|
46
|
-
autoClosingPairs: [
|
|
47
|
-
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
|
48
|
-
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
|
49
|
-
{ open: "(", close: ")", notIn: ["string", "comment"] },
|
|
50
|
-
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
|
51
|
-
{ open: "<", close: ">", notIn: ["string", "comment"] }
|
|
52
|
-
],
|
|
53
|
-
folding: {
|
|
54
|
-
markers: {
|
|
55
|
-
start: new RegExp("^\\s*#Region\\b"),
|
|
56
|
-
end: new RegExp("^\\s*#End Region\\b")
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
var language = {
|
|
61
|
-
defaultToken: "",
|
|
62
|
-
tokenPostfix: ".vb",
|
|
63
|
-
ignoreCase: true,
|
|
64
|
-
brackets: [
|
|
65
|
-
{ token: "delimiter.bracket", open: "{", close: "}" },
|
|
66
|
-
{ token: "delimiter.array", open: "[", close: "]" },
|
|
67
|
-
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
|
68
|
-
{ token: "delimiter.angle", open: "<", close: ">" },
|
|
69
|
-
// Special bracket statement pairs
|
|
70
|
-
// according to https://msdn.microsoft.com/en-us/library/tsw2a11z.aspx
|
|
71
|
-
{
|
|
72
|
-
token: "keyword.tag-addhandler",
|
|
73
|
-
open: "addhandler",
|
|
74
|
-
close: "end addhandler"
|
|
75
|
-
},
|
|
76
|
-
{ token: "keyword.tag-class", open: "class", close: "end class" },
|
|
77
|
-
{ token: "keyword.tag-enum", open: "enum", close: "end enum" },
|
|
78
|
-
{ token: "keyword.tag-event", open: "event", close: "end event" },
|
|
79
|
-
{
|
|
80
|
-
token: "keyword.tag-function",
|
|
81
|
-
open: "function",
|
|
82
|
-
close: "end function"
|
|
83
|
-
},
|
|
84
|
-
{ token: "keyword.tag-get", open: "get", close: "end get" },
|
|
85
|
-
{ token: "keyword.tag-if", open: "if", close: "end if" },
|
|
86
|
-
{
|
|
87
|
-
token: "keyword.tag-interface",
|
|
88
|
-
open: "interface",
|
|
89
|
-
close: "end interface"
|
|
90
|
-
},
|
|
91
|
-
{ token: "keyword.tag-module", open: "module", close: "end module" },
|
|
92
|
-
{
|
|
93
|
-
token: "keyword.tag-namespace",
|
|
94
|
-
open: "namespace",
|
|
95
|
-
close: "end namespace"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
token: "keyword.tag-operator",
|
|
99
|
-
open: "operator",
|
|
100
|
-
close: "end operator"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
token: "keyword.tag-property",
|
|
104
|
-
open: "property",
|
|
105
|
-
close: "end property"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
token: "keyword.tag-raiseevent",
|
|
109
|
-
open: "raiseevent",
|
|
110
|
-
close: "end raiseevent"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
token: "keyword.tag-removehandler",
|
|
114
|
-
open: "removehandler",
|
|
115
|
-
close: "end removehandler"
|
|
116
|
-
},
|
|
117
|
-
{ token: "keyword.tag-select", open: "select", close: "end select" },
|
|
118
|
-
{ token: "keyword.tag-set", open: "set", close: "end set" },
|
|
119
|
-
{
|
|
120
|
-
token: "keyword.tag-structure",
|
|
121
|
-
open: "structure",
|
|
122
|
-
close: "end structure"
|
|
123
|
-
},
|
|
124
|
-
{ token: "keyword.tag-sub", open: "sub", close: "end sub" },
|
|
125
|
-
{
|
|
126
|
-
token: "keyword.tag-synclock",
|
|
127
|
-
open: "synclock",
|
|
128
|
-
close: "end synclock"
|
|
129
|
-
},
|
|
130
|
-
{ token: "keyword.tag-try", open: "try", close: "end try" },
|
|
131
|
-
{ token: "keyword.tag-while", open: "while", close: "end while" },
|
|
132
|
-
{ token: "keyword.tag-with", open: "with", close: "end with" },
|
|
133
|
-
// Other pairs
|
|
134
|
-
{ token: "keyword.tag-using", open: "using", close: "end using" },
|
|
135
|
-
{ token: "keyword.tag-do", open: "do", close: "loop" },
|
|
136
|
-
{ token: "keyword.tag-for", open: "for", close: "next" }
|
|
137
|
-
],
|
|
138
|
-
keywords: [
|
|
139
|
-
"AddHandler",
|
|
140
|
-
"AddressOf",
|
|
141
|
-
"Alias",
|
|
142
|
-
"And",
|
|
143
|
-
"AndAlso",
|
|
144
|
-
"As",
|
|
145
|
-
"Async",
|
|
146
|
-
"Boolean",
|
|
147
|
-
"ByRef",
|
|
148
|
-
"Byte",
|
|
149
|
-
"ByVal",
|
|
150
|
-
"Call",
|
|
151
|
-
"Case",
|
|
152
|
-
"Catch",
|
|
153
|
-
"CBool",
|
|
154
|
-
"CByte",
|
|
155
|
-
"CChar",
|
|
156
|
-
"CDate",
|
|
157
|
-
"CDbl",
|
|
158
|
-
"CDec",
|
|
159
|
-
"Char",
|
|
160
|
-
"CInt",
|
|
161
|
-
"Class",
|
|
162
|
-
"CLng",
|
|
163
|
-
"CObj",
|
|
164
|
-
"Const",
|
|
165
|
-
"Continue",
|
|
166
|
-
"CSByte",
|
|
167
|
-
"CShort",
|
|
168
|
-
"CSng",
|
|
169
|
-
"CStr",
|
|
170
|
-
"CType",
|
|
171
|
-
"CUInt",
|
|
172
|
-
"CULng",
|
|
173
|
-
"CUShort",
|
|
174
|
-
"Date",
|
|
175
|
-
"Decimal",
|
|
176
|
-
"Declare",
|
|
177
|
-
"Default",
|
|
178
|
-
"Delegate",
|
|
179
|
-
"Dim",
|
|
180
|
-
"DirectCast",
|
|
181
|
-
"Do",
|
|
182
|
-
"Double",
|
|
183
|
-
"Each",
|
|
184
|
-
"Else",
|
|
185
|
-
"ElseIf",
|
|
186
|
-
"End",
|
|
187
|
-
"EndIf",
|
|
188
|
-
"Enum",
|
|
189
|
-
"Erase",
|
|
190
|
-
"Error",
|
|
191
|
-
"Event",
|
|
192
|
-
"Exit",
|
|
193
|
-
"False",
|
|
194
|
-
"Finally",
|
|
195
|
-
"For",
|
|
196
|
-
"Friend",
|
|
197
|
-
"Function",
|
|
198
|
-
"Get",
|
|
199
|
-
"GetType",
|
|
200
|
-
"GetXMLNamespace",
|
|
201
|
-
"Global",
|
|
202
|
-
"GoSub",
|
|
203
|
-
"GoTo",
|
|
204
|
-
"Handles",
|
|
205
|
-
"If",
|
|
206
|
-
"Implements",
|
|
207
|
-
"Imports",
|
|
208
|
-
"In",
|
|
209
|
-
"Inherits",
|
|
210
|
-
"Integer",
|
|
211
|
-
"Interface",
|
|
212
|
-
"Is",
|
|
213
|
-
"IsNot",
|
|
214
|
-
"Let",
|
|
215
|
-
"Lib",
|
|
216
|
-
"Like",
|
|
217
|
-
"Long",
|
|
218
|
-
"Loop",
|
|
219
|
-
"Me",
|
|
220
|
-
"Mod",
|
|
221
|
-
"Module",
|
|
222
|
-
"MustInherit",
|
|
223
|
-
"MustOverride",
|
|
224
|
-
"MyBase",
|
|
225
|
-
"MyClass",
|
|
226
|
-
"NameOf",
|
|
227
|
-
"Namespace",
|
|
228
|
-
"Narrowing",
|
|
229
|
-
"New",
|
|
230
|
-
"Next",
|
|
231
|
-
"Not",
|
|
232
|
-
"Nothing",
|
|
233
|
-
"NotInheritable",
|
|
234
|
-
"NotOverridable",
|
|
235
|
-
"Object",
|
|
236
|
-
"Of",
|
|
237
|
-
"On",
|
|
238
|
-
"Operator",
|
|
239
|
-
"Option",
|
|
240
|
-
"Optional",
|
|
241
|
-
"Or",
|
|
242
|
-
"OrElse",
|
|
243
|
-
"Out",
|
|
244
|
-
"Overloads",
|
|
245
|
-
"Overridable",
|
|
246
|
-
"Overrides",
|
|
247
|
-
"ParamArray",
|
|
248
|
-
"Partial",
|
|
249
|
-
"Private",
|
|
250
|
-
"Property",
|
|
251
|
-
"Protected",
|
|
252
|
-
"Public",
|
|
253
|
-
"RaiseEvent",
|
|
254
|
-
"ReadOnly",
|
|
255
|
-
"ReDim",
|
|
256
|
-
"RemoveHandler",
|
|
257
|
-
"Resume",
|
|
258
|
-
"Return",
|
|
259
|
-
"SByte",
|
|
260
|
-
"Select",
|
|
261
|
-
"Set",
|
|
262
|
-
"Shadows",
|
|
263
|
-
"Shared",
|
|
264
|
-
"Short",
|
|
265
|
-
"Single",
|
|
266
|
-
"Static",
|
|
267
|
-
"Step",
|
|
268
|
-
"Stop",
|
|
269
|
-
"String",
|
|
270
|
-
"Structure",
|
|
271
|
-
"Sub",
|
|
272
|
-
"SyncLock",
|
|
273
|
-
"Then",
|
|
274
|
-
"Throw",
|
|
275
|
-
"To",
|
|
276
|
-
"True",
|
|
277
|
-
"Try",
|
|
278
|
-
"TryCast",
|
|
279
|
-
"TypeOf",
|
|
280
|
-
"UInteger",
|
|
281
|
-
"ULong",
|
|
282
|
-
"UShort",
|
|
283
|
-
"Using",
|
|
284
|
-
"Variant",
|
|
285
|
-
"Wend",
|
|
286
|
-
"When",
|
|
287
|
-
"While",
|
|
288
|
-
"Widening",
|
|
289
|
-
"With",
|
|
290
|
-
"WithEvents",
|
|
291
|
-
"WriteOnly",
|
|
292
|
-
"Xor"
|
|
293
|
-
],
|
|
294
|
-
tagwords: [
|
|
295
|
-
"If",
|
|
296
|
-
"Sub",
|
|
297
|
-
"Select",
|
|
298
|
-
"Try",
|
|
299
|
-
"Class",
|
|
300
|
-
"Enum",
|
|
301
|
-
"Function",
|
|
302
|
-
"Get",
|
|
303
|
-
"Interface",
|
|
304
|
-
"Module",
|
|
305
|
-
"Namespace",
|
|
306
|
-
"Operator",
|
|
307
|
-
"Set",
|
|
308
|
-
"Structure",
|
|
309
|
-
"Using",
|
|
310
|
-
"While",
|
|
311
|
-
"With",
|
|
312
|
-
"Do",
|
|
313
|
-
"Loop",
|
|
314
|
-
"For",
|
|
315
|
-
"Next",
|
|
316
|
-
"Property",
|
|
317
|
-
"Continue",
|
|
318
|
-
"AddHandler",
|
|
319
|
-
"RemoveHandler",
|
|
320
|
-
"Event",
|
|
321
|
-
"RaiseEvent",
|
|
322
|
-
"SyncLock"
|
|
323
|
-
],
|
|
324
|
-
// we include these common regular expressions
|
|
325
|
-
symbols: /[=><!~?;\.,:&|+\-*\/\^%]+/,
|
|
326
|
-
integersuffix: /U?[DI%L&S@]?/,
|
|
327
|
-
floatsuffix: /[R#F!]?/,
|
|
328
|
-
// The main tokenizer for our languages
|
|
329
|
-
tokenizer: {
|
|
330
|
-
root: [
|
|
331
|
-
// whitespace
|
|
332
|
-
{ include: "@whitespace" },
|
|
333
|
-
// special ending tag-words
|
|
334
|
-
[/next(?!\w)/, { token: "keyword.tag-for" }],
|
|
335
|
-
[/loop(?!\w)/, { token: "keyword.tag-do" }],
|
|
336
|
-
// usual ending tags
|
|
337
|
-
[
|
|
338
|
-
/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,
|
|
339
|
-
{ token: "keyword.tag-$1" }
|
|
340
|
-
],
|
|
341
|
-
// identifiers, tagwords, and keywords
|
|
342
|
-
[
|
|
343
|
-
/[a-zA-Z_]\w*/,
|
|
344
|
-
{
|
|
345
|
-
cases: {
|
|
346
|
-
"@tagwords": { token: "keyword.tag-$0" },
|
|
347
|
-
"@keywords": { token: "keyword.$0" },
|
|
348
|
-
"@default": "identifier"
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
],
|
|
352
|
-
// Preprocessor directive
|
|
353
|
-
[/^\s*#\w+/, "keyword"],
|
|
354
|
-
// numbers
|
|
355
|
-
[/\d*\d+e([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
356
|
-
[/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
357
|
-
[/&H[0-9a-f]+(@integersuffix)/, "number.hex"],
|
|
358
|
-
[/&0[0-7]+(@integersuffix)/, "number.octal"],
|
|
359
|
-
[/\d+(@integersuffix)/, "number"],
|
|
360
|
-
// date literal
|
|
361
|
-
[/#.*#/, "number"],
|
|
362
|
-
// delimiters and operators
|
|
363
|
-
[/[{}()\[\]]/, "@brackets"],
|
|
364
|
-
[/@symbols/, "delimiter"],
|
|
365
|
-
// strings
|
|
366
|
-
[/["\u201c\u201d]/, { token: "string.quote", next: "@string" }]
|
|
367
|
-
],
|
|
368
|
-
whitespace: [
|
|
369
|
-
[/[ \t\r\n]+/, ""],
|
|
370
|
-
[/(\'|REM(?!\w)).*$/, "comment"]
|
|
371
|
-
],
|
|
372
|
-
string: [
|
|
373
|
-
[/[^"\u201c\u201d]+/, "string"],
|
|
374
|
-
[/["\u201c\u201d]{2}/, "string.escape"],
|
|
375
|
-
[/["\u201c\u201d]C?/, { token: "string.quote", next: "@pop" }]
|
|
376
|
-
]
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
export { conf, language };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { registerLanguage } from '../_.contribution.js';
|
|
2
|
-
|
|
3
|
-
/*!-----------------------------------------------------------------------------
|
|
4
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
* Version: 0.54.0(undefined)
|
|
6
|
-
* Released under the MIT license
|
|
7
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
8
|
-
*-----------------------------------------------------------------------------*/
|
|
9
|
-
|
|
10
|
-
registerLanguage({
|
|
11
|
-
id: "wgsl",
|
|
12
|
-
extensions: [".wgsl"],
|
|
13
|
-
aliases: ["WebGPU Shading Language", "WGSL", "wgsl"],
|
|
14
|
-
loader: () => {
|
|
15
|
-
{
|
|
16
|
-
return import('./wgsl.js');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
});
|