github-linguist 7.1.3 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +5 -5
  2. data/grammars/annotation.liquidhaskell.haskell.json +119 -4
  3. data/grammars/etc.json +148 -0
  4. data/grammars/hint.haskell.json +119 -4
  5. data/grammars/hint.message.haskell.json +119 -4
  6. data/grammars/hint.type.haskell.json +119 -4
  7. data/grammars/injections.etc.json +21 -0
  8. data/grammars/source.abap.json +2 -2
  9. data/grammars/source.ats.json +87 -17
  10. data/grammars/source.ballerina.json +236 -313
  11. data/grammars/source.batchfile.json +1 -1
  12. data/grammars/source.bdf.json +14 -8
  13. data/grammars/source.changelogs.rpm-spec.json +3 -3
  14. data/grammars/source.chapel.json +1 -1
  15. data/grammars/source.coffee.json +98 -0
  16. data/grammars/source.csound-document.json +26 -124
  17. data/grammars/source.curlrc.json +180 -0
  18. data/grammars/source.dart.json +5 -2
  19. data/grammars/source.elixir.json +20 -25
  20. data/grammars/source.emacs.lisp.json +23 -1
  21. data/grammars/source.gdb.json +1 -1
  22. data/grammars/source.gitattributes.json +111 -0
  23. data/grammars/source.gitconfig.json +450 -0
  24. data/grammars/source.gitignore.json +140 -0
  25. data/grammars/source.graphql.json +18 -0
  26. data/grammars/source.haproxy-config.json +10 -10
  27. data/grammars/source.haskell.json +119 -4
  28. data/grammars/source.hgignore.json +34 -0
  29. data/grammars/source.hsig.json +119 -4
  30. data/grammars/source.hx.json +2 -2
  31. data/grammars/source.jison.json +1 -1
  32. data/grammars/source.ltspice.symbol.json +294 -0
  33. data/grammars/source.m4.json +187 -0
  34. data/grammars/source.man-conf.json +141 -0
  35. data/grammars/source.nanorc.json +330 -0
  36. data/grammars/source.nim.comment.json +82 -0
  37. data/grammars/source.nim.json +1 -57
  38. data/grammars/source.nix.json +2 -2
  39. data/grammars/source.opts.json +98 -0
  40. data/grammars/source.reason.json +13 -0
  41. data/grammars/source.rust.json +35 -0
  42. data/grammars/source.terraform.json +4 -1
  43. data/grammars/source.ts.json +307 -39
  44. data/grammars/source.tsx.json +290 -37
  45. data/grammars/source.zig.json +286 -0
  46. data/grammars/text.html.basic.json +1 -1
  47. data/grammars/text.marko.json +61 -9
  48. data/grammars/text.tex.latex.haskell.json +119 -4
  49. data/grammars/text.zone_file.json +2 -2
  50. data/grammars/version +1 -1
  51. data/lib/linguist/VERSION +1 -1
  52. data/lib/linguist/generated.rb +0 -8
  53. data/lib/linguist/heuristics.yml +30 -3
  54. data/lib/linguist/languages.json +1 -1
  55. data/lib/linguist/languages.yml +143 -3
  56. data/lib/linguist/samples.json +4494 -646
  57. data/lib/linguist/vendor.yml +1 -2
  58. metadata +31 -4
  59. data/grammars/source.solidity.json +0 -189
@@ -87,8 +87,7 @@
87
87
  - (^|/)select2/.*\.(css|scss|js)$
88
88
 
89
89
  # Vendored dependencies
90
- - third[-_]?party/
91
- - 3rd[-_]?party/
90
+ - (3rd|[Tt]hird)[-_]?[Pp]arty/
92
91
  - vendors?/
93
92
  - extern(al)?/
94
93
  - (^|/)[Vv]+endor/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-linguist
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.3
4
+ version: 7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-10 00:00:00.000000000 Z
11
+ date: 2019-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: charlock_holmes
@@ -206,6 +206,20 @@ dependencies:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: bundler
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '1.10'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '1.10'
209
223
  description: We use this library at GitHub to detect blob languages, highlight code,
210
224
  ignore binary files, suppress generated files in diffs, and generate language breakdown
211
225
  graphs.
@@ -229,10 +243,12 @@ files:
229
243
  - ext/linguist/tokenizer.l
230
244
  - grammars/annotation.liquidhaskell.haskell.json
231
245
  - grammars/config.xcompose.json
246
+ - grammars/etc.json
232
247
  - grammars/file.lasso.json
233
248
  - grammars/hint.haskell.json
234
249
  - grammars/hint.message.haskell.json
235
250
  - grammars/hint.type.haskell.json
251
+ - grammars/injections.etc.json
236
252
  - grammars/markdown.haxe.codeblock.json
237
253
  - grammars/markdown.hxml.codeblock.json
238
254
  - grammars/objdump.x86asm.json
@@ -318,6 +334,7 @@ files:
318
334
  - grammars/source.css.postcss.sugarss.json
319
335
  - grammars/source.csx.json
320
336
  - grammars/source.cuda-c++.json
