sun-form-v3 1.0.65 → 1.0.67
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/package.json +8 -5
- package/src/App.vue +9 -0
- package/src/assets/font/YouSheBiaoTiHei-2.ttf +0 -0
- package/src/assets/font/demo.css +539 -0
- package/src/assets/font/demo_index.html +1200 -0
- package/src/assets/font/iconfont.css +191 -0
- package/src/assets/font/iconfont.js +1 -0
- package/src/assets/font/iconfont.json +317 -0
- package/src/assets/font/iconfont.ttf +0 -0
- package/src/assets/font/iconfont.woff +0 -0
- package/src/assets/font/iconfont.woff2 +0 -0
- package/src/assets/img/bg_footer.png +0 -0
- package/src/assets/img/bg_title.png +0 -0
- package/src/assets/img/file.png +0 -0
- package/src/assets/img/logo.png +0 -0
- package/src/assets/img/logo2.png +0 -0
- package/src/assets/img/logo22.png +0 -0
- package/src/assets/img/logo23.png +0 -0
- package/src/assets/img/logo3.png +0 -0
- package/src/assets/img//347/237/251/345/275/242@2x.png +0 -0
- package/src/assets/logo.svg +1 -0
- package/src/assets/styles/element/index.scss +15 -0
- package/src/assets/styles/index.css +3 -0
- package/src/components/a.js +14 -0
- package/src/components/aDesigner/config.vue +127 -0
- package/src/components/aDesigner/design.vue +20 -0
- package/src/components/aDesigner/designer.js +342 -0
- package/src/components/aDesigner/http.js +292 -0
- package/src/components/aDesigner/index.vue +144 -0
- package/src/components/aDesigner/panel.vue +144 -0
- package/src/components/aDesigner/show.vue +24 -0
- package/src/components/widgetCommonComps/commonApiConfig/index.vue +194 -0
- package/src/components/widgetCommonComps/commonCard/index.vue +36 -0
- package/src/components/widgetCommonComps/commonCodeEditor/editor.vue +219 -0
- package/src/components/widgetCommonComps/commonCodeEditor/modalEditor.vue +68 -0
- package/src/components/widgetCommonComps/commonCollapseCard/index.vue +10 -0
- package/src/components/widgetCommonComps/commonContainer/index.vue +95 -0
- package/src/components/widgetCommonComps/commonJsonInput/index.vue +59 -0
- package/src/components/widgetCommonComps/commonLabelContainer/index.vue +39 -0
- package/src/components/widgetCommonComps/commonSidetree/index.vue +61 -0
- package/src/components/widgetCommonComps/commonTypeInput/index.vue +75 -0
- package/src/components/widgetCommonComps/commonWidgetLabelContainer/index.vue +55 -0
- package/src/components/widgetCommonComps/index copy.js +17 -0
- package/src/components/widgetCommonComps/index.js +17 -0
- package/src/components/widgetConfigComps/config-input/index.vue +60 -0
- package/src/components/widgetConfigComps/index copy.js +13 -0
- package/src/components/widgetConfigComps/index.js +17 -0
- package/src/components/widgetShowComps/index.js +29 -0
- package/src/components/widgetShowComps/widget-form/index.vue +43 -0
- package/src/components/widgetShowComps/widget-homepage/index.vue +41 -0
- package/src/components/widgetShowComps/widget-input/index.vue +85 -0
- package/src/components/widgetShowComps/widget-select/index.vue +31 -0
- package/src/designer.js +342 -0
- package/src/http.js +292 -0
- package/src/index.js +24 -0
- package/src/index2.js +23 -0
- package/src/main.js +19 -0
- package/src/remark.js +708 -0
- package/src/testBtn.vue +11 -0
- package/src/testInput.vue +12 -0
- package/src/util/jsformat.js +568 -0
- package/src/widgetConfig.js +1112 -0
- package/dist/abap-DfvySaIJ.js +0 -1404
- package/dist/apex-B__0irD3.js +0 -332
- package/dist/assets/css.worker-OK053IOu.js +0 -84
- package/dist/assets/editor.worker-D9iUZyMP.js +0 -11
- package/dist/assets/html.worker-CL40hqKM.js +0 -458
- package/dist/assets/json.worker-6f9bhSHY.js +0 -42
- package/dist/assets/ts.worker-B6g3wjaE.js +0 -37021
- package/dist/azcli-CDMGhRmx.js +0 -74
- package/dist/bat-0Mk8aqzx.js +0 -106
- package/dist/bicep-BBi_I06Z.js +0 -108
- package/dist/cameligo-D0G_Zm6X.js +0 -180
- package/dist/clojure-o2ZKLeMp.js +0 -767
- package/dist/coffee-DOQff5VC.js +0 -238
- package/dist/cpp-CQGJnWhD.js +0 -395
- package/dist/csharp-C1jLsHl8.js +0 -332
- package/dist/csp-C_ttMQaW.js +0 -59
- package/dist/css-BC202kVV.js +0 -193
- package/dist/cssMode-B2c4O0YS.js +0 -1541
- package/dist/cypher-DwtEH7Fi.js +0 -269
- package/dist/dart-D9XknsP2.js +0 -287
- package/dist/dockerfile-DgsNjqqa.js +0 -136
- package/dist/ecl-BAMCHBl6.js +0 -462
- package/dist/elixir-CegIttP8.js +0 -575
- package/dist/favicon.ico +0 -0
- package/dist/flow9-9608t7UV.js +0 -148
- package/dist/freemarker2-C0V-2C6A.js +0 -995
- package/dist/fsharp-CCtt9-1_.js +0 -223
- package/dist/go-CGUIPbct.js +0 -224
- package/dist/graphql-BNRIFFIn.js +0 -157
- package/dist/handlebars-Dq-D2gGP.js +0 -425
- package/dist/hcl-C__KLIXe.js +0 -189
- package/dist/html-CHe4dRTt.js +0 -314
- package/dist/htmlMode-DmZav6BJ.js +0 -1551
- package/dist/index2-CDdAhO0H.js +0 -124690
- package/dist/ini-CeKYn_zA.js +0 -77
- package/dist/java-Dm24deQl.js +0 -238
- package/dist/javascript-e6NjSQC6.js +0 -76
- package/dist/jsonMode-pOauncTt.js +0 -1957
- package/dist/julia-BImNW7VE.js +0 -517
- package/dist/kotlin-BfE79GEb.js +0 -259
- package/dist/less-DglNOcaC.js +0 -168
- package/dist/lexon-BA0dRz9Q.js +0 -163
- package/dist/liquid-DGCC4WOg.js +0 -246
- package/dist/lua-DMkWzJcm.js +0 -168
- package/dist/m3-sA-5shO8.js +0 -216
- package/dist/markdown-OYRB1igA.js +0 -235
- package/dist/mdx-GitjX2xy.js +0 -171
- package/dist/mips-rRzkJ_7G.js +0 -204
- package/dist/msdax-DoVJdUhd.js +0 -381
- package/dist/mysql-Ty44IHXo.js +0 -884
- package/dist/objective-c-VUfyhYrA.js +0 -189
- package/dist/pascal-DkASiYyw.js +0 -257
- package/dist/pascaligo-p-ELPlVO.js +0 -170
- package/dist/perl-Cjl1FxLZ.js +0 -632
- package/dist/pgsql-DjVenF7s.js +0 -857
- package/dist/php-CwvGzZOO.js +0 -506
- package/dist/pla-Br1iaBIV.js +0 -143
- package/dist/postiats-BaeP8zZY.js +0 -913
- package/dist/powerquery-CLCshuo8.js +0 -896
- package/dist/powershell-CZV50w5N.js +0 -245
- package/dist/protobuf-MV3XTewJ.js +0 -426
- package/dist/pug-DkDg4c4l.js +0 -408
- package/dist/python-BxUPejAm.js +0 -282
- package/dist/qsharp-BAtiKA97.js +0 -291
- package/dist/r-8ocrd-h-.js +0 -249
- package/dist/razor-B0zHeS7k.js +0 -556
- package/dist/redis-9sZiddxc.js +0 -308
- package/dist/redshift-DQfTOGC0.js +0 -815
- package/dist/restructuredtext-DXU-vkgr.js +0 -180
- package/dist/ruby-DotfqwMf.js +0 -517
- package/dist/rust-BIauJ5KN.js +0 -349
- package/dist/sb-CmWMvDEV.js +0 -121
- package/dist/scala-C81brEbk.js +0 -376
- package/dist/scheme-D0pcFz2x.js +0 -114
- package/dist/scss-BOdN2fGG.js +0 -268
- package/dist/shell-6E09eAkU.js +0 -227
- package/dist/solidity-CWStzA1K.js +0 -1373
- package/dist/sophia-76Sb6CWe.js +0 -205
- package/dist/sparql-BmZTkOWT.js +0 -207
- package/dist/sql-Cs9TBAW5.js +0 -859
- package/dist/st-B-rqE1Bu.js +0 -422
- package/dist/style.css +0 -1
- package/dist/sun-form-v3.es.js +0 -4
- package/dist/sun-form-v3.umd.js +0 -1908
- package/dist/swift-Btsj6YxQ.js +0 -318
- package/dist/systemverilog-B3RHBRa2.js +0 -582
- package/dist/tcl-Dpj776pn.js +0 -238
- package/dist/tsMode-AhR0apFR.js +0 -886
- package/dist/twig-Bb9JmBsE.js +0 -398
- package/dist/typescript-DW_IjlW5.js +0 -349
- package/dist/typespec-CDWeg3SU.js +0 -123
- package/dist/vb-DEXnYwEI.js +0 -378
- package/dist/wgsl-D602c1lx.js +0 -445
- package/dist/xml-CraN90Vi.js +0 -101
- package/dist/yaml-D6yA8dTm.js +0 -212
package/dist/wgsl-D602c1lx.js
DELETED
@@ -1,445 +0,0 @@
|
|
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
|
-
};
|
package/dist/xml-CraN90Vi.js
DELETED
@@ -1,101 +0,0 @@
|
|
1
|
-
import { m as r } from "./index2-CDdAhO0H.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
|
-
};
|