sun-form-v3 1.0.70 → 1.0.72

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. package/dist/abap-DfvySaIJ.js +1404 -0
  2. package/dist/apex-B__0irD3.js +332 -0
  3. package/dist/assets/css.worker-OK053IOu.js +84 -0
  4. package/dist/assets/editor.worker-D9iUZyMP.js +11 -0
  5. package/dist/assets/html.worker-CL40hqKM.js +458 -0
  6. package/dist/assets/json.worker-6f9bhSHY.js +42 -0
  7. package/dist/assets/ts.worker-B6g3wjaE.js +37021 -0
  8. package/dist/azcli-CDMGhRmx.js +74 -0
  9. package/dist/bat-0Mk8aqzx.js +106 -0
  10. package/dist/bicep-BBi_I06Z.js +108 -0
  11. package/dist/cameligo-D0G_Zm6X.js +180 -0
  12. package/dist/clojure-o2ZKLeMp.js +767 -0
  13. package/dist/coffee-DOQff5VC.js +238 -0
  14. package/dist/cpp-CQGJnWhD.js +395 -0
  15. package/dist/csharp-C1jLsHl8.js +332 -0
  16. package/dist/csp-C_ttMQaW.js +59 -0
  17. package/dist/css-BC202kVV.js +193 -0
  18. package/dist/cssMode-D3INtz5D.js +1541 -0
  19. package/dist/cypher-DwtEH7Fi.js +269 -0
  20. package/dist/dart-D9XknsP2.js +287 -0
  21. package/dist/dockerfile-DgsNjqqa.js +136 -0
  22. package/dist/ecl-BAMCHBl6.js +462 -0
  23. package/dist/elixir-CegIttP8.js +575 -0
  24. package/dist/favicon.ico +0 -0
  25. package/dist/flow9-9608t7UV.js +148 -0
  26. package/dist/freemarker2-hasIzj0A.js +995 -0
  27. package/dist/fsharp-CCtt9-1_.js +223 -0
  28. package/dist/go-CGUIPbct.js +224 -0
  29. package/dist/graphql-BNRIFFIn.js +157 -0
  30. package/dist/handlebars-Cqza9dif.js +425 -0
  31. package/dist/hcl-C__KLIXe.js +189 -0
  32. package/dist/html-QpDlLWtS.js +314 -0
  33. package/dist/htmlMode-3p93KT8l.js +1551 -0
  34. package/dist/index2-jkDcibEo.js +120443 -0
  35. package/dist/ini-CeKYn_zA.js +77 -0
  36. package/dist/java-Dm24deQl.js +238 -0
  37. package/dist/javascript-CSPB5Brm.js +76 -0
  38. package/dist/jsonMode-qA6pURD0.js +1957 -0
  39. package/dist/julia-BImNW7VE.js +517 -0
  40. package/dist/kotlin-BfE79GEb.js +259 -0
  41. package/dist/less-DglNOcaC.js +168 -0
  42. package/dist/lexon-BA0dRz9Q.js +163 -0
  43. package/dist/liquid-BWuASSim.js +246 -0
  44. package/dist/lua-DMkWzJcm.js +168 -0
  45. package/dist/m3-sA-5shO8.js +216 -0
  46. package/dist/markdown-OYRB1igA.js +235 -0
  47. package/dist/mdx-CnHJXO9F.js +171 -0
  48. package/dist/mips-rRzkJ_7G.js +204 -0
  49. package/dist/msdax-DoVJdUhd.js +381 -0
  50. package/dist/mysql-Ty44IHXo.js +884 -0
  51. package/dist/objective-c-VUfyhYrA.js +189 -0
  52. package/dist/pascal-DkASiYyw.js +257 -0
  53. package/dist/pascaligo-p-ELPlVO.js +170 -0
  54. package/dist/perl-Cjl1FxLZ.js +632 -0
  55. package/dist/pgsql-DjVenF7s.js +857 -0
  56. package/dist/php-CwvGzZOO.js +506 -0
  57. package/dist/pla-Br1iaBIV.js +143 -0
  58. package/dist/postiats-BaeP8zZY.js +913 -0
  59. package/dist/powerquery-CLCshuo8.js +896 -0
  60. package/dist/powershell-CZV50w5N.js +245 -0
  61. package/dist/protobuf-MV3XTewJ.js +426 -0
  62. package/dist/pug-DkDg4c4l.js +408 -0
  63. package/dist/python-CRYsEVap.js +282 -0
  64. package/dist/qsharp-BAtiKA97.js +291 -0
  65. package/dist/r-8ocrd-h-.js +249 -0
  66. package/dist/razor-DyEtGntt.js +556 -0
  67. package/dist/redis-9sZiddxc.js +308 -0
  68. package/dist/redshift-DQfTOGC0.js +815 -0
  69. package/dist/restructuredtext-DXU-vkgr.js +180 -0
  70. package/dist/ruby-DotfqwMf.js +517 -0
  71. package/dist/rust-BIauJ5KN.js +349 -0
  72. package/dist/sb-CmWMvDEV.js +121 -0
  73. package/dist/scala-C81brEbk.js +376 -0
  74. package/dist/scheme-D0pcFz2x.js +114 -0
  75. package/dist/scss-BOdN2fGG.js +268 -0
  76. package/dist/shell-6E09eAkU.js +227 -0
  77. package/dist/solidity-CWStzA1K.js +1373 -0
  78. package/dist/sophia-76Sb6CWe.js +205 -0
  79. package/dist/sparql-BmZTkOWT.js +207 -0
  80. package/dist/sql-Cs9TBAW5.js +859 -0
  81. package/dist/st-B-rqE1Bu.js +422 -0
  82. package/dist/style.css +1 -0
  83. package/dist/sun-form-v3.es.js +4 -0
  84. package/dist/sun-form-v3.umd.js +1902 -0
  85. package/dist/swift-Btsj6YxQ.js +318 -0
  86. package/dist/systemverilog-B3RHBRa2.js +582 -0
  87. package/dist/tcl-Dpj776pn.js +238 -0
  88. package/dist/tsMode-BrlIPEQw.js +885 -0
  89. package/dist/twig-Bb9JmBsE.js +398 -0
  90. package/dist/typescript-CYTudnTM.js +349 -0
  91. package/dist/typespec-CDWeg3SU.js +123 -0
  92. package/dist/vb-DEXnYwEI.js +378 -0
  93. package/dist/wgsl-D602c1lx.js +445 -0
  94. package/dist/xml-B-x5164u.js +101 -0
  95. package/dist/yaml-Buq2hM65.js +212 -0
  96. package/package.json +5 -8
  97. package/src/App.vue +0 -9
  98. package/src/assets/font/YouSheBiaoTiHei-2.ttf +0 -0
  99. package/src/assets/font/demo.css +0 -539
  100. package/src/assets/font/demo_index.html +0 -1200
  101. package/src/assets/font/iconfont.css +0 -191
  102. package/src/assets/font/iconfont.js +0 -1
  103. package/src/assets/font/iconfont.json +0 -317
  104. package/src/assets/font/iconfont.ttf +0 -0
  105. package/src/assets/font/iconfont.woff +0 -0
  106. package/src/assets/font/iconfont.woff2 +0 -0
  107. package/src/assets/img/bg_footer.png +0 -0
  108. package/src/assets/img/bg_title.png +0 -0
  109. package/src/assets/img/file.png +0 -0
  110. package/src/assets/img/logo.png +0 -0
  111. package/src/assets/img/logo2.png +0 -0
  112. package/src/assets/img/logo22.png +0 -0
  113. package/src/assets/img/logo23.png +0 -0
  114. package/src/assets/img/logo3.png +0 -0
  115. package/src/assets/img//347/237/251/345/275/242@2x.png +0 -0
  116. package/src/assets/logo.svg +0 -1
  117. package/src/assets/styles/element/index.scss +0 -15
  118. package/src/assets/styles/index.css +0 -3
  119. package/src/components/a.js +0 -14
  120. package/src/components/aDesigner/config.vue +0 -127
  121. package/src/components/aDesigner/design.vue +0 -20
  122. package/src/components/aDesigner/designer.js +0 -342
  123. package/src/components/aDesigner/http.js +0 -292
  124. package/src/components/aDesigner/index.vue +0 -144
  125. package/src/components/aDesigner/panel.vue +0 -144
  126. package/src/components/aDesigner/show.vue +0 -24
  127. package/src/components/widgetCommonComps/commonApiConfig/index.vue +0 -194
  128. package/src/components/widgetCommonComps/commonCard/index.vue +0 -36
  129. package/src/components/widgetCommonComps/commonCodeEditor/editor.vue +0 -219
  130. package/src/components/widgetCommonComps/commonCodeEditor/modalEditor.vue +0 -68
  131. package/src/components/widgetCommonComps/commonCollapseCard/index.vue +0 -10
  132. package/src/components/widgetCommonComps/commonContainer/index.vue +0 -95
  133. package/src/components/widgetCommonComps/commonJsonInput/index.vue +0 -59
  134. package/src/components/widgetCommonComps/commonLabelContainer/index.vue +0 -39
  135. package/src/components/widgetCommonComps/commonSidetree/index.vue +0 -61
  136. package/src/components/widgetCommonComps/commonTypeInput/index.vue +0 -75
  137. package/src/components/widgetCommonComps/commonWidgetLabelContainer/index.vue +0 -55
  138. package/src/components/widgetCommonComps/index copy.js +0 -17
  139. package/src/components/widgetCommonComps/index.js +0 -17
  140. package/src/components/widgetConfigComps/config-input/index.vue +0 -60
  141. package/src/components/widgetConfigComps/index copy.js +0 -13
  142. package/src/components/widgetConfigComps/index.js +0 -17
  143. package/src/components/widgetShowComps/index.js +0 -29
  144. package/src/components/widgetShowComps/widget-form/index.vue +0 -43
  145. package/src/components/widgetShowComps/widget-homepage/index.vue +0 -41
  146. package/src/components/widgetShowComps/widget-input/index.vue +0 -85
  147. package/src/components/widgetShowComps/widget-select/index.vue +0 -31
  148. package/src/designer.js +0 -342
  149. package/src/http.js +0 -293
  150. package/src/index.js +0 -24
  151. package/src/index2.js +0 -23
  152. package/src/main.js +0 -19
  153. package/src/remark.js +0 -708
  154. package/src/testBtn.vue +0 -11
  155. package/src/testInput.vue +0 -12
  156. package/src/util/jsformat.js +0 -568
  157. package/src/widgetConfig.js +0 -1112
@@ -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-jkDcibEo.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
+ };