337
+ - grammars/source.curlrc.json
321
338
  - grammars/source.cwl.json
322
339
  - grammars/source.cython.json
323
340
  - grammars/source.d.json
@@ -365,6 +382,9 @@ files:
365
382
  - grammars/source.gdscript.json
366
383
  - grammars/source.gerber.json
367
384
  - grammars/source.gfm.json
385
+ - grammars/source.gitattributes.json
386
+ - grammars/source.gitconfig.json
387
+ - grammars/source.gitignore.json
368
388
  - grammars/source.glsl.json
369
389
  - grammars/source.gn.json
370
390
  - grammars/source.gnuplot.json
@@ -378,6 +398,7 @@ files:
378
398
  - grammars/source.haproxy-config.json
379
399
  - grammars/source.harbour.json
380
400
  - grammars/source.haskell.json
401
+ - grammars/source.hgignore.json
381
402
  - grammars/source.hlsl.json
382
403
  - grammars/source.hql.json
383
404
  - grammars/source.hsc2hs.json
@@ -430,9 +451,12 @@ files:
430
451
  - grammars/source.logtalk.json
431
452
  - grammars/source.loomscript.json
432
453
  - grammars/source.lsl.json
454
+ - grammars/source.ltspice.symbol.json
433
455
  - grammars/source.lua.json
456
+ - grammars/source.m4.json
434
457
  - grammars/source.makefile.json
435
458
  - grammars/source.makegen.json
459
+ - grammars/source.man-conf.json
436
460
  - grammars/source.mask.json
437
461
  - grammars/source.mata.json
438
462
  - grammars/source.mathematica.json
@@ -449,6 +473,7 @@ files:
449
473
  - grammars/source.moonscript.json
450
474
  - grammars/source.mql5.json
451
475
  - grammars/source.mupad.json
476
+ - grammars/source.nanorc.json
452
477
  - grammars/source.ncl.json
453
478
  - grammars/source.ne.json
454
479
  - grammars/source.nemerle.json
@@ -458,6 +483,7 @@ files:
458
483
  - grammars/source.nextflow-groovy.json
459
484
  - grammars/source.nextflow.json
460
485
  - grammars/source.nginx.json
486
+ - grammars/source.nim.comment.json
461
487
  - grammars/source.nim.json
462
488
  - grammars/source.nim_filter.json
463
489
  - grammars/source.nimcfg.json
@@ -479,6 +505,7 @@ files:
479
505
  - grammars/source.opalsysdefs.json
480
506
  - grammars/source.opencobol.json
481
507
  - grammars/source.opentype.json
508
+ - grammars/source.opts.json
482
509
  - grammars/source.ox.json
483
510
  - grammars/source.oz.json
484
511
  - grammars/source.p4.json
@@ -559,7 +586,6 @@ files:
559
586
  - grammars/source.smali.json
560
587
  - grammars/source.smalltalk.json
561
588
  - grammars/source.smt.json
562
- - grammars/source.solidity.json
563
589
  - grammars/source.sp.json
564
590
  - grammars/source.sparql.json
565
591
  - grammars/source.spin.json
@@ -612,6 +638,7 @@ files:
612
638
  - grammars/source.yang.json
613
639
  - grammars/source.yara.json
614
640
  - grammars/source.yasnippet.json
641
+ - grammars/source.zig.json
615
642
  - grammars/text.bibtex.json
616
643
  - grammars/text.cfml.basic.json
617
644
  - grammars/text.elixir.json
@@ -736,7 +763,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
736
763
  version: '0'
737
764
  requirements: []
738
765
  rubyforge_project:
739
- rubygems_version: 2.7.6
766
+ rubygems_version: 2.6.14
740
767
  signing_key:
741
768
  specification_version: 4
742
769
  summary: GitHub Language detection
