tm-grammars 1.13.1 → 1.13.3

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
@@ -78,7 +78,7 @@ import { grammars } from 'tm-grammars'
78
78
  | `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) | | 92.92 kB |
79
79
  | `fsharp` | `f#` `fs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/ed4e6eda599f37bac9a11952403a6e63fd4f5a4d/extensions/fsharp/syntaxes/fsharp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `markdown` | 24.25 kB |
80
80
  | `gdresource` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/e7e2d0439dea0fb3a568378554c81e0a17348a84/syntaxes/GDResource.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | `gdshader` `gdscript` | 4.90 kB |
81
- | `gdscript` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/c07fe37f30c33bc0e99629c24ffb0e8d346eca5e/syntaxes/GDScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 17.21 kB |
81
+ | `gdscript` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/9750f8dfc6e4eeba96f7df62432751930af95337/syntaxes/GDScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 17.83 kB |
82
82
  | `gdshader` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/e7e2d0439dea0fb3a568378554c81e0a17348a84/syntaxes/GDShader.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 5.95 kB |
83
83
  | `genie` | | [vala-lang/vala-vscode](https://github.com/vala-lang/vala-vscode/blob/8f825e95648326df2572d0522632251cdff4a43b/syntaxes/genie.YAML-tmLanguage) | [MIT](https://raw.githubusercontent.com/vala-lang/vala-vscode/master/LICENSE) | | 3.12 kB |
84
84
  | `gherkin` | | [alexkrechik/VSCucumberAutoComplete](https://github.com/alexkrechik/VSCucumberAutoComplete/blob/fbb554addf81e8961b58b1577924af10fecf9694/syntaxes/feature.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/alexkrechik/VSCucumberAutoComplete/master/LICENSE) | | 12.13 kB |
@@ -237,7 +237,7 @@ Injections are grammars that are embedded in other grammars. They are used to ag
237
237
  | ---- | ----- | ------ | ------- | ------- | --------- |
238
238
  | `angular-expression` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/d7dab52644375e64af3deaeac045cc75f5954414/syntaxes/expression.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | | 12.69 kB |
239
239
  | `angular-inline-style` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/f0422f5f571f79a904510944452f06fb36beff22/syntaxes/inline-styles.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `scss` | 1.17 kB |
240
- | `angular-inline-template` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/c3f3172a70b1a2bfdca3bdee85df9271cb0895cf/syntaxes/inline-template.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-html` `angular-template` | 956.00 B |
240
+ | `angular-inline-template` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/888875fef753416c464d1433f05caf8d53c9dd10/syntaxes/inline-template.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-html` `angular-template` `angular-template-blocks` | 1.02 kB |
241
241
  | `angular-template` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/28739e438742bee69faceda5fd15445682451397/syntaxes/template.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-expression` | 471.00 B |
242
242
  | `angular-template-blocks` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/dceedb686d45f19a65a50398be3dbce2526e7d11/syntaxes/template-blocks.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-expression` `angular-template` | 1.18 kB |
243
243
  | `cpp-macro` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `regexp` `glsl` `sql` | 230.05 kB |
@@ -50,6 +50,15 @@
50
50
  },
51
51
  {
52
52
  "include": "template.ng"
53
+ },
54
+ {
55
+ "include": "template.blocks.ng"
56
+ },
57
+ {
58
+ "include": "template.tag.ng"
59
+ },
60
+ {
61
+ "include": "template.let.ng"
53
62
  }
54
63
  ]
55
64
  },
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "any_method": {
57
57
  "match": "\\b([A-Za-z_]\\w*)\\b(?=\\s*(?:[(]))",
58
- "name": "support.function.any-method.gdscript"
58
+ "name": "entity.name.function.other.gdscript"
59
59
  },
