github-linguist 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db6d9aa8a004c4508d9a250b5681363780a404a0
4
- data.tar.gz: 233c71f2eff076a7cd43cc853e5d260db364bf7c
3
+ metadata.gz: 7bae77b3c313bf8b68ea804e94861823500c18cd
4
+ data.tar.gz: 7b5767f41210dc5d4a029b146e2c7005ded29092
5
5
  SHA512:
6
- metadata.gz: 844e27beff910a740a6c0a3ae20472d4634f120680603b83083597a3aefe543741d2bddcb1f779f892d1b10b00612d84425c323fdb06cb411f81e6d755d7166c
7
- data.tar.gz: 03ed08ceac11aa9de771163ac3125a144199db3eba6875a5912573a7a24c90ada47180ad6df817708c9814ad413c59c2ed4f1821b721ebccc2bb361638cd785e
6
+ metadata.gz: 18805687f1f5f423f591d866644630c730964600f63939e960ca381b7a88e66653e3efaa05c498580f4a8a78f85c1c9c7cb2f2963752125f35b0bce30ed86d69
7
+ data.tar.gz: cc01ef7bb1fa530003ec0a455ed1916ec2a285b8adf6900cd670fd5d2716f33ec8cbab9c80dfb9a38430841b204cecb1d38629878a6ea1edf9ba286ad2c54712
@@ -55,7 +55,7 @@
55
55
  "patterns": [
56
56
  {
57
57
  "name": "keyword.control.ballerina",
58
- "match": "\\b(if|else|iterator|try|catch|finally|fork|join|all|some|while|throw|return|returns|break|timeout|transaction|aborted|abort|committed|failed|retries|next|bind|with|lengthof|typeof|enum)\\b"
58
+ "match": "\\b(if|else|iterator|try|catch|finally|fork|join|all|some|while|throw|return|returns|break|timeout|transaction|abort|failed|retries|next|bind|with|lengthof|typeof|enum)\\b"
59
59
  },
60
60
  {
61
61
  "name": "keyword.other.ballerina",
@@ -0,0 +1,375 @@
1
+ {
2
+ "name": "Elm",
3
+ "scopeName": "source.elm",
4
+ "patterns": [
5
+ {
6
+ "name": "keyword.operator.function.infix.elm",
7
+ "match": "(`)[a-zA-Z_']*?(`)",
8
+ "captures": {
9
+ "1": {
10
+ "name": "punctuation.definition.entity.elm"
11
+ },
12
+ "2": {
13
+ "name": "punctuation.definition.entity.elm"
14
+ }
15
+ }
16
+ },
17
+ {
18
+ "name": "constant.language.unit.elm",
19
+ "match": "\\(\\)"
20
+ },
21
+ {
22
+ "name": "meta.declaration.module.elm",
23
+ "begin": "^\\b((effect|port)\\s+)?(module)\\s+",
24
+ "end": "$|;",
25
+ "patterns": [
26
+ {
27
+ "include": "#module_name"
28
+ },
29
+ {
30
+ "begin": "(where)\\s*\\{",
31
+ "end": "\\}",
32
+ "patterns": [
33
+ {
34
+ "include": "#type_signature"
35
+ }
36
+ ],
37
+ "beginCaptures": {
38
+ "1": {
39
+ "name": "keyword.other.elm"
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "name": "keyword.other.elm",
45
+ "match": "(exposing)"
46
+ },
47
+ {
48
+ "include": "#module_exports"
49
+ },
50
+ {
51
+ "name": "keyword.other.elm",
52
+ "match": "(where)"
53
+ },
54
+ {
55
+ "name": "invalid",
56
+ "match": "[a-z]+"
57
+ }
58
+ ],
59
+ "beginCaptures": {
60
+ "1": {
61
+ "name": "keyword.other.elm"
62
+ },
63
+ "3": {
64
+ "name": "keyword.other.elm"
65
+ }
66
+ },
67
+ "endCaptures": {
68
+ "1": {
69
+ "name": "keyword.other.elm"
70
+ }
71
+ }
72
+ },
73
+ {
74
+ "name": "meta.import.elm",
75
+ "begin": "^\\b(import)\\s+((open)\\s+)?",
76
+ "end": "($|;)",
77
+ "patterns": [
78
+ {
79
+ "name": "keyword.import.elm",
80
+ "match": "(as|exposing)"
81
+ },
82
+ {
83
+ "include": "#module_name"
84
+ },
85
+ {
86
+ "include": "#module_exports"
87
+ }
88
+ ],
89
+ "beginCaptures": {
90
+ "1": {
91
+ "name": "keyword.other.elm"
92
+ },
93
+ "3": {
94
+ "name": "invalid"
95
+ }
96
+ }
97
+ },
98
+ {
99
+ "name": "entity.glsl.elm",
100
+ "begin": "(\\[)(glsl)(\\|)",
101
+ "end": "(\\|\\])",
102
+ "patterns": [
103
+ {
104
+ "include": "source.glsl"
105
+ }
106
+ ],
107
+ "beginCaptures": {
108
+ "1": {
109
+ "name": "keyword.other.elm"
110
+ },
111
+ "2": {
112
+ "name": "support.function.prelude.elm"
113
+ },
114
+ "3": {
115
+ "name": "keyword.other.elm"
116
+ }
117
+ },
118
+ "endCaptures": {
119
+ "1": {
120
+ "name": "keyword.other.elm"
121
+ }
122
+ }
123
+ },
124
+ {
125
+ "name": "keyword.other.elm",
126
+ "match": "\\b(type alias|type|case|of|let|in|as)\\s+"
127
+ },
128
+ {
129
+ "name": "keyword.control.elm",
130
+ "match": "\\b(if|then|else)\\s+"
131
+ },
132
+ {
133
+ "name": "constant.numeric.float.elm",
134
+ "match": "\\b([0-9]+\\.[0-9]+([eE][+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+)\\b"
135
+ },
136
+ {
137
+ "name": "constant.numeric.elm",
138
+ "match": "\\b([0-9]+)\\b"
139
+ },
140
+ {
141
+ "name": "string.quoted.double.elm",
142
+ "begin": "\"\"\"",
143
+ "end": "\"\"\"",
144
+ "patterns": [
145
+ {
146
+ "name": "constant.character.escape.elm",
147
+ "match": "\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\'\\\u0026])"
148
+ },
149
+ {
150
+ "name": "constant.character.escape.control.elm",
151
+ "match": "\\^[A-Z@\\[\\]\\\\\\^_]"
152
+ }
153
+ ],
154
+ "beginCaptures": {
155
+ "0": {
156
+ "name": "punctuation.definition.string.begin.elm"
157
+ }
158
+ },
159
+ "endCaptures": {
160
+ "0": {
161
+ "name": "punctuation.definition.string.end.elm"
162
+ }
163
+ }
164
+ },
165
+ {
166
+ "name": "string.quoted.double.elm",
167
+ "begin": "\"",
168
+ "end": "\"",
169
+ "patterns": [
170
+ {
171
+ "name": "constant.character.escape.elm",
172
+ "match": "\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\\u0026])"
173
+ },
174
+ {
175
+ "name": "constant.character.escape.control.elm",
176
+ "match": "\\^[A-Z@\\[\\]\\\\\\^_]"
177
+ }
178
+ ],
179
+ "beginCaptures": {
180
+ "0": {
181
+ "name": "punctuation.definition.string.begin.elm"
182
+ }
183
+ },
184
+ "endCaptures": {
185
+ "0": {
186
+ "name": "punctuation.definition.string.end.elm"
187
+ }
188
+ }
189
+ },
190
+ {
191
+ "name": "string.quoted.single.elm",
192
+ "match": "(?x)\n(')\n(?:\n\t[\\ -\\[\\]-~]\t\t\t\t\t\t\t\t# Basic Char\n | (\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE\n\t\t|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS\n\t\t|US|SP|DEL|[abfnrtv\\\\\\\"'\\\u0026]))\t\t# Escapes\n | (\\^[A-Z@\\[\\]\\\\\\^_])\t\t\t\t\t\t# Control Chars\n)\n(')",
193
+ "captures": {
194
+ "1": {
195
+ "name": "punctuation.definition.string.begin.elm"
196
+ },
197
+ "2": {
198
+ "name": "constant.character.escape.elm"
199
+ },
200
+ "3": {
201
+ "name": "punctuation.definition.string.end.elm"
202
+ }
203
+ }
204
+ },
205
+ {
206
+ "name": "meta.function.type-declaration.elm",
207
+ "begin": "^(port\\s+)?([a-z_][a-zA-Z0-9_']*|\\([|!%$+\\-.,=\u003c/\u003e]+\\))\\s*((:)([:]+)?)",
208
+ "end": "$\\n?",
209
+ "patterns": [
210
+ {
211
+ "include": "#type_signature"
212
+ }
213
+ ],
214
+ "beginCaptures": {
215
+ "1": {
216
+ "name": "keyword.other.port.elm"
217
+ },
218
+ "2": {
219
+ "name": "entity.name.function.elm"
220
+ },
221
+ "4": {
222
+ "name": "keyword.other.colon.elm"
223
+ },
224
+ "5": {
225
+ "name": "invalid"
226
+ }
227
+ }
228
+ },
229
+ {
230
+ "name": "keyword.other.port.elm",
231
+ "match": "\\bport\\s+"
232
+ },
233
+ {
234
+ "name": "constant.other.elm",
235
+ "match": "\\b[A-Z]\\w*\\b"
236
+ },
237
+ {
238
+ "include": "#comments"
239
+ },
240
+ {
241
+ "name": "entity.name.function.elm",
242
+ "match": "^[a-z][A-Za-z0-9_']*\\s+"
243
+ },
244
+ {
245
+ "include": "#infix_op"
246
+ },
247
+ {
248
+ "name": "keyword.operator.elm",
249
+ "match": "[|!%$?~+:\\-.=\u003c/\u003e\u0026\\\\*^]+"
250
+ },
251
+ {
252
+ "name": "constant.language.delimiter.elm",
253
+ "match": "([\\[\\]\\{\\},])",
254
+ "captures": {
255
+ "1": {
256
+ "name": "support.function.delimiter.elm"
257
+ }
258
+ }
259
+ },
260
+ {
261
+ "name": "keyword.other.parenthesis.elm",
262
+ "match": "([\\(\\)])"
263
+ }
264
+ ],
265
+ "repository": {
266
+ "block_comment": {
267
+ "name": "comment.block.elm",
268
+ "begin": "\\{-(?!#)",
269
+ "end": "-\\}",
270
+ "patterns": [
271
+ {
272
+ "include": "#block_comment"
273
+ }
274
+ ],
275
+ "captures": {
276
+ "0": {
277
+ "name": "punctuation.definition.comment.elm"
278
+ }
279
+ },
280
+ "applyEndPatternLast": true
281
+ },
282
+ "comments": {
283
+ "patterns": [
284
+ {
285
+ "name": "comment.line.double-dash.elm",
286
+ "match": "(--).*$\\n?",
287
+ "captures": {
288
+ "1": {
289
+ "name": "punctuation.definition.comment.elm"
290
+ }
291
+ }
292
+ },
293
+ {
294
+ "include": "#block_comment"
295
+ }
296
+ ]
297
+ },
298
+ "infix_op": {
299
+ "name": "entity.name.function.infix.elm",
300
+ "match": "(\\([|!%$+:\\-.=\u003c/\u003e]+\\)|\\(,+\\))"
301
+ },
302
+ "module_exports": {
303
+ "name": "meta.declaration.exports.elm",
304
+ "begin": "\\(",
305
+ "end": "\\)",
306
+ "patterns": [
307
+ {
308
+ "name": "entity.name.function.elm",
309
+ "match": "\\b[a-z][a-zA-Z_'0-9]*"
310
+ },
311
+ {
312
+ "name": "storage.type.elm",
313
+ "match": "\\b[A-Z][A-Za-z_'0-9]*"
314
+ },
315
+ {
316
+ "name": "punctuation.separator.comma.elm",
317
+ "match": ","
318
+ },
319
+ {
320
+ "include": "#infix_op"
321
+ },
322
+ {
323
+ "name": "meta.other.unknown.elm",
324
+ "match": "\\(.*?\\)"
325
+ }
326
+ ]
327
+ },
328
+ "module_name": {
329
+ "name": "support.other.module.elm",
330
+ "match": "[A-Z][A-Za-z._']*"
331
+ },
332
+ "type_signature": {
333
+ "patterns": [
334
+ {
335
+ "name": "meta.class-constraint.elm",
336
+ "match": "\\(\\s*([A-Z][A-Za-z]*)\\s+([a-z][A-Za-z_']*)\\)\\s*(=\u003e)",
337
+ "captures": {
338
+ "1": {
339
+ "name": "entity.other.inherited-class.elm"
340
+ },
341
+ "2": {
342
+ "name": "variable.other.generic-type.elm"
343
+ },
344
+ "3": {
345
+ "name": "keyword.other.big-arrow.elm"
346
+ }
347
+ }
348
+ },
349
+ {
350
+ "name": "keyword.other.arrow.elm",
351
+ "match": "-\u003e"
352
+ },
353
+ {
354
+ "name": "keyword.other.big-arrow.elm",
355
+ "match": "=\u003e"
356
+ },
357
+ {
358
+ "name": "variable.other.generic-type.elm",
359
+ "match": "\\b[a-z][a-zA-Z0-9_']*\\b"
360
+ },
361
+ {
362
+ "name": "storage.type.elm",
363
+ "match": "\\b[A-Z][a-zA-Z0-9_']*\\b"
364
+ },
365
+ {
366
+ "name": "support.constant.unit.elm",
367
+ "match": "\\(\\)"
368
+ },
369
+ {
370
+ "include": "#comments"
371
+ }
372
+ ]
373
+ }
374
+ }
375
+ }
@@ -1108,7 +1108,9 @@
1108
1108
  "begin": "^\\s*(`{3,}|~{3,})\\s*(?i:(elm))\\s*$",
1109
1109
  "end": "^\\s*\\1((?\u003c=`)`+|(?\u003c=~)~+)?\\s*$",
1110
1110
  "patterns": [
1111
- {}
1111
+ {
1112
+ "include": "source.elm"
1113
+ }
1112
1114
  ],
1113
1115
  "beginCaptures": {
1114
1116
  "0": {
@@ -55,6 +55,10 @@
55
55
  "name": "keyword",
56
56
  "match": "\\b(algorithm|equation|initial equation|protected|public|register|end)\\b"
57
57
  },
58
+ {
59
+ "name": "keyword.other",
60
+ "match": "\\b(inner|outer)\\b"
61
+ },
58
62
  {
59
63
  "name": "support.function.mathematical",
60
64
  "match": "\\b(acos|asin|atan|atan2|cos|cosh|exp|log|log10|sin|sinh|tan|tanh|abs|sign|sqrt|max|min|product|sum)\\b"
@@ -1,5 +1,4 @@
1
1
  {
2
- "name": "Groovy",
3
2
  "scopeName": "source.nextflow-groovy",
4
3
  "patterns": [
5
4
  {
@@ -3,58 +3,82 @@
3
3
  "scopeName": "source.nextflow",
4
4
  "patterns": [
5
5
  {
6
- "include": "source.nextflow-groovy"
7
- },
8
- {
9
- "include": "#nextflow"
6
+ "include": "#nfl-rules"
10
7
  }
11
8
  ],
12
9
  "repository": {
13
- "command": {
14
- "name": "support.process.command.constant.nextflow",
15
- "match": "(script|shell|exec)\\b:"
16
- },
17
- "directive": {
18
- "name": "support.process.directive.type.nextflow",
19
- "match": "(afterScript|beforeScript|cache|container|cpus|clusterOptions|disk|echo|errorStrategy|executor|ext|maxErrors|maxForks|maxRetries|memory|module|penv|publishDir|queue|scratch|storeDir|stageInMode|stageOutMode|tag|time|validExitStatus)\\b"
20
- },
21
- "input": {
22
- "name": "support.process.input.constant.nextflow",
23
- "match": "input:"
24
- },
25
- "nextflow": {
10
+ "code-block": {
11
+ "name": "support.code.block.nextflow",
12
+ "begin": "{",
13
+ "end": "}",
26
14
  "patterns": [
27
15
  {
28
- "include": "#process"
16
+ "include": "#nfl-rules"
29
17
  }
30
18
  ]
31
19
  },
32
- "output": {
33
- "name": "support.process.output.constant.nextflow",
34
- "match": "output:"
20
+ "nfl-rules": {
21
+ "patterns": [
22
+ {
23
+ "include": "#process-def"
24
+ },
25
+ {
26
+ "include": "#code-block"
27
+ },
28
+ {
29
+ "include": "source.nextflow-groovy"
30
+ }
31
+ ]
35
32
  },
36
- "process": {
37
- "name": "support.process.nextflow",
38
- "begin": "\\s*(process)\\s+(\\w+)\\s*{",
39
- "end": "}",
33
+ "process-body": {
34
+ "name": "support.process.body.nextflow",
35
+ "begin": "{",
36
+ "end": "(?=})",
40
37
  "patterns": [
41
38
  {
42
- "include": "#directive"
39
+ "name": "support.process.directive.type.nextflow",
40
+ "match": "(?:afterScript|beforeScript|cache|container|cpus|clusterOptions|disk|echo|errorStrategy|executor|ext|maxErrors|maxForks|maxRetries|memory|module|penv|publishDir|queue|scratch|storeDir|stageInMode|stageOutMode|tag|time|validExitStatus)\\b"
41
+ },
42
+ {
43
+ "name": "support.constant.block.nextflow",
44
+ "match": "(?:input|output|script|shell|exec):"
45
+ },
46
+ {
47
+ "include": "source.nextflow-groovy#comments"
48
+ },
49
+ {
50
+ "include": "source.nextflow-groovy#support-functions"
51
+ },
52
+ {
53
+ "include": "source.nextflow-groovy#keyword"
54
+ },
55
+ {
56
+ "include": "source.nextflow-groovy#values"
43
57
  },
44
58
  {
45
- "include": "#input"
59
+ "include": "source.nextflow-groovy#anonymous-classes-and-new"
46
60
  },
47
61
  {
48
- "include": "#output"
62
+ "include": "source.nextflow-groovy#types"
49
63
  },
50
64
  {
51
- "include": "#when"
65
+ "include": "source.nextflow-groovy#parens"
52
66
  },
53
67
  {
54
- "include": "#command"
68
+ "include": "source.nextflow-groovy#closures"
55
69
  },
56
70
  {
57
- "include": "#groovy-code"
71
+ "include": "source.nextflow-groovy#braces"
72
+ }
73
+ ]
74
+ },
75
+ "process-def": {
76
+ "name": "support.process.nextflow",
77
+ "begin": "^\\s*(process)\\s+(\\w+|\"[^\"]+\"|'[^']+')\\s*",
78
+ "end": "}",
79
+ "patterns": [
80
+ {
81
+ "include": "#process-body"
58
82
  }
59
83
  ],
60
84
  "beginCaptures": {
@@ -65,10 +89,6 @@
65
89
  "name": "support.function.nextflow"
66
90
  }
67
91
  }
68
- },
69
- "when": {
70
- "name": "support.process.when.constant.nextflow",
71
- "match": "when:"
72
92
  }
73
93
  }
74
94
  }