@tuoyuan/code-editor 1.0.0
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/README.md +505 -0
- package/dist/CodeEditor.vue.d.ts +335 -0
- package/dist/abap-Ck4GwL0j.js +1404 -0
- package/dist/abap-Dm-grL-k.cjs +6 -0
- package/dist/apex-BcgYgERc.cjs +6 -0
- package/dist/apex-ODA7HKAJ.js +332 -0
- package/dist/azcli-CTIyen0u.cjs +6 -0
- package/dist/azcli-Cb6cb8s9.js +74 -0
- package/dist/bat-DNcko697.cjs +6 -0
- package/dist/bat-DTzY2NZq.js +106 -0
- package/dist/bicep-BMFU7f1t.js +108 -0
- package/dist/bicep-CaTas9h4.cjs +7 -0
- package/dist/cameligo-CI3fenw2.cjs +6 -0
- package/dist/cameligo-NLSSnjLV.js +180 -0
- package/dist/clojure-BGGaGC_c.cjs +6 -0
- package/dist/clojure-Du0upEOV.js +767 -0
- package/dist/coffee-ClJtyy1o.cjs +6 -0
- package/dist/coffee-v4uQlkM7.js +238 -0
- package/dist/cpp-C8lRvf76.cjs +6 -0
- package/dist/cpp-D8cWT5D_.js +395 -0
- package/dist/csharp-Czug7i7m.js +332 -0
- package/dist/csharp-DWhydAB-.cjs +6 -0
- package/dist/csp-BWvo8sOh.cjs +6 -0
- package/dist/csp-C8fx6eO8.js +59 -0
- package/dist/css-BpNIi06k.js +193 -0
- package/dist/css-CFi1nolN.cjs +8 -0
- package/dist/cssMode-BfZeZ0sl.js +1577 -0
- package/dist/cssMode-CroponXs.cjs +9 -0
- package/dist/cypher-C17znEzs.js +269 -0
- package/dist/cypher-CeoUqDHe.cjs +6 -0
- package/dist/dart-BmDOWGHn.cjs +6 -0
- package/dist/dart-CYyrqmCr.js +287 -0
- package/dist/dockerfile-BQUsBUh7.js +136 -0
- package/dist/dockerfile-CughGaD6.cjs +6 -0
- package/dist/ecl-BDDxLC55.cjs +6 -0
- package/dist/ecl-CJB68izO.js +462 -0
- package/dist/elixir-BPaYnkX2.cjs +6 -0
- package/dist/elixir-DljgmHqx.js +575 -0
- package/dist/flow9-0BfLJTIY.js +148 -0
- package/dist/flow9-BYsSavfX.cjs +6 -0
- package/dist/formatter.d.ts +16 -0
- package/dist/freemarker2-CpMdvAfd.cjs +8 -0
- package/dist/freemarker2-DVRVJu0B.js +995 -0
- package/dist/fsharp-SmZEcjiu.cjs +6 -0
- package/dist/fsharp-lmsaS1LJ.js +223 -0
- package/dist/go-Tv83ayL9.js +224 -0
- package/dist/go-xVW5xrOi.cjs +6 -0
- package/dist/graphql-BH1G4Uv8.js +157 -0
- package/dist/graphql-BaJ0LkdR.cjs +6 -0
- package/dist/handlebars-8AMUT0_r.cjs +6 -0
- package/dist/handlebars-cspegSxe.js +425 -0
- package/dist/hcl-9tXVo0Oo.js +189 -0
- package/dist/hcl-BTIq68i_.cjs +6 -0
- package/dist/html-Bvlf1Z20.cjs +6 -0
- package/dist/html-zabMn0fr.js +314 -0
- package/dist/htmlMode-B3y58LIC.cjs +9 -0
- package/dist/htmlMode-jXZ-OnTX.js +1587 -0
- package/dist/index-BvnET_j2.js +132407 -0
- package/dist/index-CjGIE44E.cjs +1197 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +5 -0
- package/dist/ini-CJdCU2Im.cjs +6 -0
- package/dist/ini-DZX3aW6M.js +77 -0
- package/dist/java-Day25zBa.cjs +6 -0
- package/dist/java-Q9NjwWso.js +238 -0
- package/dist/javascript-BF91TgD3.js +76 -0
- package/dist/javascript-QgWqIxzo.cjs +6 -0
- package/dist/jsonMode-Chpjh-RM.cjs +15 -0
- package/dist/jsonMode-DD3uMliY.js +2002 -0
- package/dist/julia-BqwBsF5P.cjs +6 -0
- package/dist/julia-QQBeypPo.js +517 -0
- package/dist/kotlin-2AnhId0p.js +259 -0
- package/dist/kotlin-B4u9iQDL.cjs +6 -0
- package/dist/less-CWxTTuX7.cjs +7 -0
- package/dist/less-Daawp9Qu.js +168 -0
- package/dist/lexon-B1xVKv1m.cjs +6 -0
- package/dist/lexon-CqxA-4g1.js +163 -0
- package/dist/liquid-CsQKIvsE.cjs +6 -0
- package/dist/liquid-DxypC1q6.js +246 -0
- package/dist/lua-C9DR8JqQ.js +168 -0
- package/dist/lua-GQ1AlIpR.cjs +6 -0
- package/dist/m3-ChnU6a_2.cjs +6 -0
- package/dist/m3-ChoO2Aeo.js +216 -0
- package/dist/markdown-vGe7N__p.js +235 -0
- package/dist/markdown-yRKnCzup.cjs +6 -0
- package/dist/mdx-BvsKvd6j.cjs +6 -0
- package/dist/mdx-DZRrNJcb.js +171 -0
- package/dist/mips-B35Tctk9.js +204 -0
- package/dist/mips-DE1-KCxg.cjs +6 -0
- package/dist/monaco-worker.d.ts +2 -0
- package/dist/msdax-CKduWRE-.js +381 -0
- package/dist/msdax-D0cml5wZ.cjs +6 -0
- package/dist/mysql-D4V3ltpC.js +884 -0
- package/dist/mysql-DLWkbGoZ.cjs +6 -0
- package/dist/objective-c-CaS419yz.js +189 -0
- package/dist/objective-c-aq90HTjV.cjs +6 -0
- package/dist/pascal-CzzqMa-q.js +257 -0
- package/dist/pascal-Tx_vZ5dG.cjs +6 -0
- package/dist/pascaligo-DPbJfhBm.js +170 -0
- package/dist/pascaligo-D_Ri2CTv.cjs +6 -0
- package/dist/perl-CswrnJgZ.cjs +6 -0
- package/dist/perl-DiakDHGa.js +632 -0
- package/dist/pgsql-CCS271_e.cjs +6 -0
- package/dist/pgsql-FgzHGfbe.js +857 -0
- package/dist/php-BtenrrrR.cjs +6 -0
- package/dist/php-DeEgUIDo.js +506 -0
- package/dist/pla-BtA__bSx.js +143 -0
- package/dist/pla-DqtRVxAK.cjs +6 -0
- package/dist/postiats-CDpKZOjz.js +913 -0
- package/dist/postiats-CMjeSPtv.cjs +6 -0
- package/dist/powerquery-C4wMFtve.js +896 -0
- package/dist/powerquery-DMrlf6nl.cjs +6 -0
- package/dist/powershell-BIXcUAIq.js +245 -0
- package/dist/powershell-BzvWvXBW.cjs +6 -0
- package/dist/protobuf-BHrBiKx5.js +426 -0
- package/dist/protobuf-BkfVMs3q.cjs +7 -0
- package/dist/pug-BgHHt25K.cjs +6 -0
- package/dist/pug-D_c6Bxex.js +408 -0
- package/dist/python-CDI0D2Kf.cjs +6 -0
- package/dist/python-CXOcTmBp.js +307 -0
- package/dist/qsharp-BS_wm4zq.cjs +6 -0
- package/dist/qsharp-Bmp6Uoth.js +291 -0
- package/dist/r-Cw-pZRR6.js +249 -0
- package/dist/r-XsO4bdi0.cjs +6 -0
- package/dist/razor-CAIWGDkN.cjs +6 -0
- package/dist/razor-Do5Lpn1p.js +556 -0
- package/dist/redis-D5elYsZS.cjs +6 -0
- package/dist/redis-DSkWtKTU.js +308 -0
- package/dist/redshift-BrAReR9w.cjs +6 -0
- package/dist/redshift-G3V-UH7H.js +815 -0
- package/dist/restructuredtext-C3HS0Vuf.js +180 -0
- package/dist/restructuredtext-CzNfc37y.cjs +6 -0
- package/dist/ruby-CFRrX6F7.cjs +6 -0
- package/dist/ruby-DdxOY_t-.js +517 -0
- package/dist/rust-BgYTY-pT.cjs +6 -0
- package/dist/rust-CHLNe-uh.js +349 -0
- package/dist/sb-DjdwHjNi.cjs +6 -0
- package/dist/sb-VgZvRVjv.js +121 -0
- package/dist/scala-BEo281v6.js +376 -0
- package/dist/scala-C9e5dt2E.cjs +6 -0
- package/dist/scheme-BPzKEKRg.cjs +6 -0
- package/dist/scheme-BwtlTEx9.js +114 -0
- package/dist/scss-B_KRI23k.cjs +8 -0
- package/dist/scss-DNHJcE5b.js +268 -0
- package/dist/shell-961u9U9E.cjs +6 -0
- package/dist/shell-CYXbUHt6.js +227 -0
- package/dist/solidity-B94td9D0.js +1373 -0
- package/dist/solidity-DyAQZQb-.cjs +6 -0
- package/dist/sophia-C67C1dNJ.cjs +6 -0
- package/dist/sophia-CgOMMImk.js +205 -0
- package/dist/sparql-CmRbqkGW.js +207 -0
- package/dist/sparql-DTHixtMm.cjs +6 -0
- package/dist/sql-CX8rIh5F.cjs +6 -0
- package/dist/sql-DVsVTphc.js +859 -0
- package/dist/st-ATFa4Vu3.js +422 -0
- package/dist/st-CBQkFfzG.cjs +6 -0
- package/dist/style.css +1 -0
- package/dist/swift-K4rp2L0u.js +318 -0
- package/dist/swift-XvmCMD7s.cjs +8 -0
- package/dist/systemverilog-D0lDJRC5.cjs +6 -0
- package/dist/systemverilog-YgLuECrg.js +582 -0
- package/dist/tcl-BHcJGOmo.js +238 -0
- package/dist/tcl-Ju0vlxf3.cjs +6 -0
- package/dist/tsMode-D7bHvHeH.cjs +16 -0
- package/dist/tsMode-DiYbk3vf.js +895 -0
- package/dist/twig-B1JhL8Uy.cjs +6 -0
- package/dist/twig-sVb_x968.js +398 -0
- package/dist/types.d.ts +16 -0
- package/dist/typescript-CI6w3N2S.cjs +6 -0
- package/dist/typescript-DFdjl8Xj.js +349 -0
- package/dist/typespec-BSdcQAUL.js +123 -0
- package/dist/typespec-u6UGyzVa.cjs +6 -0
- package/dist/vb-BZywMj6s.js +378 -0
- package/dist/vb-CB1voSvV.cjs +6 -0
- package/dist/wgsl-eG2bS915.js +445 -0
- package/dist/wgsl-eXQZam6Q.cjs +303 -0
- package/dist/xml-CJndgX4z.js +101 -0
- package/dist/xml-CO5xAOVk.cjs +6 -0
- package/dist/yaml--krIkoJ8.js +212 -0
- package/dist/yaml-BYk2IWKs.cjs +6 -0
- package/package.json +73 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var s={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]};function e(i){let o=[];const a=i.split(/\t+|\r+|\n+| +/);for(let r=0;r<a.length;++r)a[r].length>0&&o.push(a[r]);return o}var c=e("true false"),m=e(`
|
|
7
|
+
alias
|
|
8
|
+
break
|
|
9
|
+
case
|
|
10
|
+
const
|
|
11
|
+
const_assert
|
|
12
|
+
continue
|
|
13
|
+
continuing
|
|
14
|
+
default
|
|
15
|
+
diagnostic
|
|
16
|
+
discard
|
|
17
|
+
else
|
|
18
|
+
enable
|
|
19
|
+
fn
|
|
20
|
+
for
|
|
21
|
+
if
|
|
22
|
+
let
|
|
23
|
+
loop
|
|
24
|
+
override
|
|
25
|
+
requires
|
|
26
|
+
return
|
|
27
|
+
struct
|
|
28
|
+
switch
|
|
29
|
+
var
|
|
30
|
+
while
|
|
31
|
+
`),l=e(`
|
|
32
|
+
NULL
|
|
33
|
+
Self
|
|
34
|
+
abstract
|
|
35
|
+
active
|
|
36
|
+
alignas
|
|
37
|
+
alignof
|
|
38
|
+
as
|
|
39
|
+
asm
|
|
40
|
+
asm_fragment
|
|
41
|
+
async
|
|
42
|
+
attribute
|
|
43
|
+
auto
|
|
44
|
+
await
|
|
45
|
+
become
|
|
46
|
+
binding_array
|
|
47
|
+
cast
|
|
48
|
+
catch
|
|
49
|
+
class
|
|
50
|
+
co_await
|
|
51
|
+
co_return
|
|
52
|
+
co_yield
|
|
53
|
+
coherent
|
|
54
|
+
column_major
|
|
55
|
+
common
|
|
56
|
+
compile
|
|
57
|
+
compile_fragment
|
|
58
|
+
concept
|
|
59
|
+
const_cast
|
|
60
|
+
consteval
|
|
61
|
+
constexpr
|
|
62
|
+
constinit
|
|
63
|
+
crate
|
|
64
|
+
debugger
|
|
65
|
+
decltype
|
|
66
|
+
delete
|
|
67
|
+
demote
|
|
68
|
+
demote_to_helper
|
|
69
|
+
do
|
|
70
|
+
dynamic_cast
|
|
71
|
+
enum
|
|
72
|
+
explicit
|
|
73
|
+
export
|
|
74
|
+
extends
|
|
75
|
+
extern
|
|
76
|
+
external
|
|
77
|
+
fallthrough
|
|
78
|
+
filter
|
|
79
|
+
final
|
|
80
|
+
finally
|
|
81
|
+
friend
|
|
82
|
+
from
|
|
83
|
+
fxgroup
|
|
84
|
+
get
|
|
85
|
+
goto
|
|
86
|
+
groupshared
|
|
87
|
+
highp
|
|
88
|
+
impl
|
|
89
|
+
implements
|
|
90
|
+
import
|
|
91
|
+
inline
|
|
92
|
+
instanceof
|
|
93
|
+
interface
|
|
94
|
+
layout
|
|
95
|
+
lowp
|
|
96
|
+
macro
|
|
97
|
+
macro_rules
|
|
98
|
+
match
|
|
99
|
+
mediump
|
|
100
|
+
meta
|
|
101
|
+
mod
|
|
102
|
+
module
|
|
103
|
+
move
|
|
104
|
+
mut
|
|
105
|
+
mutable
|
|
106
|
+
namespace
|
|
107
|
+
new
|
|
108
|
+
nil
|
|
109
|
+
noexcept
|
|
110
|
+
noinline
|
|
111
|
+
nointerpolation
|
|
112
|
+
noperspective
|
|
113
|
+
null
|
|
114
|
+
nullptr
|
|
115
|
+
of
|
|
116
|
+
operator
|
|
117
|
+
package
|
|
118
|
+
packoffset
|
|
119
|
+
partition
|
|
120
|
+
pass
|
|
121
|
+
patch
|
|
122
|
+
pixelfragment
|
|
123
|
+
precise
|
|
124
|
+
precision
|
|
125
|
+
premerge
|
|
126
|
+
priv
|
|
127
|
+
protected
|
|
128
|
+
pub
|
|
129
|
+
public
|
|
130
|
+
readonly
|
|
131
|
+
ref
|
|
132
|
+
regardless
|
|
133
|
+
register
|
|
134
|
+
reinterpret_cast
|
|
135
|
+
require
|
|
136
|
+
resource
|
|
137
|
+
restrict
|
|
138
|
+
self
|
|
139
|
+
set
|
|
140
|
+
shared
|
|
141
|
+
sizeof
|
|
142
|
+
smooth
|
|
143
|
+
snorm
|
|
144
|
+
static
|
|
145
|
+
static_assert
|
|
146
|
+
static_cast
|
|
147
|
+
std
|
|
148
|
+
subroutine
|
|
149
|
+
super
|
|
150
|
+
target
|
|
151
|
+
template
|
|
152
|
+
this
|
|
153
|
+
thread_local
|
|
154
|
+
throw
|
|
155
|
+
trait
|
|
156
|
+
try
|
|
157
|
+
type
|
|
158
|
+
typedef
|
|
159
|
+
typeid
|
|
160
|
+
typename
|
|
161
|
+
typeof
|
|
162
|
+
union
|
|
163
|
+
unless
|
|
164
|
+
unorm
|
|
165
|
+
unsafe
|
|
166
|
+
unsized
|
|
167
|
+
use
|
|
168
|
+
using
|
|
169
|
+
varying
|
|
170
|
+
virtual
|
|
171
|
+
volatile
|
|
172
|
+
wgsl
|
|
173
|
+
where
|
|
174
|
+
with
|
|
175
|
+
writeonly
|
|
176
|
+
yield
|
|
177
|
+
`),u=e(`
|
|
178
|
+
read write read_write
|
|
179
|
+
function private workgroup uniform storage
|
|
180
|
+
perspective linear flat
|
|
181
|
+
center centroid sample
|
|
182
|
+
vertex_index instance_index position front_facing frag_depth
|
|
183
|
+
local_invocation_id local_invocation_index
|
|
184
|
+
global_invocation_id workgroup_id num_workgroups
|
|
185
|
+
sample_index sample_mask
|
|
186
|
+
rgba8unorm
|
|
187
|
+
rgba8snorm
|
|
188
|
+
rgba8uint
|
|
189
|
+
rgba8sint
|
|
190
|
+
rgba16uint
|
|
191
|
+
rgba16sint
|
|
192
|
+
rgba16float
|
|
193
|
+
r32uint
|
|
194
|
+
r32sint
|
|
195
|
+
r32float
|
|
196
|
+
rg32uint
|
|
197
|
+
rg32sint
|
|
198
|
+
rg32float
|
|
199
|
+
rgba32uint
|
|
200
|
+
rgba32sint
|
|
201
|
+
rgba32float
|
|
202
|
+
bgra8unorm
|
|
203
|
+
`),p=e(`
|
|
204
|
+
bool
|
|
205
|
+
f16
|
|
206
|
+
f32
|
|
207
|
+
i32
|
|
208
|
+
sampler sampler_comparison
|
|
209
|
+
texture_depth_2d
|
|
210
|
+
texture_depth_2d_array
|
|
211
|
+
texture_depth_cube
|
|
212
|
+
texture_depth_cube_array
|
|
213
|
+
texture_depth_multisampled_2d
|
|
214
|
+
texture_external
|
|
215
|
+
texture_external
|
|
216
|
+
u32
|
|
217
|
+
`),d=e(`
|
|
218
|
+
array
|
|
219
|
+
atomic
|
|
220
|
+
mat2x2
|
|
221
|
+
mat2x3
|
|
222
|
+
mat2x4
|
|
223
|
+
mat3x2
|
|
224
|
+
mat3x3
|
|
225
|
+
mat3x4
|
|
226
|
+
mat4x2
|
|
227
|
+
mat4x3
|
|
228
|
+
mat4x4
|
|
229
|
+
ptr
|
|
230
|
+
texture_1d
|
|
231
|
+
texture_2d
|
|
232
|
+
texture_2d_array
|
|
233
|
+
texture_3d
|
|
234
|
+
texture_cube
|
|
235
|
+
texture_cube_array
|
|
236
|
+
texture_multisampled_2d
|
|
237
|
+
texture_storage_1d
|
|
238
|
+
texture_storage_2d
|
|
239
|
+
texture_storage_2d_array
|
|
240
|
+
texture_storage_3d
|
|
241
|
+
vec2
|
|
242
|
+
vec3
|
|
243
|
+
vec4
|
|
244
|
+
`),x=e(`
|
|
245
|
+
vec2i vec3i vec4i
|
|
246
|
+
vec2u vec3u vec4u
|
|
247
|
+
vec2f vec3f vec4f
|
|
248
|
+
vec2h vec3h vec4h
|
|
249
|
+
mat2x2f mat2x3f mat2x4f
|
|
250
|
+
mat3x2f mat3x3f mat3x4f
|
|
251
|
+
mat4x2f mat4x3f mat4x4f
|
|
252
|
+
mat2x2h mat2x3h mat2x4h
|
|
253
|
+
mat3x2h mat3x3h mat3x4h
|
|
254
|
+
mat4x2h mat4x3h mat4x4h
|
|
255
|
+
`),f=e(`
|
|
256
|
+
bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2
|
|
257
|
+
ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross
|
|
258
|
+
degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit
|
|
259
|
+
firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length
|
|
260
|
+
log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract
|
|
261
|
+
reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose
|
|
262
|
+
trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine
|
|
263
|
+
textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers
|
|
264
|
+
textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare
|
|
265
|
+
textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge
|
|
266
|
+
textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin
|
|
267
|
+
atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm
|
|
268
|
+
pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm
|
|
269
|
+
unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier
|
|
270
|
+
workgroupUniformLoad
|
|
271
|
+
`),_=e(`
|
|
272
|
+
&
|
|
273
|
+
&&
|
|
274
|
+
->
|
|
275
|
+
/
|
|
276
|
+
=
|
|
277
|
+
==
|
|
278
|
+
!=
|
|
279
|
+
>
|
|
280
|
+
>=
|
|
281
|
+
<
|
|
282
|
+
<=
|
|
283
|
+
%
|
|
284
|
+
-
|
|
285
|
+
--
|
|
286
|
+
+
|
|
287
|
+
++
|
|
288
|
+
|
|
|
289
|
+
||
|
|
290
|
+
*
|
|
291
|
+
<<
|
|
292
|
+
>>
|
|
293
|
+
+=
|
|
294
|
+
-=
|
|
295
|
+
*=
|
|
296
|
+
/=
|
|
297
|
+
%=
|
|
298
|
+
&=
|
|
299
|
+
|=
|
|
300
|
+
^=
|
|
301
|
+
>>=
|
|
302
|
+
<<=
|
|
303
|
+
`),g=/enable|requires|diagnostic/,n=new RegExp("[_\\p{XID_Start}]\\p{XID_Continue}*","u"),t="variable.predefined",h={tokenPostfix:".wgsl",defaultToken:"invalid",unicode:!0,atoms:c,keywords:m,reserved:l,predeclared_enums:u,predeclared_types:p,predeclared_type_generators:d,predeclared_type_aliases:x,predeclared_intrinsics:f,operators:_,symbols:/[!%&*+\-\.\/:;<=>^|_~,]+/,tokenizer:{root:[[g,"keyword","@directive"],[n,{cases:{"@atoms":t,"@keywords":"keyword","@reserved":"invalid","@predeclared_enums":t,"@predeclared_types":t,"@predeclared_type_generators":t,"@predeclared_type_aliases":t,"@predeclared_intrinsics":t,"@default":"identifier"}}],{include:"@commentOrSpace"},{include:"@numbers"},[/[{}()\[\]]/,"@brackets"],["@","annotation","@attribute"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/./,"invalid"]],commentOrSpace:[[/\s+/,"white"],[/\/\*/,"comment","@blockComment"],[/\/\/.*$/,"comment"]],blockComment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],attribute:[{include:"@commentOrSpace"},[/\w+/,"annotation","@pop"]],directive:[{include:"@commentOrSpace"},[/[()]/,"@brackets"],[/,/,"delimiter"],[n,"meta.content"],[/;/,"delimiter","@pop"]],numbers:[[/0[fh]/,"number.float"],[/[1-9][0-9]*[fh]/,"number.float"],[/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+[eE][+-]?[0-9]+[fh]?/,"number.float"],[/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/,"number.hex"],[/0[xX][0-9a-fA-F]+[iu]?/,"number.hex"],[/[1-9][0-9]*[iu]?/,"number"],[/0[iu]?/,"number"]]}};exports.conf=s;exports.language=h;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { m as r } from "./index-BvnET_j2.js";
|
|
2
|
+
/*!-----------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
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
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-CjGIE44E.cjs");/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,s=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of m(e))!d.call(t,n)&&n!==o&&c(t,n,{get:()=>e[n],enumerable:!(i=l(e,n))||i.enumerable});return t},u=(t,e,o)=>(s(t,e,"default"),o),a={};u(a,r.monaco_editor_core_star);var p={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:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:a.languages.IndentAction.Indent}}]},g={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=p;exports.language=g;
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { m as l } from "./index-BvnET_j2.js";
|
|
2
|
+
/*!-----------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
5
|
+
* Released under the MIT license
|
|
6
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
7
|
+
*-----------------------------------------------------------------------------*/
|
|
8
|
+
var i = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, s = Object.prototype.hasOwnProperty, d = (n, e, r, o) => {
|
|
9
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
10
|
+
for (let t of u(e))
|
|
11
|
+
!s.call(n, t) && t !== r && i(n, t, { get: () => e[t], enumerable: !(o = c(e, t)) || o.enumerable });
|
|
12
|
+
return n;
|
|
13
|
+
}, m = (n, e, r) => (d(n, e, "default"), r), a = {};
|
|
14
|
+
m(a, l);
|
|
15
|
+
var p = {
|
|
16
|
+
comments: {
|
|
17
|
+
lineComment: "#"
|
|
18
|
+
},
|
|
19
|
+
brackets: [
|
|
20
|
+
["{", "}"],
|
|
21
|
+
["[", "]"],
|
|
22
|
+
["(", ")"]
|
|
23
|
+
],
|
|
24
|
+
autoClosingPairs: [
|
|
25
|
+
{ open: "{", close: "}" },
|
|
26
|
+
{ open: "[", close: "]" },
|
|
27
|
+
{ open: "(", close: ")" },
|
|
28
|
+
{ open: '"', close: '"' },
|
|
29
|
+
{ open: "'", close: "'" }
|
|
30
|
+
],
|
|
31
|
+
surroundingPairs: [
|
|
32
|
+
{ open: "{", close: "}" },
|
|
33
|
+
{ open: "[", close: "]" },
|
|
34
|
+
{ open: "(", close: ")" },
|
|
35
|
+
{ open: '"', close: '"' },
|
|
36
|
+
{ open: "'", close: "'" }
|
|
37
|
+
],
|
|
38
|
+
folding: {
|
|
39
|
+
offSide: !0
|
|
40
|
+
},
|
|
41
|
+
onEnterRules: [
|
|
42
|
+
{
|
|
43
|
+
beforeText: /:\s*$/,
|
|
44
|
+
action: {
|
|
45
|
+
indentAction: a.languages.IndentAction.Indent
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}, f = {
|
|
50
|
+
tokenPostfix: ".yaml",
|
|
51
|
+
brackets: [
|
|
52
|
+
{ token: "delimiter.bracket", open: "{", close: "}" },
|
|
53
|
+
{ token: "delimiter.square", open: "[", close: "]" }
|
|
54
|
+
],
|
|
55
|
+
keywords: ["true", "True", "TRUE", "false", "False", "FALSE", "null", "Null", "Null", "~"],
|
|
56
|
+
numberInteger: /(?:0|[+-]?[0-9]+)/,
|
|
57
|
+
numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,
|
|
58
|
+
numberOctal: /0o[0-7]+/,
|
|
59
|
+
numberHex: /0x[0-9a-fA-F]+/,
|
|
60
|
+
numberInfinity: /[+-]?\.(?:inf|Inf|INF)/,
|
|
61
|
+
numberNaN: /\.(?:nan|Nan|NAN)/,
|
|
62
|
+
numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,
|
|
63
|
+
escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
|
|
64
|
+
tokenizer: {
|
|
65
|
+
root: [
|
|
66
|
+
{ include: "@whitespace" },
|
|
67
|
+
{ include: "@comment" },
|
|
68
|
+
// Directive
|
|
69
|
+
[/%[^ ]+.*$/, "meta.directive"],
|
|
70
|
+
// Document Markers
|
|
71
|
+
[/---/, "operators.directivesEnd"],
|
|
72
|
+
[/\.{3}/, "operators.documentEnd"],
|
|
73
|
+
// Block Structure Indicators
|
|
74
|
+
[/[-?:](?= )/, "operators"],
|
|
75
|
+
{ include: "@anchor" },
|
|
76
|
+
{ include: "@tagHandle" },
|
|
77
|
+
{ include: "@flowCollections" },
|
|
78
|
+
{ include: "@blockStyle" },
|
|
79
|
+
// Numbers
|
|
80
|
+
[/@numberInteger(?![ \t]*\S+)/, "number"],
|
|
81
|
+
[/@numberFloat(?![ \t]*\S+)/, "number.float"],
|
|
82
|
+
[/@numberOctal(?![ \t]*\S+)/, "number.octal"],
|
|
83
|
+
[/@numberHex(?![ \t]*\S+)/, "number.hex"],
|
|
84
|
+
[/@numberInfinity(?![ \t]*\S+)/, "number.infinity"],
|
|
85
|
+
[/@numberNaN(?![ \t]*\S+)/, "number.nan"],
|
|
86
|
+
[/@numberDate(?![ \t]*\S+)/, "number.date"],
|
|
87
|
+
// Key:Value pair
|
|
88
|
+
[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/, ["type", "white", "operators", "white"]],
|
|
89
|
+
{ include: "@flowScalars" },
|
|
90
|
+
// String nodes
|
|
91
|
+
[
|
|
92
|
+
/.+?(?=(\s+#|$))/,
|
|
93
|
+
{
|
|
94
|
+
cases: {
|
|
95
|
+
"@keywords": "keyword",
|
|
96
|
+
"@default": "string"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
],
|
|
101
|
+
// Flow Collection: Flow Mapping
|
|
102
|
+
object: [
|
|
103
|
+
{ include: "@whitespace" },
|
|
104
|
+
{ include: "@comment" },
|
|
105
|
+
// Flow Mapping termination
|
|
106
|
+
[/\}/, "@brackets", "@pop"],
|
|
107
|
+
// Flow Mapping delimiter
|
|
108
|
+
[/,/, "delimiter.comma"],
|
|
109
|
+
// Flow Mapping Key:Value delimiter
|
|
110
|
+
[/:(?= )/, "operators"],
|
|
111
|
+
// Flow Mapping Key:Value key
|
|
112
|
+
[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, "type"],
|
|
113
|
+
// Start Flow Style
|
|
114
|
+
{ include: "@flowCollections" },
|
|
115
|
+
{ include: "@flowScalars" },
|
|
116
|
+
// Scalar Data types
|
|
117
|
+
{ include: "@tagHandle" },
|
|
118
|
+
{ include: "@anchor" },
|
|
119
|
+
{ include: "@flowNumber" },
|
|
120
|
+
// Other value (keyword or string)
|
|
121
|
+
[
|
|
122
|
+
/[^\},]+/,
|
|
123
|
+
{
|
|
124
|
+
cases: {
|
|
125
|
+
"@keywords": "keyword",
|
|
126
|
+
"@default": "string"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
],
|
|
131
|
+
// Flow Collection: Flow Sequence
|
|
132
|
+
array: [
|
|
133
|
+
{ include: "@whitespace" },
|
|
134
|
+
{ include: "@comment" },
|
|
135
|
+
// Flow Sequence termination
|
|
136
|
+
[/\]/, "@brackets", "@pop"],
|
|
137
|
+
// Flow Sequence delimiter
|
|
138
|
+
[/,/, "delimiter.comma"],
|
|
139
|
+
// Start Flow Style
|
|
140
|
+
{ include: "@flowCollections" },
|
|
141
|
+
{ include: "@flowScalars" },
|
|
142
|
+
// Scalar Data types
|
|
143
|
+
{ include: "@tagHandle" },
|
|
144
|
+
{ include: "@anchor" },
|
|
145
|
+
{ include: "@flowNumber" },
|
|
146
|
+
// Other value (keyword or string)
|
|
147
|
+
[
|
|
148
|
+
/[^\],]+/,
|
|
149
|
+
{
|
|
150
|
+
cases: {
|
|
151
|
+
"@keywords": "keyword",
|
|
152
|
+
"@default": "string"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
],
|
|
157
|
+
// First line of a Block Style
|
|
158
|
+
multiString: [[/^( +).+$/, "string", "@multiStringContinued.$1"]],
|
|
159
|
+
// Further lines of a Block Style
|
|
160
|
+
// Workaround for indentation detection
|
|
161
|
+
multiStringContinued: [
|
|
162
|
+
[
|
|
163
|
+
/^( *).+$/,
|
|
164
|
+
{
|
|
165
|
+
cases: {
|
|
166
|
+
"$1==$S2": "string",
|
|
167
|
+
"@default": { token: "@rematch", next: "@popall" }
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
],
|
|
172
|
+
whitespace: [[/[ \t\r\n]+/, "white"]],
|
|
173
|
+
// Only line comments
|
|
174
|
+
comment: [[/#.*$/, "comment"]],
|
|
175
|
+
// Start Flow Collections
|
|
176
|
+
flowCollections: [
|
|
177
|
+
[/\[/, "@brackets", "@array"],
|
|
178
|
+
[/\{/, "@brackets", "@object"]
|
|
179
|
+
],
|
|
180
|
+
// Start Flow Scalars (quoted strings)
|
|
181
|
+
flowScalars: [
|
|
182
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
183
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
184
|
+
[/'[^']*'/, "string"],
|
|
185
|
+
[/"/, "string", "@doubleQuotedString"]
|
|
186
|
+
],
|
|
187
|
+
doubleQuotedString: [
|
|
188
|
+
[/[^\\"]+/, "string"],
|
|
189
|
+
[/@escapes/, "string.escape"],
|
|
190
|
+
[/\\./, "string.escape.invalid"],
|
|
191
|
+
[/"/, "string", "@pop"]
|
|
192
|
+
],
|
|
193
|
+
// Start Block Scalar
|
|
194
|
+
blockStyle: [[/[>|][0-9]*[+-]?$/, "operators", "@multiString"]],
|
|
195
|
+
// Numbers in Flow Collections (terminate with ,]})
|
|
196
|
+
flowNumber: [
|
|
197
|
+
[/@numberInteger(?=[ \t]*[,\]\}])/, "number"],
|
|
198
|
+
[/@numberFloat(?=[ \t]*[,\]\}])/, "number.float"],
|
|
199
|
+
[/@numberOctal(?=[ \t]*[,\]\}])/, "number.octal"],
|
|
200
|
+
[/@numberHex(?=[ \t]*[,\]\}])/, "number.hex"],
|
|
201
|
+
[/@numberInfinity(?=[ \t]*[,\]\}])/, "number.infinity"],
|
|
202
|
+
[/@numberNaN(?=[ \t]*[,\]\}])/, "number.nan"],
|
|
203
|
+
[/@numberDate(?=[ \t]*[,\]\}])/, "number.date"]
|
|
204
|
+
],
|
|
205
|
+
tagHandle: [[/\![^ ]*/, "tag"]],
|
|
206
|
+
anchor: [[/[&*][^ ]+/, "namespace"]]
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
export {
|
|
210
|
+
p as conf,
|
|
211
|
+
f as language
|
|
212
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CjGIE44E.cjs");/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var i=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,d=(n,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of u(e))!s.call(n,t)&&t!==r&&i(n,t,{get:()=>e[t],enumerable:!(o=c(e,t))||o.enumerable});return n},m=(n,e,r)=>(d(n,e,"default"),r),a={};m(a,l.monaco_editor_core_star);var b={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:a.languages.IndentAction.Indent}}]},p={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=b;exports.language=p;
|