@iyio/syn-taxi 0.7.43 → 0.8.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.
Files changed (70) hide show
  1. package/package.json +13 -20
  2. package/src/index.d.ts +8 -8
  3. package/src/index.js +8 -11
  4. package/src/index.js.map +1 -1
  5. package/src/lib/CodeInput.js +38 -42
  6. package/src/lib/CodeInput.js.map +1 -1
  7. package/src/lib/CodeView.js +11 -14
  8. package/src/lib/CodeView.js.map +1 -1
  9. package/src/lib/LazyCodeInput.d.ts +1 -1
  10. package/src/lib/LazyCodeInput.js +5 -8
  11. package/src/lib/LazyCodeInput.js.map +1 -1
  12. package/src/lib/LazyCodeView.d.ts +1 -1
  13. package/src/lib/LazyCodeView.js +5 -8
  14. package/src/lib/LazyCodeView.js.map +1 -1
  15. package/src/lib/LineNumbers.js +11 -14
  16. package/src/lib/LineNumbers.js.map +1 -1
  17. package/src/lib/grammar/atDotCss.d.ts +7 -7
  18. package/src/lib/grammar/atDotCss.js +1 -4
  19. package/src/lib/grammar/atDotCss.js.map +1 -1
  20. package/src/lib/grammar/convo.js +1 -4
  21. package/src/lib/grammar/convo.js.map +1 -1
  22. package/src/lib/grammar/mdx.d.ts +22 -22
  23. package/src/lib/grammar/mdx.js +1 -4
  24. package/src/lib/grammar/mdx.js.map +1 -1
  25. package/src/lib/lib-design-tokens.d.ts +1 -1
  26. package/src/lib/lib-design-tokens.js +5 -9
  27. package/src/lib/lib-design-tokens.js.map +1 -1
  28. package/src/lib/shiki.js +26 -33
  29. package/src/lib/shiki.js.map +1 -1
  30. package/src/lib/tokens.js +3 -6
  31. package/src/lib/tokens.js.map +1 -1
  32. package/src/package.json +1 -4
  33. package/tsconfig.tsbuildinfo +1 -0
  34. package/esm/package.json +0 -3
  35. package/esm/src/index.d.ts +0 -8
  36. package/esm/src/index.js +0 -9
  37. package/esm/src/index.js.map +0 -1
  38. package/esm/src/lib/CodeInput.d.ts +0 -40
  39. package/esm/src/lib/CodeInput.js +0 -345
  40. package/esm/src/lib/CodeInput.js.map +0 -1
  41. package/esm/src/lib/CodeView.d.ts +0 -13
  42. package/esm/src/lib/CodeView.js +0 -38
  43. package/esm/src/lib/CodeView.js.map +0 -1
  44. package/esm/src/lib/LazyCodeInput.d.ts +0 -6
  45. package/esm/src/lib/LazyCodeInput.js +0 -7
  46. package/esm/src/lib/LazyCodeInput.js.map +0 -1
  47. package/esm/src/lib/LazyCodeView.d.ts +0 -6
  48. package/esm/src/lib/LazyCodeView.js +0 -7
  49. package/esm/src/lib/LazyCodeView.js.map +0 -1
  50. package/esm/src/lib/LineNumbers.d.ts +0 -10
  51. package/esm/src/lib/LineNumbers.js +0 -46
  52. package/esm/src/lib/LineNumbers.js.map +0 -1
  53. package/esm/src/lib/grammar/atDotCss.d.ts +0 -1349
  54. package/esm/src/lib/grammar/atDotCss.js +0 -2157
  55. package/esm/src/lib/grammar/atDotCss.js.map +0 -1
  56. package/esm/src/lib/grammar/convo.d.ts +0 -1035
  57. package/esm/src/lib/grammar/convo.js +0 -968
  58. package/esm/src/lib/grammar/convo.js.map +0 -1
  59. package/esm/src/lib/grammar/mdx.d.ts +0 -2812
  60. package/esm/src/lib/grammar/mdx.js +0 -3758
  61. package/esm/src/lib/grammar/mdx.js.map +0 -1
  62. package/esm/src/lib/lib-design-tokens.d.ts +0 -4
  63. package/esm/src/lib/lib-design-tokens.js +0 -7
  64. package/esm/src/lib/lib-design-tokens.js.map +0 -1
  65. package/esm/src/lib/shiki.d.ts +0 -9
  66. package/esm/src/lib/shiki.js +0 -159
  67. package/esm/src/lib/shiki.js.map +0 -1
  68. package/esm/src/lib/tokens.d.ts +0 -41
  69. package/esm/src/lib/tokens.js +0 -52
  70. package/esm/src/lib/tokens.js.map +0 -1
