github-linguist 7.15.0 → 7.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/bin/github-linguist +115 -71
  3. data/grammars/annotation.liquidhaskell.haskell.json +1 -1
  4. data/grammars/etc.json +1 -1
  5. data/grammars/go.mod.json +1 -0
  6. data/grammars/go.sum.json +1 -0
  7. data/grammars/hint.haskell.json +1 -1
  8. data/grammars/hint.message.haskell.json +1 -1
  9. data/grammars/hint.type.haskell.json +1 -1
  10. data/grammars/markdown.mcfunction.codeblock.json +1 -0
  11. data/grammars/source.abap.json +1 -1
  12. data/grammars/source.al.json +1 -1
  13. data/grammars/source.avro.json +1 -1
  14. data/grammars/source.ballerina.json +1 -1
  15. data/grammars/source.bc.json +1 -0
  16. data/grammars/source.bicep.json +1 -1
  17. data/grammars/source.boo.json +1 -1
  18. data/grammars/source.cirru.json +1 -1
  19. data/grammars/source.cs.json +1 -1
  20. data/grammars/source.csound.json +1 -1
  21. data/grammars/source.css.json +1 -1
  22. data/grammars/source.dart.json +1 -1
  23. data/grammars/source.dc.json +1 -0
  24. data/grammars/source.ditroff.json +1 -1
  25. data/grammars/source.dotenv.json +1 -0
  26. data/grammars/source.earthfile.json +1 -0
  27. data/grammars/source.ecl.json +1 -0
  28. data/grammars/source.ed.json +1 -0
  29. data/grammars/source.fnl.json +1 -0
  30. data/grammars/source.fsharp.json +1 -1
  31. data/grammars/source.fstar.json +1 -1
  32. data/grammars/source.futhark.json +1 -1
  33. data/grammars/source.gcode.json +1 -1
  34. data/grammars/source.gdscript.json +1 -1
  35. data/grammars/source.goldgrm.json +1 -0
  36. data/grammars/source.hack.json +1 -1
  37. data/grammars/source.haskell.json +1 -1
  38. data/grammars/source.hsig.json +1 -1
  39. data/grammars/source.hy.json +1 -1
  40. data/grammars/source.jest.snap.json +1 -0
  41. data/grammars/source.jq.json +1 -1
  42. data/grammars/source.json.json +1 -1
  43. data/grammars/source.julia.json +1 -1
  44. data/grammars/source.kakscript.json +1 -0
  45. data/grammars/source.kotlin.json +1 -1
  46. data/grammars/source.lean.json +1 -1
  47. data/grammars/source.m2.json +1 -1
  48. data/grammars/source.matlab.json +1 -1
  49. data/grammars/source.mcfunction.json +1 -1
  50. data/grammars/source.mo.json +1 -0
  51. data/grammars/source.odin.json +1 -1
  52. data/grammars/source.opts.json +1 -1
  53. data/grammars/source.pic.json +1 -1
  54. data/grammars/source.postscript.json +1 -1
  55. data/grammars/source.powershell.json +1 -1
  56. data/grammars/source.promela.json +1 -0
  57. data/grammars/source.q_output.json +1 -1
  58. data/grammars/source.rego.json +1 -1
  59. data/grammars/source.renpy.json +1 -1
  60. data/grammars/source.scala.json +1 -1
  61. data/grammars/source.sed.json +1 -1
  62. data/grammars/source.sqf.json +1 -1
  63. data/grammars/source.ssh-config.json +1 -1
  64. data/grammars/source.ts.json +1 -1
  65. data/grammars/source.tsx.json +1 -1
  66. data/grammars/source.v.json +1 -1
  67. data/grammars/source.viml.json +1 -1
  68. data/grammars/source.ws.json +1 -0
  69. data/grammars/source.wsd.json +1 -1
  70. data/grammars/source.xojo.json +1 -1
  71. data/grammars/source.yara.json +1 -1
  72. data/grammars/source.yasnippet.json +1 -1
  73. data/grammars/source.zig.json +1 -1
  74. data/grammars/text.html.astro.json +1 -0
  75. data/grammars/text.html.markdown.astro.json +1 -0
  76. data/grammars/text.html.php.json +1 -1
  77. data/grammars/text.info.json +1 -0
  78. data/grammars/text.lesshst.json +1 -0
  79. data/grammars/text.marko.json +1 -1
  80. data/grammars/text.roff.json +1 -1
  81. data/grammars/text.tex.latex.haskell.json +1 -1
  82. data/grammars/text.xml.svg.json +1 -1
  83. data/grammars/version +1 -1
  84. data/lib/linguist/VERSION +1 -1
  85. data/lib/linguist/documentation.yml +1 -0
  86. data/lib/linguist/generated.rb +19 -0
  87. data/lib/linguist/heuristics.yml +10 -3
  88. data/lib/linguist/languages.json +1 -1
  89. data/lib/linguist/languages.yml +310 -31
  90. data/lib/linguist/linguist.so +0 -0
  91. data/lib/linguist/samples.json +1 -1
  92. data/lib/linguist/shebang.rb +4 -1
  93. data/lib/linguist/vendor.yml +3 -0
  94. metadata +28 -10
  95. data/grammars/source.SASLog.json +0 -1
  96. data/grammars/source.mcfunction-snapshot.json +0 -1
  97. data/lib/linguist/linguist.bundle +0 -0
