github-linguist 5.0.5 → 5.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/hint.haskell.json +11 -5
  3. data/grammars/hint.message.haskell.json +11 -5
  4. data/grammars/hint.type.haskell.json +11 -5
  5. data/grammars/source.SASLog.json +1 -1
  6. data/grammars/source.clarion.json +1 -1
  7. data/grammars/source.clean.json +4 -4
  8. data/grammars/source.click.json +19 -8
  9. data/grammars/source.clojure.json +8 -6
  10. data/grammars/source.cobol.json +16 -23
  11. data/grammars/source.coffee.json +1 -1
  12. data/grammars/source.csound-document.json +0 -5
  13. data/grammars/source.csound-score.json +6 -2
  14. data/grammars/source.csound.json +77 -14
  15. data/grammars/source.css.less.json +1 -1
  16. data/grammars/source.ditroff.desc.json +379 -0
  17. data/grammars/source.ditroff.json +545 -0
  18. data/grammars/source.elixir.json +44 -2
  19. data/grammars/source.fsharp.json +20 -93
  20. data/grammars/source.haskell.json +13 -6
  21. data/grammars/source.hlsl.json +217 -0
  22. data/grammars/source.js.json +34 -16
  23. data/grammars/source.julia.json +4 -4
  24. data/grammars/source.meson.json +167 -0
  25. data/grammars/source.p4.json +117 -0
  26. data/grammars/source.perl6fe.json +101 -18
  27. data/grammars/source.python.json +7 -7
  28. data/grammars/source.quoting.perl6fe.json +101 -0
  29. data/grammars/source.regexp.extended.json +9 -5
  30. data/grammars/source.regexp.json +12 -21
  31. data/grammars/source.rust.json +33 -3
  32. data/grammars/source.sas.json +2 -2
  33. data/grammars/source.shaderlab.json +174 -0
  34. data/grammars/source.terraform.json +196 -0
  35. data/grammars/source.turing.json +1 -1
  36. data/grammars/source.viml.json +1 -1
  37. data/grammars/source.yaml.json +3 -1
  38. data/grammars/text.html.php.blade.json +10 -7
  39. data/grammars/text.restructuredtext.json +57 -6
  40. data/grammars/text.roff.json +1 -1
  41. data/grammars/text.slim.json +1 -1
  42. data/grammars/text.tex.latex.haskell.json +11 -5
  43. data/lib/linguist/documentation.yml +1 -1
  44. data/lib/linguist/heuristics.rb +8 -0
  45. data/lib/linguist/languages.json +1 -1
  46. data/lib/linguist/languages.yml +20 -2
  47. data/lib/linguist/samples.json +1253 -68
  48. data/lib/linguist/version.rb +1 -1
  49. metadata +9 -3
  50. data/grammars/source.regexp.comment.json +0 -11