@@ -1,968 +0,0 @@
1
- // to inspect grammar tokens
2
- // open command palette (ctrl+shift+p)
3
- // Search "Inspect Editor Tokens and Scopes"
4
- // or (shift+alt+cmd+i)
5
- /**
6
- * Convo-Lang grammar
7
- */
8
- export const convoGrammar = {
9
- "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
10
- "name": "convo",
11
- "scopeName": "source.convo",
12
- "autoLoadMdCodeBlocks": true,
13
- "embeddedLangsLazy": [
14
- "json", "xml", "javascript", "python"
15
- ],
16
- "uuid": "B7A8C571-820A-4958-A997-76DFD822B0FE",
17
- "fileTypes": ["convo"],
18
- "patterns": [
19
- { "include": "#expression" }
20
- ],
21
- "repository": {
22
- "expression": {
23
- "patterns": [
24
- { "include": "#interpolation" },
25
- { "include": "#topLevelStatements" },
26
- { "include": "#controlFlowStatements" },
27
- { "include": "#insert" },
28
- { "include": "#nop" },
29
- { "include": "#thinkingRole" },
30
- { "include": "#function" },
31
- { "include": "#role" },
32
- { "include": "#functionBody" },
33
- { "include": "#functionType" },
34
- { "include": "#msgStringStartMsg" },
35
- { "include": "#msgStringBackslash" },
36
- { "include": "#embedEscape" },
37
- { "include": "#embed" },
38
- { "include": "#markdownLink" },
39
- { "include": "#xml" },
40
- { "include": "#specialWords" },
41
- { "include": "#comment" },
42
- { "include": "#tag" },
43
- { "include": "#fenced_code_block" },
44
- { "include": "#functionExternEmbed" }
45
- ]
46
- },
47
- "interpolation": {
48
- "contentName": "meta.embedded.line.ts",
49
- "begin": "\\$\\{",
50
- "beginCaptures": {
51
- "0": {
52
- "name": "punctuation.definition.interpolation.begin.bracket.curly.scss punctuation.definition.template-expression.begin.js"
53
- }
54
- },
55
- "end": "}",
56
- "endCaptures": {
57
- "0": {
58
- "name": "punctuation.definition.interpolation.end.bracket.curly.scss punctuation.definition.template-expression.end.js"
59
- }
60
- },
61
- "name": "variable.interpolation.scss",
62
- "patterns": [
63
- {
64
- "include": "source.ts#expression"
65
- },
66
- {
67
- "include": "#interpolation"
68
- }
69
- ]
70
- },
71
- "role": {
72
- "match": "^\\s*(>)\\s*(\\w+)\\s*([\\*\\?!]*)",
73
- "captures": {
74
- "1": {
75
- "name": "keyword.control"
76
- },
77
- "2": {
78
- "name": "storage.modifier"
79
- },
80
- "3": {
81
- "name": "entity.name.type"
82
- }
83
- }
84
- },
85
- "specialWords": {
86
- "match": "(\\$\\$(RAG|CONTENT|CHILD|CHILDREN|SLOT_\\w+)\\$\\$)",
87
- "captures": {
88
- "1": {
89
- "name": "keyword.control"
90
- }
91
- }
92
- },
93
- "thinkingRole": {
94
- "match": "^\\s*(>)\\s*(thinking)\\s+([\\w \\t]+)((\\()([^\\)]*)(\\)))?",
95
- "captures": {
96
- "1": {
97
- "name": "keyword.control"
98
- },
99
- "2": {
100
- "name": "storage.modifier"
101
- },
102
- "3": {
103
- "name": "constant.character.escape",
104
- "patterns": [{ "include": "#thinkingRoleTrigger" }]
105
- },
106
- "5": { "name": "constant.character.escape" },
107
- "6": { "patterns": [{ "include": "#stringMods" }] },
108
- "7": { "name": "constant.character.escape" }
109
- }
110
- },
111
- "thinkingRoleTrigger": {
112
- "match": "(\\w+)\\s+(\\w+)",
113
- "captures": {
114
- "1": { "name": "variable" }
115
- }
116
- },
117
- "embedEscape": {
118
- "match": "(\\\\){\\{",
119
- "captures": {
120
- "1": {
121
- "name": "constant.character.escape"
122
- }
123
- }
124
- },
125
- "embed": {
126
- "begin": "\\{\\{",
127
- "end": "\\}\\}",
128
- "beginCaptures": {
129
- "0": {
130
- "name": "entity.name.tag"
131
- }
132
- },
133
- "endCaptures": {
134
- "0": {
135
- "name": "entity.name.tag"
136
- }
137
- },
138
- "patterns": [{ "include": "#lineExpression" }]
139
- },
140
- "topLevelStatements": {
141
- "begin": "^\\s*(>)\\s*(do|thinkingResult|result|define|debug|end)",
142
- "end": "(?=\\s*>)",
143
- "beginCaptures": {
144
- "1": {
145
- "name": "keyword.control"
146
- },
147
- "2": {
148
- "name": "keyword.control"
149
- }
150
- },
151
- "patterns": [
152
- { "include": "#bodyComment" },
153
- { "include": "#tag" },
154
- { "include": "#functionCall" },
155
- { "include": "#paramLineExpression" }
156
- ]
157
- },
158
- "controlFlowStatements": {
159
- "match": "^\\s*(>)\\s*(parallelEnd|parallel|insertEnd|agentEnd|queue|flush)",
160
- "captures": {
161
- "1": {
162
- "name": "keyword.control"
163
- },
164
- "2": {
165
- "name": "keyword.control"
166
- }
167
- }
168
- },
169
- "insert": {
170
- "match": "^\\s*(>)\\s*(insert)\\s*((before|after)|(\\w+))\\s*(.*)",
171
- "captures": {
172
- "1": {
173
- "name": "keyword.control"
174
- },
175
- "2": {
176
- "name": "keyword.control"
177
- },
178
- "4": {
179
- "name": "storage.modifier"
180
- },
181
- "5": {
182
- "name": "invalid"
183
- },
184
- "6": {
185
- "name": "string"
186
- }
187
- }
188
- },
189
- "nop": {
190
- "match": "^\\s*(>)\\s*(nop)(\\s*|\\s(.*))$",
191
- "captures": {
192
- "1": {
193
- "name": "keyword.control"
194
- },
195
- "2": {
196
- "name": "constant.character.escape"
197
- },
198
- "3": {
199
- "name": "comment"
200
- }
201
- }
202
- },
203
- "function": {
204
- "begin": "^\\s*(>)\\s*(agent|public|local)?\\s*(\\w+)?\\s+(\\w+)\\s*([\\*\\?!]*)\\s*(\\()",
205
- "end": "\\)",
206
- "beginCaptures": {
207
- "1": {
208
- "name": "keyword.control"
209
- },
210
- "2": {
211
- "name": "keyword.control"
212
- },
213
- "3": {
214
- "name": "storage.modifier"
215
- },
216
- "4": {
217
- "name": "support.function"
218
- },
219
- "5": {
220
- "name": "entity.name.type"
221
- },
222
- "6": {
223
- "name": "keyword.control"
224
- }
225
- },
226
- "endCaptures": {
227
- "0": {
228
- "name": "keyword.control"
229
- }
230
- },
231
- "patterns": [
232
- { "include": "#bodyComment" },
233
- { "include": "#tag" },
234
- { "include": "#functionCall" },
235
- { "include": "#paramLineExpression" }
236
- ]
237
- },
238
- "functionBody": {
239
- "begin": "(\\w+)?\\s*(->)\\s*(\\w+)?\\s*(\\()",
240
- "end": "\\)",
241
- "beginCaptures": {
242
- "1": {
243
- "name": "entity.name.type"
244
- },
245
- "2": {
246
- "name": "keyword.control"
247
- },
248
- "3": {
249
- "name": "entity.name.type"
250
- },
251
- "4": {
252
- "name": "keyword.control"
253
- }
254
- },
255
- "endCaptures": {
256
- "0": {
257
- "name": "keyword.control"
258
- }
259
- },
260
- "patterns": [
261
- { "include": "#bodyComment" },
262
- { "include": "#tag" },
263
- { "include": "#functionCall" },
264
- { "include": "#lineExpression" }
265
- ]
266
- },
267
- "functionType": {
268
- "match": "(\\w+)?\\s*(->)\\s*(\\w+)",
269
- "captures": {
270
- "1": {
271
- "name": "entity.name.type"
272
- },
273
- "2": {
274
- "name": "keyword.control"
275
- },
276
- "3": {
277
- "name": "entity.name.type"
278
- }
279
- },
280
- "patterns": [
281
- { "include": "#bodyComment" },
282
- { "include": "#tag" },
283
- { "include": "#functionCall" },
284
- { "include": "#lineExpression" }
285
- ]
286
- },
287
- "functionExternEmbed": {
288
- "match": "(->)",
289
- "captures": {
290
- "1": {
291
- "name": "keyword.control"
292
- }
293
- }
294
- },
295
- "functionCall": {
296
- "patterns": [
297
- { "include": "#functionCallSystem" },
298
- { "include": "#functionCallOperator" },
299
- { "include": "#functionCallLogic" },
300
- { "include": "#functionCallType" },
301
- { "include": "#functionCallDefault" }
302
- ]
303
- },
304
- "functionCallSystem": {
305
- "begin": "(elif|if|else|while|break|foreach|for|in|do|then|fn|return|case|default|switch|test)\\s*(\\()",
306
- "end": "\\)",
307
- "beginCaptures": {
308
- "1": {
309
- "name": "keyword.control"
310
- },
311
- "2": {
312
- "name": "keyword.control"
313
- }
314
- },
315
- "endCaptures": {
316
- "0": {
317
- "name": "keyword.control"
318
- }
319
- },
320
- "patterns": [
321
- { "include": "#lineExpression" }
322
- ]
323
- },
324
- "functionCallOperator": {
325
- "begin": "(lt|lte|eq|gt|gte|is|add|sub|mul|div|not|mod|pow|inc|dec)\\s*(\\()",
326
- "end": "\\)",
327
- "beginCaptures": {
328
- "1": {
329
- "name": "constant.character.escape"
330
- },
331
- "2": {
332
- "name": "constant.character.escape"
333
- }
334
- },
335
- "endCaptures": {
336
- "0": {
337
- "name": "constant.character.escape"
338
- }
339
- },
340
- "patterns": [
341
- { "include": "#lineExpression" }
342
- ]
343
- },
344
- "functionCallType": {
345
- "begin": "(enum|struct|array)\\s*(\\()",
346
- "end": "\\)",
347
- "beginCaptures": {
348
- "1": {
349
- "name": "keyword.control"
350
- },
351
- "2": {
352
- "name": "keyword.control"
353
- }
354
- },
355
- "endCaptures": {
356
- "0": {
357
- "name": "keyword.control"
358
- }
359
- },
360
- "patterns": [
361
- { "include": "#lineExpression" }
362
- ]
363
- },
364
- "functionCallLogic": {
365
- "begin": "(and|or)\\s*(\\()",
366
- "end": "\\)",
367
- "beginCaptures": {
368
- "1": {
369
- "name": "keyword"
370
- },
371
- "2": {
372
- "name": "keyword"
373
- }
374
- },
375
- "endCaptures": {
376
- "0": {
377
- "name": "keyword"
378
- }
379
- },
380
- "patterns": [
381
- { "include": "#lineExpression" }
382
- ]
383
- },
384
- "functionCallDefault": {
385
- "begin": "(\\w+)\\s*(\\()",
386
- "end": "\\)",
387
- "beginCaptures": {
388
- "1": {
389
- "name": "support.function"
390
- },
391
- "2": {
392
- "name": "support.function"
393
- }
394
- },
395
- "endCaptures": {
396
- "0": {
397
- "name": "support.function"
398
- }
399
- },
400
- "patterns": [
401
- { "include": "#lineExpression" }
402
- ]
403
- },
404
- "bodyComment": {
405
- "patterns": [
406
- {
407
- "match": "#.*",
408
- "name": "comment"
409
- },
410
- {
411
- "match": "//.*",
412
- "name": "emphasis",
413
- "captures": {
414
- "0": { "name": "comment" }
415
- }
416
- }
417
- ]
418
- },
419
- "comment": {
420
- "patterns": [
421
- {
422
- "match": "^\\s*#.*",
423
- "name": "comment"
424
- },
425
- {
426
- "match": "^\\s*//.*",
427
- "name": "emphasis",
428
- "captures": {
429
- "0": { "name": "comment" }
430
- }
431
- }
432
- ]
433
- },
434
- "tag": {
435
- "patterns": [
436
- { "include": "#tagEvent" },
437
- { "include": "#tagImport" },
438
- { "include": "#tagImportMatch" },
439
- { "include": "#tagCondition" },
440
- { "include": "#tagName" },
441
- { "include": "#tagLabeledCondition" },
442
- { "include": "#tagJson" },
443
- { "include": "#tagDefault" }
444
- ]
445
- },
446
- "tagEvent": {
447
- "match": "^\\s*(@on)\\s+((user|assistant)|([\\w-]+))\\s*(.*)",
448
- "captures": {
449
- "1": { "name": "entity.name.tag" },
450
- "3": { "name": "entity.name.type" },
451
- "4": { "name": "variable" },
452
- "5": { "patterns": [{ "include": "#tagRequiredExpression" }] }
453
- }
454
- },
455
- "tagImport": {
456
- "match": "^\\s*(@import)\\s+(.*)",
457
- "captures": {
458
- "1": { "name": "keyword.control" },
459
- "2": { "patterns": [{ "include": "#tagImportValue" }] }
460
- }
461
- },
462
- "tagImportMatch": {
463
- "match": "^\\s*(@importMatch)\\s+(!)\\s+(.*)",
464
- "captures": {
465
- "1": { "name": "entity.name.tag" },
466
- "2": { "name": "storage.modifier" },
467
- "3": { "name": "string.regexp" }
468
- }
469
- },
470
- "tagName": {
471
- "match": "^\\s*(@name)\\s+([\\w-]+)(\\s+(\\S+))?",
472
- "captures": {
473
- "1": { "name": "keyword.control" },
474
- "2": { "name": "variable" },
475
- "3": { "name": "invalid" }
476
- }
477
- },
478
- "tagImportValue": {
479
- "match": "((!\\S+:(\\S+))|(!\\S+)|(\\S+))",
480
- "captures": {
481
- "1": { "name": "string" },
482
- "2": { "name": "keyword.modifier" },
483
- "3": { "name": "variable" },
484
- "4": { "name": "keyword.modifier" }
485
- }
486
- },
487
- "tagCondition": {
488
- "match": "^\\s*(@(condition|disabled|taskName|taskDescription))\\s*(.*)",
489
- "captures": {
490
- "1": { "name": "entity.name.tag" },
491
- "3": { "patterns": [{ "include": "#tagExpressionValue" }] }
492
- }
493
- },
494
- "tagLabeledCondition": {
495
- "match": "^\\s*(@routeTo|@routeFrom)\\s+(\\w+)\\s*(.*)",
496
- "captures": {
497
- "1": { "name": "entity.name.tag" },
498
- "2": { "name": "support.function" },
499
- "3": { "patterns": [{ "include": "#tagRequiredExpression" }] }
500
- }
501
- },
502
- "tagJson": {
503
- "match": "^\\s*(@json)\\s*(.*)",
504
- "captures": {
505
- "1": { "name": "entity.name.tag" },
506
- "2": { "patterns": [
507
- { "include": "#interpolation" },
508
- { "include": "#typeExpression" }
509
- ] }
510
- }
511
- },
512
- "tagDefault": {
513
- "match": "^\\s*(@\\w+)\\s*((=.*)|(.*))",
514
- "captures": {
515
- "1": { "name": "entity.name.tag" },
516
- "3": { "name": "invalid" },
517
- "4": { "name": "string" }
518
- }
519
- },
520
- "tagExpressionValue": {
521
- "match": "((=\\s*(.*))|(.*))",
522
- "captures": {
523
- "3": { "patterns": [{ "include": "#lineExpression" }] },
524
- "4": { "name": "string" }
525
- }
526
- },
527
- "tagRequiredExpression": {
528
- "match": "((=\\s*(.*))|(.*))",
529
- "captures": {
530
- "3": { "patterns": [{ "include": "#lineExpression" }] },
531
- "4": { "name": "invalid" }
532
- }
533
- },
534
- "typeExpression": {
535
- "patterns": [
536
- { "include": "#functionCallType" },
537
- { "include": "#typeKeyword" },
538
- { "include": "#typeUserTypeExpression" }
539
- ]
540
- },
541
- "typeUserTypeExpression": {
542
- "match": "[A-Z_]\\w+(\\[\\s*\\])?",
543
- "captures": {
544
- "0": { "name": "entity.name.type" }
545
- }
546
- },
547
- "lineExpression": {
548
- "patterns": [
549
- { "include": "#bodyComment" },
550
- { "include": "#tag" },
551
- { "include": "#heredoc" },
552
- { "include": "#stringPrompt" },
553
- { "include": "#stringEmbed" },
554
- { "include": "#stringDq" },
555
- { "include": "#stringSq" },
556
- { "include": "#pipe" },
557
- { "include": "#functionCall" },
558
- { "include": "#label" },
559
- { "include": "#typeKeyword" },
560
- { "include": "#number" },
561
- { "include": "#constValue" },
562
- { "include": "#userDefinedType" },
563
- { "include": "#lineVar" }
564
- ]
565
- },
566
- "paramLineExpression": {
567
- "patterns": [
568
- { "include": "#bodyComment" },
569
- { "include": "#tag" },
570
- { "include": "#heredoc" },
571
- { "include": "#stringPrompt" },
572
- { "include": "#stringEmbed" },
573
- { "include": "#stringDq" },
574
- { "include": "#stringSq" },
575
- { "include": "#pipe" },
576
- { "include": "#functionCall" },
577
- { "include": "#paramLabel" },
578
- { "include": "#typeKeyword" },
579
- { "include": "#number" },
580
- { "include": "#constValue" },
581
- { "include": "#userDefinedType" },
582
- { "include": "#lineVar" }
583
- ]
584
- },
585
- "userDefinedType": {
586
- "match": "\\b[A-Z]\\w*\\b",
587
- "captures": {
588
- "0": {
589
- "name": "entity.name.type"
590
- }
591
- }
592
- },
593
- "lineVar": {
594
- "match": "\\b\\w+\\b",
595
- "captures": {
596
- "0": {
597
- "name": "variable"
598
- }
599
- }
600
- },
601
- "label": {
602
- "match": "(\\w+)\\s*(\\?)?\\s*:",
603
- "captures": {
604
- "1": {
605
- "name": "entity.name"
606
- }
607
- }
608
- },
609
- "paramLabel": {
610
- "match": "(\\w+)\\s*(\\?)?\\s*:",
611
- "captures": {
612
- "1": {
613
- "name": "variable"
614
- }
615
- }
616
- },
617
- "stringPrompt": {
618
- "begin": "(\\?\\?\\?)\\s*((\\()([^)]*)(\\)))?",
619
- "end": "\\?\\?\\?",
620
- "beginCaptures": {
621
- "1": { "name": "constant.character.escape" },
622
- "3": { "name": "constant.character.escape" },
623
- "4": {
624
- "patterns": [
625
- { "include": "#stringMods" }
626
- ]
627
- },
628
- "5": { "name": "constant.character.escape" }
629
- },
630
- "endCaptures": {
631
- "0": { "name": "constant.character.escape" }
632
- },
633
- "patterns": [
634
- { "include": "#expression" }
635
- ]
636
- },
637
- "stringEmbed": {
638
- "begin": "(===)\\s*((\\()([^)]*)(\\)))?",
639
- "end": "===",
640
- "beginCaptures": {
641
- "1": { "name": "constant.character.escape" },
642
- "3": { "name": "constant.character.escape" },
643
- "4": {
644
- "patterns": [
645
- { "include": "#stringMods" }
646
- ]
647
- },
648
- "5": { "name": "constant.character.escape" }
649
- },
650
- "endCaptures": {
651
- "0": { "name": "constant.character.escape" }
652
- },
653
- "patterns": [
654
- { "include": "#expression" }
655
- ]
656
- },
657
- "stringMods": {
658
- "match": "(((task)\\s*:(.*))|(\\+|\\*)|(system|functions|transforms|replaceForModel|replace|append|prepend|prefix|suffix|respond|pre)|(boolean)|((\\w+)\\s*:\\s*(\\w+\\[?\\]?))|(/\\w+)|((\\w+)\\s*=)|(>>)|(!))",
659
- "captures": {
660
- "3": { "name": "variable" },
661
- "4": { "name": "comment" },
662
- "5": { "name": "keyword.control" },
663
- "6": { "name": "keyword.modifier" },
664
- "7": { "name": "keyword.modifier" },
665
- "9": { "name": "entity.name.type" },
666
- "10": { "name": "entity.name.type" },
667
- "11": { "name": "keyword.modifier" },
668
- "13": { "name": "variable" },
669
- "14": { "name": "keyword.control" },
670
- "15": { "name": "keyword.modifier" }
671
- }
672
- },
673
- "stringDq": {
674
- "begin": "\"",
675
- "end": "\"",
676
- "name": "string",
677
- "patterns": [
678
- { "include": "#stringBackslash" },
679
- {
680
- "match": "(\\\\)(\")",
681
- "captures": {
682
- "1": { "name": "constant.character.escape" },
683
- "2": { "name": "string" }
684
- }
685
- }
686
- ]
687
- },
688
- "stringSq": {
689
- "begin": "'",
690
- "end": "'",
691
- "name": "string",
692
- "patterns": [
693
- { "include": "#stringBackslash" },
694
- {
695
- "match": "(\\\\)(')",
696
- "captures": {
697
- "1": { "name": "constant.character.escape" },
698
- "2": { "name": "string" }
699
- }
700
- },
701
- { "include": "#embedEscape" },
702
- { "include": "#embed" }
703
- ]
704
- },
705
- "markdownLink": {
706
- "match": "(!?\\[)([^\\]]*)(\\])(\\()([^\\)]*)(\\))",
707
- "captures": {
708
- "1": { "name": "keyword.control" },
709
- "2": { "name": "comment" },
710
- "3": { "name": "keyword.control" },
711
- "4": { "name": "keyword.control" },
712
- "5": { "name": "string" },
713
- "6": { "name": "keyword.control" }
714
- }
715
- },
716
- "xml": {
717
- "match": "(</?)([\\w-]+)([^>]*?)(/?>)",
718
- "captures": {
719
- "1": { "name": "entity.name.type" },
720
- "2": { "name": "entity.name.type" },
721
- "3": {
722
- "patterns": [
723
- { "include": "#xmlAttDbl" },
724
- { "include": "#xmlAttSingle" },
725
- { "include": "#xmlAtt" }
726
- ]
727
- },
728
- "4": { "name": "entity.name.type" }
729
- }
730
- },
731
- "xmlAtt": {
732
- "match": "\\w+",
733
- "captures": {
734
- "0": { "name": "variable" }
735
- }
736
- },
737
- "xmlAttDbl": {
738
- "match": "(\\w+)\\s*=\\s*(\"[^\"]*\")",
739
- "captures": {
740
- "1": { "name": "variable" },
741
- "2": { "name": "string" }
742
- }
743
- },
744
- "xmlAttSingle": {
745
- "match": "(\\w+)\\s*=\\s*('[^']*')",
746
- "captures": {
747
- "1": { "name": "variable" },
748
- "2": { "name": "string" }
749
- }
750
- },
751
- "stringBackslash": {
752
- "match": "(\\\\)\\\\",
753
- "captures": {
754
- "1": { "name": "constant.character.escape" }
755
- }
756
- },
757
- "msgStringBackslash": {
758
- "match": "(\\\\)\\\\(?=\\{\\{)",
759
- "captures": {
760
- "1": { "name": "constant.character.escape" }
761
- }
762
- },
763
- "msgStringStartMsg": {
764
- "match": "^[ \\t]*(\\\\)\\\\*>",
765
- "captures": {
766
- "1": { "name": "constant.character.escape" }
767
- }
768
- },
769
- "typeKeyword": {
770
- "match": "\\b(string|number|int|boolean|time|void|any|map|array|object)\\b",
771
- "captures": {
772
- "1": {
773
- "name": "entity.name.type"
774
- }
775
- }
776
- },
777
- "systemFunctions": {
778
- "match": "\\b(elif|if|else|while|break|foreach|for|in|do|then|fn|return|case|default|switch|test)$",
779
- "captures": {
780
- "1": {
781
- "name": "keyword.control"
782
- }
783
- }
784
- },
785
- "operators": {
786
- "match": "\\b(lt|lte|eq|gt|gte|is|add|sub|mul|div|not|mod|pow|inc|dec)$",
787
- "captures": {
788
- "1": {
789
- "name": "keyword"
790
- }
791
- }
792
- },
793
- "logicOperators": {
794
- "match": "\\b(and|or)$",
795
- "captures": {
796
- "1": {
797
- "name": "keyword"
798
- }
799
- }
800
- },
801
- "number": {
802
- "match": "-?(\\d+\\.\\d+|\\.\\d+|\\d+)+",
803
- "name": "entity.name.type"
804
- },
805
- "constValue": {
806
- "match": "\\b(true|false|null|undefined|convo|__args|__return|__error|__debug|__disableAutoComplete)\\b",
807
- "name": "constant.language"
808
- },
809
- "heredoc": {
810
- "begin": "-{3,}",
811
- "end": "-{3,}",
812
- "beginCaptures": {
813
- "0": { "name": "comment" }
814
- },
815
- "endCaptures": {
816
- "0": { "name": "comment" }
817
- },
818
- "patterns": [
819
- { "include": "#expression" }
820
- ]
821
- },
822
- "pipe": {
823
- "match": "<<",
824
- "name": "keyword.control"
825
- },
826
- "fenced_code_block": {
827
- "patterns": [
828
- { "include": "#fenced_code_block_json" },
829
- { "include": "#fenced_code_block_xml" },
830
- { "include": "#fenced_code_block_js" },
831
- { "include": "#fenced_code_block_python" }
832
- ]
833
- },
834
- "fenced_code_block_json": {
835
- "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(json|json5|sublime-settings|sublime-menu|sublime-keymap|sublime-mousemap|sublime-theme|sublime-build|sublime-project|sublime-completions)((\\s+|:|,|\\{|\\?)[^`]*)?$)",
836
- "name": "markup.fenced_code.block.markdown",
837
- "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
838
- "beginCaptures": {
839
- "3": {
840
- "name": "punctuation.definition.markdown"
841
- },
842
- "4": {
843
- "name": "fenced_code.block.language.markdown"
844
- },
845
- "5": {
846
- "name": "fenced_code.block.language.attributes.markdown"
847
- }
848
- },
849
- "endCaptures": {
850
- "3": {
851
- "name": "punctuation.definition.markdown"
852
- }
853
- },
854
- "patterns": [
855
- {
856
- "begin": "(^|\\G)(\\s*)(.*)",
857
- "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
858
- "contentName": "meta.embedded.block.json",
859
- "patterns": [
860
- {
861
- "include": "source.json"
862
- }
863
- ]
864
- }
865
- ]
866
- },
867
- "fenced_code_block_xml": {
868
- "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(xml|xsd|tld|jsp|pt|cpt|dtml|rss|opml)((\\s+|:|,|\\{|\\?)[^`]*)?$)",
869
- "name": "markup.fenced_code.block.markdown",
870
- "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
871
- "beginCaptures": {
872
- "3": {
873
- "name": "punctuation.definition.markdown"
874
- },
875
- "4": {
876
- "name": "fenced_code.block.language.markdown"
877
- },
878
- "5": {
879
- "name": "fenced_code.block.language.attributes.markdown"
880
- }
881
- },
882
- "endCaptures": {
883
- "3": {
884
- "name": "punctuation.definition.markdown"
885
- }
886
- },
887
- "patterns": [
888
- {
889
- "begin": "(^|\\G)(\\s*)(.*)",
890
- "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
891
- "contentName": "meta.embedded.block.xml",
892
- "patterns": [
893
- {
894
- "include": "text.xml"
895
- }
896
- ]
897
- }
898
- ]
899
- },
900
- "fenced_code_block_js": {
901
- "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(js|jsx|javascript|es6|mjs|cjs|dataviewjs|\\{\\.js.+?\\})((\\s+|:|,|\\{|\\?)[^`]*)?$)",
902
- "name": "markup.fenced_code.block.markdown",
903
- "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
904
- "beginCaptures": {
905
- "3": {
906
- "name": "punctuation.definition.markdown"
907
- },
908
- "4": {
909
- "name": "fenced_code.block.language.markdown"
910
- },
911
- "5": {
912
- "name": "fenced_code.block.language.attributes.markdown"
913
- }
914
- },
915
- "endCaptures": {
916
- "3": {
917
- "name": "punctuation.definition.markdown"
918
- }
919
- },
920
- "patterns": [
921
- {
922
- "begin": "(^|\\G)(\\s*)(.*)",
923
- "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
924
- "contentName": "meta.embedded.block.javascript",
925
- "patterns": [
926
- {
927
- "include": "source.js"
928
- }
929
- ]
930
- }
931
- ]
932
- },
933
- "fenced_code_block_python": {
934
- "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(python|py|py3|rpy|pyw|cpy|SConstruct|Sconstruct|sconstruct|SConscript|gyp|gypi|\\{\\.python.+?\\})((\\s+|:|,|\\{|\\?)[^`]*)?$)",
935
- "name": "markup.fenced_code.block.markdown",
936
- "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
937
- "beginCaptures": {
938
- "3": {
939
- "name": "punctuation.definition.markdown"
940
- },
941
- "4": {
942
- "name": "fenced_code.block.language.markdown"
943
- },
944
- "5": {
945
- "name": "fenced_code.block.language.attributes.markdown"
946
- }
947
- },
948
- "endCaptures": {
949
- "3": {
950
- "name": "punctuation.definition.markdown"
951
- }
952
- },
953
- "patterns": [
954
- {
955
- "begin": "(^|\\G)(\\s*)(.*)",
956
- "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
957
- "contentName": "meta.embedded.block.python",
958
- "patterns": [
959
- {
960
- "include": "source.python"
961
- }
962
- ]
963
- }
964
- ]
965
- }
966
- }
967
- };
968
- //# sourceMappingURL=convo.js.map