github-linguist 6.1.0 → 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/annotation.liquidhaskell.haskell.json +14 -14
- data/grammars/hint.haskell.json +14 -14
- data/grammars/hint.message.haskell.json +14 -14
- data/grammars/hint.type.haskell.json +14 -14
- data/grammars/markdown.haxe.codeblock.json +26 -0
- data/grammars/markdown.hxml.codeblock.json +26 -0
- data/grammars/source.angelscript.json +1 -1
- data/grammars/source.ballerina.json +973 -61
- data/grammars/source.csound.json +1 -1
- data/grammars/source.emacs.lisp.json +35 -0
- data/grammars/source.firestore.json +289 -0
- data/grammars/source.gfm.json +7 -7
- data/grammars/source.haskell.json +14 -14
- data/grammars/source.hql.json +492 -0
- data/grammars/source.hsig.json +14 -14
- data/grammars/source.hx.json +14 -6
- data/grammars/source.hx.type.json +8 -0
- data/grammars/source.jison.json +1 -1
- data/grammars/source.js.json +1 -1
- data/grammars/source.powershell.json +384 -141
- data/grammars/source.q.json +120 -0
- data/grammars/source.q_output.json +348 -0
- data/grammars/source.rascal.json +0 -1
- data/grammars/source.sas.json +3 -3
- data/grammars/source.solidity.json +84 -13
- data/grammars/source.ts.json +226 -85
- data/grammars/source.tsx.json +230 -89
- data/grammars/source.viml.json +73 -18
- data/grammars/text.hamlc.json +1 -1
- data/grammars/text.html.markdown.source.gfm.apib.json +11 -2
- data/grammars/text.html.mediawiki.json +6 -6
- data/grammars/text.html.php.blade.json +3 -3
- data/grammars/text.tex.latex.haskell.json +14 -14
- data/lib/linguist/generated.rb +27 -1
- data/lib/linguist/heuristics.rb +8 -0
- data/lib/linguist/language.rb +12 -15
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +55 -10
- data/lib/linguist/samples.json +1623 -158
- data/lib/linguist/strategy/modeline.rb +11 -11
- data/lib/linguist/version.rb +1 -1
- metadata +9 -3
- data/grammars/source.j.json +0 -46
@@ -0,0 +1,120 @@
|
|
1
|
+
{
|
2
|
+
"name": "q",
|
3
|
+
"scopeName": "source.q",
|
4
|
+
"patterns": [
|
5
|
+
{
|
6
|
+
"name": "comment.block.source.q",
|
7
|
+
"begin": "/\n",
|
8
|
+
"end": "\\\\\n"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"name": "comment.line.source.q",
|
12
|
+
"match": "\\s/.*|^/.*"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"name": "comment.block.source.q",
|
16
|
+
"begin": "\\\\\n",
|
17
|
+
"end": "\\\\\n"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"name": "other.source.q",
|
21
|
+
"match": "(?=(\\W|\\b))((\\.Q\\.\\w+)|(\\.z\\.\\w+)|(\\\\\\w+))(?=(\\W|\\b))",
|
22
|
+
"captures": {
|
23
|
+
"2": {
|
24
|
+
"name": "support.function.q"
|
25
|
+
}
|
26
|
+
}
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"name": "string.quoted.string.source.q",
|
30
|
+
"match": "\".*?\""
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"name": "string.interpolated.symbol.source.q",
|
34
|
+
"match": "`[:/a-zA-Z0-9_.]+"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"name": "other.source.q",
|
38
|
+
"match": "(?=([^a-zA-Z0-9]|\\b))(\\.?[a-zA-Z]+[a-zA-Z0-9_\\.]*\\s*)(:)\\s*",
|
39
|
+
"captures": {
|
40
|
+
"2": {
|
41
|
+
"name": "variable.parameter.complex.source.q"
|
42
|
+
},
|
43
|
+
"3": {
|
44
|
+
"name": "support.function.q"
|
45
|
+
}
|
46
|
+
}
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"name": "support.function.q",
|
50
|
+
"match": "[!$@\\\\/_#?|',`(\\\\:)]"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"name": "support.function.q",
|
54
|
+
"match": "\\.(?=\\W)"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"contentName": "meta.function.parameters.q",
|
58
|
+
"begin": "(\\{\\s*\\[)",
|
59
|
+
"end": "(?=\\]\\s*)",
|
60
|
+
"patterns": [
|
61
|
+
{
|
62
|
+
"match": "\\b([a-zA-Z_][a-zA-Z_0-9]*)\\s*(?:(;)|(?=[\\]\\)]))",
|
63
|
+
"captures": {
|
64
|
+
"1": {
|
65
|
+
"name": "entity.other.inherited-class.q"
|
66
|
+
},
|
67
|
+
"2": {
|
68
|
+
"name": "punctuation.separator.parameters.q"
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
]
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"name": "other.source.q",
|
76
|
+
"match": "(?=(\\W|\\b))(prd|while|wavg|delete|min|like|exp|abs|insert|wsum|last|log|div|cos|sin|sqrt|max|in|exec|within|xexp|avg|second|hour|minute|update|sum|by|from|select|neg|not|null|string|reciprocal|floor|ceiling|signum|mod|xbar|xlog|and|or|each|scan|over|prior|mmu|lsq|inv|md5|ltime|gtime|count|first|var|dev|med|cov|cor|all|any|rand|sums|prds|mins|maxs|fills|deltas|ratios|avgs|differ|prev|next|rank|reverse|iasc|idesc|asc|desc|msum|mcount|mavg|mdev|xrank|mmin|mmax|xprev|rotate|distinct|group|where|flip|type|key|til|get|value|attr|cut|set|upsert|raze|union|inter|except|cross|sv|vs|sublist|enlist|read0|read1|hopen|hclose|hdel|hsym|hcount|peach|system|ltrim|rtrim|trim|lower|upper|ssr|view|tables|views|cols|xcols|keys|xkey|xcol|xasc|xdesc|fkeys|meta|lj|aj|aj0|ij|pj|asof|uj|ww|wj|wj1|fby|xgroup|ungroup|ej|save|load|rsave|rload|show|csv|parse|eval)(?=(\\W|\\b))",
|
77
|
+
"captures": {
|
78
|
+
"2": {
|
79
|
+
"name": "keyword.other.complex.source.q"
|
80
|
+
}
|
81
|
+
}
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"name": "other.source.q",
|
85
|
+
"match": "(?=(\\W|\\b))([0-9]{4}\\.[0-9]{2}\\.[0-9]{2}[TD]?[0-9]{2}:[0-9]{2}:[0-9]{2}(:[0-9]{2})?(\\.[0-9]{3,6})?)(?=(\\W|\\b))",
|
86
|
+
"captures": {
|
87
|
+
"2": {
|
88
|
+
"name": "constant.numeric.complex.source.q"
|
89
|
+
}
|
90
|
+
}
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"name": "other.source.q",
|
94
|
+
"match": "(?=(\\W|\\b))([0-9]{4}\\.[0-9]{2}\\.[0-9]{2}[TD]?)(?=(\\W|\\b))",
|
95
|
+
"captures": {
|
96
|
+
"2": {
|
97
|
+
"name": "constant.numeric.complex.source.q"
|
98
|
+
}
|
99
|
+
}
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"name": "other.source.q",
|
103
|
+
"match": "(?=(\\W|\\b))([0-9]{2}:[0-9]{2}:[0-9]{2}(:[0-9]{2})?(\\.[0-9]{3,6})?)(?=(\\W|\\b))",
|
104
|
+
"captures": {
|
105
|
+
"2": {
|
106
|
+
"name": "constant.numeric.complex.source.q"
|
107
|
+
}
|
108
|
+
}
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"name": "other.source.q",
|
112
|
+
"match": "(?=(\\W|\\b))([-]?[0-9]+[bhijef]{0,1}(\\.[0-9]+[m]?)?|0x[a-f0-9]+)(?=(\\W|\\b))",
|
113
|
+
"captures": {
|
114
|
+
"2": {
|
115
|
+
"name": "constant.numeric.complex.source.q"
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
]
|
120
|
+
}
|
@@ -0,0 +1,348 @@
|
|
1
|
+
{
|
2
|
+
"name": "q output",
|
3
|
+
"scopeName": "source.q_output",
|
4
|
+
"patterns": [
|
5
|
+
{
|
6
|
+
"name": "source.q_output",
|
7
|
+
"match": "(^error:)\\s*(.*)",
|
8
|
+
"captures": {
|
9
|
+
"2": {
|
10
|
+
"name": "message.error.q_output"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"name": "meta.header.q_output",
|
16
|
+
"begin": "(%{)\\s*$",
|
17
|
+
"end": "^\\s*(%})",
|
18
|
+
"patterns": [
|
19
|
+
{
|
20
|
+
"include": "source.ocaml"
|
21
|
+
}
|
22
|
+
],
|
23
|
+
"beginCaptures": {
|
24
|
+
"1": {
|
25
|
+
"name": "punctuation.section.header.begin.q_output"
|
26
|
+
}
|
27
|
+
},
|
28
|
+
"endCaptures": {
|
29
|
+
"1": {
|
30
|
+
"name": "punctuation.section.header.end.q_output"
|
31
|
+
}
|
32
|
+
}
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"name": "meta.declarations.q_output",
|
36
|
+
"begin": "(?\u003c=%})\\s*$",
|
37
|
+
"end": "(?:^)(?=%%)",
|
38
|
+
"patterns": [
|
39
|
+
{
|
40
|
+
"include": "#comments"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"include": "#declaration-matches"
|
44
|
+
}
|
45
|
+
]
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"name": "meta.rules.q_output",
|
49
|
+
"begin": "(%%)\\s*$",
|
50
|
+
"end": "^\\s*(%%)",
|
51
|
+
"patterns": [
|
52
|
+
{
|
53
|
+
"include": "#comments"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"include": "#rules"
|
57
|
+
}
|
58
|
+
],
|
59
|
+
"beginCaptures": {
|
60
|
+
"1": {
|
61
|
+
"name": "punctuation.section.rules.begin.q_output"
|
62
|
+
}
|
63
|
+
},
|
64
|
+
"endCaptures": {
|
65
|
+
"1": {
|
66
|
+
"name": "punctuation.section.rules.end.q_output"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"include": "source.ocaml"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"include": "#comments"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"name": "invalid.illegal.unrecognized-character.ocaml",
|
78
|
+
"match": "(’|‘|“|”)"
|
79
|
+
}
|
80
|
+
],
|
81
|
+
"repository": {
|
82
|
+
"comments": {
|
83
|
+
"patterns": [
|
84
|
+
{
|
85
|
+
"name": "comment.block.q_output",
|
86
|
+
"begin": "/\\*",
|
87
|
+
"end": "\\*/",
|
88
|
+
"patterns": [
|
89
|
+
{
|
90
|
+
"include": "#comments"
|
91
|
+
}
|
92
|
+
]
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"name": "comment.block.string.quoted.double.q_output",
|
96
|
+
"begin": "(?=[^\\\\])(\")",
|
97
|
+
"end": "\"",
|
98
|
+
"patterns": [
|
99
|
+
{
|
100
|
+
"name": "comment.block.string.constant.character.escape.q_output",
|
101
|
+
"match": "\\\\(x[a-fA-F0-9][a-fA-F0-9]|[0-2]\\d\\d|[bnrt'\"\\\\])"
|
102
|
+
}
|
103
|
+
]
|
104
|
+
}
|
105
|
+
]
|
106
|
+
},
|
107
|
+
"declaration-matches": {
|
108
|
+
"patterns": [
|
109
|
+
{
|
110
|
+
"name": "meta.token.declaration.q_output",
|
111
|
+
"begin": "(%)(token)",
|
112
|
+
"end": "^\\s*($|(^\\s*(?=%)))",
|
113
|
+
"patterns": [
|
114
|
+
{
|
115
|
+
"include": "#symbol-types"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"name": "entity.name.type.token.q_output",
|
119
|
+
"match": "[A-Z][A-Za-z0-9_]*"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"include": "#comments"
|
123
|
+
}
|
124
|
+
],
|
125
|
+
"beginCaptures": {
|
126
|
+
"1": {
|
127
|
+
"name": "keyword.other.decorator.token.q_output"
|
128
|
+
},
|
129
|
+
"2": {
|
130
|
+
"name": "keyword.other.token.q_output"
|
131
|
+
}
|
132
|
+
}
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"name": "meta.token.associativity.q_output",
|
136
|
+
"begin": "(%)(left|right|nonassoc)",
|
137
|
+
"end": "(^\\s*$)|(^\\s*(?=%))",
|
138
|
+
"patterns": [
|
139
|
+
{
|
140
|
+
"name": "entity.name.type.token.q_output",
|
141
|
+
"match": "[A-Z][A-Za-z0-9_]*"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"name": "entity.name.function.non-terminal.reference.q_output",
|
145
|
+
"match": "[a-z][A-Za-z0-9_]*"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"include": "#comments"
|
149
|
+
}
|
150
|
+
],
|
151
|
+
"beginCaptures": {
|
152
|
+
"1": {
|
153
|
+
"name": "keyword.other.decorator.token.associativity.q_output"
|
154
|
+
},
|
155
|
+
"2": {
|
156
|
+
"name": "keyword.other.token.associativity.q_output"
|
157
|
+
}
|
158
|
+
}
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"name": "meta.start-symbol.q_output",
|
162
|
+
"begin": "(%)(start)",
|
163
|
+
"end": "(^\\s*$)|(^\\s*(?=%))",
|
164
|
+
"patterns": [
|
165
|
+
{
|
166
|
+
"name": "entity.name.function.non-terminal.reference.q_output",
|
167
|
+
"match": "[a-z][A-Za-z0-9_]*"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"include": "#comments"
|
171
|
+
}
|
172
|
+
],
|
173
|
+
"beginCaptures": {
|
174
|
+
"1": {
|
175
|
+
"name": "keyword.other.decorator.start-symbol.q_output"
|
176
|
+
},
|
177
|
+
"2": {
|
178
|
+
"name": "keyword.other.start-symbol.q_output"
|
179
|
+
}
|
180
|
+
}
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"name": "meta.symbol-type.q_output",
|
184
|
+
"begin": "(%)(type)",
|
185
|
+
"end": "$\\s*(?!%)",
|
186
|
+
"patterns": [
|
187
|
+
{
|
188
|
+
"include": "#symbol-types"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"name": "entity.name.type.token.reference.q_output",
|
192
|
+
"match": "[A-Z][A-Za-z0-9_]*"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"name": "entity.name.function.non-terminal.reference.q_output",
|
196
|
+
"match": "[a-z][A-Za-z0-9_]*"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"include": "#comments"
|
200
|
+
}
|
201
|
+
],
|
202
|
+
"beginCaptures": {
|
203
|
+
"1": {
|
204
|
+
"name": "keyword.other.decorator.symbol-type.q_output"
|
205
|
+
},
|
206
|
+
"2": {
|
207
|
+
"name": "keyword.other.symbol-type.q_output"
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
211
|
+
]
|
212
|
+
},
|
213
|
+
"precs": {
|
214
|
+
"patterns": [
|
215
|
+
{
|
216
|
+
"name": "meta.precidence.declaration",
|
217
|
+
"match": "(%)(prec)\\s+(([a-z][a-zA-Z0-9_]*)|(([A-Z][a-zA-Z0-9_]*)))",
|
218
|
+
"captures": {
|
219
|
+
"1": {
|
220
|
+
"name": "keyword.other.decorator.precedence.q_output"
|
221
|
+
},
|
222
|
+
"2": {
|
223
|
+
"name": "keyword.other.precedence.q_output"
|
224
|
+
},
|
225
|
+
"4": {
|
226
|
+
"name": "entity.name.function.non-terminal.reference.q_output"
|
227
|
+
},
|
228
|
+
"5": {
|
229
|
+
"name": "entity.name.type.token.reference.q_output"
|
230
|
+
}
|
231
|
+
}
|
232
|
+
}
|
233
|
+
]
|
234
|
+
},
|
235
|
+
"references": {
|
236
|
+
"patterns": [
|
237
|
+
{
|
238
|
+
"name": "entity.name.function.non-terminal.reference.q_output",
|
239
|
+
"match": "[a-z][a-zA-Z0-9_]*"
|
240
|
+
},
|
241
|
+
{
|
242
|
+
"name": "entity.name.type.token.reference.q_output",
|
243
|
+
"match": "[A-Z][a-zA-Z0-9_]*"
|
244
|
+
}
|
245
|
+
]
|
246
|
+
},
|
247
|
+
"rule-patterns": {
|
248
|
+
"patterns": [
|
249
|
+
{
|
250
|
+
"name": "meta.rule-match.ocaml",
|
251
|
+
"begin": "((?\u003c!\\||:)(\\||:)(?!\\||:))",
|
252
|
+
"end": "\\s*(?=\\||;)",
|
253
|
+
"patterns": [
|
254
|
+
{
|
255
|
+
"include": "#precs"
|
256
|
+
},
|
257
|
+
{
|
258
|
+
"include": "#semantic-actions"
|
259
|
+
},
|
260
|
+
{
|
261
|
+
"include": "#references"
|
262
|
+
},
|
263
|
+
{
|
264
|
+
"include": "#comments"
|
265
|
+
}
|
266
|
+
],
|
267
|
+
"beginCaptures": {
|
268
|
+
"0": {
|
269
|
+
"name": "punctuation.separator.rule.q_output"
|
270
|
+
}
|
271
|
+
}
|
272
|
+
}
|
273
|
+
]
|
274
|
+
},
|
275
|
+
"rules": {
|
276
|
+
"patterns": [
|
277
|
+
{
|
278
|
+
"name": "meta.non-terminal.q_output",
|
279
|
+
"begin": "[a-z][a-zA-Z_]*",
|
280
|
+
"end": ";",
|
281
|
+
"patterns": [
|
282
|
+
{
|
283
|
+
"include": "#rule-patterns"
|
284
|
+
}
|
285
|
+
],
|
286
|
+
"beginCaptures": {
|
287
|
+
"0": {
|
288
|
+
"name": "entity.name.function.non-terminal.q_output"
|
289
|
+
}
|
290
|
+
},
|
291
|
+
"endCaptures": {
|
292
|
+
"0": {
|
293
|
+
"name": "punctuation.separator.rule.q_output"
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|
297
|
+
]
|
298
|
+
},
|
299
|
+
"semantic-actions": {
|
300
|
+
"patterns": [
|
301
|
+
{
|
302
|
+
"name": "meta.action.semantic.q_output",
|
303
|
+
"begin": "[^\\']({)",
|
304
|
+
"end": "(})",
|
305
|
+
"patterns": [
|
306
|
+
{
|
307
|
+
"include": "source.ocaml"
|
308
|
+
}
|
309
|
+
],
|
310
|
+
"beginCaptures": {
|
311
|
+
"1": {
|
312
|
+
"name": "punctuation.definition.action.semantic.q_output"
|
313
|
+
}
|
314
|
+
},
|
315
|
+
"endCaptures": {
|
316
|
+
"1": {
|
317
|
+
"name": "punctuation.definition.action.semantic.q_output"
|
318
|
+
}
|
319
|
+
}
|
320
|
+
}
|
321
|
+
]
|
322
|
+
},
|
323
|
+
"symbol-types": {
|
324
|
+
"patterns": [
|
325
|
+
{
|
326
|
+
"name": "meta.token.type-declaration.q_output",
|
327
|
+
"begin": "\u003c",
|
328
|
+
"end": "\u003e",
|
329
|
+
"patterns": [
|
330
|
+
{
|
331
|
+
"include": "source.ocaml"
|
332
|
+
}
|
333
|
+
],
|
334
|
+
"beginCaptures": {
|
335
|
+
"0": {
|
336
|
+
"name": "punctuation.definition.type-declaration.begin.q_output"
|
337
|
+
}
|
338
|
+
},
|
339
|
+
"endCaptures": {
|
340
|
+
"0": {
|
341
|
+
"name": "punctuation.definition.type-declaration.end.q_output"
|
342
|
+
}
|
343
|
+
}
|
344
|
+
}
|
345
|
+
]
|
346
|
+
}
|
347
|
+
}
|
348
|
+
}
|