tm-grammars 1.22.16 → 1.22.17
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/gdscript.json +37 -23
- package/index.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ import { grammars } from 'tm-grammars'
|
|
|
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) | | 83.01 kB |
|
|
83
83
|
| `fsharp` | `f#` `fs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/e67b1982e1ab318288b8196ad503273dcb168049/extensions/fsharp/syntaxes/fsharp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `markdown` | 24.16 kB |
|
|
84
84
|
| `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.86 kB |
|
|
85
|
-
| `gdscript` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/
|
|
85
|
+
| `gdscript` | | [godotengine/godot-vscode-plugin](https://github.com/godotengine/godot-vscode-plugin/blob/0a3c319879b731b121cbf454d72a97b4f96c37e3/syntaxes/GDScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE) | | 17.84 kB |
|
|
86
86
|
| `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 |
|
|
87
87
|
| `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 |
|
|
88
88
|
| `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 |
|
package/grammars/gdscript.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"patterns": [
|
|
36
36
|
{
|
|
37
|
-
"include": "#
|
|
37
|
+
"include": "#expression"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"match": "=(?!=)",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"name": "variable.other.gdscript"
|
|
77
77
|
},
|
|
78
78
|
"arithmetic_operator": {
|
|
79
|
-
"match": "
|
|
79
|
+
"match": "->|\\+=|-=|\\*\\*=|\\*=|\\^=|/=|%=|&=|~=|\\|=|\\*\\*|\\*|/|%|\\+|-",
|
|
80
80
|
"name": "keyword.operator.arithmetic.gdscript"
|
|
81
81
|
},
|
|
82
82
|
"assignment_operator": {
|
|
@@ -154,6 +154,9 @@
|
|
|
154
154
|
{
|
|
155
155
|
"include": "#function_call"
|
|
156
156
|
},
|
|
157
|
+
{
|
|
158
|
+
"include": "#region"
|
|
159
|
+
},
|
|
157
160
|
{
|
|
158
161
|
"include": "#comment"
|
|
159
162
|
},
|
|
@@ -186,7 +189,7 @@
|
|
|
186
189
|
"name": "keyword.operator.boolean.gdscript"
|
|
187
190
|
},
|
|
188
191
|
"builtin_classes": {
|
|
189
|
-
"match": "(?<![^.]\\.|:)\\b(Vector2|Vector2i|Vector3|Vector3i|Vector4|Vector4i|Color|Rect2|Rect2i|Array|Basis|Dictionary|Plane|Quat|RID|Rect3|Transform|Transform2D|Transform3D|AABB|String|Color|NodePath|PoolByteArray|PoolIntArray|PoolRealArray|PoolStringArray|PoolVector2Array|PoolVector3Array|PoolColorArray|bool|int|float|Signal|Callable|StringName|Quaternion|Projection|PackedByteArray|PackedInt32Array|PackedInt64Array|PackedFloat32Array|PackedFloat64Array|PackedStringArray|PackedVector2Array|PackedVector2iArray|PackedVector3Array|PackedVector3iArray|PackedVector4Array|PackedColorArray|
|
|
192
|
+
"match": "(?<![^.]\\.|:)\\b(Vector2|Vector2i|Vector3|Vector3i|Vector4|Vector4i|Color|Rect2|Rect2i|Array|Basis|Dictionary|Plane|Quat|RID|Rect3|Transform|Transform2D|Transform3D|AABB|String|Color|NodePath|PoolByteArray|PoolIntArray|PoolRealArray|PoolStringArray|PoolVector2Array|PoolVector3Array|PoolColorArray|bool|int|float|Signal|Callable|StringName|Quaternion|Projection|PackedByteArray|PackedInt32Array|PackedInt64Array|PackedFloat32Array|PackedFloat64Array|PackedStringArray|PackedVector2Array|PackedVector2iArray|PackedVector3Array|PackedVector3iArray|PackedVector4Array|PackedColorArray|JSON|UPNP|OS|IP|JSONRPC|XRVRS)\\b",
|
|
190
193
|
"name": "entity.name.type.class.builtin.gdscript"
|
|
191
194
|
},
|
|
192
195
|
"builtin_get_node_shorthand": {
|
|
@@ -375,10 +378,10 @@
|
|
|
375
378
|
"expression": {
|
|
376
379
|
"patterns": [
|
|
377
380
|
{
|
|
378
|
-
"include": "#
|
|
381
|
+
"include": "#getter_setter_godot4"
|
|
379
382
|
},
|
|
380
383
|
{
|
|
381
|
-
"include": "#
|
|
384
|
+
"include": "#base_expression"
|
|
382
385
|
},
|
|
383
386
|
{
|
|
384
387
|
"include": "#assignment_operator"
|
|
@@ -552,27 +555,34 @@
|
|
|
552
555
|
"captures": {
|
|
553
556
|
"1": {
|
|
554
557
|
"name": "entity.name.function.gdscript"
|
|
558
|
+
},
|
|
559
|
+
"2": {
|
|
560
|
+
"name": "punctuation.separator.annotation.gdscript"
|
|
555
561
|
}
|
|
556
562
|
},
|
|
557
|
-
"match": "
|
|
563
|
+
"match": "(get)\\s*(:)",
|
|
564
|
+
"name": "meta.variable.declaration.getter.gdscript"
|
|
558
565
|
},
|
|
559
566
|
{
|
|
560
|
-
"
|
|
561
|
-
"beginCaptures": {
|
|
567
|
+
"captures": {
|
|
562
568
|
"1": {
|
|
563
569
|
"name": "entity.name.function.gdscript"
|
|
564
|
-
}
|
|
565
|
-
},
|
|
566
|
-
"end": "(:|(?=[#'\"\\n]))",
|
|
567
|
-
"name": "meta.function.gdscript",
|
|
568
|
-
"patterns": [
|
|
569
|
-
{
|
|
570
|
-
"include": "#parameters"
|
|
571
570
|
},
|
|
572
|
-
{
|
|
573
|
-
"
|
|
571
|
+
"2": {
|
|
572
|
+
"name": "punctuation.definition.arguments.begin.gdscript"
|
|
573
|
+
},
|
|
574
|
+
"3": {
|
|
575
|
+
"name": "variable.other.gdscript"
|
|
576
|
+
},
|
|
577
|
+
"4": {
|
|
578
|
+
"name": "punctuation.definition.arguments.end.gdscript"
|
|
579
|
+
},
|
|
580
|
+
"5": {
|
|
581
|
+
"name": "punctuation.separator.annotation.gdscript"
|
|
574
582
|
}
|
|
575
|
-
|
|
583
|
+
},
|
|
584
|
+
"match": "(set)\\s*(\\()\\s*([A-Za-z_]\\w*)\\s*(\\))\\s*(:)",
|
|
585
|
+
"name": "meta.variable.declaration.setter.gdscript"
|
|
576
586
|
}
|
|
577
587
|
]
|
|
578
588
|
},
|
|
@@ -609,7 +619,7 @@
|
|
|
609
619
|
]
|
|
610
620
|
},
|
|
611
621
|
"keywords": {
|
|
612
|
-
"match": "\\b(?:class|class_name|abstract|is|onready|tool|static|export|as|void|enum|assert|breakpoint|sync|remote|master|puppet|slave|remotesync|mastersync|puppetsync|trait|namespace)\\b",
|
|
622
|
+
"match": "\\b(?:class|class_name|abstract|is|onready|tool|static|export|as|void|enum|assert|breakpoint|sync|remote|master|puppet|slave|remotesync|mastersync|puppetsync|trait|namespace|super)\\b",
|
|
613
623
|
"name": "keyword.language.gdscript"
|
|
614
624
|
},
|
|
615
625
|
"lambda_declaration": {
|
|
@@ -702,7 +712,7 @@
|
|
|
702
712
|
},
|
|
703
713
|
"patterns": [
|
|
704
714
|
{
|
|
705
|
-
"include": "#
|
|
715
|
+
"include": "#expression"
|
|
706
716
|
}
|
|
707
717
|
]
|
|
708
718
|
},
|
|
@@ -745,7 +755,7 @@
|
|
|
745
755
|
]
|
|
746
756
|
},
|
|
747
757
|
{
|
|
748
|
-
"include": "#
|
|
758
|
+
"include": "#expression"
|
|
749
759
|
}
|
|
750
760
|
]
|
|
751
761
|
},
|
|
@@ -860,6 +870,10 @@
|
|
|
860
870
|
"match": "\\b([A-Z]+[a-z_0-9]*([A-Z]?[a-z_0-9]+)*[A-Z]?)\\b",
|
|
861
871
|
"name": "entity.name.type.class.gdscript"
|
|
862
872
|
},
|
|
873
|
+
"region": {
|
|
874
|
+
"match": "#(end)?region.*$\\n?",
|
|
875
|
+
"name": "keyword.language.region.gdscript"
|
|
876
|
+
},
|
|
863
877
|
"round_braces": {
|
|
864
878
|
"begin": "\\(",
|
|
865
879
|
"beginCaptures": {
|
|
@@ -1052,7 +1066,7 @@
|
|
|
1052
1066
|
"name": "punctuation.separator.annotation.gdscript"
|
|
1053
1067
|
},
|
|
1054
1068
|
"2": {
|
|
1055
|
-
"name": "
|
|
1069
|
+
"name": "entity.name.function.gdscript"
|
|
1056
1070
|
},
|
|
1057
1071
|
"3": {
|
|
1058
1072
|
"name": "entity.name.function.gdscript"
|
|
@@ -1078,7 +1092,7 @@
|
|
|
1078
1092
|
{
|
|
1079
1093
|
"captures": {
|
|
1080
1094
|
"1": {
|
|
1081
|
-
"name": "keyword.language.gdscript
|
|
1095
|
+
"name": "keyword.language.gdscript"
|
|
1082
1096
|
},
|
|
1083
1097
|
"2": {
|
|
1084
1098
|
"name": "entity.name.function.gdscript"
|
package/index.js
CHANGED
|
@@ -1036,16 +1036,16 @@ export const grammars = [
|
|
|
1036
1036
|
source: 'https://github.com/godotengine/godot-vscode-plugin/blob/e7e2d0439dea0fb3a568378554c81e0a17348a84/syntaxes/GDResource.tmLanguage.json',
|
|
1037
1037
|
},
|
|
1038
1038
|
{
|
|
1039
|
-
byteSize:
|
|
1039
|
+
byteSize: 18267,
|
|
1040
1040
|
displayName: 'GDScript',
|
|
1041
|
-
hash: '
|
|
1042
|
-
lastUpdate: '
|
|
1041
|
+
hash: 'UIMLMR7oJc',
|
|
1042
|
+
lastUpdate: '2025-02-22T18:46:32Z',
|
|
1043
1043
|
license: 'MIT',
|
|
1044
1044
|
licenseUrl: 'https://raw.githubusercontent.com/godotengine/godot-vscode-plugin/master/LICENSE',
|
|
1045
1045
|
name: 'gdscript',
|
|
1046
1046
|
scopeName: 'source.gdscript',
|
|
1047
|
-
sha: '
|
|
1048
|
-
source: 'https://github.com/godotengine/godot-vscode-plugin/blob/
|
|
1047
|
+
sha: '0a3c319879b731b121cbf454d72a97b4f96c37e3',
|
|
1048
|
+
source: 'https://github.com/godotengine/godot-vscode-plugin/blob/0a3c319879b731b121cbf454d72a97b4f96c37e3/syntaxes/GDScript.tmLanguage.json',
|
|
1049
1049
|
},
|
|
1050
1050
|
{
|
|
1051
1051
|
byteSize: 6096,
|