github-linguist 4.8.17 → 4.8.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/source.abnf.json +0 -11
- data/grammars/source.c.json +4 -0
- data/grammars/source.fontforge.json +359 -0
- data/grammars/source.gn.json +248 -0
- data/grammars/source.js.json +7 -7
- data/grammars/source.ninja.json +218 -30
- data/grammars/source.opentype.json +452 -0
- data/grammars/source.perl.json +1 -1
- data/grammars/source.rascal.json +287 -0
- data/grammars/source.swift.json +6 -6
- data/grammars/source.viml.json +1 -1
- data/grammars/text.haml.json +305 -118
- data/grammars/text.hamlc.json +225 -0
- data/grammars/text.sfd.json +212 -0
- data/lib/linguist/blob.rb +1 -1
- data/lib/linguist/generated.rb +2 -4
- data/lib/linguist/heuristics.rb +6 -0
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +56 -6
- data/lib/linguist/samples.json +2232 -153
- data/lib/linguist/vendor.yml +3 -0
- data/lib/linguist/version.rb +1 -1
- metadata +9 -4
- data/grammars/source.xquery.json +0 -211
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9edd61ee90b97e2c268fe0928c48490e9b9de203
|
4
|
+
data.tar.gz: 36a1f711b06d82640188af6e774f7038fcb20759
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b3f57e444c48e8eb232144cf86285202ea9c42997cfa9a3dc707aaf943b8d3dd4daa7035433351c8453fa35a3ab24d0684a0c59ea658d33f118e2f083e516a4
|
7
|
+
data.tar.gz: b729190be83f590e2623156873bd6c7fa339486474ab37d4c9c73e70f4a6ac5f7168f8b7db0db398680083a57e8a93e344f9460527d8be07afea221fee0b54a0
|
data/grammars/source.abnf.json
CHANGED
@@ -340,14 +340,6 @@
|
|
340
340
|
}
|
341
341
|
]
|
342
342
|
},
|
343
|
-
"rule-name-core": {
|
344
|
-
"captures": {
|
345
|
-
"rule": {
|
346
|
-
"name": "support.constant.core-rule.$1.abnf"
|
347
|
-
}
|
348
|
-
},
|
349
|
-
"match": "(?x)\\b(?<rule>\n ALPHA |\n BIT |\n CHAR |\n CR(?:LF)? | \n CTL |\n DIGIT |\n DQUOTE |\n HEXDIG |\n HTAB |\n LF |\n LWSP |\n OCTECT |\n SP |\n VCHAR |\n WSP \n )\\b"
|
350
|
-
},
|
351
343
|
"rule-name-plain": {
|
352
344
|
"captures": {
|
353
345
|
"invalid": {
|
@@ -396,9 +388,6 @@
|
|
396
388
|
{
|
397
389
|
"include": "#string-double-quoted"
|
398
390
|
},
|
399
|
-
{
|
400
|
-
"include": "#rule-name-core"
|
401
|
-
},
|
402
391
|
{
|
403
392
|
"include": "#rule-name"
|
404
393
|
}
|
data/grammars/source.c.json
CHANGED
@@ -714,6 +714,10 @@
|
|
714
714
|
{
|
715
715
|
"match": "(?x)%\n \t\t\t\t\t\t(\\d+\\$)? # field (argument #)\n \t\t\t\t\t\t[#0\\- +']* # flags\n \t\t\t\t\t\t[,;:_]? # separator character (AltiVec)\n \t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)? # minimum field width\n \t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)? # precision\n \t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n \t\t\t\t\t\t[diouxXDOUeEfFgGaACcSspn%] # conversion type\n \t\t\t\t\t",
|
716
716
|
"name": "constant.other.placeholder.c"
|
717
|
+
},
|
718
|
+
{
|
719
|
+
"match": "%",
|
720
|
+
"name": "invalid.illegal.placeholder.c"
|
717
721
|
}
|
718
722
|
]
|
719
723
|
}
|
@@ -0,0 +1,359 @@
|
|
1
|
+
{
|
2
|
+
"name": "FontForge Script",
|
3
|
+
"scopeName": "source.fontforge",
|
4
|
+
"fileTypes": [
|
5
|
+
"pe"
|
6
|
+
],
|
7
|
+
"firstLineMatch": "/#!\\bfontforge\\b",
|
8
|
+
"patterns": [
|
9
|
+
{
|
10
|
+
"include": "#main"
|
11
|
+
}
|
12
|
+
],
|
13
|
+
"repository": {
|
14
|
+
"main": {
|
15
|
+
"patterns": [
|
16
|
+
{
|
17
|
+
"include": "#comments"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"include": "#codepoint"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"include": "#strings"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"include": "#control"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"include": "#real"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"include": "#integer"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"include": "#operators"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"include": "#procedureCall"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"include": "#punctuation"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"include": "#variables"
|
45
|
+
}
|
46
|
+
]
|
47
|
+
},
|
48
|
+
"comments": {
|
49
|
+
"patterns": [
|
50
|
+
{
|
51
|
+
"name": "comment.line.number-sign.fontforge",
|
52
|
+
"begin": "#",
|
53
|
+
"end": "$",
|
54
|
+
"beginCaptures": {
|
55
|
+
"0": {
|
56
|
+
"name": "punctuation.definition.comment.fontforge"
|
57
|
+
}
|
58
|
+
}
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"name": "comment.block.fontforge",
|
62
|
+
"begin": "/\\*",
|
63
|
+
"end": "\\*/",
|
64
|
+
"beginCaptures": {
|
65
|
+
"0": {
|
66
|
+
"name": "punctuation.definition.comment.begin.fontforge"
|
67
|
+
}
|
68
|
+
},
|
69
|
+
"endCaptures": {
|
70
|
+
"0": {
|
71
|
+
"name": "punctuation.definition.comment.end.fontforge"
|
72
|
+
}
|
73
|
+
}
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"name": "comment.line.double-slash",
|
77
|
+
"begin": "//",
|
78
|
+
"end": "$",
|
79
|
+
"beginCaptures": {
|
80
|
+
"0": {
|
81
|
+
"name": "punctuation.definition.comment.fontforge"
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
]
|
86
|
+
},
|
87
|
+
"shared": {
|
88
|
+
"patterns": [
|
89
|
+
{
|
90
|
+
"include": "#codepoint"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"include": "#strings"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"include": "#real"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"include": "#integer"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"include": "#punctuation"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"include": "#operators"
|
106
|
+
}
|
107
|
+
]
|
108
|
+
},
|
109
|
+
"strings": {
|
110
|
+
"patterns": [
|
111
|
+
{
|
112
|
+
"name": "string.double.quoted.fontforge",
|
113
|
+
"begin": "\"",
|
114
|
+
"end": "\"|$",
|
115
|
+
"beginCaptures": {
|
116
|
+
"0": {
|
117
|
+
"name": "punctuation.definition.string.begin.fontforge"
|
118
|
+
}
|
119
|
+
},
|
120
|
+
"endCaptures": {
|
121
|
+
"0": {
|
122
|
+
"name": "punctuation.definition.string.end.fontforge"
|
123
|
+
}
|
124
|
+
},
|
125
|
+
"patterns": [
|
126
|
+
{
|
127
|
+
"include": "#stringEscapes"
|
128
|
+
}
|
129
|
+
]
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"name": "string.single.quoted.fontforge",
|
133
|
+
"begin": "'",
|
134
|
+
"end": "'|$",
|
135
|
+
"beginCaptures": {
|
136
|
+
"0": {
|
137
|
+
"name": "punctuation.definition.string.begin.fontforge"
|
138
|
+
}
|
139
|
+
},
|
140
|
+
"endCaptures": {
|
141
|
+
"0": {
|
142
|
+
"name": "punctuation.definition.string.end.fontforge"
|
143
|
+
}
|
144
|
+
},
|
145
|
+
"patterns": [
|
146
|
+
{
|
147
|
+
"include": "#stringEscapes"
|
148
|
+
}
|
149
|
+
]
|
150
|
+
}
|
151
|
+
]
|
152
|
+
},
|
153
|
+
"stringEscapes": {
|
154
|
+
"patterns": [
|
155
|
+
{
|
156
|
+
"name": "constant.character.escape.newline.fontforge",
|
157
|
+
"match": "\\\\n"
|
158
|
+
}
|
159
|
+
]
|
160
|
+
},
|
161
|
+
"control": {
|
162
|
+
"name": "keyword.control.$1.fontforge",
|
163
|
+
"match": "\\b(if|elseif|else|endif|while|endloop|foreach|break|return|shift)\\b"
|
164
|
+
},
|
165
|
+
"operators": {
|
166
|
+
"patterns": [
|
167
|
+
{
|
168
|
+
"match": "==|!=|>=|<=|>|<",
|
169
|
+
"name": "keyword.operator.comparison.fontforge"
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"match": "=|[-+*/%]=",
|
173
|
+
"name": "keyword.operator.assignment.compound.fontforge"
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"match": "--",
|
177
|
+
"name": "keyword.operator.decrement.fontforge"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"match": "\\+{2}",
|
181
|
+
"name": "keyword.operator.increment.fontforge"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"match": "[-+/*~!]",
|
185
|
+
"name": "keyword.operator.arithmetic.fontforge"
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"match": "&&|\\|\\|",
|
189
|
+
"name": "keyword.operator.logical.fontforge"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"match": "&|\\||\\\\\\^",
|
193
|
+
"name": "keyword.operator.bitwise.fontforge"
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"match": ":[htre]",
|
197
|
+
"name": "keyword.operator.pathspec.fontforge",
|
198
|
+
"captures": {
|
199
|
+
"0": {
|
200
|
+
"patterns": [
|
201
|
+
{
|
202
|
+
"include": "#punctuation"
|
203
|
+
}
|
204
|
+
]
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
]
|
209
|
+
},
|
210
|
+
"procedureCall": {
|
211
|
+
"name": "meta.function-call.fontforge",
|
212
|
+
"begin": "(\\w+)\\s*(\\()",
|
213
|
+
"end": "\\)",
|
214
|
+
"contentName": "meta.function-call.arguments.fontforge",
|
215
|
+
"beginCaptures": {
|
216
|
+
"1": {
|
217
|
+
"name": "entity.name.function.fontforge"
|
218
|
+
},
|
219
|
+
"2": {
|
220
|
+
"name": "punctuation.definition.arguments.begin.bracket.round.fontforge"
|
221
|
+
}
|
222
|
+
},
|
223
|
+
"endCaptures": {
|
224
|
+
"0": {
|
225
|
+
"name": "punctuation.definition.arguments.end.bracket.round.fontforge"
|
226
|
+
}
|
227
|
+
},
|
228
|
+
"patterns": [
|
229
|
+
{
|
230
|
+
"include": "$base"
|
231
|
+
}
|
232
|
+
]
|
233
|
+
},
|
234
|
+
"punctuation": {
|
235
|
+
"patterns": [
|
236
|
+
{
|
237
|
+
"match": ",",
|
238
|
+
"name": "punctuation.separator.comma.fontforge"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"match": ";",
|
242
|
+
"name": "punctuation.terminator.statement.fontforge"
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"match": ":",
|
246
|
+
"name": "punctuation.delimiter.colon.fontforge"
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"name": "meta.expression.chained.fontforge",
|
250
|
+
"begin": "\\[",
|
251
|
+
"end": "\\]",
|
252
|
+
"beginCaptures": {
|
253
|
+
"0": {
|
254
|
+
"name": "punctuation.bracket.begin.square.fontforge"
|
255
|
+
}
|
256
|
+
},
|
257
|
+
"endCaptures": {
|
258
|
+
"0": {
|
259
|
+
"name": "punctuation.bracket.end.square.fontforge"
|
260
|
+
}
|
261
|
+
},
|
262
|
+
"patterns": [
|
263
|
+
{
|
264
|
+
"include": "$base"
|
265
|
+
}
|
266
|
+
]
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"name": "meta.expression.fontforge",
|
270
|
+
"begin": "\\(",
|
271
|
+
"end": "\\)",
|
272
|
+
"beginCaptures": {
|
273
|
+
"0": {
|
274
|
+
"name": "punctuation.bracket.begin.round.fontforge"
|
275
|
+
}
|
276
|
+
},
|
277
|
+
"endCaptures": {
|
278
|
+
"0": {
|
279
|
+
"name": "punctuation.bracket.end.round.fontforge"
|
280
|
+
}
|
281
|
+
},
|
282
|
+
"patterns": [
|
283
|
+
{
|
284
|
+
"include": "$base"
|
285
|
+
}
|
286
|
+
]
|
287
|
+
}
|
288
|
+
]
|
289
|
+
},
|
290
|
+
"codepoint": {
|
291
|
+
"name": "constant.numeric.other.codepoint.fontforge",
|
292
|
+
"match": "o[uU][A-Fa-f0-9]+"
|
293
|
+
},
|
294
|
+
"real": {
|
295
|
+
"name": "constant.numeric.float.fontforge",
|
296
|
+
"match": "(?<!\\w)[-+]?\\d*\\.\\d+"
|
297
|
+
},
|
298
|
+
"integer": {
|
299
|
+
"patterns": [
|
300
|
+
{
|
301
|
+
"match": "(?<!\\w)[-+]?0[Xx][A-Fa-f0-9]+",
|
302
|
+
"name": "constant.numeric.integer.hexadecimal.fontforge"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"match": "(?<!\\w)[-+]?(?=0)\\d+",
|
306
|
+
"name": "constant.numeric.integer.octal.fontforge"
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"match": "(?<!\\w)[-+]?\\d+",
|
310
|
+
"name": "constant.numeric.integer.decimal.fontforge"
|
311
|
+
}
|
312
|
+
]
|
313
|
+
},
|
314
|
+
"variables": {
|
315
|
+
"patterns": [
|
316
|
+
{
|
317
|
+
"name": "variable.language.readonly.positional.fontforge",
|
318
|
+
"match": "(\\$)\\d+(?=\\W)",
|
319
|
+
"captures": {
|
320
|
+
"1": {
|
321
|
+
"name": "punctuation.definition.variable.fontforge"
|
322
|
+
}
|
323
|
+
}
|
324
|
+
},
|
325
|
+
{
|
326
|
+
"name": "variable.language.readonly.fontforge",
|
327
|
+
"match": "(\\$)\\w+",
|
328
|
+
"captures": {
|
329
|
+
"1": {
|
330
|
+
"name": "punctuation.definition.variable.fontforge"
|
331
|
+
}
|
332
|
+
}
|
333
|
+
},
|
334
|
+
{
|
335
|
+
"name": "variable.other.global.fontforge",
|
336
|
+
"match": "(_)\\w+",
|
337
|
+
"captures": {
|
338
|
+
"1": {
|
339
|
+
"name": "punctuation.definition.variable.fontforge"
|
340
|
+
}
|
341
|
+
}
|
342
|
+
},
|
343
|
+
{
|
344
|
+
"name": "variable.other.font.fontforge",
|
345
|
+
"match": "(@)\\w+",
|
346
|
+
"captures": {
|
347
|
+
"1": {
|
348
|
+
"name": "punctuation.definition.variable.fontforge"
|
349
|
+
}
|
350
|
+
}
|
351
|
+
},
|
352
|
+
{
|
353
|
+
"name": "variable.other.local.fontforge",
|
354
|
+
"match": "(?=[A-Za-z])\\w+"
|
355
|
+
}
|
356
|
+
]
|
357
|
+
}
|
358
|
+
}
|
359
|
+
}
|
@@ -0,0 +1,248 @@
|
|
1
|
+
{
|
2
|
+
"scopeName": "source.gn",
|
3
|
+
"name": "gn",
|
4
|
+
"fileTypes": [
|
5
|
+
"gn",
|
6
|
+
"gni"
|
7
|
+
],
|
8
|
+
"injections": {
|
9
|
+
"source.gn": {
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"include": "#comment"
|
13
|
+
}
|
14
|
+
]
|
15
|
+
}
|
16
|
+
},
|
17
|
+
"patterns": [
|
18
|
+
{
|
19
|
+
"include": "#assignment"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"include": "#function"
|
23
|
+
}
|
24
|
+
],
|
25
|
+
"repository": {
|
26
|
+
"comment": {
|
27
|
+
"name": "punctuation.comment.gn",
|
28
|
+
"match": "#[^\\n]*\\n"
|
29
|
+
},
|
30
|
+
"string": {
|
31
|
+
"patterns": [
|
32
|
+
{
|
33
|
+
"begin": "\"\"\"",
|
34
|
+
"end": "\"\"\"",
|
35
|
+
"name": "string.quoted.triple.gn"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"match": "(')([^']*)(')",
|
39
|
+
"captures": {
|
40
|
+
"0": {
|
41
|
+
"name": "punctuation.string.single.begin.gn"
|
42
|
+
},
|
43
|
+
"1": {
|
44
|
+
"name": "string.quoted.single.gn"
|
45
|
+
},
|
46
|
+
"2": {
|
47
|
+
"name": "punctuation.string.single.end.gn"
|
48
|
+
}
|
49
|
+
}
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"match": "(\")([^\"]*)(\")",
|
53
|
+
"captures": {
|
54
|
+
"0": {
|
55
|
+
"name": "punctuation.string.double.begin.gn"
|
56
|
+
},
|
57
|
+
"1": {
|
58
|
+
"name": "string.quoted.double.gn"
|
59
|
+
},
|
60
|
+
"2": {
|
61
|
+
"name": "punctuation.string.double.end.gn"
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
]
|
66
|
+
},
|
67
|
+
"number": {
|
68
|
+
"match": "\\d+",
|
69
|
+
"captures": {
|
70
|
+
"0": {
|
71
|
+
"name": "constant.numeric.gn"
|
72
|
+
}
|
73
|
+
}
|
74
|
+
},
|
75
|
+
"variable": {
|
76
|
+
"match": "\\w+",
|
77
|
+
"captures": {
|
78
|
+
"0": {
|
79
|
+
"name": "variable.other.gn"
|
80
|
+
}
|
81
|
+
}
|
82
|
+
},
|
83
|
+
"function": {
|
84
|
+
"name": "meta.function.gn",
|
85
|
+
"begin": "(\\w+)\\s*(\\()",
|
86
|
+
"beginCaptures": {
|
87
|
+
"1": {
|
88
|
+
"name": "storage.type.function.gn"
|
89
|
+
},
|
90
|
+
"2": {
|
91
|
+
"name": "punctuation.function.parameters.begin.gn"
|
92
|
+
}
|
93
|
+
},
|
94
|
+
"end": "\\)",
|
95
|
+
"endCaptures": {
|
96
|
+
"0": {
|
97
|
+
"name": "punctuation.function.parameters.end.gn"
|
98
|
+
}
|
99
|
+
},
|
100
|
+
"patterns": [
|
101
|
+
{
|
102
|
+
"include": "#argument"
|
103
|
+
}
|
104
|
+
]
|
105
|
+
},
|
106
|
+
"argument": {
|
107
|
+
"patterns": [
|
108
|
+
{
|
109
|
+
"name": "mata.argument.gn",
|
110
|
+
"begin": "(\\w+)\\s*(=)\\s*",
|
111
|
+
"beginCaptures": {
|
112
|
+
"1": {
|
113
|
+
"name": "variable.parameter.gn"
|
114
|
+
},
|
115
|
+
"2": {
|
116
|
+
"name": "keyword.operator.assignment.gn"
|
117
|
+
}
|
118
|
+
},
|
119
|
+
"end": ",|\\n",
|
120
|
+
"endCaptures": {
|
121
|
+
"0": {
|
122
|
+
"name": "punctuation.separator.gn"
|
123
|
+
}
|
124
|
+
},
|
125
|
+
"patterns": [
|
126
|
+
{
|
127
|
+
"include": "#expression"
|
128
|
+
}
|
129
|
+
]
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"include": "#expression"
|
133
|
+
}
|
134
|
+
]
|
135
|
+
},
|
136
|
+
"assignment": {
|
137
|
+
"name": "meta.assignment.gn",
|
138
|
+
"begin": "(\\w+)\\s*(=)\\s*",
|
139
|
+
"beginCaptures": {
|
140
|
+
"1": {
|
141
|
+
"name": "variable.other.gn"
|
142
|
+
},
|
143
|
+
"2": {
|
144
|
+
"name": "keyword.operator.assignment.gn"
|
145
|
+
}
|
146
|
+
},
|
147
|
+
"end": "(;|\\n)",
|
148
|
+
"endCaptures": {
|
149
|
+
"0": {
|
150
|
+
"name": "punctuation.statement.end.gn"
|
151
|
+
}
|
152
|
+
},
|
153
|
+
"patterns": [
|
154
|
+
{
|
155
|
+
"include": "#expression"
|
156
|
+
}
|
157
|
+
]
|
158
|
+
},
|
159
|
+
"array": {
|
160
|
+
"name": "meta.array.gn",
|
161
|
+
"begin": "\\[",
|
162
|
+
"beginCaptures": {
|
163
|
+
"0": {
|
164
|
+
"name": "punctuation.array.begin.gn"
|
165
|
+
}
|
166
|
+
},
|
167
|
+
"end": "\\]",
|
168
|
+
"endCaptures": {
|
169
|
+
"0": {
|
170
|
+
"name": "punctuation.array.end.gn"
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"patterns": [
|
174
|
+
{
|
175
|
+
"include": "#expression"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"match": "\\s*([,])\\s*",
|
179
|
+
"captures": {
|
180
|
+
"1": {
|
181
|
+
"name": "punctuation.separator.gn"
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
]
|
186
|
+
},
|
187
|
+
"dictionary": {
|
188
|
+
"name": "meta.dictionary.gn",
|
189
|
+
"begin": "\\{",
|
190
|
+
"beginCaptures": {
|
191
|
+
"0": {
|
192
|
+
"name": "punctuation.dictionary.begin.gn"
|
193
|
+
}
|
194
|
+
},
|
195
|
+
"end": "\\s*\\}",
|
196
|
+
"endCaptures": {
|
197
|
+
"0": {
|
198
|
+
"name": "punctuation.dictionary.end.gn"
|
199
|
+
}
|
200
|
+
},
|
201
|
+
"patterns": [
|
202
|
+
{
|
203
|
+
"include": "#expression"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"match": "\\s*([,:])\\s*",
|
207
|
+
"captures": {
|
208
|
+
"1": {
|
209
|
+
"name": "punctuation.separator.gn"
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
213
|
+
]
|
214
|
+
},
|
215
|
+
"expression": {
|
216
|
+
"name": "meta.expression.gn",
|
217
|
+
"contentName": "meta.expression.gn",
|
218
|
+
"patterns": [
|
219
|
+
{
|
220
|
+
"include": "#function"
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"include": "#array"
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"include": "#dictionary"
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"include": "#number"
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"include": "#variable"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"include": "#string"
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"match": "\\+|\\-|\\%",
|
239
|
+
"captures": {
|
240
|
+
"0": {
|
241
|
+
"name": "operator.gn"
|
242
|
+
}
|
243
|
+
}
|
244
|
+
}
|
245
|
+
]
|
246
|
+
}
|
247
|
+
}
|
248
|
+
}
|