github-linguist 7.11.0 → 7.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/source.gdscript.json +378 -132
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/classifier.rb +19 -12
- data/lib/linguist/generated.rb +14 -3
- data/lib/linguist/heuristics.yml +3 -3
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +11 -3
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +1 -1
- data/lib/linguist/samples.rb +2 -2
- data/lib/linguist/{md5.rb → sha256.rb} +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44e76c87180265b5183ed6101dd0eae4e4c937d0db6ff21394d5d05ae325fb84
|
4
|
+
data.tar.gz: dcdc54d65f47aa2376b17fe2e4e656b029781217effce570752a0e4decfaf5fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 668f294631e9db05cf5812be2176b4cd7b696ff4012177f48dcf91325c67f71654524d33932348f213017572ee2b72c58ba31541411e67dee78c5be32ede247e
|
7
|
+
data.tar.gz: 9baa47b5b7ac2f52d0204079f5ece7de0ea97cd09be6d53857ac7d3b11da665eee10ebf10609464da91bf57c6a85bccffe90779e2f4debff7a33ad6aaf06a5f3
|
@@ -1,245 +1,491 @@
|
|
1
1
|
{
|
2
|
-
"name": "GDScript
|
2
|
+
"name": "GDScript",
|
3
3
|
"scopeName": "source.gdscript",
|
4
4
|
"patterns": [
|
5
5
|
{
|
6
|
-
"
|
7
|
-
"match": "(#).*$\\n?",
|
8
|
-
"captures": {
|
9
|
-
"1": {
|
10
|
-
"name": "punctuation.definition.comment.number-sign.gdscript"
|
11
|
-
}
|
12
|
-
}
|
6
|
+
"include": "#base_expression"
|
13
7
|
},
|
14
8
|
{
|
15
|
-
"
|
16
|
-
"begin": "^(\"\"\")",
|
17
|
-
"end": "(\"\"\")",
|
18
|
-
"beginCaptures": {
|
19
|
-
"1": {
|
20
|
-
"name": "punctuation.definition.comment.triple-quote.gdscript"
|
21
|
-
}
|
22
|
-
},
|
23
|
-
"endCaptures": {
|
24
|
-
"1": {
|
25
|
-
"name": "punctuation.definition.comment.triple-quote.gdscript"
|
26
|
-
}
|
27
|
-
}
|
9
|
+
"include": "#logic_op"
|
28
10
|
},
|
29
11
|
{
|
30
|
-
"
|
31
|
-
"begin": "\"",
|
32
|
-
"end": "(?\u003c!\\\\)\""
|
12
|
+
"include": "#compare_op"
|
33
13
|
},
|
34
14
|
{
|
35
|
-
"
|
36
|
-
"begin": "'",
|
37
|
-
"end": "(?\u003c!\\\\)'"
|
15
|
+
"include": "#arithmetic_op"
|
38
16
|
},
|
39
17
|
{
|
40
|
-
"
|
41
|
-
"begin": "\"\"\"",
|
42
|
-
"end": "(?\u003c!\\\\)\"\"\""
|
18
|
+
"include": "#assignment_op"
|
43
19
|
},
|
44
20
|
{
|
45
|
-
"
|
46
|
-
"begin": "@\"",
|
47
|
-
"end": "(?\u003c!\\\\)\""
|
21
|
+
"include": "#keywords"
|
48
22
|
},
|
49
23
|
{
|
50
|
-
"
|
51
|
-
"match": "\\b(?i:0x[0-9A-Fa-f]*)\\b"
|
24
|
+
"include": "#self"
|
52
25
|
},
|
53
26
|
{
|
54
|
-
"
|
55
|
-
"match": "\\b(?i:(\\d+\\.\\d*(e[\\-\\+]?\\d+)?))\\b"
|
27
|
+
"include": "#const_def"
|
56
28
|
},
|
57
29
|
{
|
58
|
-
"
|
59
|
-
"match": "\\b(?i:(\\.\\d+(e[\\-\\+]?\\d+)?))\\b"
|
30
|
+
"include": "#type_declear"
|
60
31
|
},
|
61
32
|
{
|
62
|
-
"
|
63
|
-
"match": "\\b(?i:(\\d+e[\\-\\+]?\\d+))\\b"
|
33
|
+
"include": "#class_def"
|
64
34
|
},
|
65
35
|
{
|
66
|
-
"
|
67
|
-
"match": "\\b\\d+\\b"
|
36
|
+
"include": "#class_name"
|
68
37
|
},
|
69
38
|
{
|
70
|
-
"
|
71
|
-
"match": "\\b(?i:elif|else|for|if|while|break|continue|pass|return)\\b"
|
39
|
+
"include": "#builtin_func"
|
72
40
|
},
|
73
41
|
{
|
74
|
-
"
|
75
|
-
"match": "\\b(?i:\u0026\u0026|and|in|is|!|not|\\|\\||or)\\b"
|
42
|
+
"include": "#builtin_classes"
|
76
43
|
},
|
77
44
|
{
|
78
|
-
"
|
79
|
-
"match": "\u003c=|\u003e=|==|\u003c|\u003e|!="
|
45
|
+
"include": "#const_vars"
|
80
46
|
},
|
81
47
|
{
|
82
|
-
"
|
83
|
-
"match": "\\+=|-=|\\*=|/=|%=|\u0026=|\\|=|\\*|/|%|\\+|-|\u003c\u003c|\u003e\u003e|\u0026|\\||\\^|~"
|
48
|
+
"include": "#class_new"
|
84
49
|
},
|
85
50
|
{
|
86
|
-
"
|
87
|
-
"match": "="
|
51
|
+
"include": "#class_is"
|
88
52
|
},
|
89
53
|
{
|
90
|
-
"
|
91
|
-
"match": "\\b(bool|int|float|String|funcref)\\b"
|
54
|
+
"include": "#class_enum"
|
92
55
|
},
|
93
56
|
{
|
94
|
-
"
|
95
|
-
"match": "\\b(Vector[23]|Rect2|Matrix32?|Plane|Quat|AABB|Transform)\\b"
|
57
|
+
"include": "#function-declaration"
|
96
58
|
},
|
97
59
|
{
|
98
|
-
"
|
99
|
-
"match": "\\b(Color|Image|NodePath|RID|Object|InputEvent)\\b"
|
60
|
+
"include": "#function-return-type"
|
100
61
|
},
|
101
62
|
{
|
102
|
-
"
|
103
|
-
"match": "\\b(Array|Dictionary|ByteArray|IntArray|FloatArray|StringArray|Vector[23]Array|ColorArray)\\b"
|
63
|
+
"include": "#any-method"
|
104
64
|
},
|
105
65
|
{
|
106
|
-
"
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
},
|
111
|
-
"2": {
|
112
|
-
"name": "entity.name.type.class.gdscript"
|
113
|
-
}
|
114
|
-
}
|
66
|
+
"include": "#any-property"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"include": "#extends"
|
115
70
|
},
|
116
71
|
{
|
117
|
-
"
|
118
|
-
|
72
|
+
"include": "#pascal_case_class"
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"repository": {
|
76
|
+
"annotated-parameter": {
|
77
|
+
"begin": "(?x)\n \\b\n ([[:alpha:]_]\\w*) \\s* (:)\n",
|
78
|
+
"end": "(,)|(?=\\))",
|
119
79
|
"patterns": [
|
120
80
|
{
|
121
|
-
"name": "
|
122
|
-
"match": "
|
81
|
+
"name": "keyword.operator.assignment.gdscript",
|
82
|
+
"match": "=(?!=)"
|
123
83
|
}
|
124
84
|
],
|
125
85
|
"beginCaptures": {
|
126
86
|
"1": {
|
127
|
-
"name": "
|
87
|
+
"name": "variable.parameter.function.language.gdscript"
|
128
88
|
},
|
129
89
|
"2": {
|
130
|
-
"name": "
|
131
|
-
}
|
132
|
-
|
133
|
-
|
90
|
+
"name": "punctuation.separator.annotation.gdscript"
|
91
|
+
}
|
92
|
+
},
|
93
|
+
"endCaptures": {
|
94
|
+
"1": {
|
95
|
+
"name": "punctuation.separator.parameters.gdscript"
|
134
96
|
}
|
135
97
|
}
|
136
98
|
},
|
137
|
-
{
|
138
|
-
"
|
139
|
-
"
|
99
|
+
"any-method": {
|
100
|
+
"name": "support.function.any-method.gdscript",
|
101
|
+
"match": "\\b([A-Za-z_]\\w*)\\b(?=\\s*(?:[(]))"
|
102
|
+
},
|
103
|
+
"any-property": {
|
104
|
+
"name": "variable.other.property.gdscript",
|
105
|
+
"match": "(?\u003c=[^.]\\.)\\b([A-Za-z_]\\w*)\\b(?![(])"
|
106
|
+
},
|
107
|
+
"arithmetic_op": {
|
108
|
+
"name": "keyword.operator.arithmetic.gdscript",
|
109
|
+
"match": "\\+=|-=|\\*=|/=|%=|\u0026=|\\|=|\\*|/|%|\\+|-|\u003c\u003c|\u003e\u003e|\u0026|\\||\\^|~"
|
110
|
+
},
|
111
|
+
"assignment_op": {
|
112
|
+
"name": "keyword.operator.assignment.gdscript",
|
113
|
+
"match": "="
|
114
|
+
},
|
115
|
+
"base_expression": {
|
140
116
|
"patterns": [
|
141
117
|
{
|
142
|
-
"
|
143
|
-
|
118
|
+
"include": "#strings"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"include": "#comment"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"include": "#letter"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"include": "#numbers"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"include": "#line-continuation"
|
144
131
|
}
|
145
|
-
]
|
146
|
-
|
132
|
+
]
|
133
|
+
},
|
134
|
+
"builtin_classes": {
|
135
|
+
"name": "support.class.library.gdscript",
|
136
|
+
"match": "(?\u003c![^.]\\.|:)\\b(Vector2|Vector3|Color|Rect2|Array|Basis|Dictionary|Plane|Quat|RID|Rect3|Transform|Transform2D|AABB|String|Color|NodePath|RID|Object|Dictionary|Array|PoolByteArray|PoolIntArray|PoolRealArray|PoolStringArray|PoolVector2Array|PoolVector3Array|PoolColorArray)\\b"
|
137
|
+
},
|
138
|
+
"builtin_func": {
|
139
|
+
"name": "support.function.builtin.gdscript",
|
140
|
+
"match": "(?\u003c![^.]\\.|:)\\b(sin|cos|tan|sinh|cosh|tanh|asin|acos|atan|atan2|sqrt|fmod|fposmod|floor|ceil|round|abs|sign|pow|log|exp|is_nan|is_inf|ease|decimals|stepify|lerp|dectime|randomize|randi|randf|rand_range|seed|rand_seed|deg2rad|rad2deg|linear2db|db2linear|max|min|clamp|nearest_po2|weakref|funcref|convert|typeof|type_exists|char|str|print|printt|prints|printerr|printraw|var2str|str2var|var2bytes|bytes2var|range|load|inst2dict|dict2inst|hash|Color8|print_stack|instance_from_id|preload|yield|assert)\\b(?=(\\()([^)]*)(\\)))"
|
141
|
+
},
|
142
|
+
"class_def": {
|
143
|
+
"match": "(?\u003c=^class)\\s+([a-zA-Z_]\\w*)\\s*(?=:)",
|
144
|
+
"captures": {
|
147
145
|
"1": {
|
148
|
-
"name": "
|
146
|
+
"name": "entity.name.type.class.gdscript"
|
149
147
|
},
|
150
148
|
"2": {
|
151
|
-
"name": "
|
149
|
+
"name": "class.other.gdscript"
|
152
150
|
}
|
153
151
|
}
|
154
152
|
},
|
155
|
-
{
|
156
|
-
"match": "
|
153
|
+
"class_enum": {
|
154
|
+
"match": "\\b([A-Z][a-zA-Z_0-9]*)\\.([A-Z_0-9]+)",
|
157
155
|
"captures": {
|
158
156
|
"1": {
|
159
|
-
"name": "
|
157
|
+
"name": "entity.name.type.class.gdscript"
|
160
158
|
},
|
161
159
|
"2": {
|
162
|
-
"name": "
|
160
|
+
"name": "constant.language.gdscript"
|
161
|
+
}
|
162
|
+
}
|
163
|
+
},
|
164
|
+
"class_is": {
|
165
|
+
"match": "\\s+(is)\\s+([a-zA-Z_][a-zA-Z_0-9]*)",
|
166
|
+
"captures": {
|
167
|
+
"1": {
|
168
|
+
"name": "storage.type.is.gdscript"
|
163
169
|
},
|
164
|
-
"
|
165
|
-
"name": "
|
170
|
+
"2": {
|
171
|
+
"name": "entity.name.type.class.gdscript"
|
166
172
|
}
|
167
173
|
}
|
168
174
|
},
|
169
|
-
{
|
175
|
+
"class_name": {
|
176
|
+
"match": "(?\u003c=class_name)\\s+([a-zA-Z_][a-zA-Z_0-9]*(\\.([a-zA-Z_][a-zA-Z_0-9]*))?)",
|
177
|
+
"captures": {
|
178
|
+
"1": {
|
179
|
+
"name": "entity.name.type.class.gdscript"
|
180
|
+
},
|
181
|
+
"2": {
|
182
|
+
"name": "class.other.gdscript"
|
183
|
+
}
|
184
|
+
}
|
185
|
+
},
|
186
|
+
"class_new": {
|
187
|
+
"match": "\\b([a-zA-Z_][a-zA-Z_0-9]*).(new)\\(",
|
188
|
+
"captures": {
|
189
|
+
"1": {
|
190
|
+
"name": "entity.name.type.class.gdscript"
|
191
|
+
},
|
192
|
+
"2": {
|
193
|
+
"name": "storage.type.new.gdscript"
|
194
|
+
}
|
195
|
+
}
|
196
|
+
},
|
197
|
+
"comment": {
|
198
|
+
"name": "comment.line.number-sign.gdscript",
|
199
|
+
"match": "(#).*$\\n?",
|
200
|
+
"captures": {
|
201
|
+
"1": {
|
202
|
+
"name": "punctuation.definition.comment.number-sign.gdscript"
|
203
|
+
}
|
204
|
+
}
|
205
|
+
},
|
206
|
+
"compare_op": {
|
207
|
+
"name": "keyword.operator.comparison.gdscript",
|
208
|
+
"match": "\u003c=|\u003e=|==|\u003c|\u003e|!="
|
209
|
+
},
|
210
|
+
"const_def": {
|
170
211
|
"match": "\\b(?i:(const))\\s+([a-zA-Z_][a-zA-Z_0-9]*)",
|
171
212
|
"captures": {
|
172
213
|
"1": {
|
173
214
|
"name": "storage.type.const.gdscript"
|
174
215
|
},
|
175
216
|
"2": {
|
176
|
-
"name": "
|
217
|
+
"name": "constant.language.gdscript"
|
177
218
|
}
|
178
219
|
}
|
179
220
|
},
|
180
|
-
{
|
181
|
-
"name": "
|
182
|
-
"match": "\\b(
|
221
|
+
"const_vars": {
|
222
|
+
"name": "constant.language.gdscript",
|
223
|
+
"match": "\\b([A-Z_0-9]+)\\b"
|
183
224
|
},
|
184
|
-
{
|
225
|
+
"extends": {
|
185
226
|
"name": "entity.other.inherited-class.gdscript",
|
186
227
|
"match": "(?\u003c=extends)\\s+[a-zA-Z_][a-zA-Z_0-9]*(\\.([a-zA-Z_][a-zA-Z_0-9]*))?"
|
187
228
|
},
|
188
|
-
{
|
229
|
+
"function-declaration": {
|
230
|
+
"name": "meta.function.gdscript",
|
231
|
+
"begin": "(?x)\n \\s*\n (?:\\b(static) \\s+)? \\b(func|signal)\\s+\n (?=\n [[:alpha:]_][[:word:]]* \\s* \\(\n )\n",
|
232
|
+
"end": "(:|(?=[#'\"\\n]))",
|
233
|
+
"patterns": [
|
234
|
+
{
|
235
|
+
"include": "#function-def-name"
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"include": "#parameters"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"include": "#line-continuation"
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"include": "#return-annotation"
|
245
|
+
}
|
246
|
+
],
|
247
|
+
"beginCaptures": {
|
248
|
+
"1": {
|
249
|
+
"name": "storage.type.function.static.gdscript"
|
250
|
+
},
|
251
|
+
"2": {
|
252
|
+
"name": "storage.type.function.gdscript"
|
253
|
+
}
|
254
|
+
},
|
255
|
+
"endCaptures": {
|
256
|
+
"1": {
|
257
|
+
"name": "punctuation.section.function.begin.gdscript"
|
258
|
+
}
|
259
|
+
}
|
260
|
+
},
|
261
|
+
"function-def-name": {
|
262
|
+
"patterns": [
|
263
|
+
{
|
264
|
+
"name": "entity.name.function.gdscript",
|
265
|
+
"match": "(?x)\n \\b ([[:alpha:]_]\\w*) \\b\n"
|
266
|
+
}
|
267
|
+
]
|
268
|
+
},
|
269
|
+
"function-return-type": {
|
270
|
+
"match": "\\)\\s*\\-\\\u003e\\s*([a-zA-Z_][a-zA-Z_0-9]*)\\s*\\:",
|
271
|
+
"captures": {
|
272
|
+
"1": {
|
273
|
+
"name": "entity.name.type.class.gdscript"
|
274
|
+
}
|
275
|
+
}
|
276
|
+
},
|
277
|
+
"keywords": {
|
278
|
+
"name": "keyword.language.gdscript",
|
279
|
+
"match": "\\b(?i:if|elif|else|for|while|break|continue|pass|return|match|func|class|class_name|extends|is|in|onready|tool|static|export|setget|const|var|as|void|enum|preload|assert|yield|signal|breakpoint|rpc|sync|master|puppet|slave|remotesync|mastersync|puppetsync)\\b"
|
280
|
+
},
|
281
|
+
"letter": {
|
189
282
|
"name": "constant.language.gdscript",
|
190
283
|
"match": "\\b(?i:true|false|null)\\b"
|
191
284
|
},
|
192
|
-
{
|
193
|
-
"
|
194
|
-
|
285
|
+
"line-continuation": {
|
286
|
+
"patterns": [
|
287
|
+
{
|
288
|
+
"match": "(\\\\)\\s*(\\S.*$\\n?)",
|
289
|
+
"captures": {
|
290
|
+
"1": {
|
291
|
+
"name": "punctuation.separator.continuation.line.gdscript"
|
292
|
+
},
|
293
|
+
"2": {
|
294
|
+
"name": "invalid.illegal.line.continuation.gdscript"
|
295
|
+
}
|
296
|
+
}
|
297
|
+
},
|
298
|
+
{
|
299
|
+
"begin": "(\\\\)\\s*$\\n?",
|
300
|
+
"end": "(?x)\n (?=^\\s*$)\n |\n (?! (\\s* [rR]? (\\'\\'\\'|\\\"\\\"\\\"|\\'|\\\"))\n |\n (\\G $) (?# '\\G' is necessary for ST)\n )\n",
|
301
|
+
"patterns": [
|
302
|
+
{
|
303
|
+
"include": "#base_expression"
|
304
|
+
}
|
305
|
+
],
|
306
|
+
"beginCaptures": {
|
307
|
+
"1": {
|
308
|
+
"name": "punctuation.separator.continuation.line.gdscript"
|
309
|
+
}
|
310
|
+
}
|
311
|
+
}
|
312
|
+
]
|
195
313
|
},
|
196
|
-
{
|
197
|
-
"
|
314
|
+
"logic_op": {
|
315
|
+
"name": "keyword.operator.logical.gdscript",
|
316
|
+
"match": "\\b(and|or|not)\\b"
|
317
|
+
},
|
318
|
+
"loose-default": {
|
319
|
+
"begin": "(=)",
|
320
|
+
"end": "(,)|(?=\\))",
|
321
|
+
"patterns": [
|
322
|
+
{
|
323
|
+
"include": "#base_expression"
|
324
|
+
}
|
325
|
+
],
|
326
|
+
"beginCaptures": {
|
327
|
+
"1": {
|
328
|
+
"name": "keyword.operator.gdscript"
|
329
|
+
}
|
330
|
+
},
|
331
|
+
"endCaptures": {
|
332
|
+
"1": {
|
333
|
+
"name": "punctuation.separator.parameters.gdscript"
|
334
|
+
}
|
335
|
+
}
|
336
|
+
},
|
337
|
+
"numbers": {
|
338
|
+
"patterns": [
|
339
|
+
{
|
340
|
+
"name": "constant.numeric.integer.hexadecimal.gdscript",
|
341
|
+
"match": "\\b(?i:0x[[:xdigit:]]*)\\b"
|
342
|
+
},
|
343
|
+
{
|
344
|
+
"name": "constant.numeric.float.gdscript",
|
345
|
+
"match": "\\b(?i:(\\d+\\.\\d*(e[\\-\\+]?\\d+)?))\\b"
|
346
|
+
},
|
347
|
+
{
|
348
|
+
"name": "constant.numeric.float.gdscript",
|
349
|
+
"match": "\\b(?i:(\\.\\d+(e[\\-\\+]?\\d+)?))\\b"
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"name": "constant.numeric.float.gdscript",
|
353
|
+
"match": "\\b(?i:(\\d+e[\\-\\+]?\\d+))\\b"
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"name": "constant.numeric.integer.gdscript",
|
357
|
+
"match": "\\b\\d+\\b"
|
358
|
+
}
|
359
|
+
]
|
360
|
+
},
|
361
|
+
"parameter-special": {
|
362
|
+
"match": "(?x)\n \\b ((self)|(cls)) \\b \\s*(?:(,)|(?=\\)))\n",
|
198
363
|
"captures": {
|
199
364
|
"1": {
|
200
|
-
"name": "
|
365
|
+
"name": "variable.parameter.function.language.gdscript"
|
201
366
|
},
|
202
367
|
"2": {
|
203
|
-
"name": "
|
368
|
+
"name": "variable.parameter.function.language.special.self.gdscript"
|
204
369
|
},
|
205
370
|
"3": {
|
206
|
-
"name": "
|
371
|
+
"name": "variable.parameter.function.language.special.cls.gdscript"
|
207
372
|
},
|
208
373
|
"4": {
|
209
|
-
"name": "
|
374
|
+
"name": "punctuation.separator.parameters.gdscript"
|
210
375
|
}
|
211
376
|
}
|
212
377
|
},
|
213
|
-
{
|
214
|
-
"name": "
|
215
|
-
"
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
378
|
+
"parameters": {
|
379
|
+
"name": "meta.function.parameters.gdscript",
|
380
|
+
"begin": "(\\()",
|
381
|
+
"end": "(\\))",
|
382
|
+
"patterns": [
|
383
|
+
{
|
384
|
+
"name": "keyword.operator.unpacking.parameter.gdscript",
|
385
|
+
"match": "(\\*\\*|\\*)"
|
386
|
+
},
|
387
|
+
{
|
388
|
+
"include": "#parameter-special"
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"match": "(?x)\n ([[:alpha:]_]\\w*)\n \\s* (?: (,) | (?=[)#\\n=]))\n",
|
392
|
+
"captures": {
|
393
|
+
"1": {
|
394
|
+
"name": "variable.parameter.function.language.gdscript"
|
395
|
+
},
|
396
|
+
"2": {
|
397
|
+
"name": "punctuation.separator.parameters.gdscript"
|
398
|
+
}
|
399
|
+
}
|
400
|
+
},
|
401
|
+
{
|
402
|
+
"include": "#comment"
|
403
|
+
},
|
404
|
+
{
|
405
|
+
"include": "#loose-default"
|
406
|
+
},
|
407
|
+
{
|
408
|
+
"include": "#annotated-parameter"
|
409
|
+
}
|
410
|
+
],
|
411
|
+
"beginCaptures": {
|
412
|
+
"1": {
|
413
|
+
"name": "punctuation.definition.parameters.begin.gdscript"
|
414
|
+
}
|
415
|
+
},
|
416
|
+
"endCaptures": {
|
417
|
+
"1": {
|
418
|
+
"name": "punctuation.definition.parameters.end.gdscript"
|
419
|
+
}
|
420
|
+
}
|
220
421
|
},
|
221
|
-
{
|
222
|
-
"
|
223
|
-
"
|
422
|
+
"pascal_case_class": {
|
423
|
+
"match": "\\b([A-Z][a-zA-Z_0-9]*)\\b",
|
424
|
+
"captures": {
|
425
|
+
"1": {
|
426
|
+
"name": "entity.name.type.class.gdscript"
|
427
|
+
}
|
428
|
+
}
|
224
429
|
},
|
225
|
-
{
|
226
|
-
"name": "
|
227
|
-
"match": "
|
430
|
+
"self": {
|
431
|
+
"name": "variable.language.gdscript",
|
432
|
+
"match": "\\bself\\b"
|
228
433
|
},
|
229
|
-
{
|
230
|
-
"begin": "([a-z][a-zA-Z_0-9]*)\\s*\\(",
|
231
|
-
"end": "\\)",
|
434
|
+
"strings": {
|
232
435
|
"patterns": [
|
233
436
|
{
|
234
|
-
"name": "
|
235
|
-
"
|
437
|
+
"name": "string.quoted.double.gdscript",
|
438
|
+
"begin": "\"",
|
439
|
+
"end": "\"",
|
440
|
+
"patterns": [
|
441
|
+
{
|
442
|
+
"name": "constant.character.escape.untitled",
|
443
|
+
"match": "\\."
|
444
|
+
}
|
445
|
+
]
|
446
|
+
},
|
447
|
+
{
|
448
|
+
"name": "string.quoted.single.gdscript",
|
449
|
+
"begin": "'",
|
450
|
+
"end": "'",
|
451
|
+
"patterns": [
|
452
|
+
{
|
453
|
+
"name": "constant.character.escape.untitled",
|
454
|
+
"match": "\\."
|
455
|
+
}
|
456
|
+
]
|
457
|
+
},
|
458
|
+
{
|
459
|
+
"name": "string.nodepath.gdscript",
|
460
|
+
"begin": "@\"",
|
461
|
+
"end": "\"",
|
462
|
+
"patterns": [
|
463
|
+
{
|
464
|
+
"name": "constant.character.escape.untitled",
|
465
|
+
"match": "\\."
|
466
|
+
}
|
467
|
+
]
|
236
468
|
}
|
237
|
-
]
|
238
|
-
|
469
|
+
]
|
470
|
+
},
|
471
|
+
"type_declear": {
|
472
|
+
"match": "\\:\\s*([a-zA-Z_][a-zA-Z_0-9]*)",
|
473
|
+
"captures": {
|
239
474
|
"1": {
|
240
|
-
"name": "entity.name.
|
475
|
+
"name": "entity.name.type.class.gdscript"
|
476
|
+
}
|
477
|
+
}
|
478
|
+
},
|
479
|
+
"var_def": {
|
480
|
+
"match": "\\b(?i:(var))\\s+([a-zA-Z_][a-zA-Z_0-9]*)",
|
481
|
+
"captures": {
|
482
|
+
"1": {
|
483
|
+
"name": "storage.type.var.gdscript"
|
484
|
+
},
|
485
|
+
"2": {
|
486
|
+
"name": "variable.language.gdscript"
|
241
487
|
}
|
242
488
|
}
|
243
489
|
}
|
244
|
-
|
490
|
+
}
|
245
491
|
}
|