@@ -41,7 +41,10 @@ module Linguist
41
41
  # if /usr/bin/env type shebang then walk the string
42
42
  if script == 'env'
43
43
  s.scan(/\s+/)
44
- s.scan(/([^\s]+=[^\s]+\s+)*/) # skip over variable arguments e.g. foo=bar
44
+ while s.scan(/((-[i0uCSv]*|--\S+)\s+)+/) || # skip over optional arguments e.g. -vS
45
+ s.scan(/(\S+=\S+\s+)+/) # skip over variable arguments e.g. foo=bar
46
+ # do nothing
47
+ end
45
48
  script = s.scan(/\S+/)
46
49
  end
47
50
 
@@ -380,3 +380,6 @@
380
380
 
381
381
  # Jenkins Pipeline
382
382
  - (^|/)Jenkinsfile$
383
+
384
+ # Gitpod
385
+ - (^|/)\.gitpod\.Dockerfile$
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.15.0
4
+ version: 7.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-28 00:00:00.000000000 Z
11
+ date: 2021-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: charlock_holmes
@@ -209,7 +209,7 @@ dependencies:
209
209
  description: We use this library at GitHub to detect blob languages, highlight code,
210
210
  ignore binary files, suppress generated files in diffs, and generate language breakdown
211
211
  graphs.
212
- email:
212
+ email:
213
213
  executables:
214
214
  - github-linguist
215
215
  - git-linguist
@@ -231,6 +231,8 @@ files:
231
231
  - grammars/documentation.markdown.injection.haxe.json
232
232
  - grammars/etc.json
233
233
  - grammars/file.lasso.json
234
+ - grammars/go.mod.json
235
+ - grammars/go.sum.json
234
236
  - grammars/hidden.manref.json
235
237
  - grammars/hidden.regexp.injection-shell.json
236
238
  - grammars/hint.haskell.json
@@ -244,10 +246,10 @@ files:
244
246
  - grammars/markdown.haxe.codeblock.json
245
247
  - grammars/markdown.hxml.codeblock.json
246
248
  - grammars/markdown.lean.codeblock.json
249
+ - grammars/markdown.mcfunction.codeblock.json
247
250
  - grammars/markdown.plantuml.codeblock.json
248
251
  - grammars/objdump.x86asm.json
249
252
  - grammars/source.4dm.json
250
- - grammars/source.SASLog.json
251
253
  - grammars/source.abap.json
252
254
  - grammars/source.abapcds.json
253
255
  - grammars/source.abl.json
@@ -281,6 +283,7 @@ files:
281
283
  - grammars/source.ballerina.json
282
284
  - grammars/source.basic.json
283
285
  - grammars/source.batchfile.json
286
+ - grammars/source.bc.json
284
287
  - grammars/source.bdf.json
285
288
  - grammars/source.befunge.json
286
289
  - grammars/source.bf.json
@@ -342,6 +345,7 @@ files:
342
345
  - grammars/source.d.json
343
346
  - grammars/source.dart.json
344
347
  - grammars/source.data-weave.json
348
+ - grammars/source.dc.json
345
349
  - grammars/source.desktop.json
346
350
  - grammars/source.diff.json
347
351
  - grammars/source.dircolors.json
@@ -354,8 +358,12 @@ files:
354
358
  - grammars/source.dockerfile.json
355
359
  - grammars/source.dosbox-conf.json
356
360
  - grammars/source.dot.json
361
+ - grammars/source.dotenv.json
357
362
  - grammars/source.dylan.json
363
+ - grammars/source.earthfile.json
358
364
  - grammars/source.ebnf.json
365
+ - grammars/source.ecl.json
366
+ - grammars/source.ed.json
359
367
  - grammars/source.editorconfig.json
360
368
  - grammars/source.eiffel.json
361
369
  - grammars/source.elixir.json
@@ -371,6 +379,7 @@ files:
371
379
  - grammars/source.figfont.json
372
380
  - grammars/source.firestore.json
373
381
  - grammars/source.fish.json
382
+ - grammars/source.fnl.json
374
383
  - grammars/source.fontdir.json
375
384
  - grammars/source.fontforge.json
376
385
  - grammars/source.fontinfo.json
@@ -404,6 +413,7 @@ files:
404
413
  - grammars/source.gn.json
405
414
  - grammars/source.gnuplot.json
406
415
  - grammars/source.go.json
416
+ - grammars/source.goldgrm.json
407
417
  - grammars/source.golo.json
408
418
  - grammars/source.gosu.2.json
409
419
  - grammars/source.grace.json
@@ -448,6 +458,7 @@ files:
448
458
  - grammars/source.java-properties.json
