tm-grammars 1.24.21 → 1.24.23
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 +1 -1
- package/grammars/fish.json +230 -6
- package/index.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ import { grammars } from 'tm-grammars'
|
|
|
76
76
|
| `erb` | | [textmate/ruby.tmbundle](https://github.com/textmate/ruby.tmbundle/blob/ecf0f1df23984bcff9b51552e35d9696cb0d9539/Syntaxes/HTML%20(Ruby%20-%20ERB).tmLanguage) | | | `html` `ruby` | 1.90 kB |
|
|
77
77
|
| `erlang` | `erl` | [erlang-ls/grammar](https://github.com/erlang-ls/grammar/blob/fe898becd3004bcb4947ab50d6b6b830fbfb9228/Erlang.plist) | [Apache-2.0](https://raw.githubusercontent.com/erlang-ls/grammar/main/LICENSE) | | `markdown` | 35.64 kB |
|
|
78
78
|
| `fennel` | | [kongeor/vsc-fennel](https://github.com/kongeor/vsc-fennel/blob/664148923d7bd72531120d0cba712c6dba6f698d/syntaxes/fennel.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/kongeor/vsc-fennel/master/LICENSE) | | | 4.53 kB |
|
|
79
|
-
| `fish` | | [bmalehorn/vscode-fish](https://github.com/bmalehorn/vscode-fish/blob/
|
|
79
|
+
| `fish` | | [bmalehorn/vscode-fish](https://github.com/bmalehorn/vscode-fish/blob/8288b88c46ebe1ef2876fd4275450fc80c5a176a/syntaxes/fish.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/bmalehorn/vscode-fish/master/LICENSE) | | | 12.27 kB |
|
|
80
80
|
| `fluent` | `ftl` | [macabeus/vscode-fluent](https://github.com/macabeus/vscode-fluent/blob/8544ea296a7769a359f43ddff4dc4b6c61f5cf59/syntaxes/fluent.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/macabeus/vscode-fluent/master/LICENSE) | | | 3.38 kB |
|
|
81
81
|
| `fortran-fixed-form` | `f` `for` `f77` | [fortran-lang/vscode-fortran-support](https://github.com/fortran-lang/vscode-fortran-support/blob/e642012094fc0a7379f204bb4e61243005afb1da/syntaxes/fortran_fixed-form.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fortran-lang/vscode-fortran-support/main/LICENSE) | | `fortran-free-form` | 903.00 B |
|
|
82
82
|
| `fortran-free-form` | `f90` `f95` `f03` `f08` `f18` | [fortran-lang/vscode-fortran-support](https://github.com/fortran-lang/vscode-fortran-support/blob/f7fb41579770a0d8c75b9f295d167b31147b4f33/syntaxes/fortran_free-form.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fortran-lang/vscode-fortran-support/main/LICENSE) | | | 82.16 kB |
|
package/grammars/fish.json
CHANGED
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
{
|
|
12
12
|
"include": "#comment"
|
|
13
13
|
},
|
|
14
|
+
{
|
|
15
|
+
"include": "#subshell-bare"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"include": "#subshell"
|
|
19
|
+
},
|
|
14
20
|
{
|
|
15
21
|
"include": "#command"
|
|
16
22
|
},
|
|
@@ -26,9 +32,6 @@
|
|
|
26
32
|
{
|
|
27
33
|
"include": "#options"
|
|
28
34
|
},
|
|
29
|
-
{
|
|
30
|
-
"include": "#subshell"
|
|
31
|
-
},
|
|
32
35
|
{
|
|
33
36
|
"include": "#variable"
|
|
34
37
|
},
|
|
@@ -78,7 +81,7 @@
|
|
|
78
81
|
"patterns": [
|
|
79
82
|
{
|
|
80
83
|
"match": "\\\\[] \"#$\\&-*;<>?\\[^abefnrtv{-~]",
|
|
81
|
-
"name": "constant.character.escape.
|
|
84
|
+
"name": "constant.character.escape.string.fish"
|
|
82
85
|
},
|
|
83
86
|
{
|
|
84
87
|
"match": "\\\\x\\h{1,2}",
|
|
@@ -193,6 +196,74 @@
|
|
|
193
196
|
},
|
|
194
197
|
"match": "\\s(-{1,2}[-0-9A-Z_a-z]+|-\\w)\\b"
|
|
195
198
|
},
|
|
199
|
+
"slice": {
|
|
200
|
+
"begin": "\\[",
|
|
201
|
+
"beginCaptures": {
|
|
202
|
+
"0": {
|
|
203
|
+
"name": "punctuation.definition.slice.begin.fish"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"end": "(?<!\\\\)((\\\\\\\\)*)(])",
|
|
207
|
+
"endCaptures": {
|
|
208
|
+
"1": {
|
|
209
|
+
"name": "constant.character.escape.string.fish"
|
|
210
|
+
},
|
|
211
|
+
"3": {
|
|
212
|
+
"name": "punctuation.definition.slice.end.fish"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"name": "meta.embedded.slice.fish variable.interpolation.fish",
|
|
216
|
+
"patterns": [
|
|
217
|
+
{
|
|
218
|
+
"include": "#string-double"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"include": "#string-single"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"include": "#subshell-bare"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"include": "#subshell"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"include": "#variable"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"include": "#escape"
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
"slice-string-double": {
|
|
238
|
+
"begin": "\\[",
|
|
239
|
+
"beginCaptures": {
|
|
240
|
+
"0": {
|
|
241
|
+
"name": "punctuation.definition.slice.begin.fish"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"end": "(?<!\\\\)((\\\\\\\\)*)(])",
|
|
245
|
+
"endCaptures": {
|
|
246
|
+
"1": {
|
|
247
|
+
"name": "constant.character.escape.string.fish"
|
|
248
|
+
},
|
|
249
|
+
"3": {
|
|
250
|
+
"name": "punctuation.definition.slice.end.fish"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"name": "meta.embedded.slice.fish variable.interpolation.string.fish",
|
|
254
|
+
"patterns": [
|
|
255
|
+
{
|
|
256
|
+
"include": "#subshell"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"include": "#variable"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"match": "\\\\([\"$]|$|\\\\)",
|
|
263
|
+
"name": "constant.character.escape.fish"
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
},
|
|
196
267
|
"string-double": {
|
|
197
268
|
"begin": "\"",
|
|
198
269
|
"beginCaptures": {
|
|
@@ -212,7 +283,7 @@
|
|
|
212
283
|
"include": "#subshell"
|
|
213
284
|
},
|
|
214
285
|
{
|
|
215
|
-
"include": "#variable"
|
|
286
|
+
"include": "#variable-string-double"
|
|
216
287
|
},
|
|
217
288
|
{
|
|
218
289
|
"match": "\\\\([\"$]|$|\\\\)",
|
|
@@ -248,9 +319,65 @@
|
|
|
248
319
|
"name": "punctuation.definition.subshell.begin.fish"
|
|
249
320
|
}
|
|
250
321
|
},
|
|
251
|
-
"end": "\\)",
|
|
322
|
+
"end": "(?<!\\\\)((\\\\\\\\)*)(\\))",
|
|
252
323
|
"endCaptures": {
|
|
324
|
+
"1": {
|
|
325
|
+
"name": "constant.character.escape.string.fish"
|
|
326
|
+
},
|
|
327
|
+
"3": {
|
|
328
|
+
"name": "punctuation.definition.subshell.end.fish"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"name": "meta.embedded.subshell.fish",
|
|
332
|
+
"patterns": [
|
|
333
|
+
{
|
|
334
|
+
"include": "#string-double"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"include": "#string-single"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"include": "#comment"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"include": "#keywords-subshell"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"include": "#command-subshell"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"include": "#io-redirection"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"include": "#operators"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"include": "#options"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"include": "#subshell"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"include": "#variable"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"include": "#escape"
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
},
|
|
368
|
+
"subshell-bare": {
|
|
369
|
+
"begin": "\\(",
|
|
370
|
+
"beginCaptures": {
|
|
253
371
|
"0": {
|
|
372
|
+
"name": "punctuation.definition.subshell.begin.fish"
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"end": "(?<!\\\\)((\\\\\\\\)*)(\\))",
|
|
376
|
+
"endCaptures": {
|
|
377
|
+
"1": {
|
|
378
|
+
"name": "constant.character.escape.string.fish"
|
|
379
|
+
},
|
|
380
|
+
"3": {
|
|
254
381
|
"name": "punctuation.definition.subshell.end.fish"
|
|
255
382
|
}
|
|
256
383
|
},
|
|
@@ -280,6 +407,9 @@
|
|
|
280
407
|
{
|
|
281
408
|
"include": "#options"
|
|
282
409
|
},
|
|
410
|
+
{
|
|
411
|
+
"include": "#subshell-bare"
|
|
412
|
+
},
|
|
283
413
|
{
|
|
284
414
|
"include": "#subshell"
|
|
285
415
|
},
|
|
@@ -293,6 +423,82 @@
|
|
|
293
423
|
},
|
|
294
424
|
"variable": {
|
|
295
425
|
"patterns": [
|
|
426
|
+
{
|
|
427
|
+
"begin": "(\\$)(argv|CMD_DURATION|COLUMNS|fish_bind_mode|fish_color_autosuggestion|fish_color_cancel|fish_color_command|fish_color_comment|fish_color_cwd|fish_color_cwd_root|fish_color_end|fish_color_error|fish_color_escape|fish_color_hg_added|fish_color_hg_clean|fish_color_hg_copied|fish_color_hg_deleted|fish_color_hg_dirty|fish_color_hg_modified|fish_color_hg_renamed|fish_color_hg_unmerged|fish_color_hg_untracked|fish_color_history_current|fish_color_host|fish_color_host_remote|fish_color_match|fish_color_normal|fish_color_operator|fish_color_param|fish_color_quote|fish_color_redirection|fish_color_search_match|fish_color_selection|fish_color_status|fish_color_user|fish_color_valid_path|fish_complete_path|fish_function_path|fish_greeting|fish_key_bindings|fish_pager_color_completion|fish_pager_color_description|fish_pager_color_prefix|fish_pager_color_progress|fish_pid|fish_prompt_hg_status_added|fish_prompt_hg_status_copied|fish_prompt_hg_status_deleted|fish_prompt_hg_status_modified|fish_prompt_hg_status_order|fish_prompt_hg_status_unmerged|fish_prompt_hg_status_untracked|FISH_VERSION|history|hostname|IFS|LINES|pipestatus|status|umask|version)\\b(?=\\[)",
|
|
428
|
+
"beginCaptures": {
|
|
429
|
+
"1": {
|
|
430
|
+
"name": "punctuation.definition.variable.fish"
|
|
431
|
+
},
|
|
432
|
+
"2": {
|
|
433
|
+
"name": "variable.language.fish"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"end": "(?<=])",
|
|
437
|
+
"name": "variable.language.fish",
|
|
438
|
+
"patterns": [
|
|
439
|
+
{
|
|
440
|
+
"include": "#slice"
|
|
441
|
+
}
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"captures": {
|
|
446
|
+
"1": {
|
|
447
|
+
"name": "punctuation.definition.variable.fish"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"match": "(\\$)(argv|CMD_DURATION|COLUMNS|fish_bind_mode|fish_color_autosuggestion|fish_color_cancel|fish_color_command|fish_color_comment|fish_color_cwd|fish_color_cwd_root|fish_color_end|fish_color_error|fish_color_escape|fish_color_hg_added|fish_color_hg_clean|fish_color_hg_copied|fish_color_hg_deleted|fish_color_hg_dirty|fish_color_hg_modified|fish_color_hg_renamed|fish_color_hg_unmerged|fish_color_hg_untracked|fish_color_history_current|fish_color_host|fish_color_host_remote|fish_color_match|fish_color_normal|fish_color_operator|fish_color_param|fish_color_quote|fish_color_redirection|fish_color_search_match|fish_color_selection|fish_color_status|fish_color_user|fish_color_valid_path|fish_complete_path|fish_function_path|fish_greeting|fish_key_bindings|fish_pager_color_completion|fish_pager_color_description|fish_pager_color_prefix|fish_pager_color_progress|fish_pid|fish_prompt_hg_status_added|fish_prompt_hg_status_copied|fish_prompt_hg_status_deleted|fish_prompt_hg_status_modified|fish_prompt_hg_status_order|fish_prompt_hg_status_unmerged|fish_prompt_hg_status_untracked|FISH_VERSION|history|hostname|IFS|LINES|pipestatus|status|umask|version)\\b",
|
|
451
|
+
"name": "variable.language.fish"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"begin": "(\\$)([A-Z_a-z][0-9A-Z_a-z]*)(?=\\[)",
|
|
455
|
+
"beginCaptures": {
|
|
456
|
+
"1": {
|
|
457
|
+
"name": "punctuation.definition.variable.fish"
|
|
458
|
+
},
|
|
459
|
+
"2": {
|
|
460
|
+
"name": "variable.other.normal.fish"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"end": "(?<=])",
|
|
464
|
+
"name": "variable.other.normal.fish",
|
|
465
|
+
"patterns": [
|
|
466
|
+
{
|
|
467
|
+
"include": "#slice"
|
|
468
|
+
}
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"captures": {
|
|
473
|
+
"1": {
|
|
474
|
+
"name": "punctuation.definition.variable.fish"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"match": "(\\$)[A-Z_a-z][0-9A-Z_a-z]*",
|
|
478
|
+
"name": "variable.other.normal.fish"
|
|
479
|
+
}
|
|
480
|
+
]
|
|
481
|
+
},
|
|
482
|
+
"variable-string-double": {
|
|
483
|
+
"patterns": [
|
|
484
|
+
{
|
|
485
|
+
"begin": "(\\$)(argv|CMD_DURATION|COLUMNS|fish_bind_mode|fish_color_autosuggestion|fish_color_cancel|fish_color_command|fish_color_comment|fish_color_cwd|fish_color_cwd_root|fish_color_end|fish_color_error|fish_color_escape|fish_color_hg_added|fish_color_hg_clean|fish_color_hg_copied|fish_color_hg_deleted|fish_color_hg_dirty|fish_color_hg_modified|fish_color_hg_renamed|fish_color_hg_unmerged|fish_color_hg_untracked|fish_color_history_current|fish_color_host|fish_color_host_remote|fish_color_match|fish_color_normal|fish_color_operator|fish_color_param|fish_color_quote|fish_color_redirection|fish_color_search_match|fish_color_selection|fish_color_status|fish_color_user|fish_color_valid_path|fish_complete_path|fish_function_path|fish_greeting|fish_key_bindings|fish_pager_color_completion|fish_pager_color_description|fish_pager_color_prefix|fish_pager_color_progress|fish_pid|fish_prompt_hg_status_added|fish_prompt_hg_status_copied|fish_prompt_hg_status_deleted|fish_prompt_hg_status_modified|fish_prompt_hg_status_order|fish_prompt_hg_status_unmerged|fish_prompt_hg_status_untracked|FISH_VERSION|history|hostname|IFS|LINES|pipestatus|status|umask|version)\\b(?=\\[)",
|
|
486
|
+
"beginCaptures": {
|
|
487
|
+
"1": {
|
|
488
|
+
"name": "punctuation.definition.variable.fish"
|
|
489
|
+
},
|
|
490
|
+
"2": {
|
|
491
|
+
"name": "variable.language.fish"
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"end": "(?<=])",
|
|
495
|
+
"name": "variable.language.fish",
|
|
496
|
+
"patterns": [
|
|
497
|
+
{
|
|
498
|
+
"include": "#slice-string-double"
|
|
499
|
+
}
|
|
500
|
+
]
|
|
501
|
+
},
|
|
296
502
|
{
|
|
297
503
|
"captures": {
|
|
298
504
|
"1": {
|
|
@@ -302,6 +508,24 @@
|
|
|
302
508
|
"match": "(\\$)(argv|CMD_DURATION|COLUMNS|fish_bind_mode|fish_color_autosuggestion|fish_color_cancel|fish_color_command|fish_color_comment|fish_color_cwd|fish_color_cwd_root|fish_color_end|fish_color_error|fish_color_escape|fish_color_hg_added|fish_color_hg_clean|fish_color_hg_copied|fish_color_hg_deleted|fish_color_hg_dirty|fish_color_hg_modified|fish_color_hg_renamed|fish_color_hg_unmerged|fish_color_hg_untracked|fish_color_history_current|fish_color_host|fish_color_host_remote|fish_color_match|fish_color_normal|fish_color_operator|fish_color_param|fish_color_quote|fish_color_redirection|fish_color_search_match|fish_color_selection|fish_color_status|fish_color_user|fish_color_valid_path|fish_complete_path|fish_function_path|fish_greeting|fish_key_bindings|fish_pager_color_completion|fish_pager_color_description|fish_pager_color_prefix|fish_pager_color_progress|fish_pid|fish_prompt_hg_status_added|fish_prompt_hg_status_copied|fish_prompt_hg_status_deleted|fish_prompt_hg_status_modified|fish_prompt_hg_status_order|fish_prompt_hg_status_unmerged|fish_prompt_hg_status_untracked|FISH_VERSION|history|hostname|IFS|LINES|pipestatus|status|umask|version)\\b",
|
|
303
509
|
"name": "variable.language.fish"
|
|
304
510
|
},
|
|
511
|
+
{
|
|
512
|
+
"begin": "(\\$)([A-Z_a-z][0-9A-Z_a-z]*)(?=\\[)",
|
|
513
|
+
"beginCaptures": {
|
|
514
|
+
"1": {
|
|
515
|
+
"name": "punctuation.definition.variable.fish"
|
|
516
|
+
},
|
|
517
|
+
"2": {
|
|
518
|
+
"name": "variable.other.normal.fish"
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
"end": "(?<=])",
|
|
522
|
+
"name": "variable.other.normal.fish",
|
|
523
|
+
"patterns": [
|
|
524
|
+
{
|
|
525
|
+
"include": "#slice-string-double"
|
|
526
|
+
}
|
|
527
|
+
]
|
|
528
|
+
},
|
|
305
529
|
{
|
|
306
530
|
"captures": {
|
|
307
531
|
"1": {
|
package/index.js
CHANGED
|
@@ -1167,22 +1167,22 @@ export const grammars = [
|
|
|
1167
1167
|
sourceApi: 'https://api.github.com/repos/kongeor/vsc-fennel/contents/syntaxes/fennel.tmLanguage.json?ref=664148923d7bd72531120d0cba712c6dba6f698d',
|
|
1168
1168
|
},
|
|
1169
1169
|
{
|
|
1170
|
-
byteSize:
|
|
1170
|
+
byteSize: 12564,
|
|
1171
1171
|
categories: [
|
|
1172
1172
|
'scripting',
|
|
1173
1173
|
],
|
|
1174
1174
|
displayName: 'Fish',
|
|
1175
1175
|
funding: [
|
|
1176
1176
|
],
|
|
1177
|
-
hash: '
|
|
1178
|
-
lastUpdate: '2025-10-
|
|
1177
|
+
hash: '68SUiD2IwZiNxjl87FA_EMXyoA-ocCvZ2JE9WGnywZ8',
|
|
1178
|
+
lastUpdate: '2025-10-16T05:22:48Z',
|
|
1179
1179
|
license: 'MIT',
|
|
1180
1180
|
licenseUrl: 'https://raw.githubusercontent.com/bmalehorn/vscode-fish/master/LICENSE',
|
|
1181
1181
|
name: 'fish',
|
|
1182
1182
|
scopeName: 'source.fish',
|
|
1183
|
-
sha: '
|
|
1184
|
-
source: 'https://github.com/bmalehorn/vscode-fish/blob/
|
|
1185
|
-
sourceApi: 'https://api.github.com/repos/bmalehorn/vscode-fish/contents/syntaxes/fish.tmLanguage.json?ref=
|
|
1183
|
+
sha: '8288b88c46ebe1ef2876fd4275450fc80c5a176a',
|
|
1184
|
+
source: 'https://github.com/bmalehorn/vscode-fish/blob/8288b88c46ebe1ef2876fd4275450fc80c5a176a/syntaxes/fish.tmLanguage.json',
|
|
1185
|
+
sourceApi: 'https://api.github.com/repos/bmalehorn/vscode-fish/contents/syntaxes/fish.tmLanguage.json?ref=8288b88c46ebe1ef2876fd4275450fc80c5a176a',
|
|
1186
1186
|
},
|
|
1187
1187
|
{
|
|
1188
1188
|
aliases: [
|