@univerjs/uniscript 0.4.0-alpha.0 → 0.4.0-nightly.202410121605

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.
Files changed (178) hide show
  1. package/lib/abap-BZS-1p12.js +6 -0
  2. package/lib/abap-D8H3nII2.mjs +1404 -0
  3. package/lib/apex-B2xdRF0k.js +6 -0
  4. package/lib/apex-BVHYDV51.mjs +334 -0
  5. package/lib/azcli-BwJ4gbR1.mjs +74 -0
  6. package/lib/azcli-CKk2q0zF.js +6 -0
  7. package/lib/bat-BDmMqWXx.mjs +106 -0
  8. package/lib/bat-Ehz5Z_mk.js +6 -0
  9. package/lib/bicep-B5L2IbSj.mjs +110 -0
  10. package/lib/bicep-WbLMPUMj.js +7 -0
  11. package/lib/cameligo-B_ldnAvM.js +6 -0
  12. package/lib/cameligo-CmyOPZUd.mjs +180 -0
  13. package/lib/cjs/index.js +1 -9
  14. package/lib/clojure-Dg-qgg-1.js +6 -0
  15. package/lib/clojure-iSXHsTlR.mjs +767 -0
  16. package/lib/coffee-BCg0pb49.js +6 -0
  17. package/lib/coffee-BUCk2FHC.mjs +238 -0
  18. package/lib/cpp-CJWZ7Zo7.js +6 -0
  19. package/lib/cpp-MUyeqRt5.mjs +395 -0
  20. package/lib/csharp-B9vyMfVU.mjs +332 -0
  21. package/lib/csharp-BZypj8XG.js +6 -0
  22. package/lib/csp-BfXxGnNN.js +6 -0
  23. package/lib/csp-CbylPXe5.mjs +59 -0
  24. package/lib/css-BPDnvT2s.js +8 -0
  25. package/lib/css-BQSMT8k7.mjs +193 -0
  26. package/lib/cssMode-B_of5tVd.js +9 -0
  27. package/lib/cssMode-BuX-eUHc.mjs +1604 -0
  28. package/lib/cypher-3bNWMNCJ.js +6 -0
  29. package/lib/cypher-D7IWy_82.mjs +269 -0
  30. package/lib/dart-BCVbUKaH.mjs +287 -0
  31. package/lib/dart-C9Glm5m-.js +6 -0
  32. package/lib/dockerfile-CjnlcV5o.js +6 -0
  33. package/lib/dockerfile-D2-hSnDX.mjs +136 -0
  34. package/lib/ecl-DRJlPmOb.mjs +462 -0
  35. package/lib/ecl-UyoSfv7F.js +6 -0
  36. package/lib/elixir-Bol0p0Ia.js +6 -0
  37. package/lib/elixir-D8NBXKCb.mjs +575 -0
  38. package/lib/es/index.js +5 -262
  39. package/lib/flow9-Be1OUdJl.js +6 -0
  40. package/lib/flow9-Dp7h8rKW.mjs +148 -0
  41. package/lib/freemarker2-D8-fH4uC.mjs +1001 -0
  42. package/lib/freemarker2-S5ay_GEf.js +8 -0
  43. package/lib/fsharp-CJxdVP7r.mjs +223 -0
  44. package/lib/fsharp-CKIYWNYJ.js +6 -0
  45. package/lib/go-DWj6zslQ.js +6 -0
  46. package/lib/go-IPaMO3Uz.mjs +224 -0
  47. package/lib/graphql-BzJpwfxN.js +6 -0
  48. package/lib/graphql-CMoDK5uf.mjs +157 -0
  49. package/lib/handlebars-CEMNnGaU.mjs +427 -0
  50. package/lib/handlebars-CM3PRDRO.js +6 -0
  51. package/lib/hcl-BCY6T0iq.js +6 -0
  52. package/lib/hcl-BTAYK4pT.mjs +189 -0
  53. package/lib/html-BSUn7oJR.mjs +316 -0
  54. package/lib/html-Df-Osxjs.js +6 -0
  55. package/lib/htmlMode-Bj4CfAzA.js +9 -0
  56. package/lib/htmlMode-xJPwX0cD.mjs +1615 -0
  57. package/lib/index-D6nY5NdF.mjs +116821 -0
  58. package/lib/index-rYV4VmC2.js +1163 -0
  59. package/lib/index.css +1 -1
  60. package/lib/ini-CC3_THb4.js +6 -0
  61. package/lib/ini-CiaphB6F.mjs +77 -0
  62. package/lib/java-CwRV8Dsg.js +6 -0
  63. package/lib/java-DxksziCw.mjs +238 -0
  64. package/lib/javascript-D1eKEotE.js +6 -0
  65. package/lib/javascript-c8D1_K05.mjs +76 -0
  66. package/lib/jsonMode-8-L3-E9k.mjs +2042 -0
  67. package/lib/jsonMode-BdBVsN9_.js +15 -0
  68. package/lib/julia-7Z1jwT4W.js +6 -0
  69. package/lib/julia-TTty8och.mjs +517 -0
  70. package/lib/kotlin-BAXgl2QX.js +6 -0
  71. package/lib/kotlin-Dzand-bM.mjs +259 -0
  72. package/lib/less-CSG9Zdoy.js +7 -0
  73. package/lib/less-CWDFQI_i.mjs +168 -0
  74. package/lib/lexon-BiTtMD9F.js +6 -0
  75. package/lib/lexon-bZpjZioh.mjs +163 -0
  76. package/lib/liquid-BmlJOXgY.js +6 -0
  77. package/lib/liquid-Bs7DM5cg.mjs +248 -0
  78. package/lib/lua-CoWYKXUu.mjs +168 -0
  79. package/lib/lua-o7UTFJ05.js +6 -0
  80. package/lib/m3-DIJY3uEe.mjs +216 -0
  81. package/lib/m3-DOYTRLxi.js +6 -0
  82. package/lib/markdown-CDlkMTMZ.mjs +235 -0
  83. package/lib/markdown-Di5faXtP.js +6 -0
  84. package/lib/mdx-BEI71kqO.mjs +173 -0
  85. package/lib/mdx-DJV2KJ98.js +6 -0
  86. package/lib/mips-CIiuS33B.mjs +204 -0
  87. package/lib/mips-CjGjcf9D.js +6 -0
  88. package/lib/msdax-4_jBeazN.mjs +381 -0
  89. package/lib/msdax-DZFpIwAH.js +6 -0
  90. package/lib/mysql-6Y0DL_eO.js +6 -0
  91. package/lib/mysql-D_KZRjSR.mjs +884 -0
  92. package/lib/objective-c-7nsY1fc1.mjs +189 -0
  93. package/lib/objective-c-BtrzMwBz.js +6 -0
  94. package/lib/pascal-BF06Dt9I.js +6 -0
  95. package/lib/pascal-BHpF9PW1.mjs +257 -0
  96. package/lib/pascaligo-BDrxVOcH.js +6 -0
  97. package/lib/pascaligo-C3mRbxmU.mjs +170 -0
  98. package/lib/perl-BMlqAyyD.js +6 -0
  99. package/lib/perl-F3tWDMLI.mjs +632 -0
  100. package/lib/pgsql-D62t1RD_.mjs +857 -0
  101. package/lib/pgsql-DXYBcnYD.js +6 -0
  102. package/lib/php-C8GGPjjI.mjs +506 -0
  103. package/lib/php-DmDmMNs3.js +6 -0
  104. package/lib/pla-2A6q3K8_.js +6 -0
  105. package/lib/pla-C_W_x2fV.mjs +143 -0
  106. package/lib/postiats-CMS8WwLg.mjs +913 -0
  107. package/lib/postiats-DQ-6iLGI.js +6 -0
  108. package/lib/powerquery-CuZPk7NC.js +6 -0
  109. package/lib/powerquery-Dcs0XplE.mjs +896 -0
  110. package/lib/powershell-Brx1N_3T.mjs +245 -0
  111. package/lib/powershell-D7BqJxnS.js +6 -0
  112. package/lib/protobuf-CkqkhuUG.js +7 -0
  113. package/lib/protobuf-UEJDuX6l.mjs +426 -0
  114. package/lib/pug-65DF18O8.js +6 -0
  115. package/lib/pug-LDwDmrMc.mjs +408 -0
  116. package/lib/python-BOeTitp9.mjs +309 -0
  117. package/lib/python-DRyE-VQQ.js +6 -0
  118. package/lib/qsharp-Cb7hPwnM.mjs +307 -0
  119. package/lib/qsharp-Dw07PXbd.js +6 -0
  120. package/lib/r-BHuY0po5.js +6 -0
  121. package/lib/r-BiFgSgcs.mjs +249 -0
  122. package/lib/razor-D0RPXCAO.mjs +558 -0
  123. package/lib/razor-DtDOotKq.js +6 -0
  124. package/lib/redis-BdzqoKC2.mjs +308 -0
  125. package/lib/redis-_Q4kv9ug.js +6 -0
  126. package/lib/redshift-DNNCHCLR.js +6 -0
  127. package/lib/redshift-Df6PoiEL.mjs +815 -0
  128. package/lib/restructuredtext-C9FM3r80.js +6 -0
  129. package/lib/restructuredtext-CW0ZtQ2l.mjs +180 -0
  130. package/lib/ruby-DyIFepcy.mjs +517 -0
  131. package/lib/ruby-DyJmXCYh.js +6 -0
  132. package/lib/rust-BiRHKB0S.mjs +349 -0
  133. package/lib/rust-DVvzZ_uH.js +6 -0
  134. package/lib/sb-CFwmZh3c.js +6 -0
  135. package/lib/sb-CahkGwPC.mjs +121 -0
  136. package/lib/scala-Cg9Wfw6B.mjs +376 -0
  137. package/lib/scala-DjaRe0PR.js +6 -0
  138. package/lib/scheme-Bqb0wlMX.mjs +114 -0
  139. package/lib/scheme-ZdeLzG0d.js +6 -0
  140. package/lib/scss-3qd2syug.mjs +268 -0
  141. package/lib/scss-Dqv1RljX.js +8 -0
  142. package/lib/shell-B5iW6U-v.mjs +227 -0
  143. package/lib/shell-BJ5zD_-e.js +6 -0
  144. package/lib/solidity-8Ys0iSgd.mjs +1373 -0
  145. package/lib/solidity-CagYWQAe.js +6 -0
  146. package/lib/sophia-PnZfErC3.mjs +205 -0
  147. package/lib/sophia-szuux90p.js +6 -0
  148. package/lib/sparql-CXz1-gkd.js +6 -0
  149. package/lib/sparql-CgWX-KRM.mjs +207 -0
  150. package/lib/sql-CN3Vg4Sm.mjs +859 -0
  151. package/lib/sql-CWZ5x4mg.js +6 -0
  152. package/lib/st-CcWMPoh3.js +6 -0
  153. package/lib/st-DKDuarOh.mjs +422 -0
  154. package/lib/swift-DUBoAkDR.js +8 -0
  155. package/lib/swift-DnXH6Con.mjs +318 -0
  156. package/lib/systemverilog-5hQzl-99.js +6 -0
  157. package/lib/systemverilog-pJOgZU46.mjs +582 -0
  158. package/lib/tcl-Bls9iNXn.mjs +238 -0
  159. package/lib/tcl-CiK0GhJi.js +6 -0
  160. package/lib/tsMode-BB2mDc5d.mjs +906 -0
  161. package/lib/tsMode-N-LS5RKx.js +16 -0
  162. package/lib/twig-B14HEeE0.mjs +398 -0
  163. package/lib/twig-Cbq-Ua-E.js +6 -0
  164. package/lib/typescript-CZplv8KD.js +6 -0
  165. package/lib/typescript-f9PHTVoW.mjs +351 -0
  166. package/lib/typespec-Br_LC070.js +6 -0
  167. package/lib/typespec-dAaIdBal.mjs +125 -0
  168. package/lib/umd/index.js +1914 -2
  169. package/lib/vb-B1HzwoGL.js +6 -0
  170. package/lib/vb-CPBujGrP.mjs +378 -0
  171. package/lib/wgsl-BNAUPMiJ.js +303 -0
  172. package/lib/wgsl-CqCqdnZC.mjs +448 -0
  173. package/lib/xml-BSe-ETnG.js +6 -0
  174. package/lib/xml-Dv0cmUxw.mjs +103 -0
  175. package/lib/yaml-O_DoXtBP.js +6 -0
  176. package/lib/yaml-eXS7QSgG.mjs +214 -0
  177. package/package.json +9 -16
  178. package/LICENSE +0 -176
