github-linguist 2.8.4 → 2.8.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -189,11 +189,10 @@ module Linguist
189
189
 
190
190
  # Public: Is the blob safe to colorize?
191
191
  #
192
- # We use Pygments.rb for syntax highlighting blobs, which
193
- # has some quirks and also is essentially 'un-killable' via
194
- # normal timeout. To workaround this we try to
195
- # carefully handling Pygments.rb anything it can't handle.
196
- #
192
+ # We use Pygments for syntax highlighting blobs. Pygments
193
+ # can be too slow for very large blobs or for certain
194
+ # corner-case blobs.
195
+ #
197
196
  # Return true or false
198
197
  def safe_to_colorize?
199
198
  !large? && text? && !high_ratio_of_long_lines?
@@ -55,8 +55,9 @@ module Linguist
55
55
  minified_javascript? ||
56
56
  compiled_coffeescript? ||
57
57
  xcode_project_file? ||
58
- generated_net_docfile? ||
59
58
  generated_parser? ||
59
+ generated_net_docfile? ||
60
+ generated_net_designer_file? ||
60
61
  generated_protocol_buffer?
61
62
  end
62
63
 
@@ -143,6 +144,16 @@ module Linguist
143
144
  lines[-2].include?("</doc>")
144
145
  end
145
146
 
147
+ # Internal: Is this a codegen file for a .NET project?
148
+ #
149
+ # Visual Studio often uses code generation to generate partial classes, and
150
+ # these files can be quite unwieldy. Let's hide them.
151
+ #
152
+ # Returns true or false
153
+ def generated_net_designer_file?
154
+ name.downcase =~ /\.designer\.cs$/
155
+ end
156
+
146
157
  # Internal: Is the blob of JS a parser generated by PEG.js?
147
158
  #
148
159
  # PEG.js-generated parsers are not meant to be consumed by humans.
@@ -384,8 +384,8 @@
384
384
  ".gemrc"
385
385
  ]
386
386
  },
