sun-form-v3 1.0.59 → 1.0.60
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/abap-DfvySaIJ.js +1404 -0
- package/dist/apex-B__0irD3.js +332 -0
- package/dist/assets/css.worker-OK053IOu.js +84 -0
- package/dist/assets/editor.worker-D9iUZyMP.js +11 -0
- package/dist/assets/html.worker-CL40hqKM.js +458 -0
- package/dist/assets/json.worker-6f9bhSHY.js +42 -0
- package/dist/assets/ts.worker-B6g3wjaE.js +37021 -0
- package/dist/azcli-CDMGhRmx.js +74 -0
- package/dist/bat-0Mk8aqzx.js +106 -0
- package/dist/bicep-BBi_I06Z.js +108 -0
- package/dist/cameligo-D0G_Zm6X.js +180 -0
- package/dist/clojure-o2ZKLeMp.js +767 -0
- package/dist/coffee-DOQff5VC.js +238 -0
- package/dist/cpp-CQGJnWhD.js +395 -0
- package/dist/csharp-C1jLsHl8.js +332 -0
- package/dist/csp-C_ttMQaW.js +59 -0
- package/dist/css-BC202kVV.js +193 -0
- package/dist/cssMode-rHL6jOGC.js +1541 -0
- package/dist/cypher-DwtEH7Fi.js +269 -0
- package/dist/dart-D9XknsP2.js +287 -0
- package/dist/dockerfile-DgsNjqqa.js +136 -0
- package/dist/ecl-BAMCHBl6.js +462 -0
- package/dist/elixir-CegIttP8.js +575 -0
- package/dist/flow9-9608t7UV.js +148 -0
- package/dist/freemarker2-BZYTdwtv.js +995 -0
- package/dist/fsharp-CCtt9-1_.js +223 -0
- package/dist/go-CGUIPbct.js +224 -0
- package/dist/graphql-BNRIFFIn.js +157 -0
- package/dist/handlebars-gW69neyY.js +425 -0
- package/dist/hcl-C__KLIXe.js +189 -0
- package/dist/html-Dr1OrytT.js +314 -0
- package/dist/htmlMode-mperM5iD.js +1551 -0
- package/dist/index-DmlyKQU2.js +150 -0
- package/dist/index2-BfMceNiT.js +110271 -0
- package/dist/ini-CeKYn_zA.js +77 -0
- package/dist/java-Dm24deQl.js +238 -0
- package/dist/javascript-Bbw32J4I.js +76 -0
- package/dist/jsonMode-DeJ8fVyV.js +1957 -0
- package/dist/julia-BImNW7VE.js +517 -0
- package/dist/kotlin-BfE79GEb.js +259 -0
- package/dist/less-DglNOcaC.js +168 -0
- package/dist/lexon-BA0dRz9Q.js +163 -0
- package/dist/liquid-XuI8V67E.js +246 -0
- package/dist/lua-DMkWzJcm.js +168 -0
- package/dist/m3-sA-5shO8.js +216 -0
- package/dist/markdown-OYRB1igA.js +235 -0
- package/dist/mdx-DBomgcTS.js +171 -0
- package/dist/mips-rRzkJ_7G.js +204 -0
- package/dist/msdax-DoVJdUhd.js +381 -0
- package/dist/mysql-Ty44IHXo.js +884 -0
- package/dist/objective-c-VUfyhYrA.js +189 -0
- package/dist/pascal-DkASiYyw.js +257 -0
- package/dist/pascaligo-p-ELPlVO.js +170 -0
- package/dist/perl-Cjl1FxLZ.js +632 -0
- package/dist/pgsql-DjVenF7s.js +857 -0
- package/dist/php-CwvGzZOO.js +506 -0
- package/dist/pla-Br1iaBIV.js +143 -0
- package/dist/postiats-BaeP8zZY.js +913 -0
- package/dist/powerquery-CLCshuo8.js +896 -0
- package/dist/powershell-CZV50w5N.js +245 -0
- package/dist/protobuf-MV3XTewJ.js +426 -0
- package/dist/pug-DkDg4c4l.js +408 -0
- package/dist/python-DCfUl-X2.js +282 -0
- package/dist/qsharp-BAtiKA97.js +291 -0
- package/dist/r-8ocrd-h-.js +249 -0
- package/dist/razor-ounwL9iS.js +556 -0
- package/dist/redis-9sZiddxc.js +308 -0
- package/dist/redshift-DQfTOGC0.js +815 -0
- package/dist/restructuredtext-DXU-vkgr.js +180 -0
- package/dist/ruby-DotfqwMf.js +517 -0
- package/dist/rust-BIauJ5KN.js +349 -0
- package/dist/sb-CmWMvDEV.js +121 -0
- package/dist/scala-C81brEbk.js +376 -0
- package/dist/scheme-D0pcFz2x.js +114 -0
- package/dist/scss-BOdN2fGG.js +268 -0
- package/dist/shell-6E09eAkU.js +227 -0
- package/dist/solidity-CWStzA1K.js +1373 -0
- package/dist/sophia-76Sb6CWe.js +205 -0
- package/dist/sparql-BmZTkOWT.js +207 -0
- package/dist/sql-Cs9TBAW5.js +859 -0
- package/dist/st-B-rqE1Bu.js +422 -0
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +2 -6117
- package/dist/sun-form-v3.umd.js +1881 -10
- package/dist/swift-Btsj6YxQ.js +318 -0
- package/dist/systemverilog-B3RHBRa2.js +582 -0
- package/dist/tcl-Dpj776pn.js +238 -0
- package/dist/tsMode-Du_thaOP.js +885 -0
- package/dist/twig-Bb9JmBsE.js +398 -0
- package/dist/typescript-Cza_KHgf.js +349 -0
- package/dist/typespec-CDWeg3SU.js +123 -0
- package/dist/vb-DEXnYwEI.js +378 -0
- package/dist/wgsl-D602c1lx.js +445 -0
- package/dist/xml-CI50xz1e.js +101 -0
- package/dist/yaml-V4qxGImt.js +212 -0
- package/package.json +1 -1
@@ -0,0 +1,445 @@
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/
|
7
|
+
var g = {
|
8
|
+
comments: {
|
9
|
+
lineComment: "//",
|
10
|
+
blockComment: ["/*", "*/"]
|
11
|
+
},
|
12
|
+
brackets: [
|
13
|
+
["{", "}"],
|
14
|
+
["[", "]"],
|
15
|
+
["(", ")"]
|
16
|
+
],
|
17
|
+
autoClosingPairs: [
|
18
|
+
{ open: "[", close: "]" },
|
19
|
+
{ open: "{", close: "}" },
|
20
|
+
{ open: "(", close: ")" }
|
21
|
+
],
|
22
|
+
surroundingPairs: [
|
23
|
+
{ open: "{", close: "}" },
|
24
|
+
{ open: "[", close: "]" },
|
25
|
+
{ open: "(", close: ")" }
|
26
|
+
]
|
27
|
+
};
|
28
|
+
function e(i) {
|
29
|
+
let o = [];
|
30
|
+
const a = i.split(/\t+|\r+|\n+| +/);
|
31
|
+
for (let r = 0; r < a.length; ++r)
|
32
|
+
a[r].length > 0 && o.push(a[r]);
|
33
|
+
return o;
|
34
|
+
}
|
35
|
+
var s = e("true false"), c = e(`
|
36
|
+
alias
|
37
|
+
break
|
38
|
+
case
|
39
|
+
const
|
40
|
+
const_assert
|
41
|
+
continue
|
42
|
+
continuing
|
43
|
+
default
|
44
|
+
diagnostic
|
45
|
+
discard
|
46
|
+
else
|
47
|
+
enable
|
48
|
+
fn
|
49
|
+
for
|
50
|
+
if
|
51
|
+
let
|
52
|
+
loop
|
53
|
+
override
|
54
|
+
requires
|
55
|
+
return
|
56
|
+
struct
|
57
|
+
switch
|
58
|
+
var
|
59
|
+
while
|
60
|
+
`), m = e(`
|
61
|
+
NULL
|
62
|
+
Self
|
63
|
+
abstract
|
64
|
+
active
|
65
|
+
alignas
|
66
|
+
alignof
|
67
|
+
as
|
68
|
+
asm
|
69
|
+
asm_fragment
|
70
|
+
async
|
71
|
+
attribute
|
72
|
+
auto
|
73
|
+
await
|
74
|
+
become
|
75
|
+
binding_array
|
76
|
+
cast
|
77
|
+
catch
|
78
|
+
class
|
79
|
+
co_await
|
80
|
+
co_return
|
81
|
+
co_yield
|
82
|
+
coherent
|
83
|
+
column_major
|
84
|
+
common
|
85
|
+
compile
|
86
|
+
compile_fragment
|
87
|
+
concept
|
88
|
+
const_cast
|
89
|
+
consteval
|
90
|
+
constexpr
|
91
|
+
constinit
|
92
|
+
crate
|
93
|
+
debugger
|
94
|
+
decltype
|
95
|
+
delete
|
96
|
+
demote
|
97
|
+
demote_to_helper
|
98
|
+
do
|
99
|
+
dynamic_cast
|
100
|
+
enum
|
101
|
+
explicit
|
102
|
+
export
|
103
|
+
extends
|
104
|
+
extern
|
105
|
+
external
|
106
|
+
fallthrough
|
107
|
+
filter
|
108
|
+
final
|
109
|
+
finally
|
110
|
+
friend
|
111
|
+
from
|
112
|
+
fxgroup
|
113
|
+
get
|
114
|
+
goto
|
115
|
+
groupshared
|
116
|
+
highp
|
117
|
+
impl
|
118
|
+
implements
|
119
|
+
import
|
120
|
+
inline
|
121
|
+
instanceof
|
122
|
+
interface
|
123
|
+
layout
|
124
|
+
lowp
|
125
|
+
macro
|
126
|
+
macro_rules
|
127
|
+
match
|
128
|
+
mediump
|
129
|
+
meta
|
130
|
+
mod
|
131
|
+
module
|
132
|
+
move
|
133
|
+
mut
|
134
|
+
mutable
|
135
|
+
namespace
|
136
|
+
new
|
137
|
+
nil
|
138
|
+
noexcept
|
139
|
+
noinline
|
140
|
+
nointerpolation
|
141
|
+
noperspective
|
142
|
+
null
|
143
|
+
nullptr
|
144
|
+
of
|
145
|
+
operator
|
146
|
+
package
|
147
|
+
packoffset
|
148
|
+
partition
|
149
|
+
pass
|
150
|
+
patch
|
151
|
+
pixelfragment
|
152
|
+
precise
|
153
|
+
precision
|
154
|
+
premerge
|
155
|
+
priv
|
156
|
+
protected
|
157
|
+
pub
|
158
|
+
public
|
159
|
+
readonly
|
160
|
+
ref
|
161
|
+
regardless
|
162
|
+
register
|
163
|
+
reinterpret_cast
|
164
|
+
require
|
165
|
+
resource
|
166
|
+
restrict
|
167
|
+
self
|
168
|
+
set
|
169
|
+
shared
|
170
|
+
sizeof
|
171
|
+
smooth
|
172
|
+
snorm
|
173
|
+
static
|
174
|
+
static_assert
|
175
|
+
static_cast
|
176
|
+
std
|
177
|
+
subroutine
|
178
|
+
super
|
179
|
+
target
|
180
|
+
template
|
181
|
+
this
|
182
|
+
thread_local
|
183
|
+
throw
|
184
|
+
trait
|
185
|
+
try
|
186
|
+
type
|
187
|
+
typedef
|
188
|
+
typeid
|
189
|
+
typename
|
190
|
+
typeof
|
191
|
+
union
|
192
|
+
unless
|
193
|
+
unorm
|
194
|
+
unsafe
|
195
|
+
unsized
|
196
|
+
use
|
197
|
+
using
|
198
|
+
varying
|
199
|
+
virtual
|
200
|
+
volatile
|
201
|
+
wgsl
|
202
|
+
where
|
203
|
+
with
|
204
|
+
writeonly
|
205
|
+
yield
|
206
|
+
`), l = e(`
|
207
|
+
read write read_write
|
208
|
+
function private workgroup uniform storage
|
209
|
+
perspective linear flat
|
210
|
+
center centroid sample
|
211
|
+
vertex_index instance_index position front_facing frag_depth
|
212
|
+
local_invocation_id local_invocation_index
|
213
|
+
global_invocation_id workgroup_id num_workgroups
|
214
|
+
sample_index sample_mask
|
215
|
+
rgba8unorm
|
216
|
+
rgba8snorm
|
217
|
+
rgba8uint
|
218
|
+
rgba8sint
|
219
|
+
rgba16uint
|
220
|
+
rgba16sint
|
221
|
+
rgba16float
|
222
|
+
r32uint
|
223
|
+
r32sint
|
224
|
+
r32float
|
225
|
+
rg32uint
|
226
|
+
rg32sint
|
227
|
+
rg32float
|
228
|
+
rgba32uint
|
229
|
+
rgba32sint
|
230
|
+
rgba32float
|
231
|
+
bgra8unorm
|
232
|
+
`), u = e(`
|
233
|
+
bool
|
234
|
+
f16
|
235
|
+
f32
|
236
|
+
i32
|
237
|
+
sampler sampler_comparison
|
238
|
+
texture_depth_2d
|
239
|
+
texture_depth_2d_array
|
240
|
+
texture_depth_cube
|
241
|
+
texture_depth_cube_array
|
242
|
+
texture_depth_multisampled_2d
|
243
|
+
texture_external
|
244
|
+
texture_external
|
245
|
+
u32
|
246
|
+
`), p = e(`
|
247
|
+
array
|
248
|
+
atomic
|
249
|
+
mat2x2
|
250
|
+
mat2x3
|
251
|
+
mat2x4
|
252
|
+
mat3x2
|
253
|
+
mat3x3
|
254
|
+
mat3x4
|
255
|
+
mat4x2
|
256
|
+
mat4x3
|
257
|
+
mat4x4
|
258
|
+
ptr
|
259
|
+
texture_1d
|
260
|
+
texture_2d
|
261
|
+
texture_2d_array
|
262
|
+
texture_3d
|
263
|
+
texture_cube
|
264
|
+
texture_cube_array
|
265
|
+
texture_multisampled_2d
|
266
|
+
texture_storage_1d
|
267
|
+
texture_storage_2d
|
268
|
+
texture_storage_2d_array
|
269
|
+
texture_storage_3d
|
270
|
+
vec2
|
271
|
+
vec3
|
272
|
+
vec4
|
273
|
+
`), d = e(`
|
274
|
+
vec2i vec3i vec4i
|
275
|
+
vec2u vec3u vec4u
|
276
|
+
vec2f vec3f vec4f
|
277
|
+
vec2h vec3h vec4h
|
278
|
+
mat2x2f mat2x3f mat2x4f
|
279
|
+
mat3x2f mat3x3f mat3x4f
|
280
|
+
mat4x2f mat4x3f mat4x4f
|
281
|
+
mat2x2h mat2x3h mat2x4h
|
282
|
+
mat3x2h mat3x3h mat3x4h
|
283
|
+
mat4x2h mat4x3h mat4x4h
|
284
|
+
`), x = e(`
|
285
|
+
bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2
|
286
|
+
ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross
|
287
|
+
degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit
|
288
|
+
firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length
|
289
|
+
log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract
|
290
|
+
reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose
|
291
|
+
trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine
|
292
|
+
textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers
|
293
|
+
textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare
|
294
|
+
textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge
|
295
|
+
textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin
|
296
|
+
atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm
|
297
|
+
pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm
|
298
|
+
unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier
|
299
|
+
workgroupUniformLoad
|
300
|
+
`), f = e(`
|
301
|
+
&
|
302
|
+
&&
|
303
|
+
->
|
304
|
+
/
|
305
|
+
=
|
306
|
+
==
|
307
|
+
!=
|
308
|
+
>
|
309
|
+
>=
|
310
|
+
<
|
311
|
+
<=
|
312
|
+
%
|
313
|
+
-
|
314
|
+
--
|
315
|
+
+
|
316
|
+
++
|
317
|
+
|
|
318
|
+
||
|
319
|
+
*
|
320
|
+
<<
|
321
|
+
>>
|
322
|
+
+=
|
323
|
+
-=
|
324
|
+
*=
|
325
|
+
/=
|
326
|
+
%=
|
327
|
+
&=
|
328
|
+
|=
|
329
|
+
^=
|
330
|
+
>>=
|
331
|
+
<<=
|
332
|
+
`), _ = /enable|requires|diagnostic/, n = new RegExp("[_\\p{XID_Start}]\\p{XID_Continue}*", "u"), t = "variable.predefined", h = {
|
333
|
+
tokenPostfix: ".wgsl",
|
334
|
+
defaultToken: "invalid",
|
335
|
+
unicode: !0,
|
336
|
+
atoms: s,
|
337
|
+
keywords: c,
|
338
|
+
reserved: m,
|
339
|
+
predeclared_enums: l,
|
340
|
+
predeclared_types: u,
|
341
|
+
predeclared_type_generators: p,
|
342
|
+
predeclared_type_aliases: d,
|
343
|
+
predeclared_intrinsics: x,
|
344
|
+
operators: f,
|
345
|
+
symbols: /[!%&*+\-\.\/:;<=>^|_~,]+/,
|
346
|
+
tokenizer: {
|
347
|
+
root: [
|
348
|
+
[_, "keyword", "@directive"],
|
349
|
+
[
|
350
|
+
// Identifier-like things, but also include '_'
|
351
|
+
n,
|
352
|
+
{
|
353
|
+
cases: {
|
354
|
+
"@atoms": t,
|
355
|
+
"@keywords": "keyword",
|
356
|
+
"@reserved": "invalid",
|
357
|
+
"@predeclared_enums": t,
|
358
|
+
"@predeclared_types": t,
|
359
|
+
"@predeclared_type_generators": t,
|
360
|
+
"@predeclared_type_aliases": t,
|
361
|
+
"@predeclared_intrinsics": t,
|
362
|
+
"@default": "identifier"
|
363
|
+
}
|
364
|
+
}
|
365
|
+
],
|
366
|
+
{ include: "@commentOrSpace" },
|
367
|
+
{ include: "@numbers" },
|
368
|
+
[/[{}()\[\]]/, "@brackets"],
|
369
|
+
["@", "annotation", "@attribute"],
|
370
|
+
[
|
371
|
+
/@symbols/,
|
372
|
+
{
|
373
|
+
cases: {
|
374
|
+
"@operators": "operator",
|
375
|
+
"@default": "delimiter"
|
376
|
+
}
|
377
|
+
}
|
378
|
+
],
|
379
|
+
[/./, "invalid"]
|
380
|
+
],
|
381
|
+
commentOrSpace: [
|
382
|
+
[/\s+/, "white"],
|
383
|
+
[/\/\*/, "comment", "@blockComment"],
|
384
|
+
[/\/\/.*$/, "comment"]
|
385
|
+
],
|
386
|
+
blockComment: [
|
387
|
+
// Soak up uninteresting text: anything except * or /
|
388
|
+
[/[^\/*]+/, "comment"],
|
389
|
+
// Recognize the start of a nested block comment.
|
390
|
+
[/\/\*/, "comment", "@push"],
|
391
|
+
// Recognize the end of a nested block comment.
|
392
|
+
[/\*\//, "comment", "@pop"],
|
393
|
+
// Recognize insignificant * and /
|
394
|
+
[/[\/*]/, "comment"]
|
395
|
+
],
|
396
|
+
attribute: [
|
397
|
+
// For things like '@fragment' both '@' and 'fragment'
|
398
|
+
// are marked as annotations. This should work even if
|
399
|
+
// there are spaces or comments between the two tokens.
|
400
|
+
{ include: "@commentOrSpace" },
|
401
|
+
[/\w+/, "annotation", "@pop"]
|
402
|
+
],
|
403
|
+
directive: [
|
404
|
+
// For things like 'enable f16;', 'enable' maps to 'meta'
|
405
|
+
// and 'f16' maps to 'meta.tag'.
|
406
|
+
{ include: "@commentOrSpace" },
|
407
|
+
[/[()]/, "@brackets"],
|
408
|
+
[/,/, "delimiter"],
|
409
|
+
[n, "meta.content"],
|
410
|
+
[/;/, "delimiter", "@pop"]
|
411
|
+
],
|
412
|
+
numbers: [
|
413
|
+
// Decimal float literals
|
414
|
+
// https://www.w3.org/TR/WGSL/#syntax-decimal_float_literal
|
415
|
+
// 0, with type-specifying suffix.
|
416
|
+
[/0[fh]/, "number.float"],
|
417
|
+
// Other decimal integer, with type-specifying suffix.
|
418
|
+
[/[1-9][0-9]*[fh]/, "number.float"],
|
419
|
+
// Has decimal point, at least one digit after decimal.
|
420
|
+
[/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/, "number.float"],
|
421
|
+
// Has decimal point, at least one digit before decimal.
|
422
|
+
[/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/, "number.float"],
|
423
|
+
// Has at least one digit, and has an exponent.
|
424
|
+
[/[0-9]+[eE][+-]?[0-9]+[fh]?/, "number.float"],
|
425
|
+
// Hex float literals
|
426
|
+
// https://www.w3.org/TR/WGSL/#syntax-hex_float_literal
|
427
|
+
[/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/, "number.hex"],
|
428
|
+
[/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/, "number.hex"],
|
429
|
+
[/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/, "number.hex"],
|
430
|
+
// Hexadecimal integer literals
|
431
|
+
// https://www.w3.org/TR/WGSL/#syntax-hex_int_literal
|
432
|
+
[/0[xX][0-9a-fA-F]+[iu]?/, "number.hex"],
|
433
|
+
// Decimal integer literals
|
434
|
+
// https://www.w3.org/TR/WGSL/#syntax-decimal_int_literal
|
435
|
+
// We need two rules here because 01 is not valid.
|
436
|
+
[/[1-9][0-9]*[iu]?/, "number"],
|
437
|
+
[/0[iu]?/, "number"]
|
438
|
+
// Must match last
|
439
|
+
]
|
440
|
+
}
|
441
|
+
};
|
442
|
+
export {
|
443
|
+
g as conf,
|
444
|
+
h as language
|
445
|
+
};
|
@@ -0,0 +1,101 @@
|
|
1
|
+
import { m as r } from "./index2-BfMceNiT.js";
|
2
|
+
/*!-----------------------------------------------------------------------------
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4
|
+
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
5
|
+
* Released under the MIT license
|
6
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
7
|
+
*-----------------------------------------------------------------------------*/
|
8
|
+
var m = Object.defineProperty, c = Object.getOwnPropertyDescriptor, l = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, p = (t, e, o, i) => {
|
9
|
+
if (e && typeof e == "object" || typeof e == "function")
|
10
|
+
for (let n of l(e))
|
11
|
+
!d.call(t, n) && n !== o && m(t, n, { get: () => e[n], enumerable: !(i = c(e, n)) || i.enumerable });
|
12
|
+
return t;
|
13
|
+
}, s = (t, e, o) => (p(t, e, "default"), o), a = {};
|
14
|
+
s(a, r);
|
15
|
+
var g = {
|
16
|
+
comments: {
|
17
|
+
blockComment: ["<!--", "-->"]
|
18
|
+
},
|
19
|
+
brackets: [["<", ">"]],
|
20
|
+
autoClosingPairs: [
|
21
|
+
{ open: "<", close: ">" },
|
22
|
+
{ open: "'", close: "'" },
|
23
|
+
{ open: '"', close: '"' }
|
24
|
+
],
|
25
|
+
surroundingPairs: [
|
26
|
+
{ open: "<", close: ">" },
|
27
|
+
{ open: "'", close: "'" },
|
28
|
+
{ open: '"', close: '"' }
|
29
|
+
],
|
30
|
+
onEnterRules: [
|
31
|
+
{
|
32
|
+
beforeText: new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
|
33
|
+
afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
|
34
|
+
action: {
|
35
|
+
indentAction: a.languages.IndentAction.IndentOutdent
|
36
|
+
}
|
37
|
+
},
|
38
|
+
{
|
39
|
+
beforeText: new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
|
40
|
+
action: { indentAction: a.languages.IndentAction.Indent }
|
41
|
+
}
|
42
|
+
]
|
43
|
+
}, k = {
|
44
|
+
defaultToken: "",
|
45
|
+
tokenPostfix: ".xml",
|
46
|
+
ignoreCase: !0,
|
47
|
+
// Useful regular expressions
|
48
|
+
qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/,
|
49
|
+
tokenizer: {
|
50
|
+
root: [
|
51
|
+
[/[^<&]+/, ""],
|
52
|
+
{ include: "@whitespace" },
|
53
|
+
// Standard opening tag
|
54
|
+
[/(<)(@qualifiedName)/, [{ token: "delimiter" }, { token: "tag", next: "@tag" }]],
|
55
|
+
// Standard closing tag
|
56
|
+
[
|
57
|
+
/(<\/)(@qualifiedName)(\s*)(>)/,
|
58
|
+
[{ token: "delimiter" }, { token: "tag" }, "", { token: "delimiter" }]
|
59
|
+
],
|
60
|
+
// Meta tags - instruction
|
61
|
+
[/(<\?)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]],
|
62
|
+
// Meta tags - declaration
|
63
|
+
[/(<\!)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]],
|
64
|
+
// CDATA
|
65
|
+
[/<\!\[CDATA\[/, { token: "delimiter.cdata", next: "@cdata" }],
|
66
|
+
[/&\w+;/, "string.escape"]
|
67
|
+
],
|
68
|
+
cdata: [
|
69
|
+
[/[^\]]+/, ""],
|
70
|
+
[/\]\]>/, { token: "delimiter.cdata", next: "@pop" }],
|
71
|
+
[/\]/, ""]
|
72
|
+
],
|
73
|
+
tag: [
|
74
|
+
[/[ \t\r\n]+/, ""],
|
75
|
+
[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name", "", "attribute.value"]],
|
76
|
+
[
|
77
|
+
/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,
|
78
|
+
["attribute.name", "", "attribute.value"]
|
79
|
+
],
|
80
|
+
[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/, ["attribute.name", "", "attribute.value"]],
|
81
|
+
[/@qualifiedName/, "attribute.name"],
|
82
|
+
[/\?>/, { token: "delimiter", next: "@pop" }],
|
83
|
+
[/(\/)(>)/, [{ token: "tag" }, { token: "delimiter", next: "@pop" }]],
|
84
|
+
[/>/, { token: "delimiter", next: "@pop" }]
|
85
|
+
],
|
86
|
+
whitespace: [
|
87
|
+
[/[ \t\r\n]+/, ""],
|
88
|
+
[/<!--/, { token: "comment", next: "@comment" }]
|
89
|
+
],
|
90
|
+
comment: [
|
91
|
+
[/[^<\-]+/, "comment.content"],
|
92
|
+
[/-->/, { token: "comment", next: "@pop" }],
|
93
|
+
[/<!--/, "comment.content.invalid"],
|
94
|
+
[/[<\-]/, "comment.content"]
|
95
|
+
]
|
96
|
+
}
|
97
|
+
};
|
98
|
+
export {
|
99
|
+
g as conf,
|
100
|
+
k as language
|
101
|
+
};
|