@@ -0,0 +1,448 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
3
+ /*!-----------------------------------------------------------------------------
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
6
+ * Released under the MIT license
7
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
8
+ *-----------------------------------------------------------------------------*/
9
+ var conf = {
10
+ comments: {
11
+ lineComment: "//",
12
+ blockComment: ["/*", "*/"]
13
+ },
14
+ brackets: [
15
+ ["{", "}"],
16
+ ["[", "]"],
17
+ ["(", ")"]
18
+ ],
19
+ autoClosingPairs: [
20
+ { open: "[", close: "]" },
21
+ { open: "{", close: "}" },
22
+ { open: "(", close: ")" }
23
+ ],
24
+ surroundingPairs: [
25
+ { open: "{", close: "}" },
26
+ { open: "[", close: "]" },
27
+ { open: "(", close: ")" }
28
+ ]
29
+ };
30
+ function qw(str) {
31
+ let result = [];
32
+ const words = str.split(/\t+|\r+|\n+| +/);
33
+ for (let i = 0; i < words.length; ++i)
34
+ words[i].length > 0 && result.push(words[i]);
35
+ return result;
36
+ }
37
+ __name(qw, "qw");
38
+ var atoms = qw("true false"), keywords = qw(`
39
+ alias
40
+ break
41
+ case
42
+ const
43
+ const_assert
44
+ continue
45
+ continuing
46
+ default
47
+ diagnostic
48
+ discard
49
+ else
50
+ enable
51
+ fn
52
+ for
53
+ if
54
+ let
55
+ loop
56
+ override
57
+ requires
58
+ return
59
+ struct
60
+ switch
61
+ var
62
+ while
63
+ `), reserved = qw(`
64
+ NULL
65
+ Self
66
+ abstract
67
+ active
68
+ alignas
69
+ alignof
70
+ as
71
+ asm
72
+ asm_fragment
73
+ async
74
+ attribute
75
+ auto
76
+ await
77
+ become
78
+ binding_array
79
+ cast
80
+ catch
81
+ class
82
+ co_await
83
+ co_return
84
+ co_yield
85
+ coherent
86
+ column_major
87
+ common
88
+ compile
89
+ compile_fragment
90
+ concept
91
+ const_cast
92
+ consteval
93
+ constexpr
94
+ constinit
95
+ crate
96
+ debugger
97
+ decltype
98
+ delete
99
+ demote
100
+ demote_to_helper
101
+ do
102
+ dynamic_cast
103
+ enum
104
+ explicit
105
+ export
106
+ extends
107
+ extern
108
+ external
109
+ fallthrough
110
+ filter
111
+ final
112
+ finally
113
+ friend
114
+ from
115
+ fxgroup
116
+ get
117
+ goto
118
+ groupshared
119
+ highp
120
+ impl
121
+ implements
122
+ import
123
+ inline
124
+ instanceof
125
+ interface
126
+ layout
127
+ lowp
128
+ macro
129
+ macro_rules
130
+ match
131
+ mediump
132
+ meta
133
+ mod
134
+ module
135
+ move
136
+ mut
137
+ mutable
138
+ namespace
139
+ new
140
+ nil
141
+ noexcept
142
+ noinline
143
+ nointerpolation
144
+ noperspective
145
+ null
146
+ nullptr
147
+ of
148
+ operator
149
+ package
150
+ packoffset
151
+ partition
152
+ pass
153
+ patch
154
+ pixelfragment
155
+ precise
156
+ precision
157
+ premerge
158
+ priv
159
+ protected
160
+ pub
161
+ public
162
+ readonly
163
+ ref
164
+ regardless
165
+ register
166
+ reinterpret_cast
167
+ require
168
+ resource
169
+ restrict
170
+ self
171
+ set
172
+ shared
173
+ sizeof
174
+ smooth
175
+ snorm
176
+ static
177
+ static_assert
178
+ static_cast
179
+ std
180
+ subroutine
181
+ super
182
+ target
183
+ template
184
+ this
185
+ thread_local
186
+ throw
187
+ trait
188
+ try
189
+ type
190
+ typedef
191
+ typeid
192
+ typename
193
+ typeof
194
+ union
195
+ unless
196
+ unorm
197
+ unsafe
198
+ unsized
199
+ use
200
+ using
201
+ varying
202
+ virtual
203
+ volatile
204
+ wgsl
205
+ where
206
+ with
207
+ writeonly
208
+ yield
209
+ `), predeclared_enums = qw(`
210
+ read write read_write
211
+ function private workgroup uniform storage
212
+ perspective linear flat
213
+ center centroid sample
214
+ vertex_index instance_index position front_facing frag_depth
215
+ local_invocation_id local_invocation_index
216
+ global_invocation_id workgroup_id num_workgroups
217
+ sample_index sample_mask
218
+ rgba8unorm
219
+ rgba8snorm
220
+ rgba8uint
221
+ rgba8sint
222
+ rgba16uint
223
+ rgba16sint
224
+ rgba16float
225
+ r32uint
226
+ r32sint
227
+ r32float
228
+ rg32uint
229
+ rg32sint
230
+ rg32float
231
+ rgba32uint
232
+ rgba32sint
233
+ rgba32float
234
+ bgra8unorm
235
+ `), predeclared_types = qw(`
236
+ bool
237
+ f16
238
+ f32
239
+ i32
240
+ sampler sampler_comparison
241
+ texture_depth_2d
242
+ texture_depth_2d_array
243
+ texture_depth_cube
244
+ texture_depth_cube_array
245
+ texture_depth_multisampled_2d
246
+ texture_external
247
+ texture_external
248
+ u32
249
+ `), predeclared_type_generators = qw(`
250
+ array
251
+ atomic
252
+ mat2x2
253
+ mat2x3
254
+ mat2x4
255
+ mat3x2
256
+ mat3x3
257
+ mat3x4
258
+ mat4x2
259
+ mat4x3
260
+ mat4x4
261
+ ptr
262
+ texture_1d
263
+ texture_2d
264
+ texture_2d_array
265
+ texture_3d
266
+ texture_cube
267
+ texture_cube_array
268
+ texture_multisampled_2d
269
+ texture_storage_1d
270
+ texture_storage_2d
271
+ texture_storage_2d_array
272
+ texture_storage_3d
273
+ vec2
274
+ vec3
275
+ vec4
276
+ `), predeclared_type_aliases = qw(`
277
+ vec2i vec3i vec4i
278
+ vec2u vec3u vec4u
279
+ vec2f vec3f vec4f
280
+ vec2h vec3h vec4h
281
+ mat2x2f mat2x3f mat2x4f
282
+ mat3x2f mat3x3f mat3x4f
283
+ mat4x2f mat4x3f mat4x4f
284
+ mat2x2h mat2x3h mat2x4h
285
+ mat3x2h mat3x3h mat3x4h
286
+ mat4x2h mat4x3h mat4x4h
287
+ `), predeclared_intrinsics = qw(`
288
+ bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2
289
+ ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross
290
+ degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit
291
+ firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length
292
+ log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract
293
+ reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose
294
+ trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine
295
+ textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers
296
+ textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare
297
+ textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge
298
+ textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin
299
+ atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm
300
+ pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm
301
+ unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier
302
+ workgroupUniformLoad
303
+ `), operators = qw(`
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
+ ^=
333
+ >>=
334
+ <<=
335
+ `), directive_re = /enable|requires|diagnostic/, ident_re = new RegExp("[_\\p{XID_Start}]\\p{XID_Continue}*", "u"), predefined_token = "variable.predefined", language = {
336
+ tokenPostfix: ".wgsl",
337
+ defaultToken: "invalid",
338
+ unicode: !0,
339
+ atoms,
340
+ keywords,
341
+ reserved,
342
+ predeclared_enums,
343
+ predeclared_types,
344
+ predeclared_type_generators,
345
+ predeclared_type_aliases,
346
+ predeclared_intrinsics,
347
+ operators,
348
+ symbols: /[!%&*+\-\.\/:;<=>^|_~,]+/,
349
+ tokenizer: {
350
+ root: [
351
+ [directive_re, "keyword", "@directive"],
352
+ [
353
+ // Identifier-like things, but also include '_'
354
+ ident_re,
355
+ {
356
+ cases: {
357
+ "@atoms": predefined_token,
358
+ "@keywords": "keyword",
359
+ "@reserved": "invalid",
360
+ "@predeclared_enums": predefined_token,
361
+ "@predeclared_types": predefined_token,
362
+ "@predeclared_type_generators": predefined_token,
363
+ "@predeclared_type_aliases": predefined_token,
364
+ "@predeclared_intrinsics": predefined_token,
365
+ "@default": "identifier"
366
+ }
367
+ }
368
+ ],
369
+ { include: "@commentOrSpace" },
370
+ { include: "@numbers" },
371
+ [/[{}()\[\]]/, "@brackets"],
372
+ ["@", "annotation", "@attribute"],
373
+ [
374
+ /@symbols/,
375
+ {
376
+ cases: {
377
+ "@operators": "operator",
378
+ "@default": "delimiter"
379
+ }
380
+ }
381
+ ],
382
+ [/./, "invalid"]
383
+ ],
384
+ commentOrSpace: [
385
+ [/\s+/, "white"],
386
+ [/\/\*/, "comment", "@blockComment"],
387
+ [/\/\/.*$/, "comment"]
388
+ ],
389
+ blockComment: [
390
+ // Soak up uninteresting text: anything except * or /
391
+ [/[^\/*]+/, "comment"],
392
+ // Recognize the start of a nested block comment.
393
+ [/\/\*/, "comment", "@push"],
394
+ // Recognize the end of a nested block comment.
395
+ [/\*\//, "comment", "@pop"],
396
+ // Recognize insignificant * and /
397
+ [/[\/*]/, "comment"]
398
+ ],
399
+ attribute: [
400
+ // For things like '@fragment' both '@' and 'fragment'
401
+ // are marked as annotations. This should work even if
402
+ // there are spaces or comments between the two tokens.
403
+ { include: "@commentOrSpace" },
404
+ [/\w+/, "annotation", "@pop"]
405
+ ],
406
+ directive: [
407
+ // For things like 'enable f16;', 'enable' maps to 'meta'
408
+ // and 'f16' maps to 'meta.tag'.
409
+ { include: "@commentOrSpace" },
410
+ [/[()]/, "@brackets"],
411
+ [/,/, "delimiter"],
412
+ [ident_re, "meta.content"],
413
+ [/;/, "delimiter", "@pop"]
414
+ ],
415
+ numbers: [
416
+ // Decimal float literals
417
+ // https://www.w3.org/TR/WGSL/#syntax-decimal_float_literal
418
+ // 0, with type-specifying suffix.
419
+ [/0[fh]/, "number.float"],
420
+ // Other decimal integer, with type-specifying suffix.
421
+ [/[1-9][0-9]*[fh]/, "number.float"],
422
+ // Has decimal point, at least one digit after decimal.
423
+ [/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/, "number.float"],
424
+ // Has decimal point, at least one digit before decimal.
425
+ [/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/, "number.float"],
426
+ // Has at least one digit, and has an exponent.
427
+ [/[0-9]+[eE][+-]?[0-9]+[fh]?/, "number.float"],
428
+ // Hex float literals
429
+ // https://www.w3.org/TR/WGSL/#syntax-hex_float_literal
430
+ [/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/, "number.hex"],
431
+ [/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/, "number.hex"],
432
+ [/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/, "number.hex"],
433
+ // Hexadecimal integer literals
434
+ // https://www.w3.org/TR/WGSL/#syntax-hex_int_literal
435
+ [/0[xX][0-9a-fA-F]+[iu]?/, "number.hex"],
436
+ // Decimal integer literals
437
+ // https://www.w3.org/TR/WGSL/#syntax-decimal_int_literal
438
+ // We need two rules here because 01 is not valid.
439
+ [/[1-9][0-9]*[iu]?/, "number"],
440
+ [/0[iu]?/, "number"]
441
+ // Must match last
442
+ ]
443
+ }
444
+ };
445
+ export {
446
+ conf,
447
+ language
448
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const index=require("./index-rYV4VmC2.js");/*!-----------------------------------------------------------------------------
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 __defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=__name((to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp2(to,key,{get:__name(()=>from[key],"get"),enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},"__copyProps"),__reExport=__name((target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget),"__reExport"),monaco_editor_core_exports={};__reExport(monaco_editor_core_exports,index.monaco_editor_core_star);var conf={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:monaco_editor_core_exports.languages.IndentAction.Indent}}]},language={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};exports.conf=conf;exports.language=language;
@@ -0,0 +1,103 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
3
+ import { m as monaco_editor_core_star } from "./index-D6nY5NdF.mjs";
4
+ /*!-----------------------------------------------------------------------------
5
+ * Copyright (c) Microsoft Corporation. All rights reserved.
6
+ * Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
7
+ * Released under the MIT license
8
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
+ *-----------------------------------------------------------------------------*/
10
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = /* @__PURE__ */ __name((to, from, except, desc) => {
11
+ if (from && typeof from == "object" || typeof from == "function")
12
+ for (let key of __getOwnPropNames(from))
13
+ !__hasOwnProp.call(to, key) && key !== except && __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ return to;
15
+ }, "__copyProps"), __reExport = /* @__PURE__ */ __name((target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget), "__reExport"), monaco_editor_core_exports = {};
16
+ __reExport(monaco_editor_core_exports, monaco_editor_core_star);
17
+ var conf = {
18
+ comments: {
19
+ blockComment: ["<!--", "-->"]
20
+ },
21
+ brackets: [["<", ">"]],
22
+ autoClosingPairs: [
23
+ { open: "<", close: ">" },
24
+ { open: "'", close: "'" },
25
+ { open: '"', close: '"' }
26
+ ],
27
+ surroundingPairs: [
28
+ { open: "<", close: ">" },
29
+ { open: "'", close: "'" },
30
+ { open: '"', close: '"' }
31
+ ],
32
+ onEnterRules: [
33
+ {
34
+ beforeText: new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
35
+ afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
36
+ action: {
37
+ indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
38
+ }
39
+ },
40
+ {
41
+ beforeText: new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
42
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
43
+ }
44
+ ]
45
+ }, language = {
46
+ defaultToken: "",
47
+ tokenPostfix: ".xml",
48
+ ignoreCase: !0,
49
+ // Useful regular expressions
50
+ qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/,
51
+ tokenizer: {
52
+ root: [
53
+ [/[^<&]+/, ""],
54
+ { include: "@whitespace" },
55
+ // Standard opening tag
56
+ [/(<)(@qualifiedName)/, [{ token: "delimiter" }, { token: "tag", next: "@tag" }]],
57
+ // Standard closing tag
58
+ [
59
+ /(<\/)(@qualifiedName)(\s*)(>)/,
60
+ [{ token: "delimiter" }, { token: "tag" }, "", { token: "delimiter" }]
61
+ ],
62
+ // Meta tags - instruction
63
+ [/(<\?)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]],
64
+ // Meta tags - declaration
65
+ [/(<\!)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]],
66
+ // CDATA
67
+ [/<\!\[CDATA\[/, { token: "delimiter.cdata", next: "@cdata" }],
68
+ [/&\w+;/, "string.escape"]
69
+ ],
70
+ cdata: [
71
+ [/[^\]]+/, ""],
72
+ [/\]\]>/, { token: "delimiter.cdata", next: "@pop" }],
73
+ [/\]/, ""]
74
+ ],
75
+ tag: [
76
+ [/[ \t\r\n]+/, ""],
77
+ [/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name", "", "attribute.value"]],
78
+ [
79
+ /(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,
80
+ ["attribute.name", "", "attribute.value"]
81
+ ],
82
+ [/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/, ["attribute.name", "", "attribute.value"]],
83
+ [/@qualifiedName/, "attribute.name"],
84
+ [/\?>/, { token: "delimiter", next: "@pop" }],
85
+ [/(\/)(>)/, [{ token: "tag" }, { token: "delimiter", next: "@pop" }]],
86
+ [/>/, { token: "delimiter", next: "@pop" }]
87
+ ],
88
+ whitespace: [
89
+ [/[ \t\r\n]+/, ""],
90
+ [/<!--/, { token: "comment", next: "@comment" }]
91
+ ],
92
+ comment: [
93
+ [/[^<\-]+/, "comment.content"],
94
+ [/-->/, { token: "comment", next: "@pop" }],
95
+ [/<!--/, "comment.content.invalid"],
96
+ [/[<\-]/, "comment.content"]
97
+ ]
98
+ }
99
+ };
100
+ export {
101
+ conf,
102
+ language
103
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const index=require("./index-rYV4VmC2.js");/*!-----------------------------------------------------------------------------
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 __defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=__name((to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp2(to,key,{get:__name(()=>from[key],"get"),enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},"__copyProps"),__reExport=__name((target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget),"__reExport"),monaco_editor_core_exports={};__reExport(monaco_editor_core_exports,index.monaco_editor_core_star);var conf={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.Indent}}]},language={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};exports.conf=conf;exports.language=language;