@iyio/syn-taxi 0.7.29 → 0.7.31
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/esm/src/lib/grammar/convo.d.ts +184 -27
- package/esm/src/lib/grammar/convo.js +172 -40
- package/esm/src/lib/grammar/convo.js.map +1 -1
- package/package.json +5 -5
- package/src/lib/grammar/convo.d.ts +184 -27
- package/src/lib/grammar/convo.js +172 -40
- package/src/lib/grammar/convo.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iyio/syn-taxi",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.31",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"blurhash": ">=2.0.5",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"uuid": ">=9.0.0"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@iyio/at-dot-css": "^0.7.
|
|
14
|
-
"@iyio/common": "^0.7.
|
|
15
|
-
"@iyio/react-common": "^0.7.
|
|
16
|
-
"@iyio/rtxt": "^0.7.
|
|
13
|
+
"@iyio/at-dot-css": "^0.7.31",
|
|
14
|
+
"@iyio/common": "^0.7.31",
|
|
15
|
+
"@iyio/react-common": "^0.7.31",
|
|
16
|
+
"@iyio/rtxt": "^0.7.31",
|
|
17
17
|
"react": ">=18 || >=19",
|
|
18
18
|
"react-dom": ">=18 || >=19"
|
|
19
19
|
},
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convo-Lang grammar
|
|
3
|
+
*/
|
|
1
4
|
export declare const convoGrammar: {
|
|
2
5
|
$schema: string;
|
|
3
6
|
name: string;
|
|
@@ -192,14 +195,56 @@ export declare const convoGrammar: {
|
|
|
192
195
|
}[];
|
|
193
196
|
};
|
|
194
197
|
functionCall: {
|
|
198
|
+
patterns: {
|
|
199
|
+
include: string;
|
|
200
|
+
}[];
|
|
201
|
+
};
|
|
202
|
+
functionCallSystem: {
|
|
203
|
+
begin: string;
|
|
204
|
+
end: string;
|
|
205
|
+
beginCaptures: {
|
|
206
|
+
"1": {
|
|
207
|
+
name: string;
|
|
208
|
+
};
|
|
209
|
+
"2": {
|
|
210
|
+
name: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
endCaptures: {
|
|
214
|
+
"0": {
|
|
215
|
+
name: string;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
patterns: {
|
|
219
|
+
include: string;
|
|
220
|
+
}[];
|
|
221
|
+
};
|
|
222
|
+
functionCallOperator: {
|
|
223
|
+
begin: string;
|
|
224
|
+
end: string;
|
|
225
|
+
beginCaptures: {
|
|
226
|
+
"1": {
|
|
227
|
+
name: string;
|
|
228
|
+
};
|
|
229
|
+
"2": {
|
|
230
|
+
name: string;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
endCaptures: {
|
|
234
|
+
"0": {
|
|
235
|
+
name: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
patterns: {
|
|
239
|
+
include: string;
|
|
240
|
+
}[];
|
|
241
|
+
};
|
|
242
|
+
functionCallType: {
|
|
195
243
|
begin: string;
|
|
196
244
|
end: string;
|
|
197
245
|
beginCaptures: {
|
|
198
246
|
"1": {
|
|
199
247
|
name: string;
|
|
200
|
-
patterns: {
|
|
201
|
-
include: string;
|
|
202
|
-
}[];
|
|
203
248
|
};
|
|
204
249
|
"2": {
|
|
205
250
|
name: string;
|
|
@@ -214,6 +259,61 @@ export declare const convoGrammar: {
|
|
|
214
259
|
include: string;
|
|
215
260
|
}[];
|
|
216
261
|
};
|
|
262
|
+
functionCallLogic: {
|
|
263
|
+
begin: string;
|
|
264
|
+
end: string;
|
|
265
|
+
beginCaptures: {
|
|
266
|
+
"1": {
|
|
267
|
+
name: string;
|
|
268
|
+
};
|
|
269
|
+
"2": {
|
|
270
|
+
name: string;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
endCaptures: {
|
|
274
|
+
"0": {
|
|
275
|
+
name: string;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
patterns: {
|
|
279
|
+
include: string;
|
|
280
|
+
}[];
|
|
281
|
+
};
|
|
282
|
+
functionCallDefault: {
|
|
283
|
+
begin: string;
|
|
284
|
+
end: string;
|
|
285
|
+
beginCaptures: {
|
|
286
|
+
"1": {
|
|
287
|
+
name: string;
|
|
288
|
+
};
|
|
289
|
+
"2": {
|
|
290
|
+
name: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
endCaptures: {
|
|
294
|
+
"0": {
|
|
295
|
+
name: string;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
patterns: {
|
|
299
|
+
include: string;
|
|
300
|
+
}[];
|
|
301
|
+
};
|
|
302
|
+
bodyComment: {
|
|
303
|
+
patterns: ({
|
|
304
|
+
match: string;
|
|
305
|
+
name: string;
|
|
306
|
+
captures?: undefined;
|
|
307
|
+
} | {
|
|
308
|
+
match: string;
|
|
309
|
+
name: string;
|
|
310
|
+
captures: {
|
|
311
|
+
"0": {
|
|
312
|
+
name: string;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
})[];
|
|
316
|
+
};
|
|
217
317
|
comment: {
|
|
218
318
|
patterns: ({
|
|
219
319
|
match: string;
|
|
@@ -230,7 +330,6 @@ export declare const convoGrammar: {
|
|
|
230
330
|
})[];
|
|
231
331
|
};
|
|
232
332
|
tag: {
|
|
233
|
-
_match: string;
|
|
234
333
|
match: string;
|
|
235
334
|
captures: {
|
|
236
335
|
"1": {
|
|
@@ -240,23 +339,58 @@ export declare const convoGrammar: {
|
|
|
240
339
|
name: string;
|
|
241
340
|
};
|
|
242
341
|
"4": {
|
|
243
|
-
|
|
342
|
+
patterns: {
|
|
343
|
+
include: string;
|
|
344
|
+
}[];
|
|
244
345
|
};
|
|
245
346
|
"5": {
|
|
246
347
|
name: string;
|
|
247
348
|
};
|
|
248
|
-
"
|
|
349
|
+
"6": {
|
|
249
350
|
name: string;
|
|
250
351
|
};
|
|
251
|
-
"
|
|
352
|
+
"8": {
|
|
353
|
+
name: string;
|
|
354
|
+
};
|
|
355
|
+
"10": {
|
|
252
356
|
patterns: {
|
|
253
357
|
include: string;
|
|
254
358
|
}[];
|
|
255
359
|
};
|
|
256
|
-
"
|
|
360
|
+
"12": {
|
|
257
361
|
name: string;
|
|
258
362
|
};
|
|
259
|
-
"
|
|
363
|
+
"13": {
|
|
364
|
+
name: string;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
tagEvent: {
|
|
369
|
+
match: string;
|
|
370
|
+
captures: {
|
|
371
|
+
"1": {
|
|
372
|
+
name: string;
|
|
373
|
+
};
|
|
374
|
+
"2": {
|
|
375
|
+
name: string;
|
|
376
|
+
};
|
|
377
|
+
"5": {
|
|
378
|
+
patterns: {
|
|
379
|
+
include: string;
|
|
380
|
+
}[];
|
|
381
|
+
};
|
|
382
|
+
"6": {
|
|
383
|
+
name: string;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
tagEventFallback: {
|
|
388
|
+
match: string;
|
|
389
|
+
captures: {
|
|
390
|
+
"1": {
|
|
391
|
+
name: string;
|
|
392
|
+
};
|
|
393
|
+
"2": {
|
|
260
394
|
name: string;
|
|
261
395
|
};
|
|
262
396
|
};
|
|
@@ -331,23 +465,6 @@ export declare const convoGrammar: {
|
|
|
331
465
|
include: string;
|
|
332
466
|
}[];
|
|
333
467
|
};
|
|
334
|
-
stringPromptMods: {
|
|
335
|
-
match: string;
|
|
336
|
-
captures: {
|
|
337
|
-
"2": {
|
|
338
|
-
name: string;
|
|
339
|
-
};
|
|
340
|
-
"3": {
|
|
341
|
-
name: string;
|
|
342
|
-
};
|
|
343
|
-
"5": {
|
|
344
|
-
name: string;
|
|
345
|
-
};
|
|
346
|
-
"6": {
|
|
347
|
-
name: string;
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
};
|
|
351
468
|
stringEmbed: {
|
|
352
469
|
begin: string;
|
|
353
470
|
end: string;
|
|
@@ -359,7 +476,9 @@ export declare const convoGrammar: {
|
|
|
359
476
|
name: string;
|
|
360
477
|
};
|
|
361
478
|
"4": {
|
|
362
|
-
|
|
479
|
+
patterns: {
|
|
480
|
+
include: string;
|
|
481
|
+
}[];
|
|
363
482
|
};
|
|
364
483
|
"5": {
|
|
365
484
|
name: string;
|
|
@@ -374,6 +493,44 @@ export declare const convoGrammar: {
|
|
|
374
493
|
include: string;
|
|
375
494
|
}[];
|
|
376
495
|
};
|
|
496
|
+
stringMods: {
|
|
497
|
+
match: string;
|
|
498
|
+
captures: {
|
|
499
|
+
"3": {
|
|
500
|
+
name: string;
|
|
501
|
+
};
|
|
502
|
+
"4": {
|
|
503
|
+
name: string;
|
|
504
|
+
};
|
|
505
|
+
"5": {
|
|
506
|
+
name: string;
|
|
507
|
+
};
|
|
508
|
+
"6": {
|
|
509
|
+
name: string;
|
|
510
|
+
};
|
|
511
|
+
"7": {
|
|
512
|
+
name: string;
|
|
513
|
+
};
|
|
514
|
+
"9": {
|
|
515
|
+
name: string;
|
|
516
|
+
};
|
|
517
|
+
"10": {
|
|
518
|
+
name: string;
|
|
519
|
+
};
|
|
520
|
+
"11": {
|
|
521
|
+
name: string;
|
|
522
|
+
};
|
|
523
|
+
"13": {
|
|
524
|
+
name: string;
|
|
525
|
+
};
|
|
526
|
+
"14": {
|
|
527
|
+
name: string;
|
|
528
|
+
};
|
|
529
|
+
"15": {
|
|
530
|
+
name: string;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
};
|
|
377
534
|
stringDq: {
|
|
378
535
|
begin: string;
|
|
379
536
|
end: string;
|
package/src/lib/grammar/convo.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.convoGrammar = void 0;
|
|
4
|
+
// to inspect grammar tokens
|
|
5
|
+
// open command palette (ctrl+shift+p)
|
|
6
|
+
// Search "Inspect Editor Tokens and Scopes"
|
|
7
|
+
// or (shift+alt+cmd+i)
|
|
8
|
+
/**
|
|
9
|
+
* Convo-Lang grammar
|
|
10
|
+
*/
|
|
4
11
|
exports.convoGrammar = {
|
|
5
12
|
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
6
13
|
"name": "convo",
|
|
@@ -109,7 +116,7 @@ exports.convoGrammar = {
|
|
|
109
116
|
}
|
|
110
117
|
},
|
|
111
118
|
"patterns": [
|
|
112
|
-
{ "include": "#
|
|
119
|
+
{ "include": "#bodyComment" },
|
|
113
120
|
{ "include": "#tag" },
|
|
114
121
|
{ "include": "#functionCall" },
|
|
115
122
|
{ "include": "#paramLineExpression" }
|
|
@@ -161,7 +168,7 @@ exports.convoGrammar = {
|
|
|
161
168
|
}
|
|
162
169
|
},
|
|
163
170
|
"function": {
|
|
164
|
-
"begin": "^\\s*(>)\\s*(agent|
|
|
171
|
+
"begin": "^\\s*(>)\\s*(agent|public|local)?\\s*(\\w+)?\\s+(\\w+)\\s*([\\*\\?!]*)\\s*(\\()",
|
|
165
172
|
"end": "\\)",
|
|
166
173
|
"beginCaptures": {
|
|
167
174
|
"1": {
|
|
@@ -189,7 +196,7 @@ exports.convoGrammar = {
|
|
|
189
196
|
}
|
|
190
197
|
},
|
|
191
198
|
"patterns": [
|
|
192
|
-
{ "include": "#
|
|
199
|
+
{ "include": "#bodyComment" },
|
|
193
200
|
{ "include": "#tag" },
|
|
194
201
|
{ "include": "#functionCall" },
|
|
195
202
|
{ "include": "#paramLineExpression" }
|
|
@@ -203,7 +210,7 @@ exports.convoGrammar = {
|
|
|
203
210
|
"name": "entity.name.type"
|
|
204
211
|
},
|
|
205
212
|
"2": {
|
|
206
|
-
"name": "keyword.
|
|
213
|
+
"name": "keyword.control"
|
|
207
214
|
},
|
|
208
215
|
"3": {
|
|
209
216
|
"name": "entity.name.type"
|
|
@@ -218,39 +225,122 @@ exports.convoGrammar = {
|
|
|
218
225
|
}
|
|
219
226
|
},
|
|
220
227
|
"patterns": [
|
|
221
|
-
{ "include": "#
|
|
228
|
+
{ "include": "#bodyComment" },
|
|
222
229
|
{ "include": "#tag" },
|
|
223
230
|
{ "include": "#functionCall" },
|
|
224
231
|
{ "include": "#lineExpression" }
|
|
225
232
|
]
|
|
226
233
|
},
|
|
227
234
|
"functionCall": {
|
|
235
|
+
"patterns": [
|
|
236
|
+
{ "include": "#functionCallSystem" },
|
|
237
|
+
{ "include": "#functionCallOperator" },
|
|
238
|
+
{ "include": "#functionCallLogic" },
|
|
239
|
+
{ "include": "#functionCallType" },
|
|
240
|
+
{ "include": "#functionCallDefault" }
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"functionCallSystem": {
|
|
244
|
+
"begin": "(elif|if|else|while|break|foreach|for|in|do|then|fn|return|case|default|switch|test)\\s*(\\()",
|
|
245
|
+
"end": "\\)",
|
|
246
|
+
"beginCaptures": {
|
|
247
|
+
"1": {
|
|
248
|
+
"name": "keyword.control"
|
|
249
|
+
},
|
|
250
|
+
"2": {
|
|
251
|
+
"name": "keyword.control"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"endCaptures": {
|
|
255
|
+
"0": {
|
|
256
|
+
"name": "keyword.control"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"patterns": [
|
|
260
|
+
{ "include": "#lineExpression" }
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
"functionCallOperator": {
|
|
264
|
+
"begin": "(lt|lte|eq|gt|gte|is|add|sub|mul|div|not|mod|pow|inc|dec)\\s*(\\()",
|
|
265
|
+
"end": "\\)",
|
|
266
|
+
"beginCaptures": {
|
|
267
|
+
"1": {
|
|
268
|
+
"name": "constant.character.escape"
|
|
269
|
+
},
|
|
270
|
+
"2": {
|
|
271
|
+
"name": "constant.character.escape"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"endCaptures": {
|
|
275
|
+
"0": {
|
|
276
|
+
"name": "constant.character.escape"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"patterns": [
|
|
280
|
+
{ "include": "#lineExpression" }
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
"functionCallType": {
|
|
284
|
+
"begin": "(enum|struct|array)\\s*(\\()",
|
|
285
|
+
"end": "\\)",
|
|
286
|
+
"beginCaptures": {
|
|
287
|
+
"1": {
|
|
288
|
+
"name": "keyword.control"
|
|
289
|
+
},
|
|
290
|
+
"2": {
|
|
291
|
+
"name": "keyword.control"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"endCaptures": {
|
|
295
|
+
"0": {
|
|
296
|
+
"name": "keyword.control"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"patterns": [
|
|
300
|
+
{ "include": "#lineExpression" }
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
"functionCallLogic": {
|
|
304
|
+
"begin": "(and|or)\\s*(\\()",
|
|
305
|
+
"end": "\\)",
|
|
306
|
+
"beginCaptures": {
|
|
307
|
+
"1": {
|
|
308
|
+
"name": "keyword"
|
|
309
|
+
},
|
|
310
|
+
"2": {
|
|
311
|
+
"name": "keyword"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"endCaptures": {
|
|
315
|
+
"0": {
|
|
316
|
+
"name": "keyword"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"patterns": [
|
|
320
|
+
{ "include": "#lineExpression" }
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
"functionCallDefault": {
|
|
228
324
|
"begin": "(\\w+)\\s*(\\()",
|
|
229
325
|
"end": "\\)",
|
|
230
326
|
"beginCaptures": {
|
|
231
327
|
"1": {
|
|
232
|
-
"name": "support.function"
|
|
233
|
-
"patterns": [
|
|
234
|
-
{ "include": "#operators" },
|
|
235
|
-
{ "include": "#typeFunctions" },
|
|
236
|
-
{ "include": "#logicOperators" },
|
|
237
|
-
{ "include": "#systemFunctions" }
|
|
238
|
-
]
|
|
328
|
+
"name": "support.function"
|
|
239
329
|
},
|
|
240
330
|
"2": {
|
|
241
|
-
"name": "
|
|
331
|
+
"name": "support.function"
|
|
242
332
|
}
|
|
243
333
|
},
|
|
244
334
|
"endCaptures": {
|
|
245
335
|
"0": {
|
|
246
|
-
"name": "
|
|
336
|
+
"name": "support.function"
|
|
247
337
|
}
|
|
248
338
|
},
|
|
249
339
|
"patterns": [
|
|
250
340
|
{ "include": "#lineExpression" }
|
|
251
341
|
]
|
|
252
342
|
},
|
|
253
|
-
"
|
|
343
|
+
"bodyComment": {
|
|
254
344
|
"patterns": [
|
|
255
345
|
{
|
|
256
346
|
"match": "#.*",
|
|
@@ -265,23 +355,54 @@ exports.convoGrammar = {
|
|
|
265
355
|
}
|
|
266
356
|
]
|
|
267
357
|
},
|
|
358
|
+
"comment": {
|
|
359
|
+
"patterns": [
|
|
360
|
+
{
|
|
361
|
+
"match": "^\\s*#.*",
|
|
362
|
+
"name": "comment"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"match": "^\\s*//.*",
|
|
366
|
+
"name": "emphasis",
|
|
367
|
+
"captures": {
|
|
368
|
+
"0": { "name": "comment" }
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
},
|
|
268
373
|
"tag": {
|
|
269
|
-
"
|
|
270
|
-
"match": "^\\s*(@)((on\\s+(\\w+)\\s*=?(.*))|((condition|disabled)\\s*(=\\s*(.*)))|((\\w+)\\s*=?\\s*(.*)))",
|
|
374
|
+
"match": "^\\s*(@)((on\\s+(.*))|(json\\s+(.*))|((condition|disabled)\\s*(=\\s*(.*)))|((\\w+)\\s*=?\\s*(.*)))",
|
|
271
375
|
"captures": {
|
|
272
376
|
"1": { "name": "entity.name.tag" },
|
|
273
377
|
"3": { "name": "entity.name.tag" },
|
|
274
|
-
"4": { "
|
|
275
|
-
"5": { "name": "
|
|
276
|
-
"
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
"12": { "name": "
|
|
378
|
+
"4": { "patterns": [{ "include": "#tagEvent" }] },
|
|
379
|
+
"5": { "name": "entity.name.tag" },
|
|
380
|
+
"6": { "name": "entity.name.type" },
|
|
381
|
+
"8": { "name": "entity.name.tag" },
|
|
382
|
+
"10": { "patterns": [{ "include": "#lineExpression" }] },
|
|
383
|
+
"12": { "name": "entity.name.tag" },
|
|
384
|
+
"13": { "name": "string" }
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"tagEvent": {
|
|
388
|
+
"match": "((user[\\s$]|assistant[\\s$])|\\w+)\\s*((=(.*))|(.*))?",
|
|
389
|
+
"captures": {
|
|
390
|
+
"1": { "name": "string" },
|
|
391
|
+
"2": { "name": "entity.name.type" },
|
|
392
|
+
"5": { "patterns": [{ "include": "#lineExpression" }] },
|
|
393
|
+
"6": { "name": "invalid.illegal" }
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"tagEventFallback": {
|
|
397
|
+
"match": "(\\w+)(.*)?",
|
|
398
|
+
"captures": {
|
|
399
|
+
"1": { "name": "entity.name.type" },
|
|
400
|
+
"2": { "name": "string" }
|
|
280
401
|
}
|
|
281
402
|
},
|
|
282
403
|
"lineExpression": {
|
|
283
404
|
"patterns": [
|
|
284
|
-
{ "include": "#
|
|
405
|
+
{ "include": "#bodyComment" },
|
|
285
406
|
{ "include": "#tag" },
|
|
286
407
|
{ "include": "#heredoc" },
|
|
287
408
|
{ "include": "#stringPrompt" },
|
|
@@ -300,7 +421,7 @@ exports.convoGrammar = {
|
|
|
300
421
|
},
|
|
301
422
|
"paramLineExpression": {
|
|
302
423
|
"patterns": [
|
|
303
|
-
{ "include": "#
|
|
424
|
+
{ "include": "#bodyComment" },
|
|
304
425
|
{ "include": "#tag" },
|
|
305
426
|
{ "include": "#heredoc" },
|
|
306
427
|
{ "include": "#stringPrompt" },
|
|
@@ -357,10 +478,10 @@ exports.convoGrammar = {
|
|
|
357
478
|
"3": { "name": "constant.character.escape" },
|
|
358
479
|
"4": {
|
|
359
480
|
"patterns": [
|
|
360
|
-
{ "include": "#
|
|
481
|
+
{ "include": "#stringMods" }
|
|
361
482
|
]
|
|
362
483
|
},
|
|
363
|
-
"5": { "name": "constant.character.escape" }
|
|
484
|
+
"5": { "name": "constant.character.escape" }
|
|
364
485
|
},
|
|
365
486
|
"endCaptures": {
|
|
366
487
|
"0": { "name": "constant.character.escape" }
|
|
@@ -369,31 +490,42 @@ exports.convoGrammar = {
|
|
|
369
490
|
{ "include": "#expression" }
|
|
370
491
|
]
|
|
371
492
|
},
|
|
372
|
-
"stringPromptMods": {
|
|
373
|
-
"match": "((\\+|\\*|!|extend|continue)|(boolean)|((\\w+)\\s*:\\s*(\\w+)))|(system|functions|)",
|
|
374
|
-
"captures": {
|
|
375
|
-
"2": { "name": "storage.modifier" },
|
|
376
|
-
"3": { "name": "entity.name.type" },
|
|
377
|
-
"5": { "name": "variable" },
|
|
378
|
-
"6": { "name": "entity.name.type" }
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
493
|
"stringEmbed": {
|
|
382
494
|
"begin": "(===)\\s*((\\()([^)]*)(\\)))?",
|
|
383
495
|
"end": "===",
|
|
384
496
|
"beginCaptures": {
|
|
385
|
-
"1": { "name": "
|
|
497
|
+
"1": { "name": "constant.character.escape" },
|
|
386
498
|
"3": { "name": "constant.character.escape" },
|
|
387
|
-
"4": {
|
|
499
|
+
"4": {
|
|
500
|
+
"patterns": [
|
|
501
|
+
{ "include": "#stringMods" }
|
|
502
|
+
]
|
|
503
|
+
},
|
|
388
504
|
"5": { "name": "constant.character.escape" }
|
|
389
505
|
},
|
|
390
506
|
"endCaptures": {
|
|
391
|
-
"0": { "name": "
|
|
507
|
+
"0": { "name": "constant.character.escape" }
|
|
392
508
|
},
|
|
393
509
|
"patterns": [
|
|
394
510
|
{ "include": "#expression" }
|
|
395
511
|
]
|
|
396
512
|
},
|
|
513
|
+
"stringMods": {
|
|
514
|
+
"match": "(((task)\\s*:(.*))|(\\+|\\*)|(system|functions|transforms|replace|replaceForModel|append|prepend|prefix|suffix|respond)|(boolean)|((\\w+)\\s*:\\s*(\\w+\\[?\\]?))|(/\\w+)|((\\w+)\\s*=)|(>>)|(!))",
|
|
515
|
+
"captures": {
|
|
516
|
+
"3": { "name": "variable" },
|
|
517
|
+
"4": { "name": "comment" },
|
|
518
|
+
"5": { "name": "keyword.control" },
|
|
519
|
+
"6": { "name": "keyword.modifier" },
|
|
520
|
+
"7": { "name": "keyword.modifier" },
|
|
521
|
+
"9": { "name": "entity.name.type" },
|
|
522
|
+
"10": { "name": "entity.name.type" },
|
|
523
|
+
"11": { "name": "keyword.modifier" },
|
|
524
|
+
"13": { "name": "variable" },
|
|
525
|
+
"14": { "name": "keyword.control" },
|
|
526
|
+
"15": { "name": "keyword.modifier" }
|
|
527
|
+
}
|
|
528
|
+
},
|
|
397
529
|
"stringDq": {
|
|
398
530
|
"begin": "\"",
|
|
399
531
|
"end": "\"",
|
|
@@ -446,7 +578,7 @@ exports.convoGrammar = {
|
|
|
446
578
|
"patterns": [
|
|
447
579
|
{ "include": "#xmlAttDbl" },
|
|
448
580
|
{ "include": "#xmlAttSingle" },
|
|
449
|
-
{ "include": "#xmlAtt" }
|
|
581
|
+
{ "include": "#xmlAtt" }
|
|
450
582
|
]
|
|
451
583
|
},
|
|
452
584
|
"4": { "name": "entity.name.type" }
|