60
60
  "any_property": {
61
61
  "captures": {
@@ -139,6 +139,15 @@
139
139
  {
140
140
  "include": "#control_flow"
141
141
  },
142
+ {
143
+ "include": "#match_keyword"
144
+ },
145
+ {
146
+ "include": "#curly_braces"
147
+ },
148
+ {
149
+ "include": "#square_braces"
150
+ },
142
151
  {
143
152
  "include": "#round_braces"
144
153
  },
@@ -332,9 +341,31 @@
332
341
  "name": "constant.language.gdscript"
333
342
  },
334
343
  "control_flow": {
335
- "match": "\\b(?:if|elif|else|while|break|continue|pass|return|match|when|yield|await)\\b",
344
+ "match": "\\b(?:if|elif|else|while|break|continue|pass|return|when|yield|await)\\b",
336
345
  "name": "keyword.control.gdscript"
337
346
  },
347
+ "curly_braces": {
348
+ "begin": "\\{",
349
+ "beginCaptures": {
350
+ "0": {
351
+ "name": "punctuation.definition.dict.begin.gdscript"
352
+ }
353
+ },
354
+ "end": "\\}",
355
+ "endCaptures": {
356
+ "0": {
357
+ "name": "punctuation.definition.dict.end.gdscript"
358
+ }
359
+ },
360
+ "patterns": [
361
+ {
362
+ "include": "#base_expression"
363
+ },
364
+ {
365
+ "include": "#any_variable"
366
+ }
367
+ ]
368
+ },
338
369
  "expression": {
339
370
  "patterns": [
340
371
  {
@@ -448,12 +479,7 @@
448
479
  ]
449
480
  },
450
481
  "function_call": {
451
- "begin": "(?x)\n\\b(?=\n([a-zA-Z_]\\w*) \\s* (\\()\n)\n",
452
- "beginCaptures": {
453
- "2": {
454
- "name": "punctuation.definition.arguments.begin.gdscript"
455
- }
456
- },
482
+ "begin": "(?=\\b[a-zA-Z_]\\w*\\b\\()",
457
483
  "comment": "Regular function call of the type \"name(args)\"",
458
484
  "end": "(\\))",
459
485
  "endCaptures": {
@@ -512,10 +538,14 @@
512
538
  {
513
539
  "include": "#builtin_classes"
514
540
  },
541
+ {
542
+ "match": "\\b(preload)\\b",
543
+ "name": "keyword.language.gdscript"
544
+ },
515
545
  {
516
546
  "comment": "Some color schemas support meta.function-call.generic scope",
517
- "match": "(?x)\n\\b ([a-zA-Z_]\\w*) \\b\n",
518
- "name": "support.function.any-method.gdscript"
547
+ "match": "\\b([a-zA-Z_]\\w*)\\b",
548
+ "name": "entity.name.function.gdscript"
519
549
  }
520
550
  ]
521
551
  },
@@ -582,7 +612,7 @@
582
612
  ]
583
613
  },
584
614
  "keywords": {
585
- "match": "\\b(?:class|class_name|is|onready|tool|static|export|as|void|enum|preload|assert|breakpoint|sync|remote|master|puppet|slave|remotesync|mastersync|puppetsync|trait|namespace)\\b",
615
+ "match": "\\b(?:class|class_name|is|onready|tool|static|export|as|void|enum|assert|breakpoint|sync|remote|master|puppet|slave|remotesync|mastersync|puppetsync|trait|namespace)\\b",
586
616
  "name": "keyword.language.gdscript"
587
617
  },
588
618
  "lambda_declaration": {
@@ -679,6 +709,14 @@
679
709
  }
680
710
  ]
681
711
  },
712
+ "match_keyword": {
713
+ "captures": {
714
+ "1": {
715
+ "name": "keyword.control.gdscript"
716
+ }
717
+ },
718
+ "match": "^\n\\s*(match)"
719
+ },
682
720
  "nodepath_function": {
683
721
  "begin": "(get_node_or_null|has_node|has_node_and_resource|find_node|get_node)\\s*(\\()",
684
722
  "beginCaptures": {
@@ -689,12 +727,14 @@
689
727
  "name": "punctuation.definition.parameters.begin.gdscript"
690
728
  }
691
729
  },
730
+ "contentName": "meta.function.parameters.gdscript",
692
731
  "end": "(\\))",
693
732
  "endCaptures": {
694
733
  "1": {
695
734
  "name": "punctuation.definition.parameters.end.gdscript"
696
735
  }
697
736
  },
737
+ "name": "meta.function.gdscript",
698
738
  "patterns": [
699
739
  {
700
740
  "begin": "(\"|')",
@@ -706,6 +746,9 @@
706
746
  "name": "keyword.control.flow"
707
747
  }
708
748
  ]
749
+ },
750
+ {
751
+ "include": "#base_expression"
709
752
  }
710
753
  ]
711
754
  },
@@ -879,6 +922,28 @@
879
922
  "match": "(?x) \\s*\n(signal) \\s+\n([a-zA-Z_]\\w*)(?=[\\n\\s])",
880
923
  "name": "meta.signal.gdscript"
881
924
  },