387
- "tokens_total": 362003,
388
- "languages_total": 429,
387
+ "tokens_total": 363070,
388
+ "languages_total": 430,
389
389
  "tokens": {
390
390
  "ABAP": {
391
391
  "*/**": 1,
@@ -12484,11 +12484,11 @@
12484
12484
  "egrep": 1
12485
12485
  },
12486
12486
  "Erlang": {
12487
- "SHEBANG#!escript": 2,
12488
- "%": 13,
12489
- "-": 88,
12490
- "*": 3,
12491
- "erlang": 1,
12487
+ "SHEBANG#!escript": 3,
12488
+ "%": 134,
12489
+ "-": 262,
12490
+ "*": 9,
12491
+ "erlang": 5,
12492
12492
  "smp": 1,
12493
12493
  "enable": 1,
12494
12494
  "sname": 1,
@@ -12496,43 +12496,43 @@
12496
12496
  "mnesia": 1,
12497
12497
  "debug": 1,
12498
12498
  "verbose": 1,
12499
- "main": 3,
12500
- "(": 172,
12501
- "[": 46,
12499
+ "main": 4,
12500
+ "(": 236,
12501
+ "[": 66,
12502
12502
  "String": 2,
12503
- "]": 41,
12504
- ")": 166,
12503
+ "]": 61,
12504
+ ")": 230,
12505
12505
  "try": 2,
12506
12506
  "N": 6,
12507
12507
  "list_to_integer": 1,
12508
12508
  "F": 16,
12509
12509
  "fac": 4,
12510
- "io": 3,
12511
- "format": 3,
12510
+ "io": 5,
12511
+ "format": 7,
12512
12512
  "catch": 2,
12513
- "_": 45,
12513
+ "_": 52,
12514
12514
  "usage": 3,
12515
- "end": 2,
12516
- ";": 43,
12517
- ".": 28,
12518
- "halt": 1,
12515
+ "end": 3,
12516
+ ";": 56,
12517
+ ".": 37,
12518
+ "halt": 2,
12519
12519
  "export": 2,
12520
12520
  "main/1": 1,
12521
12521
  "For": 1,
12522
12522
  "each": 1,
12523
12523
  "header": 1,
12524
- "file": 3,
12524
+ "file": 6,
12525
12525
  "it": 2,
12526
12526
  "scans": 1,
12527
12527
  "thru": 1,
12528
12528
  "all": 1,
12529
12529
  "records": 1,
12530
- "and": 4,
12530
+ "and": 8,
12531
12531
  "create": 1,
12532
12532
  "helper": 1,
12533
12533
  "functions": 2,
12534
12534
  "Helper": 1,
12535
- "are": 1,
12535
+ "are": 3,
12536
12536
  "setters": 1,
12537
12537
  "getters": 1,
12538
12538
  "fields": 4,
@@ -12550,20 +12550,20 @@
12550
12550
  "<->": 5,
12551
12551
  "hrl": 1,
12552
12552
  "relative": 1,
12553
- "to": 1,
12553
+ "to": 2,
12554
12554
  "current": 1,
12555
12555
  "dir": 1,
12556
- "OutDir": 2,
12556
+ "OutDir": 4,
12557
12557
  "ModuleName": 3,
12558
12558
  "HeaderComment": 2,
12559
12559
  "ModuleDeclaration": 2,
12560
- "+": 208,
12560
+ "+": 214,
12561
12561
  "<": 1,
12562
12562
  "Src": 10,
12563
12563
  "format_src": 8,
12564
- "lists": 6,
12564
+ "lists": 11,
12565
12565
  "sort": 1,
12566
- "flatten": 5,
12566
+ "flatten": 6,
12567
12567
  "read": 2,
12568
12568
  "generate_type_default_function": 2,
12569
12569
  "write_file": 1,
@@ -12572,22 +12572,22 @@
12572
12572
  "HeaderFile": 4,
12573
12573
  "epp": 1,
12574
12574
  "parse_file": 1,
12575
- "of": 2,
12576
- "{": 90,
12577
- "ok": 22,
12575
+ "of": 9,
12576
+ "{": 109,
12577
+ "ok": 34,
12578
12578
  "Tree": 4,
12579
- "}": 90,
12579
+ "}": 109,
12580
12580
  "parse": 2,
12581
- "error": 2,
12581
+ "error": 4,
12582
12582
  "Error": 4,
12583
12583
  "catched_error": 1,
12584
- "end.": 2,
12585
- "|": 15,
12584
+ "end.": 3,
12585
+ "|": 25,
12586
12586
  "T": 24,
12587
12587
  "when": 29,
12588
12588
  "length": 6,
12589
12589
  "Type": 3,
12590
- "A": 4,
12590
+ "A": 5,
12591
12591
  "B": 4,
12592
12592
  "NSrc": 4,
12593
12593
  "_Type": 1,
@@ -12601,7 +12601,7 @@
12601
12601
  "if": 1,
12602
12602
  "generate_setter_getter_function": 5,
12603
12603
  "generate_type_function": 3,
12604
- "true": 1,
12604
+ "true": 3,
12605
12605
  "generate_fields_function": 2,
12606
12606
  "generate_fields_atom_function": 2,
12607
12607
  "parse_field_name": 5,
@@ -12620,7 +12620,7 @@
12620
12620
  "parse_field": 6,
12621
12621
  "AccFields": 6,
12622
12622
  "AccParentFields": 6,
12623
- "case": 1,
12623
+ "case": 3,
12624
12624
  "Field": 2,
12625
12625
  "PField": 2,
12626
12626
  "parse_field_atom": 4,
@@ -12630,7 +12630,7 @@
12630
12630
  "to_setter_getter_function": 5,
12631
12631
  "setter": 2,
12632
12632
  "getter": 2,
12633
- "This": 1,
12633
+ "This": 2,
12634
12634
  "is": 1,
12635
12635
  "auto": 1,
12636
12636
  "generated": 1,
@@ -12640,7 +12640,7 @@
12640
12640
  "t": 1,
12641
12641
  "edit": 1,
12642
12642
  "record_utils": 1,
12643
- "compile": 1,
12643
+ "compile": 2,
12644
12644
  "export_all": 1,
12645
12645
  "include": 1,
12646
12646
  "abstract_message": 21,
@@ -12671,12 +12671,254 @@
12671
12671
  "ParentProperty": 6,
12672
12672
  "is_atom": 2,
12673
12673
  "set": 13,
12674
- "Value": 33,
12674
+ "Value": 35,
12675
12675
  "NewObj": 20,
12676
12676
  "Obj#abstract_message": 7,
12677
12677
  "Obj#async_message": 3,
12678
12678
  "NewParentObject": 2,
12679
- "undefined.": 1
12679
+ "undefined.": 1,
12680
+ "Mode": 1,
12681
+ "coding": 1,
12682
+ "utf": 1,
12683
+ "tab": 1,
12684
+ "width": 1,
12685
+ "c": 2,
12686
+ "basic": 1,
12687
+ "offset": 1,
12688
+ "indent": 1,
12689
+ "tabs": 1,
12690
+ "mode": 2,
12691
+ "BSD": 1,
12692
+ "LICENSE": 1,
12693
+ "Copyright": 1,
12694
+ "Michael": 2,
12695
+ "Truog": 2,
12696
+ "<mjtruog>": 1,
12697
+ "at": 1,
12698
+ "gmail": 1,
12699
+ "dot": 1,
12700
+ "com": 1,
12701
+ "All": 2,
12702
+ "rights": 1,
12703
+ "reserved.": 1,
12704
+ "Redistribution": 1,
12705
+ "use": 2,
12706
+ "in": 3,
12707
+ "source": 2,
12708
+ "binary": 2,
12709
+ "forms": 1,
12710
+ "with": 2,
12711
+ "or": 3,
12712
+ "without": 2,
12713
+ "modification": 1,
12714
+ "permitted": 1,
12715
+ "provided": 2,
12716
+ "that": 1,
12717
+ "the": 9,
12718
+ "following": 4,
12719
+ "conditions": 3,
12720
+ "met": 1,
12721
+ "Redistributions": 2,
12722
+ "code": 2,
12723
+ "must": 3,
12724
+ "retain": 1,
12725
+ "above": 2,
12726
+ "copyright": 2,
12727
+ "notice": 2,
12728
+ "this": 4,
12729
+ "list": 2,
12730
+ "disclaimer.": 1,
12731
+ "form": 1,
12732
+ "reproduce": 1,
12733
+ "disclaimer": 1,
12734
+ "documentation": 1,
12735
+ "and/or": 1,
12736
+ "other": 1,
12737
+ "materials": 2,
12738
+ "distribution.": 1,
12739
+ "advertising": 1,
12740
+ "mentioning": 1,
12741
+ "features": 1,
12742
+ "software": 3,
12743
+ "display": 1,
12744
+ "acknowledgment": 1,
12745
+ "product": 1,
12746
+ "includes": 1,
12747
+ "developed": 1,
12748
+ "by": 1,
12749
+ "The": 1,
12750
+ "name": 1,
12751
+ "author": 2,
12752
+ "may": 1,
12753
+ "not": 1,
12754
+ "be": 1,
12755
+ "used": 1,
12756
+ "endorse": 1,
12757
+ "promote": 1,
12758
+ "products": 1,
12759
+ "derived": 1,
12760
+ "from": 1,
12761
+ "specific": 1,
12762
+ "prior": 1,
12763
+ "written": 1,
12764
+ "permission": 1,
12765
+ "THIS": 2,
12766
+ "SOFTWARE": 2,
12767
+ "IS": 1,
12768
+ "PROVIDED": 1,
12769
+ "BY": 1,
12770
+ "THE": 5,
12771
+ "COPYRIGHT": 2,
12772
+ "HOLDERS": 1,
12773
+ "AND": 4,
12774
+ "CONTRIBUTORS": 2,
12775
+ "ANY": 4,
12776
+ "EXPRESS": 1,
12777
+ "OR": 8,
12778
+ "IMPLIED": 2,
12779
+ "WARRANTIES": 2,
12780
+ "INCLUDING": 3,
12781
+ "BUT": 2,
12782
+ "NOT": 2,
12783
+ "LIMITED": 2,
12784
+ "TO": 2,
12785
+ "OF": 8,
12786
+ "MERCHANTABILITY": 1,
12787
+ "FITNESS": 1,
12788
+ "FOR": 2,
12789
+ "PARTICULAR": 1,
12790
+ "PURPOSE": 1,
12791
+ "ARE": 1,
12792
+ "DISCLAIMED.": 1,
12793
+ "IN": 3,
12794
+ "NO": 1,
12795
+ "EVENT": 1,
12796
+ "SHALL": 1,
12797
+ "OWNER": 1,
12798
+ "BE": 1,
12799
+ "LIABLE": 1,
12800
+ "DIRECT": 1,
12801
+ "INDIRECT": 1,
12802
+ "INCIDENTAL": 1,
12803
+ "SPECIAL": 1,
12804
+ "EXEMPLARY": 1,
12805
+ "CONSEQUENTIAL": 1,
12806
+ "DAMAGES": 1,
12807
+ "PROCUREMENT": 1,
12808
+ "SUBSTITUTE": 1,
12809
+ "GOODS": 1,
12810
+ "SERVICES": 1,
12811
+ "LOSS": 1,
12812
+ "USE": 2,
12813
+ "DATA": 1,
12814
+ "PROFITS": 1,
12815
+ "BUSINESS": 1,
12816
+ "INTERRUPTION": 1,
12817
+ "HOWEVER": 1,
12818
+ "CAUSED": 1,
12819
+ "ON": 1,
12820
+ "THEORY": 1,
12821
+ "LIABILITY": 2,
12822
+ "WHETHER": 1,
12823
+ "CONTRACT": 1,
12824
+ "STRICT": 1,
12825
+ "TORT": 1,
12826
+ "NEGLIGENCE": 1,
12827
+ "OTHERWISE": 1,
12828
+ "ARISING": 1,
12829
+ "WAY": 1,
12830
+ "OUT": 1,
12831
+ "EVEN": 1,
12832
+ "IF": 1,
12833
+ "ADVISED": 1,
12834
+ "POSSIBILITY": 1,
12835
+ "SUCH": 1,
12836
+ "DAMAGE.": 1,
12837
+ "sys": 2,
12838
+ "RelToolConfig": 5,
12839
+ "target_dir": 2,
12840
+ "TargetDir": 14,
12841
+ "overlay": 2,
12842
+ "OverlayConfig": 4,
12843
+ "consult": 1,
12844
+ "Spec": 2,
12845
+ "reltool": 2,
12846
+ "get_target_spec": 1,
12847
+ "make_dir": 1,
12848
+ "eexist": 1,
12849
+ "exit_code": 3,
12850
+ "eval_target_spec": 1,
12851
+ "root_dir": 1,
12852
+ "process_overlay": 2,
12853
+ "shell": 3,
12854
+ "Command": 3,
12855
+ "Arguments": 3,
12856
+ "CommandSuffix": 2,
12857
+ "reverse": 4,
12858
+ "os": 1,
12859
+ "cmd": 1,
12860
+ "io_lib": 2,
12861
+ "boot_rel_vsn": 2,
12862
+ "Config": 2,
12863
+ "_RelToolConfig": 1,
12864
+ "rel": 2,
12865
+ "_Name": 1,
12866
+ "Ver": 1,
12867
+ "proplists": 1,
12868
+ "lookup": 1,
12869
+ "Ver.": 1,
12870
+ "minimal": 2,
12871
+ "parsing": 1,
12872
+ "for": 1,
12873
+ "handling": 1,
12874
+ "mustache": 11,
12875
+ "syntax": 1,
12876
+ "Body": 2,
12877
+ "Context": 11,
12878
+ "Result": 10,
12879
+ "_Context": 1,
12880
+ "KeyStr": 6,
12881
+ "mustache_key": 4,
12882
+ "C": 4,
12883
+ "Rest": 10,
12884
+ "Key": 2,
12885
+ "list_to_existing_atom": 1,
12886
+ "dict": 2,
12887
+ "find": 1,
12888
+ "support": 1,
12889
+ "based": 1,
12890
+ "on": 1,
12891
+ "rebar": 1,
12892
+ "overlays": 1,
12893
+ "BootRelVsn": 2,
12894
+ "OverlayVars": 2,
12895
+ "from_list": 1,
12896
+ "erts_vsn": 1,
12897
+ "system_info": 1,
12898
+ "version": 1,
12899
+ "rel_vsn": 1,
12900
+ "hostname": 1,
12901
+ "net_adm": 1,
12902
+ "localhost": 1,
12903
+ "BaseDir": 7,
12904
+ "get_cwd": 1,
12905
+ "execute_overlay": 6,
12906
+ "_Vars": 1,
12907
+ "_BaseDir": 1,
12908
+ "_TargetDir": 1,
12909
+ "mkdir": 1,
12910
+ "Out": 4,
12911
+ "Vars": 7,
12912
+ "filename": 3,
12913
+ "join": 3,
12914
+ "copy": 1,
12915
+ "In": 2,
12916
+ "InFile": 3,
12917
+ "OutFile": 2,
12918
+ "filelib": 1,
12919
+ "is_file": 1,
12920
+ "ExitCode": 2,
12921
+ "flush": 1
12680
12922
  },
12681
12923
  "fish": {
12682
12924
  "#": 18,
@@ -39027,7 +39269,7 @@
39027
39269
  "edn": 227,
39028
39270
  "Elm": 628,
39029
39271
  "Emacs Lisp": 1756,
39030
- "Erlang": 1861,
39272
+ "Erlang": 2928,
39031
39273
  "fish": 636,
39032
39274
  "Forth": 1516,
39033
39275
  "GAS": 133,
@@ -39128,7 +39370,7 @@
39128
39370
  "edn": 1,
39129
39371
  "Elm": 3,
39130
39372
  "Emacs Lisp": 2,
39131
- "Erlang": 4,
39373
+ "Erlang": 5,
39132
39374
  "fish": 3,
39133
39375
  "Forth": 7,
39134
39376
  "GAS": 1,
@@ -39209,5 +39451,5 @@
39209
39451
  "Xtend": 2,
39210
39452
  "YAML": 1
39211
39453
  },
39212
- "md5": "044f21ee2f8688cbafbbea5e5b664823"
39454
+ "md5": "93478efbbf3cf2d97da26c6b2257429a"
39213
39455
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-linguist
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.4
4
+ version: 2.8.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-08 00:00:00.000000000 Z
12
+ date: 2013-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: charlock_holmes