@@ -0,0 +1,545 @@
1
+ {
2
+ "name": "Roff (Intermediate Output)",
3
+ "scopeName": "source.ditroff",
4
+ "firstLineMatch": "^x\\s*T\\s+(dvi|html|lbp|lj4|ps|pdf|ascii|cp1047|latin1|utf8|X75|X75-12|X100|X100-12)(?=\\s|$)",
5
+ "patterns": [
6
+ {
7
+ "include": "#main"
8
+ }
9
+ ],
10
+ "repository": {
11
+ "main": {
12
+ "patterns": [
13
+ {
14
+ "include": "#comment"
15
+ },
16
+ {
17
+ "include": "#deviceControl"
18
+ },
19
+ {
20
+ "include": "#colourMode"
21
+ },
22
+ {
23
+ "include": "#print"
24
+ },
25
+ {
26
+ "include": "#font"
27
+ },
28
+ {
29
+ "include": "#eol"
30
+ },
31
+ {
32
+ "include": "#move"
33
+ },
34
+ {
35
+ "include": "#size"
36
+ },
37
+ {
38
+ "include": "#page"
39
+ },
40
+ {
41
+ "include": "#graphics"
42
+ },
43
+ {
44
+ "include": "#movePrint"
45
+ },
46
+ {
47
+ "include": "#wordSpace"
48
+ }
49
+ ]
50
+ },
51
+ "colourMode": {
52
+ "patterns": [
53
+ {
54
+ "name": "meta.colour-mode.default.gnu.ditroff",
55
+ "match": "(?:(m)|^\\s*(D)\\s*(F))\\s*(d)",
56
+ "captures": {
57
+ "1": {
58
+ "name": "entity.name.function.ditroff"
59
+ },
60
+ "2": {
61
+ "name": "entity.name.function.ditroff"
62
+ },
63
+ "3": {
64
+ "name": "entity.name.subcommand.ditroff"
65
+ },
66
+ "4": {
67
+ "name": "constant.language.colour-scheme.ditroff"
68
+ }
69
+ }
70
+ },
71
+ {
72
+ "name": "meta.colour-mode.rgb.gnu.ditroff",
73
+ "match": "(?:(m)|^\\s*(D)\\s*(F))\\s*(r)((?:\\s*\\d+){3})",
74
+ "captures": {
75
+ "1": {
76
+ "name": "entity.name.function.ditroff"
77
+ },
78
+ "2": {
79
+ "name": "entity.name.function.ditroff"
80
+ },
81
+ "3": {
82
+ "name": "entity.name.subcommand.ditroff"
83
+ },
84
+ "4": {
85
+ "name": "constant.language.colour-scheme.ditroff"
86
+ },
87
+ "5": {
88
+ "patterns": [
89
+ {
90
+ "include": "text.roff#number"
91
+ }
92
+ ]
93
+ }
94
+ }
95
+ },
96
+ {
97
+ "name": "meta.colour-mode.cmyk.gnu.ditroff",
98
+ "match": "(?:(m)|^\\s*(D)\\s*(F))\\s*(k)((?:\\s*\\d+){4})",
99
+ "captures": {
100
+ "1": {
101
+ "name": "entity.name.function.ditroff"
102
+ },
103
+ "2": {
104
+ "name": "entity.name.function.ditroff"
105
+ },
106
+ "3": {
107
+ "name": "entity.name.subcommand.ditroff"
108
+ },
109
+ "4": {
110
+ "name": "constant.language.colour-scheme.ditroff"
111
+ },
112
+ "5": {
113
+ "patterns": [
114
+ {
115
+ "include": "text.roff#number"
116
+ }
117
+ ]
118
+ }
119
+ }
120
+ },
121
+ {
122
+ "name": "meta.colour-mode.cmy.gnu.ditroff",
123
+ "match": "(?:(m)|^\\s*(D)\\s*(F))\\s*(c)((?:\\s*\\d+){3})",
124
+ "captures": {
125
+ "1": {
126
+ "name": "entity.name.function.ditroff"
127
+ },
128
+ "2": {
129
+ "name": "entity.name.function.ditroff"
130
+ },
131
+ "3": {
132
+ "name": "entity.name.subcommand.ditroff"
133
+ },
134
+ "4": {
135
+ "name": "constant.language.colour-scheme.ditroff"
136
+ },
137
+ "5": {
138
+ "patterns": [
139
+ {
140
+ "include": "text.roff#number"
141
+ }
142
+ ]
143
+ }
144
+ }
145
+ },
146
+ {
147
+ "name": "meta.colour-mode.grey.gnu.ditroff",
148
+ "match": "(?:(m)|^\\s*(D)\\s*(F))\\s*(g)\\s*(\\d+)",
149
+ "captures": {
150
+ "1": {
151
+ "name": "entity.name.function.ditroff"
152
+ },
153
+ "2": {
154
+ "name": "entity.name.function.ditroff"
155
+ },
156
+ "3": {
157
+ "name": "entity.name.subcommand.ditroff"
158
+ },
159
+ "4": {
160
+ "name": "constant.language.colour-scheme.ditroff"
161
+ },
162
+ "5": {
163
+ "patterns": [
164
+ {
165
+ "include": "text.roff#number"
166
+ }
167
+ ]
168
+ }
169
+ }
170
+ }
171
+ ]
172
+ },
173
+ "comment": {
174
+ "name": "comment.line.number-sign.ditroff",
175
+ "begin": "#",
176
+ "end": "$",
177
+ "beginCaptures": {
178
+ "0": {
179
+ "name": "punctuation.definition.comment.ditroff"
180
+ }
181
+ }
182
+ },
183
+ "deviceControl": {
184
+ "name": "meta.device-control.ditroff",
185
+ "begin": "^\\s*(x)\\s*",
186
+ "end": "(?=$|#)",
187
+ "beginCaptures": {
188
+ "1": {
189
+ "name": "keyword.operator.other.ditroff"
190
+ }
191
+ },
192
+ "patterns": [
193
+ {
194
+ "name": "keyword.device.control.ditroff",
195
+ "match": "\\G([ipst]\\S*)\\s*?(?=$|#)"
196
+ },
197
+ {
198
+ "name": "meta.space-underlining.gnu.ditroff",
199
+ "match": "\\G(u\\S*)\\s+(?:(1|0)|(\\d+))\\s*?(?=$|#)",
200
+ "captures": {
201
+ "1": {
202
+ "name": "keyword.device.control.ditroff"
203
+ },
204
+ "2": {
205
+ "name": "constant.numeric.integer.ditroff"
206
+ },
207
+ "3": {
208
+ "name": "invalid.illegal.argument.ditroff"
209
+ }
210
+ }
211
+ },
212
+ {
213
+ "name": "meta.source-filename.gnu.ditroff",
214
+ "match": "\\G(F\\S*)\\s+(\\S+)\\s*?(?=$|#)",
215
+ "captures": {
216
+ "1": {
217
+ "name": "keyword.device.control.ditroff"
218
+ },
219
+ "2": {
220
+ "name": "variable.parameter.filename.ditroff"
221
+ }
222
+ }
223
+ },
224
+ {
225
+ "name": "meta.typesetter-device.ditroff",
226
+ "match": "\\G(T\\S*)\\s+((\\S+))",
227
+ "captures": {
228
+ "1": {
229
+ "name": "keyword.device.control.ditroff"
230
+ },
231
+ "2": {
232
+ "name": "variable.parameter.ditroff"
233
+ },
234
+ "3": {
235
+ "patterns": [
236
+ {
237
+ "name": "support.constant.device-name.ditroff",
238
+ "match": "(?<=\\s|^)(?:dvi|html|lbp|lj4|ps|pdf|ascii|cp1047|latin1|utf8|X75|X75-12|X100|X100-12)(?=\\s|$)"
239
+ }
240
+ ]
241
+ }
242
+ }
243
+ },
244
+ {
245
+ "name": "meta.device-resolution.ditroff",
246
+ "match": "\\G(r\\S*)((?:\\s+(\\d+)){1,3})\\s*?(?=$|#)",
247
+ "captures": {
248
+ "1": {
249
+ "name": "keyword.device.control.ditroff"
250
+ },
251
+ "2": {
252
+ "patterns": [
253
+ {
254
+ "include": "text.roff#number"
255
+ }
256
+ ]
257
+ }
258
+ }
259
+ },
260
+ {
261
+ "name": "meta.mount-font.ditroff",
262
+ "match": "\\G(f\\S*)(?:\\s+(\\d+))?(?:\\s+([-\\w]+))?\\s*?(?=$|#)",
263
+ "captures": {
264
+ "1": {
265
+ "name": "keyword.device.control.ditroff"
266
+ },
267
+ "2": {
268
+ "name": "constant.numeric.integer.ditroff"
269
+ },
270
+ "3": {
271
+ "name": "variable.parameter.ditroff"
272
+ }
273
+ }
274
+ },
275
+ {
276
+ "name": "meta.set-character-property.ditroff",
277
+ "match": "\\G([HS]\\S*)(?:\\s+(\\d+))?\\s*?(?=$|#)",
278
+ "captures": {
279
+ "1": {
280
+ "name": "keyword.device.control.ditroff"
281
+ },
282
+ "2": {
283
+ "name": "constant.numeric.ditroff"
284
+ }
285
+ }
286
+ },
287
+ {
288
+ "name": "meta.x-escape.custom-control.ditroff",
289
+ "begin": "\\G(X\\S*)",
290
+ "end": "^(?!\\+)(.*)",
291
+ "beginCaptures": {
292
+ "1": {
293
+ "name": "keyword.device.control.ditroff"
294
+ }
295
+ },
296
+ "endCaptures": {
297
+ "1": {
298
+ "patterns": [
299
+ {
300
+ "include": "#main"
301
+ }
302
+ ]
303
+ }
304
+ },
305
+ "contentName": "string.raw.unquoted.heredoc.ditroff",
306
+ "patterns": [
307
+ {
308
+ "name": "keyword.operator.line-continuation.gnu.ditroff",
309
+ "match": "^\\+"
310
+ }
311
+ ]
312
+ },
313
+ {
314
+ "name": "meta.unknown-command.ditroff",
315
+ "begin": "\\G(\\S+)",
316
+ "end": "(?=$|#)",
317
+ "beginCaptures": {
318
+ "1": {
319
+ "name": "keyword.device.control.ditroff"
320
+ }
321
+ }
322
+ }
323
+ ]
324
+ },
325
+ "eol": {
326
+ "name": "meta.end-of-line.ditroff",
327
+ "match": "(n)((?:\\s*\\d+){2})",
328
+ "captures": {
329
+ "1": {
330
+ "name": "entity.name.function.ditroff"
331
+ },
332
+ "2": {
333
+ "patterns": [
334
+ {
335
+ "include": "text.roff#number"
336
+ }
337
+ ]
338
+ }
339
+ }
340
+ },
341
+ "font": {
342
+ "name": "meta.change-font.ditroff",
343
+ "match": "(f)\\s*(\\d+)",
344
+ "captures": {
345
+ "1": {
346
+ "name": "entity.name.function.ditroff"
347
+ },
348
+ "2": {
349
+ "name": "constant.numeric.integer.ditroff"
350
+ }
351
+ }
352
+ },
353
+ "graphics": {
354
+ "patterns": [
355
+ {
356
+ "name": "meta.graphics.gnu.ditroff",
357
+ "match": "^\\s*(D)\\s*(C)\\s*(\\d+)(?:\\s+(\\d+))?",
358
+ "captures": {
359
+ "1": {
360
+ "name": "entity.name.function.ditroff"
361
+ },
362
+ "2": {
363
+ "name": "entity.name.subcommand.ditroff"
364
+ },
365
+ "3": {
366
+ "name": "constant.numeric.integer.ditroff"
367
+ },
368
+ "4": {
369
+ "name": "comment.dummy.argument.ditroff"
370
+ }
371
+ }
372
+ },
373
+ {
374
+ "name": "meta.graphics.gnu.ditroff",
375
+ "match": "^\\s*(D)\\s*(E)((?:\\s*(\\d+)){1,2})",
376
+ "captures": {
377
+ "1": {
378
+ "name": "entity.name.function.ditroff"
379
+ },
380
+ "2": {
381
+ "name": "entity.name.subcommand.ditroff"
382
+ },
383
+ "3": {
384
+ "patterns": [
385
+ {
386
+ "include": "text.roff#number"
387
+ }
388
+ ]
389
+ }
390
+ }
391
+ },
392
+ {
393
+ "name": "meta.graphics.ditroff",
394
+ "begin": "^\\s*(D)\\s*([lceafptP~])",
395
+ "end": "(?=$|#)",
396
+ "patterns": [
397
+ {
398
+ "include": "text.roff#number"
399
+ }
400
+ ],
401
+ "beginCaptures": {
402
+ "1": {
403
+ "name": "entity.name.function.ditroff"
404
+ },
405
+ "2": {
406
+ "name": "entity.name.subcommand.ditroff"
407
+ }
408
+ }
409
+ },
410
+ {
411
+ "name": "meta.graphics.unknown-command.ditroff",
412
+ "begin": "^\\s*(D)\\s*([^\\s\\\\])",
413
+ "end": "(?=$|#)",
414
+ "contentName": "variable.parameter.ditroff",
415
+ "beginCaptures": {
416
+ "1": {
417
+ "name": "entity.name.function.ditroff"
418
+ },
419
+ "2": {
420
+ "name": "entity.name.custom.subcommand.ditroff"
421
+ }
422
+ }
423
+ }
424
+ ]
425
+ },
426
+ "move": {
427
+ "name": "meta.move.ditroff",
428
+ "match": "([HhVv])\\s*(\\d+)",
429
+ "captures": {
430
+ "1": {
431
+ "name": "entity.name.function.ditroff"
432
+ },
433
+ "2": {
434
+ "name": "constant.numeric.integer.ditroff"
435
+ }
436
+ }
437
+ },
438
+ "movePrint": {
439
+ "name": "meta.move-and-print.ditroff",
440
+ "match": "(\\d{2})(.)",
441
+ "captures": {
442
+ "1": {
443
+ "name": "entity.name.function.ditroff"
444
+ },
445
+ "2": {
446
+ "name": "constant.character.ditroff"
447
+ }
448
+ }
449
+ },
450
+ "page": {
451
+ "name": "meta.start-page.ditroff",
452
+ "match": "(p)\\s*(\\d+)",
453
+ "captures": {
454
+ "1": {
455
+ "name": "keyword.control.page.output"
456
+ },
457
+ "2": {
458
+ "name": "constant.numeric.integer.output"
459
+ }
460
+ }
461
+ },
462
+ "print": {
463
+ "patterns": [
464
+ {
465
+ "name": "meta.print-character.indexed.ditroff",
466
+ "match": "(N)\\s*(\\d+)",
467
+ "captures": {
468
+ "1": {
469
+ "name": "entity.name.function.ditroff"
470
+ },
471
+ "2": {
472
+ "name": "constant.numeric.integer.ditroff"
473
+ }
474
+ }
475
+ },
476
+ {
477
+ "name": "meta.print-character.ditroff",
478
+ "match": "(c)\\s*(\\S)|(C)\\s*(\\S+)",
479
+ "captures": {
480
+ "1": {
481
+ "name": "entity.name.function.ditroff"
482
+ },
483
+ "2": {
484
+ "name": "constant.character.ditroff"
485
+ },
486
+ "3": {
487
+ "name": "entity.name.function.ditroff"
488
+ },
489
+ "4": {
490
+ "name": "string.unquoted.ditroff"
491
+ }
492
+ }
493
+ },
494
+ {
495
+ "name": "meta.print-text.gnu.ditroff",
496
+ "begin": "^\\s*(t)\\s*",
497
+ "end": "(?=$)|\\s+(\\d*)",
498
+ "contentName": "string.quoted.double.ditroff",
499
+ "beginCaptures": {
500
+ "0": {
501
+ "name": "entity.name.function.ditroff"
502
+ },
503
+ "1": {
504
+ "name": "punctuation.definition.entity.ditroff"
505
+ }
506
+ },
507
+ "endCaptures": {
508
+ "1": {
509
+ "name": "comment.dummy.argument.ditroff"
510
+ }
511
+ }
512
+ },
513
+ {
514
+ "name": "meta.print-text.track-kerned.gnu.ditroff",
515
+ "begin": "^\\s*(u)\\s*(\\d+)\\s*",
516
+ "end": "(?=\\s|$)",
517
+ "contentName": "string.quoted.double.ditroff",
518
+ "beginCaptures": {
519
+ "1": {
520
+ "name": "entity.name.function.ditroff"
521
+ },
522
+ "2": {
523
+ "name": "constant.numeric.integer.ditroff"
524
+ }
525
+ }
526
+ }
527
+ ]
528
+ },
529
+ "size": {
530
+ "match": "(s)\\s*(\\d+)",
531
+ "captures": {
532
+ "1": {
533
+ "name": "entity.name.function.ditroff"
534
+ },
535
+ "2": {
536
+ "name": "constant.numeric.integer.ditroff"
537
+ }
538
+ }
539
+ },
540
+ "wordSpace": {
541
+ "name": "entity.name.function.ditroff",
542
+ "match": "(?<=^|[\\s\\d])w"
543
+ }
544
+ }
545
+ }