tm-grammars 1.13.1 → 1.13.2

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/cca25099c4a154137de962a60dcf2fba74c6cc31/syntaxes/GDScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 18.01 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 |
@@ -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
  {
@@ -679,6 +710,14 @@
679
710
  }
680
711
  ]
681
712
  },
713
+ "match_keyword": {
714
+ "captures": {
715
+ "1": {
716
+ "name": "keyword.control.gdscript"
717
+ }
718
+ },
719
+ "match": "^\n\\s*(match)"
720
+ },
682
721
  "nodepath_function": {
683
722
  "begin": "(get_node_or_null|has_node|has_node_and_resource|find_node|get_node)\\s*(\\()",
684
723
  "beginCaptures": {
@@ -689,12 +728,14 @@
689
728
  "name": "punctuation.definition.parameters.begin.gdscript"
690
729
  }
691
730
  },
731
+ "contentName": "meta.function.parameters.gdscript",
692
732
  "end": "(\\))",
693
733
  "endCaptures": {
694
734
  "1": {
695
735
  "name": "punctuation.definition.parameters.end.gdscript"
696
736
  }
697
737
  },
738
+ "name": "meta.function.gdscript",
698
739
  "patterns": [
699
740
  {
700
741
  "begin": "(\"|')",
@@ -706,6 +747,9 @@
706
747
  "name": "keyword.control.flow"
707
748
  }
708
749
  ]
750
+ },
751
+ {
752
+ "include": "#base_expression"
709
753
  }
710
754
  ]
711
755
  },
@@ -879,6 +923,28 @@
879
923
  "match": "(?x) \\s*\n(signal) \\s+\n([a-zA-Z_]\\w*)(?=[\\n\\s])",
880
924
  "name": "meta.signal.gdscript"
881
925
  },
926
+ "square_braces": {
927
+ "begin": "\\[",
928
+ "beginCaptures": {
929
+ "0": {
930
+ "name": "punctuation.definition.list.begin.gdscript"
931
+ }
932
+ },
933
+ "end": "\\]",
934
+ "endCaptures": {
935
+ "0": {
936
+ "name": "punctuation.definition.list.end.gdscript"
937
+ }
938
+ },
939
+ "patterns": [
940
+ {
941
+ "include": "#base_expression"
942
+ },
943
+ {
944
+ "include": "#any_variable"
945
+ }
946
+ ]
947
+ },
882
948
  "statement": {
883
949
  "patterns": [
884
950
  {
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: 18440,
913
913
  displayName: 'GDScript',
914
- lastUpdate: '2024-06-24T20:48:44Z',
914
+ lastUpdate: '2024-06-29T20:08:24Z',
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: 'cca25099c4a154137de962a60dcf2fba74c6cc31',
920
+ source: 'https://github.com/godotengine/godot-vscode-plugin/blob/cca25099c4a154137de962a60dcf2fba74c6cc31/syntaxes/GDScript.tmLanguage.json',
921
921
  },
922
922
  {
923
923
  byteSize: 6096,
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.2",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",