tm-grammars 1.24.21 → 1.24.22

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 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/888213a73202e394bf9b80f09fb8b5c0f130d1b6/syntaxes/fish.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/bmalehorn/vscode-fish/master/LICENSE) | | | 6.00 kB |
79
+ | `fish` | | [bmalehorn/vscode-fish](https://github.com/bmalehorn/vscode-fish/blob/af7f414d21859f116e8975470976062f7553c620/syntaxes/fish.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/bmalehorn/vscode-fish/master/LICENSE) | | | 8.86 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 |
@@ -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
  },
@@ -193,6 +196,51 @@
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.single.fish"
210
+ },
211
+ "3": {
212
+ "name": "punctuation.definition.slice.end.fish"
213
+ }
214
+ },
215
+ "name": "meta.embedded.slice.fish",
216
+ "patterns": [
217
+ {
218
+ "include": "#slice-range-operator"
219
+ },
220
+ {
221
+ "include": "#string-double"
222
+ },
223
+ {
224
+ "include": "#string-single"
225
+ },
226
+ {
227
+ "include": "#subshell-bare"
228
+ },
229
+ {
230
+ "include": "#subshell"
231
+ },
232
+ {
233
+ "include": "#variable"
234
+ },
235
+ {
236
+ "include": "#escape"
237
+ }
238
+ ]
239
+ },
240
+ "slice-range-operator": {
241
+ "match": "\\.\\.",
242
+ "name": "keyword.control.fish"
243
+ },
196
244
  "string-double": {
197
245
  "begin": "\"",
198
246
  "beginCaptures": {
@@ -248,9 +296,65 @@
248
296
  "name": "punctuation.definition.subshell.begin.fish"
249
297
  }
250
298
  },
251
- "end": "\\)",
299
+ "end": "(?<!\\\\)((\\\\\\\\)*)(\\))",
252
300
  "endCaptures": {
301
+ "1": {
302
+ "name": "constant.character.escape.single.fish"
303
+ },
304
+ "3": {
305
+ "name": "punctuation.definition.subshell.end.fish"
306
+ }
307
+ },
308
+ "name": "meta.embedded.subshell.fish",
309
+ "patterns": [
310
+ {
311
+ "include": "#string-double"
312
+ },
313
+ {
314
+ "include": "#string-single"
315
+ },
316
+ {
317
+ "include": "#comment"
318
+ },
319
+ {
320
+ "include": "#keywords-subshell"
321
+ },
322
+ {
323
+ "include": "#command-subshell"
324
+ },
325
+ {
326
+ "include": "#io-redirection"
327
+ },
328
+ {
329
+ "include": "#operators"
330
+ },
331
+ {
332
+ "include": "#options"
333
+ },
334
+ {
335
+ "include": "#subshell"
336
+ },
337
+ {
338
+ "include": "#variable"
339
+ },
340
+ {
341
+ "include": "#escape"
342
+ }
343
+ ]
344
+ },
345
+ "subshell-bare": {
346
+ "begin": "\\(",
347
+ "beginCaptures": {
253
348
  "0": {
349
+ "name": "punctuation.definition.subshell.begin.fish"
350
+ }
351
+ },
352
+ "end": "(?<!\\\\)((\\\\\\\\)*)(\\))",
353
+ "endCaptures": {
354
+ "1": {
355
+ "name": "constant.character.escape.single.fish"
356
+ },
357
+ "3": {
254
358
  "name": "punctuation.definition.subshell.end.fish"
255
359
  }
256
360
  },
@@ -280,6 +384,9 @@
280
384
  {
281
385
  "include": "#options"
282
386
  },
387
+ {
388
+ "include": "#subshell-bare"
389
+ },
283
390
  {
284
391
  "include": "#subshell"
285
392
  },
@@ -293,6 +400,24 @@
293
400
  },
294
401
  "variable": {
295
402
  "patterns": [
403
+ {
404
+ "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(?=\\[)",
405
+ "beginCaptures": {
406
+ "1": {
407
+ "name": "punctuation.definition.variable.fish"
408
+ },
409
+ "2": {
410
+ "name": "variable.language.fish"
411
+ }
412
+ },
413
+ "end": "(?<=])",
414
+ "name": "variable.language.fish",
415
+ "patterns": [
416
+ {
417
+ "include": "#slice"
418
+ }
419
+ ]
420
+ },
296
421
  {
297
422
  "captures": {
298
423
  "1": {
@@ -302,6 +427,24 @@
302
427
  "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
428
  "name": "variable.language.fish"
304
429
  },
430
+ {
431
+ "begin": "(\\$)([A-Z_a-z][0-9A-Z_a-z]*)(?=\\[)",
432
+ "beginCaptures": {
433
+ "1": {
434
+ "name": "punctuation.definition.variable.fish"
435
+ },
436
+ "2": {
437
+ "name": "variable.other.normal.fish"
438
+ }
439
+ },
440
+ "end": "(?<=])",
441
+ "name": "variable.other.normal.fish",
442
+ "patterns": [
443
+ {
444
+ "include": "#slice"
445
+ }
446
+ ]
447
+ },
305
448
  {
306
449
  "captures": {
307
450
  "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: 6146,
1170
+ byteSize: 9072,
1171
1171
  categories: [
1172
1172
  'scripting',
1173
1173
  ],
1174
1174
  displayName: 'Fish',
1175
1175
  funding: [
1176
1176
  ],
1177
- hash: 'gLC6DZLi_rN4pBKvSyp1CBSC1rO1UB6pErRskqXsydo',
1178
- lastUpdate: '2025-10-13T05:02:18Z',
1177
+ hash: 'lSNvqrsTEzMrf2vx4kqTHYqPiQ5p8Ci8zp79inZXhLI',
1178
+ lastUpdate: '2025-10-14T18:51:17Z',
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: '888213a73202e394bf9b80f09fb8b5c0f130d1b6',
1184
- source: 'https://github.com/bmalehorn/vscode-fish/blob/888213a73202e394bf9b80f09fb8b5c0f130d1b6/syntaxes/fish.tmLanguage.json',
1185
- sourceApi: 'https://api.github.com/repos/bmalehorn/vscode-fish/contents/syntaxes/fish.tmLanguage.json?ref=888213a73202e394bf9b80f09fb8b5c0f130d1b6',
1183
+ sha: 'af7f414d21859f116e8975470976062f7553c620',
1184
+ source: 'https://github.com/bmalehorn/vscode-fish/blob/af7f414d21859f116e8975470976062f7553c620/syntaxes/fish.tmLanguage.json',
1185
+ sourceApi: 'https://api.github.com/repos/bmalehorn/vscode-fish/contents/syntaxes/fish.tmLanguage.json?ref=af7f414d21859f116e8975470976062f7553c620',
1186
1186
  },
1187
1187
  {
1188
1188
  aliases: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.24.21",
4
+ "version": "1.24.22",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",