449
459
  - grammars/source.java.json
450
460
  - grammars/source.jcl.json
461
+ - grammars/source.jest.snap.json
451
462
  - grammars/source.jflex.json
452
463
  - grammars/source.jison.json
453
464
  - grammars/source.jisonlex-injection.json
@@ -464,6 +475,7 @@ files:
464
475
  - grammars/source.jsonnet.json
465
476
  - grammars/source.julia.console.json
466
477
  - grammars/source.julia.json
478
+ - grammars/source.kakscript.json
467
479
  - grammars/source.keyvalues.json
468
480
  - grammars/source.kotlin.json
469
481
  - grammars/source.kusto.json
@@ -498,13 +510,13 @@ files:
498
510
  - grammars/source.mathematica.json
499
511
  - grammars/source.matlab.json
500
512
  - grammars/source.maxscript.json
501
- - grammars/source.mcfunction-snapshot.json
502
513
  - grammars/source.mcfunction.json
503
514
  - grammars/source.mercury.json
504
515
  - grammars/source.meson.json
505
516
  - grammars/source.meta-info.json
506
517
  - grammars/source.ml.json
507
518
  - grammars/source.mlir.json
519
+ - grammars/source.mo.json
508
520
  - grammars/source.modelica.json
509
521
  - grammars/source.modula-3.json
510
522
  - grammars/source.modula2.json
@@ -589,6 +601,7 @@ files:
589
601
  - grammars/source.processing.json
590
602
  - grammars/source.prolog.eclipse.json
591
603
  - grammars/source.prolog.json
604
+ - grammars/source.promela.json
592
605
  - grammars/source.proto.json
593
606
  - grammars/source.puppet.json
594
607
  - grammars/source.purescript.json
@@ -713,6 +726,7 @@ files:
713
726
  - grammars/source.webidl.json
714
727
  - grammars/source.wgetrc.json
715
728
  - grammars/source.wollok.json
729
+ - grammars/source.ws.json
716
730
  - grammars/source.wsd.json
717
731
  - grammars/source.x10.json
718
732
  - grammars/source.x86.json
@@ -750,6 +764,7 @@ files:
750
764
  - grammars/text.html.asciidoc.json
751
765
  - grammars/text.html.asdoc.json
752
766
  - grammars/text.html.asp.json
767
+ - grammars/text.html.astro.json
753
768
  - grammars/text.html.basic.json
754
769
  - grammars/text.html.cfm.json
755
770
  - grammars/text.html.creole.json
@@ -767,6 +782,7 @@ files:
767
782
  - grammars/text.html.jsp.json
768
783
  - grammars/text.html.liquid.json
769
784
  - grammars/text.html.mako.json
785
+ - grammars/text.html.markdown.astro.json
770
786
  - grammars/text.html.markdown.source.gfm.apib.json
771
787
  - grammars/text.html.markdown.source.gfm.mson.json
772
788
  - grammars/text.html.mediawiki.elm-build-output.json
@@ -784,8 +800,10 @@ files:
784
800
  - grammars/text.html.twig.json
785
801
  - grammars/text.html.vue.json
786
802
  - grammars/text.idl-idldoc.json
803
+ - grammars/text.info.json
787
804
  - grammars/text.jade.json
788
805
  - grammars/text.junit-test-report.json
806
+ - grammars/text.lesshst.json
789
807
  - grammars/text.log.latex.json
790
808
  - grammars/text.marko.json
791
809
  - grammars/text.muse.json
@@ -840,7 +858,7 @@ files:
840
858
  - lib/linguist/languages.json
841
859
  - lib/linguist/languages.yml
842
860
  - lib/linguist/lazy_blob.rb
843
- - lib/linguist/linguist.bundle
861
+ - lib/linguist/linguist.so
844
862
  - lib/linguist/popular.yml
845
863
  - lib/linguist/repository.rb
846
864
  - lib/linguist/samples.json
@@ -860,7 +878,7 @@ licenses:
860
878
  - MIT
861
879
  metadata:
862
880
  github_repo: ssh://github.com/github/linguist
863
- post_install_message:
881
+ post_install_message:
864
882
  rdoc_options: []
865
883
  require_paths:
866
884
  - lib
@@ -876,8 +894,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
876
894
  - !ruby/object:Gem::Version
877
895
  version: '0'
878
896
  requirements: []
879
- rubygems_version: 3.1.4
880
- signing_key:
897
+ rubygems_version: 3.2.9
898
+ signing_key:
881
899
  specification_version: 4
882
900
  summary: GitHub Language detection
883
901
  test_files: []
@@ -1 +0,0 @@
1
- {"name":"SAS Log","scopeName":"source.SASLog","patterns":[{"name":"keyword.source.SASLog","match":"^NOTE:.*"},{"name":"invalid.source.SASLog","match":"(^(ERROR|WARNING)|Uninitialized| remerg|invalid\\b).*"},{"name":"entity.name.function.source.SASLog","match":"^INFO.*"}]}