github-linguist 7.6.1 → 7.9.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 +58 -11
- data/grammars/etc.json +212 -3
- data/grammars/hidden.manref.json +29 -0
- data/grammars/hint.haskell.json +58 -11
- data/grammars/hint.message.haskell.json +58 -11
- data/grammars/hint.type.haskell.json +58 -11
- data/grammars/injections.etc.json +601 -1
- data/grammars/markdown.plantuml.codeblock.json +26 -0
- data/grammars/source.4dm.json +1100 -0
- data/grammars/source.abap.json +7 -7
- data/grammars/source.abnf.json +23 -1
- data/grammars/source.agda.json +32 -202
- data/grammars/source.ahk.json +9 -5
- data/grammars/source.angelscript.json +1 -1
- data/grammars/source.ballerina.json +54 -18
- data/grammars/source.chapel.json +4 -4
- 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 +58 -32
- data/grammars/source.dircolors.json +137 -0
- data/grammars/source.direct-x.json +135 -0
- data/grammars/source.ebnf.json +67 -39
- data/grammars/source.editorconfig.json +23 -5
- data/grammars/source.elixir.json +51 -0
- data/grammars/source.elm.json +1 -1
- data/grammars/source.emacs.lisp.json +10 -0
- data/grammars/source.faust.json +119 -0
- data/grammars/source.gcode.json +166 -8
- data/grammars/source.gfm.json +1 -1
- data/grammars/source.gitconfig.json +1 -1
- data/grammars/source.hack.json +200 -98
- data/grammars/source.haskell.json +58 -11
- data/grammars/source.hlsl.json +9 -5
- data/grammars/source.hosts.json +40 -0
- data/grammars/source.hsig.json +58 -11
- data/grammars/source.hx.json +4 -0
- data/grammars/source.igor.json +46 -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 +69 -23
- data/grammars/source.kotlin.json +1 -1
- data/grammars/source.lean.json +19 -3
- data/grammars/source.lean.markdown.json +2598 -0
- 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 +437 -184
- data/grammars/source.mcfunction-snapshot.json +21388 -561
- data/grammars/source.mcfunction.json +55 -5
- data/grammars/source.meson.json +1 -1
- data/grammars/source.mlir.json +37 -317
- data/grammars/source.mrc.json +740 -0
- data/grammars/source.nasl.json +155 -0
- data/grammars/source.nextflow.json +2 -2
- data/grammars/source.odin-ehr.json +806 -0
- data/grammars/source.odin.json +402 -0
- data/grammars/source.opts.json +12 -2
- data/grammars/source.p4.json +21 -5
- data/grammars/source.prisma.json +435 -0
- data/grammars/source.python.json +2 -0
- data/grammars/source.qasm.json +66 -0
- data/grammars/source.ql.json +1408 -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 +53 -18
- data/grammars/source.ssh-config.json +1 -14
- data/grammars/source.swift.json +162 -2
- data/grammars/source.sy.json +2088 -183
- data/grammars/source.terraform.json +576 -132
- data/grammars/source.tnsaudit.json +256 -0
- data/grammars/source.ts.json +159 -51
- data/grammars/source.tsx.json +160 -52
- data/grammars/source.v.json +559 -764
- data/grammars/source.vim-snippet.json +645 -0
- data/grammars/source.viml.json +6 -6
- data/grammars/source.webassembly.json +10 -0
- data/grammars/source.wgetrc.json +1640 -0
- data/grammars/source.wsd.json +775 -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 +58 -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/file_blob.rb +1 -1
- data/lib/linguist/generated.rb +60 -13
- data/lib/linguist/heuristics.yml +64 -4
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +336 -45
- data/lib/linguist/lazy_blob.rb +10 -10
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +43560 -31457
- data/lib/linguist/shebang.rb +5 -3
- data/lib/linguist/vendor.yml +9 -0
- metadata +29 -10
- data/grammars/source.LS.json +0 -85
- data/grammars/source.MCPOST.json +0 -54
- data/grammars/source.MOD.json +0 -55
- data/grammars/source.apt.json +0 -18
- data/grammars/source.jlex.json +0 -322
- data/grammars/source.yaml-ext.json +0 -324
@@ -0,0 +1,435 @@
|
|
1
|
+
{
|
2
|
+
"name": "Prisma",
|
3
|
+
"scopeName": "source.prisma",
|
4
|
+
"patterns": [
|
5
|
+
{
|
6
|
+
"include": "#triple_comment"
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"include": "#double_comment"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"include": "#model_block_definition"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"include": "#config_block_definition"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"include": "#enum_block_definition"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"include": "#type_definition"
|
22
|
+
}
|
23
|
+
],
|
24
|
+
"repository": {
|
25
|
+
"array": {
|
26
|
+
"name": "source.prisma.array",
|
27
|
+
"begin": "\\[",
|
28
|
+
"end": "\\]",
|
29
|
+
"patterns": [
|
30
|
+
{
|
31
|
+
"include": "#value"
|
32
|
+
}
|
33
|
+
],
|
34
|
+
"beginCaptures": {
|
35
|
+
"1": {
|
36
|
+
"name": "punctuation.definition.tag.prisma"
|
37
|
+
}
|
38
|
+
},
|
39
|
+
"endCaptures": {
|
40
|
+
"1": {
|
41
|
+
"name": "punctuation.definition.tag.prisma"
|
42
|
+
}
|
43
|
+
}
|
44
|
+
},
|
45
|
+
"assignment": {
|
46
|
+
"patterns": [
|
47
|
+
{
|
48
|
+
"begin": "^\\s*(\\w+)\\s*(=)\\s*",
|
49
|
+
"end": "\\n",
|
50
|
+
"patterns": [
|
51
|
+
{
|
52
|
+
"include": "#value"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"include": "#double_comment_inline"
|
56
|
+
}
|
57
|
+
],
|
58
|
+
"beginCaptures": {
|
59
|
+
"1": {
|
60
|
+
"name": "variable.other.assignment.prisma"
|
61
|
+
},
|
62
|
+
"2": {
|
63
|
+
"name": "keyword.operator.terraform"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
]
|
68
|
+
},
|
69
|
+
"attribute": {
|
70
|
+
"name": "source.prisma.attribute",
|
71
|
+
"match": "(@@?[\\w\\.]+)",
|
72
|
+
"captures": {
|
73
|
+
"1": {
|
74
|
+
"name": "entity.name.function.attribute.prisma"
|
75
|
+
}
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"attribute_with_arguments": {
|
79
|
+
"name": "source.prisma.attribute.with_arguments",
|
80
|
+
"begin": "(@@?[\\w\\.]+)(\\()",
|
81
|
+
"end": "\\)",
|
82
|
+
"patterns": [
|
83
|
+
{
|
84
|
+
"include": "#named_argument"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"include": "#value"
|
88
|
+
}
|
89
|
+
],
|
90
|
+
"beginCaptures": {
|
91
|
+
"1": {
|
92
|
+
"name": "entity.name.function.attribute.prisma"
|
93
|
+
},
|
94
|
+
"2": {
|
95
|
+
"name": "punctuation.definition.tag.prisma"
|
96
|
+
}
|
97
|
+
},
|
98
|
+
"endCaptures": {
|
99
|
+
"0": {
|
100
|
+
"name": "punctuation.definition.tag.prisma"
|
101
|
+
}
|
102
|
+
}
|
103
|
+
},
|
104
|
+
"boolean": {
|
105
|
+
"name": "constant.language.boolean.prisma",
|
106
|
+
"match": "\\b(true|false)\\b"
|
107
|
+
},
|
108
|
+
"config_block_definition": {
|
109
|
+
"name": "source.prisma.embedded.source",
|
110
|
+
"begin": "^\\s*(generator|datasource)\\s+([A-Za-z][\\w]*)\\s+({)",
|
111
|
+
"end": "\\s*\\}",
|
112
|
+
"patterns": [
|
113
|
+
{
|
114
|
+
"include": "#triple_comment"
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"include": "#double_comment"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"include": "#assignment"
|
121
|
+
}
|
122
|
+
],
|
123
|
+
"beginCaptures": {
|
124
|
+
"1": {
|
125
|
+
"name": "storage.type.config.prisma"
|
126
|
+
},
|
127
|
+
"2": {
|
128
|
+
"name": "entity.name.type.config.prisma"
|
129
|
+
},
|
130
|
+
"3": {
|
131
|
+
"name": "punctuation.definition.tag.prisma"
|
132
|
+
}
|
133
|
+
},
|
134
|
+
"endCaptures": {
|
135
|
+
"1": {
|
136
|
+
"name": "punctuation.definition.tag.prisma"
|
137
|
+
}
|
138
|
+
}
|
139
|
+
},
|
140
|
+
"double_comment": {
|
141
|
+
"name": "comment.prisma",
|
142
|
+
"begin": "//",
|
143
|
+
"end": "$\\n?"
|
144
|
+
},
|
145
|
+
"double_comment_inline": {
|
146
|
+
"name": "comment.prisma",
|
147
|
+
"match": "//[^\\n]*"
|
148
|
+
},
|
149
|
+
"double_quoted_string": {
|
150
|
+
"name": "unnamed",
|
151
|
+
"begin": "\"",
|
152
|
+
"end": "\"",
|
153
|
+
"patterns": [
|
154
|
+
{
|
155
|
+
"include": "#string_interpolation"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"name": "string.quoted.double.prisma",
|
159
|
+
"match": "([\\w\\-\\/\\._\\\\%@:\\?=]+)"
|
160
|
+
}
|
161
|
+
],
|
162
|
+
"beginCaptures": {
|
163
|
+
"0": {
|
164
|
+
"name": "string.quoted.double.start.prisma"
|
165
|
+
}
|
166
|
+
},
|
167
|
+
"endCaptures": {
|
168
|
+
"0": {
|
169
|
+
"name": "string.quoted.double.end.prisma"
|
170
|
+
}
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"enum_block_definition": {
|
174
|
+
"name": "source.prisma.embedded.source",
|
175
|
+
"begin": "^\\s*(enum)\\s+([A-Za-z][\\w]*)\\s+({)",
|
176
|
+
"end": "\\s*\\}",
|
177
|
+
"patterns": [
|
178
|
+
{
|
179
|
+
"include": "#triple_comment"
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"include": "#double_comment"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"include": "#enum_value_definition"
|
186
|
+
}
|
187
|
+
],
|
188
|
+
"beginCaptures": {
|
189
|
+
"1": {
|
190
|
+
"name": "storage.type.enum.prisma"
|
191
|
+
},
|
192
|
+
"2": {
|
193
|
+
"name": "entity.name.type.enum.prisma"
|
194
|
+
},
|
195
|
+
"3": {
|
196
|
+
"name": "punctuation.definition.tag.prisma"
|
197
|
+
}
|
198
|
+
},
|
199
|
+
"endCaptures": {
|
200
|
+
"0": {
|
201
|
+
"name": "punctuation.definition.tag.prisma"
|
202
|
+
}
|
203
|
+
}
|
204
|
+
},
|
205
|
+
"enum_value_definition": {
|
206
|
+
"patterns": [
|
207
|
+
{
|
208
|
+
"match": "^\\s*(\\w+)\\s*$",
|
209
|
+
"captures": {
|
210
|
+
"1": {
|
211
|
+
"name": "variable.other.assignment.prisma"
|
212
|
+
}
|
213
|
+
}
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"include": "#attribute_with_arguments"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"include": "#attribute"
|
220
|
+
}
|
221
|
+
]
|
222
|
+
},
|
223
|
+
"field_definition": {
|
224
|
+
"patterns": [
|
225
|
+
{
|
226
|
+
"match": "^\\s*(\\w+)(\\s*:)?\\s+(\\w+)(\\[\\])?(\\?)?(\\!)?",
|
227
|
+
"captures": {
|
228
|
+
"1": {
|
229
|
+
"name": "variable.other.assignment.prisma"
|
230
|
+
},
|
231
|
+
"2": {
|
232
|
+
"name": "invalid.illegal.colon.prisma"
|
233
|
+
},
|
234
|
+
"3": {
|
235
|
+
"name": "support.type.primitive.prisma"
|
236
|
+
},
|
237
|
+
"4": {
|
238
|
+
"name": "keyword.operator.list_type.prisma"
|
239
|
+
},
|
240
|
+
"5": {
|
241
|
+
"name": "keyword.operator.optional_type.prisma"
|
242
|
+
},
|
243
|
+
"6": {
|
244
|
+
"name": "invalid.illegal.required_type.prisma"
|
245
|
+
}
|
246
|
+
}
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"include": "#attribute_with_arguments"
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"include": "#attribute"
|
253
|
+
}
|
254
|
+
]
|
255
|
+
},
|
256
|
+
"functional": {
|
257
|
+
"name": "source.prisma.functional",
|
258
|
+
"begin": "(\\w+)(\\()",
|
259
|
+
"end": "\\)",
|
260
|
+
"patterns": [
|
261
|
+
{
|
262
|
+
"include": "#value"
|
263
|
+
}
|
264
|
+
],
|
265
|
+
"beginCaptures": {
|
266
|
+
"1": {
|
267
|
+
"name": "support.function.functional.prisma"
|
268
|
+
},
|
269
|
+
"2": {
|
270
|
+
"name": "punctuation.definition.tag.prisma"
|
271
|
+
}
|
272
|
+
},
|
273
|
+
"endCaptures": {
|
274
|
+
"0": {
|
275
|
+
"name": "punctuation.definition.tag.prisma"
|
276
|
+
}
|
277
|
+
}
|
278
|
+
},
|
279
|
+
"identifier": {
|
280
|
+
"patterns": [
|
281
|
+
{
|
282
|
+
"name": "support.constant.constant.prisma",
|
283
|
+
"match": "\\b(\\w)+\\b"
|
284
|
+
}
|
285
|
+
]
|
286
|
+
},
|
287
|
+
"literal": {
|
288
|
+
"name": "source.prisma.literal",
|
289
|
+
"patterns": [
|
290
|
+
{
|
291
|
+
"include": "#boolean"
|
292
|
+
},
|
293
|
+
{
|
294
|
+
"include": "#number"
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"include": "#double_quoted_string"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"include": "#identifier"
|
301
|
+
}
|
302
|
+
]
|
303
|
+
},
|
304
|
+
"map_key": {
|
305
|
+
"name": "source.prisma.key",
|
306
|
+
"patterns": [
|
307
|
+
{
|
308
|
+
"match": "(\\w+)\\s*(:)\\s*",
|
309
|
+
"captures": {
|
310
|
+
"1": {
|
311
|
+
"name": "variable.parameter.key.prisma"
|
312
|
+
},
|
313
|
+
"2": {
|
314
|
+
"name": "punctuation.definition.separator.key-value.prisma"
|
315
|
+
}
|
316
|
+
}
|
317
|
+
}
|
318
|
+
]
|
319
|
+
},
|
320
|
+
"model_block_definition": {
|
321
|
+
"name": "source.prisma.embedded.source",
|
322
|
+
"begin": "^\\s*(model|type)\\s+([A-Za-z][\\w]*)\\s+({)",
|
323
|
+
"end": "\\s*\\}",
|
324
|
+
"patterns": [
|
325
|
+
{
|
326
|
+
"include": "#triple_comment"
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"include": "#double_comment"
|
330
|
+
},
|
331
|
+
{
|
332
|
+
"include": "#field_definition"
|
333
|
+
}
|
334
|
+
],
|
335
|
+
"beginCaptures": {
|
336
|
+
"1": {
|
337
|
+
"name": "storage.type.model.prisma"
|
338
|
+
},
|
339
|
+
"2": {
|
340
|
+
"name": "entity.name.type.model.prisma"
|
341
|
+
},
|
342
|
+
"3": {
|
343
|
+
"name": "punctuation.definition.tag.prisma"
|
344
|
+
}
|
345
|
+
},
|
346
|
+
"endCaptures": {
|
347
|
+
"0": {
|
348
|
+
"name": "punctuation.definition.tag.prisma"
|
349
|
+
}
|
350
|
+
}
|
351
|
+
},
|
352
|
+
"named_argument": {
|
353
|
+
"name": "source.prisma.named_argument",
|
354
|
+
"patterns": [
|
355
|
+
{
|
356
|
+
"include": "#map_key"
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"include": "#value"
|
360
|
+
}
|
361
|
+
]
|
362
|
+
},
|
363
|
+
"number": {
|
364
|
+
"name": "constant.numeric.prisma",
|
365
|
+
"match": "((0(x|X)[0-9a-fA-F]*)|(\\+|-)?\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)([LlFfUuDdg]|UL|ul)?\\b"
|
366
|
+
},
|
367
|
+
"string_interpolation": {
|
368
|
+
"patterns": [
|
369
|
+
{
|
370
|
+
"name": "source.tag.embedded.source.prisma",
|
371
|
+
"begin": "\\$\\{",
|
372
|
+
"end": "\\s*\\}",
|
373
|
+
"patterns": [
|
374
|
+
{
|
375
|
+
"include": "#value"
|
376
|
+
}
|
377
|
+
],
|
378
|
+
"beginCaptures": {
|
379
|
+
"0": {
|
380
|
+
"name": "keyword.control.interpolation.start.prisma"
|
381
|
+
}
|
382
|
+
},
|
383
|
+
"endCaptures": {
|
384
|
+
"0": {
|
385
|
+
"name": "keyword.control.interpolation.end.prisma"
|
386
|
+
}
|
387
|
+
}
|
388
|
+
}
|
389
|
+
]
|
390
|
+
},
|
391
|
+
"triple_comment": {
|
392
|
+
"name": "comment.prisma",
|
393
|
+
"begin": "///",
|
394
|
+
"end": "$\\n?"
|
395
|
+
},
|
396
|
+
"type_definition": {
|
397
|
+
"patterns": [
|
398
|
+
{
|
399
|
+
"match": "^\\s*(type)\\s+(\\w+)\\s*=\\s*(\\w+)",
|
400
|
+
"captures": {
|
401
|
+
"1": {
|
402
|
+
"name": "storage.type.type.prisma"
|
403
|
+
},
|
404
|
+
"2": {
|
405
|
+
"name": "entity.name.type.type.prisma"
|
406
|
+
},
|
407
|
+
"3": {
|
408
|
+
"name": "support.type.primitive.prisma"
|
409
|
+
}
|
410
|
+
}
|
411
|
+
},
|
412
|
+
{
|
413
|
+
"include": "#attribute_with_arguments"
|
414
|
+
},
|
415
|
+
{
|
416
|
+
"include": "#attribute"
|
417
|
+
}
|
418
|
+
]
|
419
|
+
},
|
420
|
+
"value": {
|
421
|
+
"name": "source.prisma.value",
|
422
|
+
"patterns": [
|
423
|
+
{
|
424
|
+
"include": "#array"
|
425
|
+
},
|
426
|
+
{
|
427
|
+
"include": "#functional"
|
428
|
+
},
|
429
|
+
{
|
430
|
+
"include": "#literal"
|
431
|
+
}
|
432
|
+
]
|
433
|
+
}
|
434
|
+
}
|
435
|
+
}
|
data/grammars/source.python.json
CHANGED
@@ -2979,6 +2979,7 @@
|
|
2979
2979
|
}
|
2980
2980
|
},
|
2981
2981
|
"member-access": {
|
2982
|
+
"name": "meta.member.access.python",
|
2982
2983
|
"begin": "(\\.)\\s*(?!\\.)",
|
2983
2984
|
"end": "(?x)\n # stop when you've just read non-whitespace followed by non-word\n # i.e. when finished reading an identifier or function call\n (?\u003c=\\S)(?=\\W) |\n # stop when seeing the start of something that's not a word,\n # i.e. when seeing a non-identifier\n (^|(?\u003c=\\s))(?=[^\\\\\\w\\s]) |\n $\n",
|
2984
2985
|
"patterns": [
|
@@ -3018,6 +3019,7 @@
|
|
3018
3019
|
]
|
3019
3020
|
},
|
3020
3021
|
"member-access-class": {
|
3022
|
+
"name": "meta.member.access.python",
|
3021
3023
|
"begin": "(\\.)\\s*(?!\\.)",
|
3022
3024
|
"end": "(?\u003c=\\S)(?=\\W)|$",
|
3023
3025
|
"patterns": [
|
@@ -0,0 +1,66 @@
|
|
1
|
+
{
|
2
|
+
"name": "QASM",
|
3
|
+
"scopeName": "source.qasm",
|
4
|
+
"patterns": [
|
5
|
+
{
|
6
|
+
"name": "comment.line.double-slash",
|
7
|
+
"match": "\\/\\/.*$"
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"name": "comment.line.number-sign",
|
11
|
+
"match": "#.*$"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"name": "entity.name.function",
|
15
|
+
"match": "^(?x) # At beggining of line\n(\\.) # Valid function name\n(\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n )+\n) # Followed by either:\n(?= $ # - End of the line\n | [\\s,.\\#)\\[:{\u003e+~|] # - Another selector\n | # # - A comment\n)"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"name": "entity.name.section",
|
19
|
+
"match": "(?x)\\b(include|OPENQASM|version)\\b"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"name": "variable.language",
|
23
|
+
"match": "(?x)\\b(qubit|qubits|map)\\b"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"name": "constant.other",
|
27
|
+
"match": "(?\u003c=(\\w\\[)|(:))( *\\d *)(?=(\\s*\\])|(:))"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"name": "keyword.storage.modifier",
|
31
|
+
"match": "-\u003e"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"name": "constant.string.single",
|
35
|
+
"match": "('.*')"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"name": "constant.string.double",
|
39
|
+
"match": "\".*\""
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"name": "storage.type",
|
43
|
+
"match": "(?x)^\\b(?:(qreg|creg)| (gate|opaque))\\b"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"name": "support.function",
|
47
|
+
"match": "(?x)\\b(?:(prep_x|prep_y|prep_z|error_model)| (measure_x|measure_y|measure_z|measure_all|measure_parity|measure)| (display|display_binary))\\b"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"name": "keyword.control",
|
51
|
+
"match": "(?i)(?x)\\b(?:((i|h|x|y|z)| (rx|ry|rz)| (x90|y90|z90|rx90|ry90|rz90|mx90|my90|mz90)| (x180|y180|z180|rx180|ry180|rz180|mx180|my180|mz180)| (u1|u2|u3|cu1|cu2|cu3)| (s|sdag|t|tdag)| (cnot|cx|cz|cr|crk|toffoli|ccx|ccnot)| (swap) ))\\b"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"name": "keyword.control",
|
55
|
+
"match": "(?i)(?x)\\bc-(?:((i|h|x|y|z)| (rx|ry|rz)| (x90|y90|z90|rx90|ry90|rz90|mx90|my90|mz90)| (x180|y180|z180|rx180|ry180|rz180|mx180|my180|mz180)| (u1|u2|u3)| (s|sdag|t|tdag)| (cnot|cx|cz|cr|crk|toffoli|ccx|ccnot)| (swap) ))\\b"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"name": "keyword.control",
|
59
|
+
"match": "(?i)(?x)\\b(?:(not )|(if(?=[( ])))\\b"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"name": "variable.language",
|
63
|
+
"match": "\\b(depolarizing_channel|load_state|barrier)\\b"
|
64
|
+
}
|
65
|
+
]
|
66
|
+
}
|