github-linguist 7.6.1 → 7.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/github-linguist +17 -4
- data/grammars/annotation.liquidhaskell.haskell.json +11 -11
- data/grammars/etc.json +212 -3
- data/grammars/hidden.manref.json +29 -0
- data/grammars/hint.haskell.json +11 -11
- data/grammars/hint.message.haskell.json +11 -11
- data/grammars/hint.type.haskell.json +11 -11
- data/grammars/injections.etc.json +601 -1
- data/grammars/source.abap.json +7 -7
- data/grammars/source.abnf.json +23 -1
- data/grammars/source.ahk.json +3 -3
- data/grammars/source.angelscript.json +1 -1
- data/grammars/source.ballerina.json +54 -18
- data/grammars/source.csound.json +1 -1
- data/grammars/source.css.json +2 -2
- data/grammars/source.css.scss.json +164 -15
- data/grammars/source.curlrc.json +869 -65
- data/grammars/source.dart.json +1 -1
- data/grammars/source.dircolors.json +39 -0
- data/grammars/source.direct-x.json +135 -0
- data/grammars/source.ebnf.json +67 -39
- data/grammars/source.elixir.json +43 -0
- data/grammars/source.gfm.json +1 -1
- data/grammars/source.gitconfig.json +1 -1
- data/grammars/source.hack.json +196 -80
- data/grammars/source.haskell.json +11 -11
- data/grammars/source.hosts.json +40 -0
- data/grammars/source.hsig.json +11 -11
- data/grammars/source.igor.json +2 -2
- data/grammars/source.ini.npmrc.json +311 -0
- data/grammars/source.inno.json +133 -0
- data/grammars/source.inputrc.json +500 -0
- data/grammars/source.js.json +4 -4
- data/grammars/source.julia.json +45 -3
- data/grammars/source.kotlin.json +1 -1
- data/grammars/source.lex.json +4 -4
- data/grammars/source.m4.json +141 -99
- data/grammars/source.man-conf.json +46 -34
- data/grammars/source.matlab.json +225 -35
- data/grammars/source.mcfunction-snapshot.json +21388 -561
- data/grammars/source.mcfunction.json +55 -5
- data/grammars/source.mlir.json +37 -317
- data/grammars/source.mrc.json +858 -0
- data/grammars/source.opts.json +12 -2
- data/grammars/source.p4.json +21 -5
- data/grammars/source.prisma.json +428 -0
- data/grammars/source.python.json +2 -0
- data/grammars/source.reason.json +28 -16
- data/grammars/source.rego.json +124 -0
- data/grammars/source.sass.json +158 -3
- data/grammars/source.scala.json +26 -15
- data/grammars/source.ssh-config.json +1 -14
- data/grammars/source.swift.json +162 -2
- data/grammars/source.ts.json +74 -25
- data/grammars/source.tsx.json +75 -26
- data/grammars/source.v.json +58 -16
- data/grammars/source.vim-snippet.json +645 -0
- data/grammars/source.viml.json +5 -5
- data/grammars/source.wgetrc.json +1640 -0
- data/grammars/source.zig.json +169 -304
- data/grammars/text.html.php.blade.json +1 -1
- data/grammars/text.html.riot.json +788 -0
- data/grammars/text.muse.json +1471 -0
- data/grammars/text.tex.latex.haskell.json +11 -11
- data/grammars/text.vim-help.json +383 -0
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/blob_helper.rb +4 -2
- data/lib/linguist/generated.rb +39 -12
- data/lib/linguist/heuristics.yml +16 -1
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +183 -14
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +6910 -536
- data/lib/linguist/vendor.yml +6 -0
- metadata +18 -5
- data/grammars/source.jlex.json +0 -322
data/grammars/source.zig.json
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
],
|
9
9
|
"repository": {
|
10
10
|
"block": {
|
11
|
-
"contentName": "meta.block.zig",
|
12
11
|
"begin": "([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")?\\s*(\\{)",
|
13
12
|
"end": "(\\})",
|
14
13
|
"patterns": [
|
@@ -69,22 +68,18 @@
|
|
69
68
|
"comments": {
|
70
69
|
"patterns": [
|
71
70
|
{
|
72
|
-
"name": "comment.line.
|
73
|
-
"
|
71
|
+
"name": "comment.line.documentation.zig",
|
72
|
+
"begin": "///",
|
73
|
+
"end": "$\\n?"
|
74
74
|
},
|
75
75
|
{
|
76
|
-
"name": "comment.line.zig",
|
77
|
-
"begin": "//[^/]",
|
78
|
-
"end": "$\\n?"
|
79
|
-
"patterns": [
|
80
|
-
{
|
81
|
-
"include": "#todo"
|
82
|
-
}
|
83
|
-
]
|
76
|
+
"name": "comment.line.todo.zig",
|
77
|
+
"begin": "//[^/]\\s*TODO",
|
78
|
+
"end": "$\\n?"
|
84
79
|
},
|
85
80
|
{
|
86
|
-
"name": "comment.line.
|
87
|
-
"begin": "
|
81
|
+
"name": "comment.line.zig",
|
82
|
+
"begin": "//[^/]*",
|
88
83
|
"end": "$\\n?"
|
89
84
|
}
|
90
85
|
]
|
@@ -124,135 +119,20 @@
|
|
124
119
|
"container_decl": {
|
125
120
|
"patterns": [
|
126
121
|
{
|
127
|
-
"
|
128
|
-
"
|
129
|
-
"end": "(})",
|
130
|
-
"patterns": [
|
131
|
-
{
|
132
|
-
"include": "#main"
|
133
|
-
}
|
134
|
-
],
|
135
|
-
"beginCaptures": {
|
136
|
-
"1": {
|
137
|
-
"name": "entity.name.union.zig"
|
138
|
-
},
|
139
|
-
"2": {
|
140
|
-
"name": "storage.modifier.zig"
|
141
|
-
},
|
142
|
-
"3": {
|
143
|
-
"name": "storage.type.union.zig"
|
144
|
-
},
|
145
|
-
"4": {
|
146
|
-
"name": "punctuation.section.parens.begin.zig"
|
147
|
-
},
|
148
|
-
"5": {
|
149
|
-
"name": "storage.type.zig"
|
150
|
-
},
|
151
|
-
"6": {
|
152
|
-
"name": "punctuation.section.parens.end.zig"
|
153
|
-
},
|
154
|
-
"7": {
|
155
|
-
"name": "punctuation.section.braces.begin.zig"
|
156
|
-
}
|
157
|
-
},
|
158
|
-
"endCaptures": {
|
159
|
-
"1": {
|
160
|
-
"name": "punctuation.section.braces.end.zig"
|
161
|
-
}
|
162
|
-
}
|
122
|
+
"name": "entity.name.union.zig",
|
123
|
+
"match": "\\b(?!\\d)([a-zA-Z_]\\w*|@\\\".+\\\")?(?=\\s*=\\s*(?:extern|packed)?\\b\\s*(?:union)\\s*[(\\{])"
|
163
124
|
},
|
164
125
|
{
|
165
|
-
"
|
166
|
-
"
|
167
|
-
"end": "(})",
|
168
|
-
"patterns": [
|
169
|
-
{
|
170
|
-
"include": "#main"
|
171
|
-
}
|
172
|
-
],
|
173
|
-
"beginCaptures": {
|
174
|
-
"1": {
|
175
|
-
"name": "entity.name.struct.zig"
|
176
|
-
},
|
177
|
-
"2": {
|
178
|
-
"name": "storage.modifier.zig"
|
179
|
-
},
|
180
|
-
"3": {
|
181
|
-
"name": "storage.type.struct.zig"
|
182
|
-
},
|
183
|
-
"4": {
|
184
|
-
"name": "punctuation.section.braces.begin.zig"
|
185
|
-
}
|
186
|
-
},
|
187
|
-
"endCaptures": {
|
188
|
-
"1": {
|
189
|
-
"name": "punctuation.section.braces.end.zig"
|
190
|
-
}
|
191
|
-
}
|
126
|
+
"name": "entity.name.struct.zig",
|
127
|
+
"match": "\\b(?!\\d)([a-zA-Z_]\\w*|@\\\".+\\\")?(?=\\s*=\\s*(?:extern|packed)?\\b\\s*(?:struct)\\s*[(\\{])"
|
192
128
|
},
|
193
129
|
{
|
194
|
-
"
|
195
|
-
"
|
196
|
-
"end": "(})",
|
197
|
-
"patterns": [
|
198
|
-
{
|
199
|
-
"include": "#main"
|
200
|
-
}
|
201
|
-
],
|
202
|
-
"beginCaptures": {
|
203
|
-
"1": {
|
204
|
-
"name": "entity.name.enum.zig"
|
205
|
-
},
|
206
|
-
"2": {
|
207
|
-
"name": "storage.modifier.zig"
|
208
|
-
},
|
209
|
-
"3": {
|
210
|
-
"name": "storage.type.enum.zig"
|
211
|
-
},
|
212
|
-
"4": {
|
213
|
-
"name": "punctuation.section.parens.begin.zig"
|
214
|
-
},
|
215
|
-
"5": {
|
216
|
-
"name": "storage.type.zig"
|
217
|
-
},
|
218
|
-
"6": {
|
219
|
-
"name": "punctuation.section.parens.end.zig"
|
220
|
-
},
|
221
|
-
"7": {
|
222
|
-
"name": "punctuation.section.braces.begin.zig"
|
223
|
-
}
|
224
|
-
},
|
225
|
-
"endCaptures": {
|
226
|
-
"1": {
|
227
|
-
"name": "punctuation.section.braces.end.zig"
|
228
|
-
}
|
229
|
-
}
|
130
|
+
"name": "entity.name.enum.zig",
|
131
|
+
"match": "\\b(?!\\d)([a-zA-Z_]\\w*|@\\\".+\\\")?(?=\\s*=\\s*(?:extern|packed)?\\b\\s*(?:enum)\\s*[(\\{])"
|
230
132
|
},
|
231
133
|
{
|
232
|
-
"
|
233
|
-
"
|
234
|
-
"end": "(})",
|
235
|
-
"patterns": [
|
236
|
-
{
|
237
|
-
"include": "#main"
|
238
|
-
}
|
239
|
-
],
|
240
|
-
"beginCaptures": {
|
241
|
-
"1": {
|
242
|
-
"name": "entity.name.error.zig"
|
243
|
-
},
|
244
|
-
"2": {
|
245
|
-
"name": "storage.type.error.zig"
|
246
|
-
},
|
247
|
-
"3": {
|
248
|
-
"name": "punctuation.section.braces.begin.zig"
|
249
|
-
}
|
250
|
-
},
|
251
|
-
"endCaptures": {
|
252
|
-
"1": {
|
253
|
-
"name": "punctuation.section.braces.end.zig"
|
254
|
-
}
|
255
|
-
}
|
134
|
+
"name": "entity.name.error.zig",
|
135
|
+
"match": "\\b(?!\\d)([a-zA-Z_]\\w*|@\\\".+\\\")?(?=\\s*=\\s*(?:error)\\s*[(\\{])"
|
256
136
|
},
|
257
137
|
{
|
258
138
|
"match": "\\b(error)(\\.)([a-zA-Z_]\\w*|@\\\".+\\\")",
|
@@ -270,10 +150,13 @@
|
|
270
150
|
}
|
271
151
|
]
|
272
152
|
},
|
153
|
+
"enum_literal": {
|
154
|
+
"name": "constant.language.enum",
|
155
|
+
"match": "(?\u003c!\\w|\\))(\\.(?:[a-zA-Z_][a-zA-Z0-9_]*|@\\\".+\\\"))\\b(?!\\(|\\s*=\\s+)"
|
156
|
+
},
|
273
157
|
"field_decl": {
|
274
|
-
"
|
275
|
-
"
|
276
|
-
"end": "(?:(,)|(?:\\n|\\r))",
|
158
|
+
"begin": "([a-zA-Z_][a-zA-Z0-9_]*|@\\\".+\\\")\\s*(:)\\s*",
|
159
|
+
"end": "([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")?\\s*(?:(,)|(=)|$)",
|
277
160
|
"patterns": [
|
278
161
|
{
|
279
162
|
"include": "#main"
|
@@ -284,38 +167,85 @@
|
|
284
167
|
"name": "variable.other.member.zig"
|
285
168
|
},
|
286
169
|
"2": {
|
287
|
-
"name": "punctuation.
|
170
|
+
"name": "punctuation.separator.zig"
|
288
171
|
}
|
289
172
|
},
|
290
173
|
"endCaptures": {
|
291
174
|
"1": {
|
175
|
+
"name": "storage.type.zig"
|
176
|
+
},
|
177
|
+
"2": {
|
292
178
|
"name": "punctuation.separator.zig"
|
179
|
+
},
|
180
|
+
"3": {
|
181
|
+
"name": "keyword.operator.assignment.zig"
|
293
182
|
}
|
294
183
|
}
|
295
184
|
},
|
296
|
-
"
|
297
|
-
"
|
298
|
-
"
|
299
|
-
|
185
|
+
"function_call": {
|
186
|
+
"name": "variable.function.zig",
|
187
|
+
"match": "(?\u003c!fn)\\b([a-zA-Z_][a-zA-Z0-9_]*|@\\\".+\\\")(?=\\s*\\()"
|
188
|
+
},
|
189
|
+
"function_def": {
|
190
|
+
"begin": "(?\u003c=fn)\\s+([a-zA-Z_][a-zA-Z0-9_]*|@\\\".+\\\")(\\()",
|
191
|
+
"end": "(?\u003c=\\)[^\\)])\\s*([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")?(!)?\\s*(?:([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")\\b(?!\\s*\\())?",
|
300
192
|
"patterns": [
|
193
|
+
{
|
194
|
+
"include": "#label"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"include": "#param_list"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"name": "storage.type.zig",
|
201
|
+
"match": "([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")"
|
202
|
+
},
|
301
203
|
{
|
302
204
|
"include": "#main"
|
205
|
+
}
|
206
|
+
],
|
207
|
+
"beginCaptures": {
|
208
|
+
"1": {
|
209
|
+
"name": "entity.name.function"
|
303
210
|
},
|
211
|
+
"2": {
|
212
|
+
"name": "punctuation.section.parens.begin.zig"
|
213
|
+
}
|
214
|
+
},
|
215
|
+
"endCaptures": {
|
216
|
+
"1": {
|
217
|
+
"name": "storage.type.zig"
|
218
|
+
},
|
219
|
+
"2": {
|
220
|
+
"name": "keyword.operator.zig"
|
221
|
+
},
|
222
|
+
"3": {
|
223
|
+
"name": "storage.type.zig"
|
224
|
+
}
|
225
|
+
}
|
226
|
+
},
|
227
|
+
"function_type": {
|
228
|
+
"contentName": "meta.function.parameters.zig",
|
229
|
+
"begin": "\\b(fn)\\s*(\\()",
|
230
|
+
"end": "(?\u003c=\\)|\\})\\s*([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")?\\s*(!)?\\s*([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")",
|
231
|
+
"patterns": [
|
304
232
|
{
|
305
|
-
"
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
233
|
+
"include": "#label"
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"include": "#param_list"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"name": "storage.type.zig",
|
240
|
+
"match": "([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")"
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"include": "#main"
|
314
244
|
}
|
315
245
|
],
|
316
246
|
"beginCaptures": {
|
317
247
|
"1": {
|
318
|
-
"name": "
|
248
|
+
"name": "storage.type.function.zig"
|
319
249
|
},
|
320
250
|
"2": {
|
321
251
|
"name": "punctuation.section.parens.begin.zig"
|
@@ -323,7 +253,13 @@
|
|
323
253
|
},
|
324
254
|
"endCaptures": {
|
325
255
|
"1": {
|
326
|
-
"name": "
|
256
|
+
"name": "storage.type.zig"
|
257
|
+
},
|
258
|
+
"2": {
|
259
|
+
"name": "keyword.operator.zig"
|
260
|
+
},
|
261
|
+
"3": {
|
262
|
+
"name": "storage.type.zig"
|
327
263
|
}
|
328
264
|
}
|
329
265
|
},
|
@@ -335,7 +271,7 @@
|
|
335
271
|
},
|
336
272
|
{
|
337
273
|
"name": "keyword.control.async.zig",
|
338
|
-
"match": "\\b(async|await|suspend|resume|cancel)\\b"
|
274
|
+
"match": "\\b(noasync|async|await|suspend|resume|cancel)\\b"
|
339
275
|
},
|
340
276
|
{
|
341
277
|
"name": "keyword.control.conditional.zig",
|
@@ -347,132 +283,26 @@
|
|
347
283
|
},
|
348
284
|
{
|
349
285
|
"name": "keyword.other.usingnamespace.zig",
|
350
|
-
"match": "\\
|
351
|
-
},
|
352
|
-
{
|
353
|
-
"name": "keyword.other.test.zig",
|
354
|
-
"match": "\\btest\\b"
|
286
|
+
"match": "\\b(usingnamespace)\\b"
|
355
287
|
}
|
356
288
|
]
|
357
289
|
},
|
358
290
|
"label": {
|
359
|
-
"
|
360
|
-
|
361
|
-
|
362
|
-
"
|
291
|
+
"match": "\\b(break|continue)\\s*:\\s*([a-zA-Z_]\\w*|@\\\".+\\\")\\b|\\b(?!\\d)([a-zA-Z_]\\w*|@\\\".+\\\")\\b(?=\\s*:\\s*(?:\\{|while\\b))",
|
292
|
+
"captures": {
|
293
|
+
"1": {
|
294
|
+
"name": "keyword.control.zig"
|
363
295
|
},
|
364
|
-
{
|
365
|
-
"
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
"include": "#main"
|
370
|
-
}
|
371
|
-
],
|
372
|
-
"beginCaptures": {
|
373
|
-
"1": {
|
374
|
-
"name": "entity.name.label.zig"
|
375
|
-
},
|
376
|
-
"2": {
|
377
|
-
"name": "punctuation.section.braces.begin.zig"
|
378
|
-
},
|
379
|
-
"3": {
|
380
|
-
"name": "keyword.control.zig"
|
381
|
-
}
|
382
|
-
},
|
383
|
-
"endCaptures": {
|
384
|
-
"1": {
|
385
|
-
"name": "punctuation.section.braces.end.zig"
|
386
|
-
}
|
387
|
-
}
|
296
|
+
"2": {
|
297
|
+
"name": "entity.name.label.zig"
|
298
|
+
},
|
299
|
+
"3": {
|
300
|
+
"name": "entity.name.label.zig"
|
388
301
|
}
|
389
|
-
|
302
|
+
}
|
390
303
|
},
|
391
304
|
"main": {
|
392
305
|
"patterns": [
|
393
|
-
{
|
394
|
-
"contentName": "meta.parameters.zig",
|
395
|
-
"begin": "\\b(fn)(\\()",
|
396
|
-
"end": "(\\))\\s*([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")?",
|
397
|
-
"patterns": [
|
398
|
-
{
|
399
|
-
"match": "([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")(,)?",
|
400
|
-
"captures": {
|
401
|
-
"1": {
|
402
|
-
"name": "storage.type.zig"
|
403
|
-
},
|
404
|
-
"2": {
|
405
|
-
"name": "punctuation.separator.zig"
|
406
|
-
}
|
407
|
-
}
|
408
|
-
}
|
409
|
-
],
|
410
|
-
"beginCaptures": {
|
411
|
-
"1": {
|
412
|
-
"name": "storage.type.function.zig"
|
413
|
-
},
|
414
|
-
"2": {
|
415
|
-
"name": "punctuation.section.parens.begin.zig"
|
416
|
-
}
|
417
|
-
},
|
418
|
-
"endCaptures": {
|
419
|
-
"1": {
|
420
|
-
"name": "punctuation.section.parens.end.zig"
|
421
|
-
},
|
422
|
-
"2": {
|
423
|
-
"name": "storage.type.zig"
|
424
|
-
}
|
425
|
-
}
|
426
|
-
},
|
427
|
-
{
|
428
|
-
"contentName": "meta.function.parameters.zig",
|
429
|
-
"begin": "\\b(fn)\\s+([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")(\\()",
|
430
|
-
"end": "(?\u003c=\\))\\s*([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")?",
|
431
|
-
"patterns": [
|
432
|
-
{
|
433
|
-
"include": "#param_list"
|
434
|
-
}
|
435
|
-
],
|
436
|
-
"beginCaptures": {
|
437
|
-
"1": {
|
438
|
-
"name": "storage.type.function.zig"
|
439
|
-
},
|
440
|
-
"2": {
|
441
|
-
"name": "entity.name.function.zig"
|
442
|
-
},
|
443
|
-
"3": {
|
444
|
-
"name": "punctuation.section.parens.begin.zig"
|
445
|
-
}
|
446
|
-
},
|
447
|
-
"endCaptures": {
|
448
|
-
"1": {
|
449
|
-
"name": "storage.type.zig"
|
450
|
-
}
|
451
|
-
}
|
452
|
-
},
|
453
|
-
{
|
454
|
-
"match": "\\b(const|var)\\s+([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")\\s*(:)\\s*([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")\\s*(=)",
|
455
|
-
"captures": {
|
456
|
-
"1": {
|
457
|
-
"name": "storage.modifier.zig"
|
458
|
-
},
|
459
|
-
"2": {
|
460
|
-
"name": "variable.other.zig"
|
461
|
-
},
|
462
|
-
"3": {
|
463
|
-
"name": "punctuation.terminator.zig"
|
464
|
-
},
|
465
|
-
"4": {
|
466
|
-
"name": "storage.type.zig"
|
467
|
-
},
|
468
|
-
"5": {
|
469
|
-
"name": "keyword.operator.assignment.zig"
|
470
|
-
}
|
471
|
-
}
|
472
|
-
},
|
473
|
-
{
|
474
|
-
"include": "#func_call"
|
475
|
-
},
|
476
306
|
{
|
477
307
|
"include": "#label"
|
478
308
|
},
|
@@ -511,6 +341,12 @@
|
|
511
341
|
},
|
512
342
|
{
|
513
343
|
"include": "#block"
|
344
|
+
},
|
345
|
+
{
|
346
|
+
"include": "#function_call"
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"include": "#enum_literal"
|
514
350
|
}
|
515
351
|
]
|
516
352
|
},
|
@@ -534,43 +370,46 @@
|
|
534
370
|
},
|
535
371
|
{
|
536
372
|
"name": "keyword.operator.arithmetic.zig",
|
537
|
-
"match": "((
|
373
|
+
"match": "((?:\\+|-|\\*)\\%?|/(?!/)|%)"
|
538
374
|
},
|
539
375
|
{
|
540
376
|
"name": "keyword.operator.bitwise.zig",
|
541
|
-
"match": "(\u003c\u003c|\u003e\u003e|\u0026(
|
377
|
+
"match": "(\u003c\u003c|\u003e\u003e|\u0026(?=[a-zA-Z_]|@\\\")|\\|(?=[^\\|])|\\^|~)"
|
542
378
|
},
|
543
379
|
{
|
544
380
|
"name": "keyword.operator.other.zig",
|
545
|
-
"match": "(\\+\\+|\\*\\*|-\u003e|\\.\\?|\\.\\*|\u0026(
|
381
|
+
"match": "(\\+\\+|\\*\\*|-\u003e|\\.\\?|\\.\\*|\u0026(?=[a-zA-Z_]|@\\\")|\\?|\\|\\||\\.{2,3})"
|
546
382
|
}
|
547
383
|
]
|
548
384
|
},
|
549
385
|
"param_list": {
|
550
|
-
"
|
551
|
-
"
|
552
|
-
"end": "(?:(,)|(?:\\)))",
|
386
|
+
"begin": "([a-zA-Z_][a-zA-Z0-9_]*|@\\\".+\\\")\\s*(:)\\s*",
|
387
|
+
"end": "([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")?\\s*(?:(,)|(\\)))",
|
553
388
|
"patterns": [
|
554
389
|
{
|
555
390
|
"include": "#main"
|
391
|
+
},
|
392
|
+
{
|
393
|
+
"name": "storage.type.zig",
|
394
|
+
"match": "([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")"
|
556
395
|
}
|
557
396
|
],
|
558
397
|
"beginCaptures": {
|
559
398
|
"1": {
|
560
|
-
"name": "storage.modifier.zig"
|
561
|
-
},
|
562
|
-
"2": {
|
563
399
|
"name": "variable.parameter.zig"
|
564
400
|
},
|
565
|
-
"
|
566
|
-
"name": "punctuation.
|
401
|
+
"2": {
|
402
|
+
"name": "punctuation.separator.zig"
|
567
403
|
}
|
568
404
|
},
|
569
405
|
"endCaptures": {
|
570
406
|
"1": {
|
571
|
-
"name": "
|
407
|
+
"name": "storage.type.zig"
|
572
408
|
},
|
573
409
|
"2": {
|
410
|
+
"name": "punctuation.separator.zig"
|
411
|
+
},
|
412
|
+
"3": {
|
574
413
|
"name": "punctuation.section.parens.end.zig"
|
575
414
|
}
|
576
415
|
}
|
@@ -586,24 +425,12 @@
|
|
586
425
|
"match": ";"
|
587
426
|
},
|
588
427
|
{
|
589
|
-
"
|
590
|
-
"
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
}
|
596
|
-
],
|
597
|
-
"beginCaptures": {
|
598
|
-
"1": {
|
599
|
-
"name": "punctuation.section.parens.begin.zig"
|
600
|
-
}
|
601
|
-
},
|
602
|
-
"endCaptures": {
|
603
|
-
"1": {
|
604
|
-
"name": "punctuation.section.parens.end.zig"
|
605
|
-
}
|
606
|
-
}
|
428
|
+
"name": "punctuation.section.parens.begin.zig",
|
429
|
+
"match": "(\\()"
|
430
|
+
},
|
431
|
+
{
|
432
|
+
"name": "punctuation.section.parens.end.zig",
|
433
|
+
"match": "(\\))"
|
607
434
|
}
|
608
435
|
]
|
609
436
|
},
|
@@ -611,7 +438,7 @@
|
|
611
438
|
"patterns": [
|
612
439
|
{
|
613
440
|
"name": "storage.type.zig",
|
614
|
-
"match": "\\b(bool|void|noreturn|type|anyerror
|
441
|
+
"match": "\\b(bool|void|noreturn|type|anyerror)\\b"
|
615
442
|
},
|
616
443
|
{
|
617
444
|
"name": "storage.type.integer.zig",
|
@@ -624,6 +451,44 @@
|
|
624
451
|
{
|
625
452
|
"name": "storage.type.c_compat.zig",
|
626
453
|
"match": "\\b(c_short|c_ushort|c_int|c_uint|c_long|c_ulong|c_longlong|c_ulonglong|c_longdouble|c_void)\\b"
|
454
|
+
},
|
455
|
+
{
|
456
|
+
"match": "\\b(anyframe)\\b\\s*(-\u003e)?\\s*(?:([a-zA-Z_][a-zA-Z0-9_.]*|@\\\".+\\\")\\b(?!\\s*\\())?",
|
457
|
+
"captures": {
|
458
|
+
"1": {
|
459
|
+
"name": "storage.type.zig"
|
460
|
+
},
|
461
|
+
"2": {
|
462
|
+
"name": "keyword.operator.zig"
|
463
|
+
},
|
464
|
+
"3": {
|
465
|
+
"name": "storage.type.zig"
|
466
|
+
}
|
467
|
+
}
|
468
|
+
},
|
469
|
+
{
|
470
|
+
"name": "storage.type.function.zig",
|
471
|
+
"match": "\\bfn\\b"
|
472
|
+
},
|
473
|
+
{
|
474
|
+
"name": "storage.type.test.zig",
|
475
|
+
"match": "\\btest\\b"
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"name": "storage.type.struct.zig",
|
479
|
+
"match": "\\bstruct\\b"
|
480
|
+
},
|
481
|
+
{
|
482
|
+
"name": "storage.type.enum.zig",
|
483
|
+
"match": "\\benum\\b"
|
484
|
+
},
|
485
|
+
{
|
486
|
+
"name": "storage.type.union.zig",
|
487
|
+
"match": "\\bunion\\b"
|
488
|
+
},
|
489
|
+
{
|
490
|
+
"name": "storage.type.error.zig",
|
491
|
+
"match": "\\berror\\b"
|
627
492
|
}
|
628
493
|
]
|
629
494
|
},
|