@@ -1,189 +0,0 @@
1
- {
2
- "name": "Solidity",
3
- "scopeName": "source.solidity",
4
- "patterns": [
5
- {
6
- "name": "comment",
7
- "match": "\\/\\/.*"
8
- },
9
- {
10
- "name": "comment",
11
- "begin": "(\\/\\*)",
12
- "end": "(\\*\\/)"
13
- },
14
- {
15
- "name": "keyword.control",
16
- "match": "\\b(event|enum)\\s+([A-Za-z_]\\w*)\\b",
17
- "captures": {
18
- "2": {
19
- "name": "support.function"
20
- }
21
- }
22
- },
23
- {
24
- "name": "keyword.control",
25
- "match": "\\b(contract|interface|library|using|struct|function|constructor|modifier)(\\s+[A-Za-z_]\\w*)?(?:\\s+is\\s+((?:[A-Za-z_][\\,\\s]*)*))?\\b",
26
- "captures": {
27
- "2": {
28
- "name": "entity.name.function"
29
- },
30
- "3": {
31
- "name": "entity.name.function"
32
- }
33
- }
34
- },
35
- {
36
- "match": "\\b(address\\s*payable|address|string|bytes?\\d*|int\\d*|uint\\d*|bool|u?fixed\\d+x\\d+)\\s*(?:\\[(\\d*)\\])?\\s*(?:\\[(\\d*)\\])?\\s*(?:(indexed|memory|storage|calldata)?\\s*(\\b[A-Za-z_]\\w*)\\s*)?(?=[,\\)])",
37
- "captures": {
38
- "1": {
39
- "name": "constant.language"
40
- },
41
- "2": {
42
- "name": "constant.numeric"
43
- },
44
- "3": {
45
- "name": "constant.numeric"
46
- },
47
- "4": {
48
- "name": "keyword.control"
49
- },
50
- "5": {
51
- "name": "variable.parameter"
52
- }
53
- }
54
- },
55
- {
56
- "match": "\\b(mapping)\\s*\\((.*)\\s+=\u003e\\s+(.*)\\)(\\s+(?:private|public|internal|external))?\\s+([A-Za-z_]\\w*)\\b",
57
- "captures": {
58
- "1": {
59
- "name": "constant.language"
60
- },
61
- "2": {
62
- "name": "constant.language"
63
- },
64
- "3": {
65
- "name": "constant.language"
66
- },
67
- "4": {
68
- "name": "keyword.control"
69
- }
70
- }
71
- },
72
- {
73
- "name": "constant.language",
74
- "match": "\\b(true|false)\\b"
75
- },
76
- {
77
- "match": "\\b(address\\s*payable|address|string|bytes?\\d*|int\\d*|uint\\d*|bool|u?fixed\\d+x\\d+)(?:\\s*\\[(\\d*)\\])?(?:\\s*\\[(\\d*)\\])?\\s*(private|public|internal|external|constant|memory|storage)?\\s+(?:[A-Za-z_]\\w*)\\s*[\\;\\=]",
78
- "captures": {
79
- "1": {
80
- "name": "constant.language"
81
- },
82
- "2": {
83
- "name": "constant.numeric"
84
- },
85
- "3": {
86
- "name": "constant.numeric"
87
- },
88
- "4": {
89
- "name": "keyword.control"
90
- }
91
- }
92
- },
93
- {
94
- "name": "keyword.control",
95
- "match": "\\b(var|import|constant|pragma|payable|storage|memory|calldata|if|else|for|while|do|break|continue|returns?|private|public|pure|view|internal|external|this|suicide|selfdestruct|emit|new|is|throw|revert|assert|require|\\_)\\b"
96
- },
97
- {
98
- "match": "\\b([A-Za-z_]\\w*)\\s*\\:\\s*",
99
- "captures": {
100
- "1": {
101
- "name": "variable.parameter"
102
- }
103
- }
104
- },
105
- {
106
- "name": "keyword.control",
107
- "match": "(=|!|\u003e|\u003c|\\||\u0026|\\?|:|\\^|~|\\*|\\+|\\-|\\/|\\%|\\bhex\\b)"
108
- },
109
- {
110
- "match": "\\b(msg|block|tx|abi)\\.([A-Za-z_]\\w*)\\b",
111
- "captures": {
112
- "1": {
113
- "name": "constant.language"
114
- },
115
- "2": {
116
- "name": "constant.language"
117
- }
118
- }
119
- },
120
- {
121
- "match": "\\b(now|delete)\\b",
122
- "captures": {
123
- "1": {
124
- "name": "constant.language"
125
- }
126
- }
127
- },
128
- {
129
- "match": "\\b(blockhash|gasleft|addmod|mulmod|keccak256|sha256|sha3|ripemd160|ecrecover)\\s*\\(",
130
- "captures": {
131
- "1": {
132
- "name": "constant.language"
133
- }
134
- }
135
- },
136
- {
137
- "match": "\\b([A-Za-z_]\\w*)(?:\\[(\\d*)\\])?(?:\\[(\\d*)\\])?\\(",
138
- "captures": {
139
- "1": {
140
- "name": "support.type"
141
- },
142
- "2": {
143
- "name": "constant.numeric"
144
- },
145
- "3": {
146
- "name": "constant.numeric"
147
- }
148
- }
149
- },
150
- {
151
- "match": "\\b\\.(length|selector)\\b",
152
- "captures": {
153
- "1": {
154
- "name": "support.type"
155
- }
156
- }
157
- },
158
- {
159
- "match": "\\b(\\d+)\\s+(wei|finney|szabo|ether|seconds|minutes|hours|days|weeks|years)\\b",
160
- "captures": {
161
- "1": {
162
- "name": "constant.numeric"
163
- },
164
- "2": {
165
- "name": "keyword.control"
166
- }
167
- }
168
- },
169
- {
170
- "name": "string.quoted",
171
- "match": "([\\\"\\'].*?[\\\"\\'])"
172
- },
173
- {
174
- "match": "\\b(\\d+)(e\\d*)?\\b",
175
- "captures": {
176
- "1": {
177
- "name": "constant.numeric"
178
- },
179
- "2": {
180
- "name": "constant.numeric"
181
- }
182
- }
183
- },
184
- {
185
- "name": "constant.numeric",
186
- "match": "\\b(0[xX][a-fA-F0-9]+)\\b"
187
- }
188
- ]
189
- }