@sanity/code-input 3.0.0-v3-studio.11 → 3.0.0-v3-studio.13
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 +3 -12
- package/lib/_chunks/editorSupport-895caf32.esm.js +2 -0
- package/lib/_chunks/editorSupport-895caf32.esm.js.map +1 -0
- package/lib/_chunks/editorSupport-bda3d360.js +2 -0
- package/lib/_chunks/editorSupport-bda3d360.js.map +1 -0
- package/lib/index.esm.js +2 -0
- package/lib/index.esm.js.map +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib/src/index.d.ts +116 -0
- package/package.json +35 -31
- package/src/CodeInput.tsx +6 -5
- package/src/index.ts +2 -2
- package/src/schema.tsx +1 -1
- package/lib/cjs/editorSupport.bbd31eae.js +0 -717
- package/lib/cjs/editorSupport.bbd31eae.js.map +0 -1
- package/lib/cjs/index.js +0 -729
- package/lib/cjs/index.js.map +0 -1
- package/lib/esm/editorSupport.739e7d0c.js +0 -714
- package/lib/esm/editorSupport.739e7d0c.js.map +0 -1
- package/lib/esm/index.js +0 -719
- package/lib/esm/index.js.map +0 -1
- package/lib/types/index.d.ts +0 -92
- package/lib/types/index.d.ts.map +0 -1
|
@@ -1,714 +0,0 @@
|
|
|
1
|
-
import $bPyF1$reactace from "react-ace";
|
|
2
|
-
import "ace-builds/src-noconflict/mode-batchfile";
|
|
3
|
-
import "ace-builds/src-noconflict/mode-csharp";
|
|
4
|
-
import "ace-builds/src-noconflict/mode-css";
|
|
5
|
-
import "ace-builds/src-noconflict/mode-golang";
|
|
6
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
7
|
-
import "ace-builds/src-noconflict/mode-java";
|
|
8
|
-
import "ace-builds/src-noconflict/mode-javascript";
|
|
9
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
10
|
-
import "ace-builds/src-noconflict/mode-jsx";
|
|
11
|
-
import "ace-builds/src-noconflict/mode-markdown";
|
|
12
|
-
import "ace-builds/src-noconflict/mode-mysql";
|
|
13
|
-
import "ace-builds/src-noconflict/mode-php";
|
|
14
|
-
import "ace-builds/src-noconflict/mode-python";
|
|
15
|
-
import "ace-builds/src-noconflict/mode-ruby";
|
|
16
|
-
import "ace-builds/src-noconflict/mode-sass";
|
|
17
|
-
import "ace-builds/src-noconflict/mode-scss";
|
|
18
|
-
import "ace-builds/src-noconflict/mode-sh";
|
|
19
|
-
import "ace-builds/src-noconflict/mode-text";
|
|
20
|
-
import "ace-builds/src-noconflict/mode-tsx";
|
|
21
|
-
import "ace-builds/src-noconflict/mode-typescript";
|
|
22
|
-
import "ace-builds/src-noconflict/mode-xml";
|
|
23
|
-
import "ace-builds/src-noconflict/mode-yaml";
|
|
24
|
-
import "ace-builds/src-noconflict/theme-github";
|
|
25
|
-
import "ace-builds/src-noconflict/theme-monokai";
|
|
26
|
-
import "ace-builds/src-noconflict/theme-terminal";
|
|
27
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
28
|
-
|
|
29
|
-
function $parcel$defineInteropFlag(a) {
|
|
30
|
-
Object.defineProperty(a, '__esModule', {value: true, configurable: true});
|
|
31
|
-
}
|
|
32
|
-
function $parcel$export(e, n, v, s) {
|
|
33
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
34
|
-
}
|
|
35
|
-
var $parcel$global =
|
|
36
|
-
typeof globalThis !== 'undefined'
|
|
37
|
-
? globalThis
|
|
38
|
-
: typeof self !== 'undefined'
|
|
39
|
-
? self
|
|
40
|
-
: typeof window !== 'undefined'
|
|
41
|
-
? window
|
|
42
|
-
: typeof global !== 'undefined'
|
|
43
|
-
? global
|
|
44
|
-
: {};
|
|
45
|
-
var parcelRequire = $parcel$global["parcelRequire07ce"];
|
|
46
|
-
parcelRequire.register("f97Qe", function(module, exports) {
|
|
47
|
-
|
|
48
|
-
$parcel$defineInteropFlag(module.exports);
|
|
49
|
-
|
|
50
|
-
$parcel$export(module.exports, "default", () => $1e18485111e06c65$export$2e2bcd8739ae039);
|
|
51
|
-
|
|
52
|
-
parcelRequire("5F5Py");
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
var $1e18485111e06c65$export$2e2bcd8739ae039 = (0, $bPyF1$reactace);
|
|
80
|
-
|
|
81
|
-
});
|
|
82
|
-
parcelRequire.register("5F5Py", function(module, exports) {
|
|
83
|
-
// Grammar from https://github.com/sanity-io/vscode-sanity
|
|
84
|
-
const $25b57fb107cb438e$var$rules = {
|
|
85
|
-
start: [
|
|
86
|
-
{
|
|
87
|
-
include: "#query"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
include: "#value"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
include: "#pair"
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
"#query": [
|
|
97
|
-
{
|
|
98
|
-
include: "#nullary-access-operator"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
include: "#arraylike"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
include: "#pipe"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
include: "#sort-order"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
include: "#filter"
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
"#variable": [
|
|
114
|
-
{
|
|
115
|
-
token: "variable.other.groq",
|
|
116
|
-
regex: /\$[_A-Za-z][_0-9A-Za-z]*/
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
"#keyword": [
|
|
120
|
-
{
|
|
121
|
-
token: "keyword.other.groq",
|
|
122
|
-
regex: /\b(?:asc|desc|in|match)\b/
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
"#comparison": [
|
|
126
|
-
{
|
|
127
|
-
token: "keyword.operator.comparison.groq",
|
|
128
|
-
// eslint-disable-next-line no-div-regex
|
|
129
|
-
regex: /==|!=|>=|<=|<!=>|<|>/
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
"#operator": [
|
|
133
|
-
{
|
|
134
|
-
token: "keyword.operator.arithmetic.groq",
|
|
135
|
-
regex: /\+|-|\*{1,2}|\/|%/
|
|
136
|
-
},
|
|
137
|
-
],
|
|
138
|
-
"#pipe": [
|
|
139
|
-
{
|
|
140
|
-
token: "keyword.operator.pipe.groq",
|
|
141
|
-
regex: /\|/
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
"#logical": [
|
|
145
|
-
{
|
|
146
|
-
token: "keyword.operator.logical.groq",
|
|
147
|
-
regex: /!|&&|\|\|/
|
|
148
|
-
},
|
|
149
|
-
],
|
|
150
|
-
"#reference": [
|
|
151
|
-
{
|
|
152
|
-
token: "keyword.operator.reference.groq",
|
|
153
|
-
regex: /->/
|
|
154
|
-
},
|
|
155
|
-
],
|
|
156
|
-
"#pair": [
|
|
157
|
-
{
|
|
158
|
-
include: "#identifier"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
include: "#value"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
include: "#filter"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
token: "keyword.operator.pair.groq",
|
|
168
|
-
regex: /[=]>/
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
"#arraylike": [
|
|
172
|
-
{
|
|
173
|
-
token: "punctuation.definition.bracket.begin.groq",
|
|
174
|
-
regex: /\[/,
|
|
175
|
-
push: [
|
|
176
|
-
{
|
|
177
|
-
token: [
|
|
178
|
-
"text",
|
|
179
|
-
"keyword.operator.descendant.groq"
|
|
180
|
-
],
|
|
181
|
-
regex: /(\])((?:\s*\.)?)/,
|
|
182
|
-
next: "pop"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
include: "#range"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
include: "#filter"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
include: "#array-values"
|
|
192
|
-
},
|
|
193
|
-
]
|
|
194
|
-
},
|
|
195
|
-
],
|
|
196
|
-
"#array": [
|
|
197
|
-
{
|
|
198
|
-
token: "punctuation.definition.bracket.begin.groq",
|
|
199
|
-
regex: /\[/,
|
|
200
|
-
push: [
|
|
201
|
-
{
|
|
202
|
-
token: "punctuation.definition.bracket.end.groq",
|
|
203
|
-
regex: /\]/,
|
|
204
|
-
next: "pop"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
include: "#array-values"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
defaultToken: "meta.structure.array.groq"
|
|
211
|
-
},
|
|
212
|
-
]
|
|
213
|
-
},
|
|
214
|
-
],
|
|
215
|
-
"#range": [
|
|
216
|
-
{
|
|
217
|
-
token: [
|
|
218
|
-
"meta.structure.range.groq",
|
|
219
|
-
"constant.numeric.groq",
|
|
220
|
-
"meta.structure.range.groq",
|
|
221
|
-
"keyword.operator.range.groq",
|
|
222
|
-
"meta.structure.range.groq",
|
|
223
|
-
"constant.numeric.groq",
|
|
224
|
-
"meta.structure.range.groq",
|
|
225
|
-
],
|
|
226
|
-
regex: /(\s*)(\d+)(\s*)(\.{2,3})(\s*)(\d+)(\s*)/
|
|
227
|
-
},
|
|
228
|
-
],
|
|
229
|
-
"#spread": [
|
|
230
|
-
{
|
|
231
|
-
token: "punctuation.definition.spread.begin.groq",
|
|
232
|
-
regex: /\.\.\./,
|
|
233
|
-
push: [
|
|
234
|
-
{
|
|
235
|
-
include: "#array"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
include: "#function-call"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
include: "#projection"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
token: "punctuation.definition.spread.end.groq",
|
|
245
|
-
regex: /(?=.)/,
|
|
246
|
-
next: "pop"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
defaultToken: "meta.structure.spread.groq"
|
|
250
|
-
},
|
|
251
|
-
]
|
|
252
|
-
},
|
|
253
|
-
],
|
|
254
|
-
"#array-values": [
|
|
255
|
-
{
|
|
256
|
-
include: "#value"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
include: "#spread"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
token: "punctuation.separator.array.groq",
|
|
263
|
-
regex: /,/
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
token: "invalid.illegal.expected-array-separator.groq",
|
|
267
|
-
regex: /[^\s\]]/
|
|
268
|
-
},
|
|
269
|
-
],
|
|
270
|
-
"#filter": [
|
|
271
|
-
{
|
|
272
|
-
include: "#function-call"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
include: "#keyword"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
include: "#constant"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
include: "#identifier"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
include: "#value"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
include: "#comparison"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
include: "#operator"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
include: "#logical"
|
|
294
|
-
},
|
|
295
|
-
],
|
|
296
|
-
"#comments": [
|
|
297
|
-
{
|
|
298
|
-
token: [
|
|
299
|
-
"punctuation.definition.comment.groq",
|
|
300
|
-
"comment.line.double-slash.js"
|
|
301
|
-
],
|
|
302
|
-
regex: /(\/\/)(.*$)/
|
|
303
|
-
},
|
|
304
|
-
],
|
|
305
|
-
"#nullary-access-operator": [
|
|
306
|
-
{
|
|
307
|
-
token: "constant.language.groq",
|
|
308
|
-
regex: /[*@^]/
|
|
309
|
-
},
|
|
310
|
-
],
|
|
311
|
-
"#constant": [
|
|
312
|
-
{
|
|
313
|
-
token: "constant.language.groq",
|
|
314
|
-
regex: /\b(?:true|false|null)\b/
|
|
315
|
-
},
|
|
316
|
-
],
|
|
317
|
-
"#number": [
|
|
318
|
-
{
|
|
319
|
-
token: "constant.numeric.groq",
|
|
320
|
-
regex: /-?(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:[eE][+-]?\d+)?)?/
|
|
321
|
-
},
|
|
322
|
-
],
|
|
323
|
-
"#named-projection": [
|
|
324
|
-
{
|
|
325
|
-
include: "#identifier"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
include: "#objectkey"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
include: "#projection"
|
|
332
|
-
},
|
|
333
|
-
],
|
|
334
|
-
"#projection": [
|
|
335
|
-
{
|
|
336
|
-
token: "punctuation.definition.projection.begin.groq",
|
|
337
|
-
regex: /\{/,
|
|
338
|
-
push: [
|
|
339
|
-
{
|
|
340
|
-
token: "punctuation.definition.projection.end.groq",
|
|
341
|
-
regex: /\}/,
|
|
342
|
-
next: "pop"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
include: "#identifier"
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
include: "#objectkey"
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
include: "#named-projection"
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
include: "#comments"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
include: "#spread"
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
include: "#pair"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
token: "punctuation.separator.projection.key-value.groq",
|
|
364
|
-
regex: /:/,
|
|
365
|
-
push: [
|
|
366
|
-
{
|
|
367
|
-
token: "punctuation.separator.projection.pair.groq",
|
|
368
|
-
regex: /,|(?=\})/,
|
|
369
|
-
next: "pop"
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
include: "#nullary-access-operator"
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
include: "#arraylike"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
include: "#value"
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
include: "#spread"
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
include: "#identifier"
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
include: "#operator"
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
include: "#comparison"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
include: "#pair"
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
token: "invalid.illegal.expected-projection-separator.groq",
|
|
397
|
-
regex: /[^\s,]/
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
defaultToken: "meta.structure.projection.value.groq"
|
|
401
|
-
},
|
|
402
|
-
]
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
token: "invalid.illegal.expected-projection-separator.groq",
|
|
406
|
-
regex: /[^\s},]/
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
defaultToken: "meta.structure.projection.groq"
|
|
410
|
-
},
|
|
411
|
-
]
|
|
412
|
-
},
|
|
413
|
-
],
|
|
414
|
-
"#string": [
|
|
415
|
-
{
|
|
416
|
-
include: "#single-string"
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
include: "#double-string"
|
|
420
|
-
},
|
|
421
|
-
],
|
|
422
|
-
"#double-string": [
|
|
423
|
-
{
|
|
424
|
-
token: "punctuation.definition.string.begin.groq",
|
|
425
|
-
regex: /"/,
|
|
426
|
-
push: [
|
|
427
|
-
{
|
|
428
|
-
token: "punctuation.definition.string.end.groq",
|
|
429
|
-
regex: /"/,
|
|
430
|
-
next: "pop"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
include: "#stringcontent"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
defaultToken: "string.quoted.double.groq"
|
|
437
|
-
},
|
|
438
|
-
]
|
|
439
|
-
},
|
|
440
|
-
],
|
|
441
|
-
"#single-string": [
|
|
442
|
-
{
|
|
443
|
-
token: "punctuation.definition.string.single.begin.groq",
|
|
444
|
-
regex: /'/,
|
|
445
|
-
push: [
|
|
446
|
-
{
|
|
447
|
-
token: "punctuation.definition.string.single.end.groq",
|
|
448
|
-
regex: /'/,
|
|
449
|
-
next: "pop"
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
include: "#stringcontent"
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
defaultToken: "string.quoted.single.groq"
|
|
456
|
-
},
|
|
457
|
-
]
|
|
458
|
-
},
|
|
459
|
-
],
|
|
460
|
-
"#objectkey": [
|
|
461
|
-
{
|
|
462
|
-
include: "#string"
|
|
463
|
-
},
|
|
464
|
-
],
|
|
465
|
-
"#stringcontent": [
|
|
466
|
-
{
|
|
467
|
-
token: "constant.character.escape.groq",
|
|
468
|
-
regex: /\\(?:["\\/bfnrt]|u[0-9a-fA-F]{4})/
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
token: "invalid.illegal.unrecognized-string-escape.groq",
|
|
472
|
-
regex: /\\./
|
|
473
|
-
},
|
|
474
|
-
],
|
|
475
|
-
"#sort-pair": [
|
|
476
|
-
{
|
|
477
|
-
token: [
|
|
478
|
-
"variable.other.readwrite.groq",
|
|
479
|
-
"text",
|
|
480
|
-
"keyword.other.groq"
|
|
481
|
-
],
|
|
482
|
-
regex: /([_A-Za-z][_0-9A-Za-z]*)(?:(\s*)(asc|desc))?/
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
token: [
|
|
486
|
-
"constant.language.groq",
|
|
487
|
-
"punctuation.definition.bracket.begin.groq"
|
|
488
|
-
],
|
|
489
|
-
regex: /(@)(\[)/,
|
|
490
|
-
push: [
|
|
491
|
-
{
|
|
492
|
-
token: [
|
|
493
|
-
"punctuation.definition.bracket.begin.groq",
|
|
494
|
-
"text",
|
|
495
|
-
"keyword.other.groq"
|
|
496
|
-
],
|
|
497
|
-
regex: /(\])(?:(\s*)(asc|desc))?/,
|
|
498
|
-
next: "pop"
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
include: "#string"
|
|
502
|
-
},
|
|
503
|
-
]
|
|
504
|
-
},
|
|
505
|
-
],
|
|
506
|
-
"#sort-order": [
|
|
507
|
-
{
|
|
508
|
-
token: "support.function.sortorder.begin.groq",
|
|
509
|
-
regex: /\border\s*\(/,
|
|
510
|
-
push: [
|
|
511
|
-
{
|
|
512
|
-
token: "support.function.sortorder.end.groq",
|
|
513
|
-
regex: /\)/,
|
|
514
|
-
next: "pop"
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
include: "#sort-pair"
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
token: "punctuation.separator.array.groq",
|
|
521
|
-
regex: /,/
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
token: "invalid.illegal.expected-sort-separator.groq",
|
|
525
|
-
regex: /[^\s\]]/
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
defaultToken: "support.function.sortorder.groq"
|
|
529
|
-
},
|
|
530
|
-
]
|
|
531
|
-
},
|
|
532
|
-
],
|
|
533
|
-
"#function-call": [
|
|
534
|
-
{
|
|
535
|
-
include: "#function-var-arg"
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
include: "#function-single-arg"
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
include: "#function-round"
|
|
542
|
-
},
|
|
543
|
-
],
|
|
544
|
-
"#function-var-arg": [
|
|
545
|
-
{
|
|
546
|
-
token: "support.function.vararg.begin.groq",
|
|
547
|
-
regex: /\b(?:coalesce|select)\s*\(/,
|
|
548
|
-
push: [
|
|
549
|
-
{
|
|
550
|
-
token: "support.function.vararg.end.groq",
|
|
551
|
-
regex: /\)/,
|
|
552
|
-
next: "pop"
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
include: "#value"
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
include: "#identifier"
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
include: "#filter"
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
include: "#pair"
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
token: "punctuation.separator.array.groq",
|
|
568
|
-
regex: /,/
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
defaultToken: "support.function.vararg.groq"
|
|
572
|
-
},
|
|
573
|
-
]
|
|
574
|
-
},
|
|
575
|
-
],
|
|
576
|
-
"#function-single-arg": [
|
|
577
|
-
{
|
|
578
|
-
token: "support.function.singlearg.begin.groq",
|
|
579
|
-
regex: /\b(?:count|defined|length|path|references)\s*\(/,
|
|
580
|
-
push: [
|
|
581
|
-
{
|
|
582
|
-
token: "support.function.singlearg.end.groq",
|
|
583
|
-
regex: /\)/,
|
|
584
|
-
next: "pop"
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
include: "#query"
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
include: "#identifier"
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
include: "#value"
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
include: "#pair"
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
defaultToken: "support.function.singlearg.groq"
|
|
600
|
-
},
|
|
601
|
-
]
|
|
602
|
-
},
|
|
603
|
-
],
|
|
604
|
-
"#identifier": [
|
|
605
|
-
{
|
|
606
|
-
token: [
|
|
607
|
-
"variable.other.readwrite.groq",
|
|
608
|
-
"text",
|
|
609
|
-
"punctuation.definition.block.js",
|
|
610
|
-
"text",
|
|
611
|
-
"keyword.operator.reference.groq",
|
|
612
|
-
],
|
|
613
|
-
regex: /([_A-Za-z][_0-9A-Za-z]*)(\s*)((?:\[\s*\])?)(\s*)(->)/
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
token: [
|
|
617
|
-
"variable.other.readwrite.groq",
|
|
618
|
-
"constant.language.groq",
|
|
619
|
-
"text",
|
|
620
|
-
"punctuation.definition.block.js",
|
|
621
|
-
"text",
|
|
622
|
-
"keyword.operator.descendant.groq",
|
|
623
|
-
],
|
|
624
|
-
regex: /(?:([_A-Za-z][_0-9A-Za-z]*)|([@^]))(\s*)((?:\[\s*\])?)(\s*)(\.)/
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
token: "variable.other.readwrite.groq",
|
|
628
|
-
regex: /[_A-Za-z][_0-9A-Za-z]*/
|
|
629
|
-
},
|
|
630
|
-
],
|
|
631
|
-
"#value": [
|
|
632
|
-
{
|
|
633
|
-
include: "#constant"
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
include: "#number"
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
include: "#string"
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
include: "#array"
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
include: "#variable"
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
include: "#projection"
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
include: "#comments"
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
include: "#function-call"
|
|
655
|
-
},
|
|
656
|
-
]
|
|
657
|
-
};
|
|
658
|
-
ace.define("ace/mode/groq_highlight_rules", [
|
|
659
|
-
"require",
|
|
660
|
-
"exports",
|
|
661
|
-
"module",
|
|
662
|
-
"ace/lib/oop",
|
|
663
|
-
"ace/mode/text_highlight_rules"
|
|
664
|
-
], (acequire, exports, _module)=>{
|
|
665
|
-
const oop = acequire("../lib/oop");
|
|
666
|
-
const TextHighlightRules = acequire("./text_highlight_rules").TextHighlightRules;
|
|
667
|
-
const GroqHighlightRules = function() {
|
|
668
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */ // @ts-ignore
|
|
669
|
-
this.$rules = $25b57fb107cb438e$var$rules;
|
|
670
|
-
// @ts-ignore
|
|
671
|
-
this.normalizeRules();
|
|
672
|
-
/* eslint-enable @typescript-eslint/ban-ts-comment */ };
|
|
673
|
-
oop.inherits(GroqHighlightRules, TextHighlightRules);
|
|
674
|
-
exports.GroqHighlightRules = GroqHighlightRules;
|
|
675
|
-
});
|
|
676
|
-
ace.define("ace/mode/groq", [
|
|
677
|
-
"require",
|
|
678
|
-
"exports",
|
|
679
|
-
"module",
|
|
680
|
-
"ace/lib/oop",
|
|
681
|
-
"ace/mode/text",
|
|
682
|
-
"ace/tokenizer",
|
|
683
|
-
"ace/mode/groq_highlight_rules",
|
|
684
|
-
"ace/mode/folding/cstyle",
|
|
685
|
-
], (acequire, exports, _module)=>{
|
|
686
|
-
// eslint-disable-next-line strict
|
|
687
|
-
"use strict";
|
|
688
|
-
const oop = acequire("../lib/oop");
|
|
689
|
-
const TextMode = acequire("./text").Mode;
|
|
690
|
-
const Tokenizer = acequire("../tokenizer").Tokenizer;
|
|
691
|
-
const GroqHighlightRules = acequire("./groq_highlight_rules").GroqHighlightRules;
|
|
692
|
-
const FoldMode = acequire("./folding/cstyle").FoldMode;
|
|
693
|
-
const Mode = function() {
|
|
694
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */ const highlighter = new GroqHighlightRules();
|
|
695
|
-
// @ts-ignore
|
|
696
|
-
this.foldingRules = new FoldMode();
|
|
697
|
-
// @ts-ignore
|
|
698
|
-
this.$tokenizer = new Tokenizer(highlighter.getRules());
|
|
699
|
-
// @ts-ignore
|
|
700
|
-
this.$keywordList = highlighter.$keywordList;
|
|
701
|
-
/* eslint-enable @typescript-eslint/ban-ts-comment */ };
|
|
702
|
-
oop.inherits(Mode, TextMode);
|
|
703
|
-
(function() {
|
|
704
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */ // @ts-ignore
|
|
705
|
-
this.lineCommentStart = "'";
|
|
706
|
-
/* eslint-enable @typescript-eslint/ban-ts-comment */ }).call(Mode.prototype);
|
|
707
|
-
exports.Mode = Mode;
|
|
708
|
-
});
|
|
709
|
-
|
|
710
|
-
});
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
//# sourceMappingURL=editorSupport.739e7d0c.js.map
|