@dronico/droni-kit 1.7.2 → 1.7.3
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/CHANGELOG.md +7 -0
- package/dist/abap-CrVaG5QI.cjs +6 -0
- package/dist/abap-D0Neqhq6.js +1404 -0
- package/dist/apex-B5LhxkeG.js +332 -0
- package/dist/apex-CGiaaokt.cjs +6 -0
- package/dist/assets/css.worker-DNgQEC96.js +84 -0
- package/dist/assets/editor.worker-BKD3YLiN.js +12 -0
- package/dist/assets/html.worker-B7xpmB-M.js +461 -0
- package/dist/assets/json.worker-td2JV8fN.js +49 -0
- package/dist/assets/ts.worker-CqZGdM85.js +51334 -0
- package/dist/azcli-BrBH0QTU.js +74 -0
- package/dist/azcli-CCWOS89X.cjs +6 -0
- package/dist/bat-BfzAov64.js +106 -0
- package/dist/bat-dplVPQ-_.cjs +6 -0
- package/dist/bicep-C3bCSWel.js +108 -0
- package/dist/bicep-Q9zrsOvk.cjs +7 -0
- package/dist/cameligo-Dr5j7v0u.cjs +6 -0
- package/dist/cameligo-sFL5plcd.js +180 -0
- package/dist/clojure-CfeExRz0.js +767 -0
- package/dist/clojure-DPJGbZtj.cjs +6 -0
- package/dist/coffee-CUV2cHk6.cjs +6 -0
- package/dist/coffee-Xws5K0WL.js +238 -0
- package/dist/cpp-CqOUEpxN.js +395 -0
- package/dist/cpp-DyuKq4fH.cjs +6 -0
- package/dist/csharp-DVLiBOZb.js +332 -0
- package/dist/csharp-d4dFAWKM.cjs +6 -0
- package/dist/csp-DVFp9bw5.js +59 -0
- package/dist/csp-Lc8LbON9.cjs +6 -0
- package/dist/css-D8IzNaWL.cjs +8 -0
- package/dist/css-DwARn2R6.js +193 -0
- package/dist/cssMode--MfDhlXW.js +1577 -0
- package/dist/cssMode-B8S_b__C.cjs +9 -0
- package/dist/cypher-BuSmvVBI.cjs +6 -0
- package/dist/cypher-uY0Mffat.js +269 -0
- package/dist/dart-D27H-mX_.js +287 -0
- package/dist/dart-d-sZXKUo.cjs +6 -0
- package/dist/dockerfile-CmV85WZK.js +136 -0
- package/dist/dockerfile-OepqCuVM.cjs +6 -0
- package/dist/droni-kit.cjs.js +1 -1009
- package/dist/droni-kit.css +1 -1
- package/dist/droni-kit.es.js +7 -76246
- package/dist/ecl--fKn7yzB.js +462 -0
- package/dist/ecl-GFERKf5i.cjs +6 -0
- package/dist/elixir-9a1efda4.cjs +6 -0
- package/dist/elixir-DUhH17ON.js +575 -0
- package/dist/flow9-B3Dx2LLe.js +148 -0
- package/dist/flow9-DsqME3Wt.cjs +6 -0
- package/dist/freemarker2-ApUh3Ubc.cjs +8 -0
- package/dist/freemarker2-B6ampScX.js +995 -0
- package/dist/fsharp-DtZL2hil.cjs +6 -0
- package/dist/fsharp-SyqBfUAR.js +223 -0
- package/dist/go-B11TqKJA.cjs +6 -0
- package/dist/go-BbMR2tdT.js +224 -0
- package/dist/graphql-DDJE6tIl.js +157 -0
- package/dist/graphql-DrfV554J.cjs +6 -0
- package/dist/handlebars-Cbhqp1NE.js +425 -0
- package/dist/handlebars-Ce21uehy.cjs +6 -0
- package/dist/hcl-B0mc1H5M.cjs +6 -0
- package/dist/hcl-YBvpaUqf.js +189 -0
- package/dist/html-BDmPyCbL.js +314 -0
- package/dist/html-BTFiH6Sw.cjs +6 -0
- package/dist/htmlMode-B18NiCAi.cjs +9 -0
- package/dist/htmlMode-BUHFgZKE.js +1587 -0
- package/dist/index-B5gLucco.js +113180 -0
- package/dist/index-BYLdWIQo.cjs +1504 -0
- package/dist/ini-Ct73dBtM.js +77 -0
- package/dist/ini-ymhBH5HG.cjs +6 -0
- package/dist/java-C_jlkwoG.js +238 -0
- package/dist/java-D4zTn_HA.cjs +6 -0
- package/dist/javascript-BR0mMjV4.js +76 -0
- package/dist/javascript-DrLpnVkz.cjs +6 -0
- package/dist/jsonMode-DHhRjk7d.cjs +15 -0
- package/dist/jsonMode-DvjeLIcS.js +2002 -0
- package/dist/julia-D8WE5U1e.js +517 -0
- package/dist/julia-Dp7_oxTx.cjs +6 -0
- package/dist/kotlin-DN07yPPp.cjs +6 -0
- package/dist/kotlin-Zy9aq5yB.js +259 -0
- package/dist/less-CtJmsSxx.cjs +7 -0
- package/dist/less-sZ0iHtE8.js +168 -0
- package/dist/lexon-BH122-aN.cjs +6 -0
- package/dist/lexon-CsdNL29A.js +163 -0
- package/dist/liquid-DBEv3cQo.cjs +6 -0
- package/dist/liquid-c8EQsxJL.js +246 -0
- package/dist/lua-C2YJo0zw.js +168 -0
- package/dist/lua-DF1giqni.cjs +6 -0
- package/dist/m3-BSVLgJdx.cjs +6 -0
- package/dist/m3-CPLP40SG.js +216 -0
- package/dist/markdown-B1mf5e0R.js +235 -0
- package/dist/markdown-DqkJT7wW.cjs +6 -0
- package/dist/mdx-1XKmgriI.js +171 -0
- package/dist/mdx-BLFumXRM.cjs +6 -0
- package/dist/mips-DA33BZX1.js +204 -0
- package/dist/mips-HcsFOvwE.cjs +6 -0
- package/dist/msdax-CCYFIQsP.js +381 -0
- package/dist/msdax-D8wkgf9t.cjs +6 -0
- package/dist/mysql-D1qSUjcB.cjs +6 -0
- package/dist/mysql-hjmIjL-D.js +884 -0
- package/dist/objective-c-BcY1nQEp.cjs +6 -0
- package/dist/objective-c-RRCpEmqC.js +189 -0
- package/dist/pascal-C6VID8iC.cjs +6 -0
- package/dist/pascal-CeV8XfxB.js +257 -0
- package/dist/pascaligo-CtEkUcZy.cjs +6 -0
- package/dist/pascaligo-IEEGVJAJ.js +170 -0
- package/dist/perl-B5-QbHq_.js +632 -0
- package/dist/perl-BS5MoSit.cjs +6 -0
- package/dist/pgsql-DSQqzbUN.cjs +6 -0
- package/dist/pgsql-s6kqEJmi.js +857 -0
- package/dist/php-CWWqzOo8.js +506 -0
- package/dist/php-Dcbv8it3.cjs +6 -0
- package/dist/pla-BKGu3P8x.cjs +6 -0
- package/dist/pla-FSvb_YP_.js +143 -0
- package/dist/postiats-DQdscQXO.js +913 -0
- package/dist/postiats-lASv8P6N.cjs +6 -0
- package/dist/powerquery-BuqmBiPU.cjs +6 -0
- package/dist/powerquery-CtA5JA1I.js +896 -0
- package/dist/powershell-CtRTGCOm.cjs +6 -0
- package/dist/powershell-DglEq96N.js +245 -0
- package/dist/protobuf-BSepub3e.js +426 -0
- package/dist/protobuf-Dk87ns3u.cjs +7 -0
- package/dist/pug-B1847F4G.js +408 -0
- package/dist/pug-CVbk24PQ.cjs +6 -0
- package/dist/python-CFCwn4yH.cjs +6 -0
- package/dist/python-kCX2MsY7.js +307 -0
- package/dist/qsharp-BSix4Z0w.cjs +6 -0
- package/dist/qsharp-D4i0Nqg9.js +307 -0
- package/dist/r-CSIGVqGj.cjs +6 -0
- package/dist/r-cdRigKxa.js +249 -0
- package/dist/razor-BwatS76l.cjs +6 -0
- package/dist/razor-CJ2-OlVm.js +556 -0
- package/dist/redis-1SUKo9jD.cjs +6 -0
- package/dist/redis-D9MFxvE8.js +308 -0
- package/dist/redshift-BS1FVf13.cjs +6 -0
- package/dist/redshift-CmCnsvL-.js +815 -0
- package/dist/restructuredtext-CWy8J51t.js +180 -0
- package/dist/restructuredtext-DU-k0-PC.cjs +6 -0
- package/dist/ruby-WP-c36m5.js +517 -0
- package/dist/ruby-aigiByO4.cjs +6 -0
- package/dist/rust-Q9FLdYpu.js +349 -0
- package/dist/rust-adCJoS28.cjs +6 -0
- package/dist/sb-C54-JBGT.js +121 -0
- package/dist/sb-CiUR99st.cjs +6 -0
- package/dist/scala-CzbFImc5.js +376 -0
- package/dist/scala-Tb5I4vBh.cjs +6 -0
- package/dist/scheme-BMUadJWp.cjs +6 -0
- package/dist/scheme-BhfDmYN3.js +114 -0
- package/dist/scss-BICI8Lvl.cjs +8 -0
- package/dist/scss-CEmiBXpS.js +268 -0
- package/dist/shell-BUjduzW4.cjs +6 -0
- package/dist/shell-Bmc1VhG0.js +227 -0
- package/dist/solidity-C9Q2I8Hh.js +1373 -0
- package/dist/solidity-DFZoFjgL.cjs +6 -0
- package/dist/sophia-B_a5zu_Y.cjs +6 -0
- package/dist/sophia-jWa1UyKz.js +205 -0
- package/dist/sparql-C-N2tZtn.cjs +6 -0
- package/dist/sparql-CM7jctbc.js +207 -0
- package/dist/sql-CVdEafkq.cjs +6 -0
- package/dist/sql-WzihTkbg.js +859 -0
- package/dist/st-2HB7Hiwr.cjs +6 -0
- package/dist/st-6y7_3aup.js +422 -0
- package/dist/swift-k-0zxG_D.js +318 -0
- package/dist/swift-xGTYXUAm.cjs +8 -0
- package/dist/systemverilog-BaPbkNTu.cjs +6 -0
- package/dist/systemverilog-Pnr5_rIP.js +582 -0
- package/dist/tcl-SSKta9Un.cjs +6 -0
- package/dist/tcl-fNPXval8.js +238 -0
- package/dist/tsMode-RB_vd_eb.cjs +16 -0
- package/dist/tsMode-Rf8OU01s.js +895 -0
- package/dist/twig-ByEpcNlL.cjs +6 -0
- package/dist/twig-L2MkztkV.js +398 -0
- package/dist/typescript-CV2SvKu1.cjs +6 -0
- package/dist/typescript-CaxFA8LZ.js +349 -0
- package/dist/typespec-Bxe2hBLx.cjs +6 -0
- package/dist/typespec-Cqqo-3Pt.js +123 -0
- package/dist/vb-B5YC2xN9.js +378 -0
- package/dist/vb-m8wPqU1B.cjs +6 -0
- package/dist/wgsl-B-_uRex7.js +445 -0
- package/dist/wgsl-CPwT7Vox.cjs +303 -0
- package/dist/xml-BSn2vC2Q.cjs +6 -0
- package/dist/xml-BYNZTm-o.js +101 -0
- package/dist/yaml-C7dSJq0N.cjs +6 -0
- package/dist/yaml-Czj6pQn5.js +212 -0
- package/package.json +1 -1
|
@@ -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.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
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,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-BYLdWIQo.cjs");/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
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,101 @@
|
|
|
1
|
+
import { m as r } from "./index-B5gLucco.js";
|
|
2
|
+
/*!-----------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
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 l=require("./index-BYLdWIQo.cjs");/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
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;
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { m as l } from "./index-B5gLucco.js";
|
|
2
|
+
/*!-----------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
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
|
+
};
|