925
+ "square_braces": {
926
+ "begin": "\\[",
927
+ "beginCaptures": {
928
+ "0": {
929
+ "name": "punctuation.definition.list.begin.gdscript"
930
+ }
931
+ },
932
+ "end": "\\]",
933
+ "endCaptures": {
934
+ "0": {
935
+ "name": "punctuation.definition.list.end.gdscript"
936
+ }
937
+ },
938
+ "patterns": [
939
+ {
940
+ "include": "#base_expression"
941
+ },
942
+ {
943
+ "include": "#any_variable"
944
+ }
945
+ ]
946
+ },
882
947
  "statement": {
883
948
  "patterns": [
884
949
  {
@@ -972,23 +1037,17 @@
972
1037
  ]
973
1038
  },
974
1039
  "variable_declaration": {
975
- "begin": "\\b(?:(var)|(const))\\s+(?:(\\b[A-Z_][A-Z_0-9]*\\b)|([A-Za-z_]\\w*))\\s*",
1040
+ "begin": "\\b(?:(var)|(const))\\b",
976
1041
  "beginCaptures": {
977
1042
  "1": {
978
1043
  "name": "keyword.language.gdscript storage.type.var.gdscript"
979
1044
  },
980
1045
  "2": {
981
1046
  "name": "keyword.language.gdscript storage.type.const.gdscript"
982
- },
983
- "3": {
984
- "name": "constant.language.gdscript"
985
- },
986
- "4": {
987
- "name": "variable.other.gdscript"
988
1047
  }
989
1048
  },
990
1049
  "end": "$|;",
991
- "name": "meta.variable.gdscript",
1050
+ "name": "meta.variable.declaration.gdscript",
992
1051
  "patterns": [
993
1052
  {
994
1053
  "captures": {
package/index.js CHANGED
@@ -909,15 +909,15 @@ export const grammars = [
909
909
  source: 'https://github.com/godotengine/godot-vscode-plugin/blob/e7e2d0439dea0fb3a568378554c81e0a17348a84/syntaxes/GDResource.tmLanguage.json',
910
910
  },
911
911
  {
912
- byteSize: 17624,
912
+ byteSize: 18259,
913
913
  displayName: 'GDScript',
914
- lastUpdate: '2024-06-24T20:48:44Z',
914
+ lastUpdate: '2024-07-02T18:04:22Z',
915
915
  license: 'MIT',
916
916
  licenseUrl: 'https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE',
917
917
  name: 'gdscript',
918
918
  scopeName: 'source.gdscript',
919
- sha: 'c07fe37f30c33bc0e99629c24ffb0e8d346eca5e',
920
- source: 'https://github.com/godotengine/godot-vscode-plugin/blob/c07fe37f30c33bc0e99629c24ffb0e8d346eca5e/syntaxes/GDScript.tmLanguage.json',
919
+ sha: '9750f8dfc6e4eeba96f7df62432751930af95337',
920
+ source: 'https://github.com/godotengine/godot-vscode-plugin/blob/9750f8dfc6e4eeba96f7df62432751930af95337/syntaxes/GDScript.tmLanguage.json',
921
921
  },
922
922
  {
923
923
  byteSize: 6096,
@@ -3405,10 +3405,11 @@ export const injections = [
3405
3405
  source: 'https://github.com/angular/vscode-ng-language-service/blob/f0422f5f571f79a904510944452f06fb36beff22/syntaxes/inline-styles.json',
3406
3406
  },
3407
3407
  {
3408
- byteSize: 956,
3408
+ byteSize: 1049,
3409
3409
  embedded: [
3410
3410
  'angular-html',
3411
3411
  'angular-template',
3412
+ 'angular-template-blocks',
3412
3413
  ],
3413
3414
  embeddedIn: [
3414
3415
  'angular-ts',
@@ -3416,13 +3417,13 @@ export const injections = [
3416
3417
  injectTo: [
3417
3418
  'source.ts.ng',
3418
3419
  ],
3419
- lastUpdate: '2020-07-06T21:15:10Z',
3420
+ lastUpdate: '2024-07-02T16:10:13Z',
3420
3421
  license: 'MIT',
3421
3422
  licenseUrl: 'https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE',
3422
3423
  name: 'angular-inline-template',
3423
3424
  scopeName: 'inline-template.ng',
3424
- sha: 'c3f3172a70b1a2bfdca3bdee85df9271cb0895cf',
3425
- source: 'https://github.com/angular/vscode-ng-language-service/blob/c3f3172a70b1a2bfdca3bdee85df9271cb0895cf/syntaxes/inline-template.json',
3425
+ sha: '888875fef753416c464d1433f05caf8d53c9dd10',
3426
+ source: 'https://github.com/angular/vscode-ng-language-service/blob/888875fef753416c464d1433f05caf8d53c9dd10/syntaxes/inline-template.json',
3426
3427
  },
3427
3428
  {
3428
3429
  byteSize: 471,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.13.1",
4
+ "version": "1.13.3",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",