github-linguist 7.26.0 → 7.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/markdown.d2.codeblock.json +1 -0
  3. data/grammars/source.abap.json +1 -1
  4. data/grammars/source.aidl.json +1 -1
  5. data/grammars/source.ballerina.json +1 -1
  6. data/grammars/source.bicep.json +1 -1
  7. data/grammars/source.cs.json +1 -1
  8. data/grammars/source.d2.json +1 -1
  9. data/grammars/source.dart.json +1 -1
  10. data/grammars/source.denizenscript.json +1 -1
  11. data/grammars/source.directivesmf.json +1 -0
  12. data/grammars/source.earthfile.json +1 -1
  13. data/grammars/source.emacs.lisp.json +1 -1
  14. data/grammars/source.gleam.json +1 -1
  15. data/grammars/source.igor.json +1 -1
  16. data/grammars/source.julia.json +1 -1
  17. data/grammars/source.matlab.json +1 -1
  18. data/grammars/source.mdx.json +1 -1
  19. data/grammars/source.mo.json +1 -1
  20. data/grammars/source.nim.json +1 -1
  21. data/grammars/source.nushell.json +1 -1
  22. data/grammars/source.pic.json +1 -1
  23. data/grammars/source.prisma.json +1 -1
  24. data/grammars/source.ql.json +1 -1
  25. data/grammars/source.raku.json +1 -1
  26. data/grammars/source.rascal.json +1 -1
  27. data/grammars/source.rbs.json +1 -1
  28. data/grammars/source.rescript.json +1 -1
  29. data/grammars/source.rez.json +1 -0
  30. data/grammars/source.scala.json +1 -1
  31. data/grammars/source.scenic.json +1 -1
  32. data/grammars/source.solidity.json +1 -1
  33. data/grammars/source.stan.json +1 -1
  34. data/grammars/source.talon.json +1 -1
  35. data/grammars/source.ts.json +1 -1
  36. data/grammars/source.tsx.json +1 -1
  37. data/grammars/source.typst.json +1 -0
  38. data/grammars/source.vba.json +1 -1
  39. data/grammars/source.vyper.json +1 -1
  40. data/grammars/source.wit.json +1 -1
  41. data/grammars/source.yul.json +1 -1
  42. data/grammars/text.hash-commented.json +1 -1
  43. data/grammars/text.md.json +1 -1
  44. data/grammars/text.tex.latex.sweave.json +1 -0
  45. data/grammars/text.xml.svg.json +1 -1
  46. data/grammars/version +1 -1
  47. data/lib/linguist/VERSION +1 -1
  48. data/lib/linguist/generated.rb +10 -0
  49. data/lib/linguist/heuristics.rb +2 -0
  50. data/lib/linguist/heuristics.yml +20 -11
  51. data/lib/linguist/languages.json +1 -1
  52. data/lib/linguist/languages.yml +66 -3
  53. data/lib/linguist/samples.json +1 -1
  54. metadata +14 -10
  55. data/grammars/source.nimcfg.json +0 -1
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.26.0
4
+ version: 7.27.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: 2023-06-19 00:00:00.000000000 Z
11
+ date: 2023-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.3'
103
+ version: '2.1'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.3'
110
+ version: '2.1'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: plist
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -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
@@ -252,6 +252,7 @@ files:
252
252
  - grammars/markdown.cadence.codeblock.json
253
253
  - grammars/markdown.codeblock.proto.json
254
254
  - grammars/markdown.curry.codeblock.json
255
+ - grammars/markdown.d2.codeblock.json
255
256
  - grammars/markdown.graphql.codeblock.json
256
257
  - grammars/markdown.hack.codeblock.json
257
258
  - grammars/markdown.haxe.codeblock.json
@@ -401,6 +402,7 @@ files:
401
402
  - grammars/source.dir.json
402
403
  - grammars/source.dircolors.json
403
404
  - grammars/source.direct-x.json
405
+ - grammars/source.directivesmf.json
404
406
  - grammars/source.disasm.json
405
407
  - grammars/source.ditroff.desc.json
406
408
  - grammars/source.ditroff.json
@@ -637,7 +639,6 @@ files:
637
639
  - grammars/source.nextflow.json
638
640
  - grammars/source.nginx.json
639
641
  - grammars/source.nim.json
640
- - grammars/source.nimcfg.json
641
642
  - grammars/source.ninja.json
642
643
  - grammars/source.nit.json
643
644
  - grammars/source.nix.json
@@ -749,6 +750,7 @@ files:
749
750
  - grammars/source.renpy.json
750
751
  - grammars/source.rescript.json
751
752
  - grammars/source.rexx.json
753
+ - grammars/source.rez.json
752
754
  - grammars/source.ring.json
753
755
  - grammars/source.rmcobol.json
754
756
  - grammars/source.rpg.json
@@ -830,6 +832,7 @@ files:
830
832
  - grammars/source.turing.json
831
833
  - grammars/source.turtle.json
832
834
  - grammars/source.txl.json
835
+ - grammars/source.typst.json
833
836
  - grammars/source.ucd.nameslist.json
834
837
  - grammars/source.ucd.unidata.json
835
838
  - grammars/source.ucfconstraints.json
@@ -973,6 +976,7 @@ files:
973
976
  - grammars/text.tex.latex.json
974
977
  - grammars/text.tex.latex.memoir.json
975
978
  - grammars/text.tex.latex.rd.json
979
+ - grammars/text.tex.latex.sweave.json
976
980
  - grammars/text.texinfo.json
977
981
  - grammars/text.vim-help.json
978
982
  - grammars/text.vtt.json
@@ -1023,7 +1027,7 @@ licenses:
1023
1027
  - MIT
1024
1028
  metadata:
1025
1029
  github_repo: ssh://github.com/github-linguist/linguist
1026
- post_install_message:
1030
+ post_install_message:
1027
1031
  rdoc_options: []
1028
1032
  require_paths:
1029
1033
  - lib
@@ -1039,8 +1043,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1039
1043
  - !ruby/object:Gem::Version
1040
1044
  version: '0'
1041
1045
  requirements: []
1042
- rubygems_version: 3.3.26
1043
- signing_key:
1046
+ rubygems_version: 3.4.10
1047
+ signing_key:
1044
1048
  specification_version: 4
1045
1049
  summary: GitHub Language detection
1046
1050
  test_files: []
@@ -1 +0,0 @@
1
- {"name":"Nim Config","scopeName":"source.nimcfg","patterns":[{"include":"#comments"},{"include":"#directives"},{"include":"#assignements"}],"repository":{"assignements":{"patterns":[{"begin":"(--?)?[A-Za-z]\\w*","end":"(?:(\\[)([A-Za-z]\\w*)(]))? *(?=:|%?=)|$\\n?","patterns":[{"include":"#comments"},{"match":"(\\.)[A-Za-z]\\w*","captures":{"1":{"name":"punctuation.accessor.dot.nimcfg"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.variable.nimcfg"}},"endCaptures":{"1":{"name":"punctuation.section.brackets.begin.nimcfg"},"2":{"name":"entity.other.attribute-name.nimcfg"},"3":{"name":"punctuation.section.brackets.end.nimcfg"}}},{"begin":":|%?=","end":"$\\n?","patterns":[{"include":"#comments"},{"include":"#exprs"},{"name":"keyword.operator.nimcfg","match":"\u0026"},{"name":"punctuation.separator.key-value.nimcfg","match":"[:=]"}],"beginCaptures":{"0":{"name":"punctuation.separator.key-value.nimcfg"}}}]},"block-comments":{"patterns":[{"name":"comment.block.nimcfg","begin":"#\\[","end":"]#","patterns":[{"include":"#block-comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.nimcfg"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.nimcfg"}}}]},"comments":{"patterns":[{"include":"#block-comments"},{"name":"comment.line.number-sign.nimcfg","begin":"(#)(?: *(TODO|todo)\\b)?","end":"$\\n?","beginCaptures":{"1":{"name":"punctuation.definition.comment.nimcfg"},"2":{"name":"invalid.deprecated.nimcfg"}}}]},"cond-expr":{"patterns":[{"include":"#groups"},{"include":"#language-constants"},{"name":"keyword.operator.logical.nimcfg","match":"(?:and|or|not)\\b"},{"match":"[A-Za-z]\\w*"}]},"directives":{"patterns":[{"include":"#if-stmt"},{"match":"(@) *(else)(?: *(:))?","captures":{"1":{"name":"punctuation.definition.keyword.nimcfg"},"2":{"name":"keyword.control.conditional.else.nimcfg"},"3":{"name":"punctuation.section.block.begin.nimcfg"}}},{"match":"(@) *(end)","captures":{"1":{"name":"punctuation.definition.keyword.nimcfg"},"2":{"name":"keyword.control.conditional.end.nimcfg"}}},{"include":"#env-stmt"}]},"env-stmt":{"patterns":[{"begin":"(@) *((?:put|append|prepend)[Ee]nv|write)\\b","end":"$\\n?","patterns":[{"include":"#exprs"}],"beginCaptures":{"1":{"name":"punctuation.definition.keyword.nimcfg"},"2":{"name":"keyword.other.nimcfg"}}}]},"exprs":{"patterns":[{"include":"#str-lits"},{"include":"#numbers"},{"include":"#language-constants"},{"name":"string.unquoted.nimcfg","match":"[A-Za-z]\\w*"}]},"groups":{"patterns":[{"name":"meta.group.nimcfg","begin":"\\(","end":"\\)","patterns":[{"include":"#cond-expr"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.nimcfg"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.nimcfg"}}}]},"if-stmt":{"patterns":[{"begin":"(@)(?:(elif)|(if))\\b","end":"(:)|$","patterns":[{"include":"#cond-expr"}],"beginCaptures":{"1":{"name":"punctuation.definition.keyword.nimcfg"},"2":{"name":"keyword.control.conditional.elseif.nimcfg"},"3":{"name":"keyword.control.conditional.if.nimcfg"}},"endCaptures":{"1":{"name":"punctuation.section.block.begin.nimcfg"}}}]},"language-constants":{"patterns":[{"name":"constant.language.boolean.nimcfg","match":"\\b(?:true|false|on|off)\\b"}]},"numbers":{"patterns":[{"match":"(?x: \\b(0[Xx]) ([[:xdigit:]](?:_?[[:xdigit:]])*) ('?[Ii](?:8|16|32|64))? )","captures":{"0":{"name":"meta.number.integer.hexadecimal.nimcfg"},"1":{"name":"constant.numeric.base.nimcfg"},"2":{"name":"constant.numeric.value.nimcfg"},"3":{"name":"constant.numeric.suffix.nimcfg"}}},{"match":"(?x: \\b(0o) ([0-7](?:_?[0-7])*) ('?[Ii](?:8|16|32|64))? )","captures":{"0":{"name":"meta.number.integer.octal.nimcfg"},"1":{"name":"constant.numeric.base.nimcfg"},"2":{"name":"constant.numeric.value.nimcfg"},"3":{"name":"constant.numeric.suffix.nimcfg"}}},{"match":"(?x: \\b(0[Bb]) ([01](?:_?[01])*) ('?[Ii](?:8|16|32|64))? )","captures":{"0":{"name":"meta.number.integer.binary.nimcfg"},"1":{"name":"constant.numeric.base.nimcfg"},"2":{"name":"constant.numeric.value.nimcfg"},"3":{"name":"constant.numeric.suffix.nimcfg"}}},{"match":"(?x: \\b(\\d(?:_?\\d)*) ('?[Ii](?:8|16|32|64))? )","captures":{"0":{"name":"meta.number.integer.decimal.nimcfg"},"1":{"name":"constant.numeric.value.nimcfg"},"2":{"name":"constant.numeric.suffix.nimcfg"}}}]},"rstr-lit":{"patterns":[{"contentName":"string.quoted.double.nimcfg","begin":"([Rr])(\")","end":"(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nimcfg","match":"\"\""}],"beginCaptures":{"1":{"name":"storage.type.nimcfg"},"2":{"name":"string.quoted.double.nimcfg punctuation.definition.string.begin.nimcfg"}},"endCaptures":{"1":{"name":"string.quoted.double.nimcfg punctuation.definition.string.end.nimcfg"},"2":{"name":"string.quoted.double.nimcfg invalid.illegal.unclosed-string.nimcfg"}}}]},"str-lit":{"patterns":[{"name":"string.quoted.double.nimcfg","begin":"\"","end":"(\")|(\\n)","patterns":[{"name":"constant.character.escape.nimcfg","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nimcfg","match":"\\\\"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nimcfg"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.nimcfg"},"2":{"name":"invalid.illegal.nimcfg"}}}]},"str-lits":{"patterns":[{"include":"#triplestr-lit"},{"include":"#rstr-lit"},{"include":"#str-lit"}]},"triplestr-lit":{"patterns":[{"contentName":"string.quoted.triple.nimcfg","begin":"([Rr])?(\"\"\")","end":"\"\"\"(?!\")","beginCaptures":{"1":{"name":"storage.type.nimcfg"},"2":{"name":"string.quoted.triple.nimcfg punctuation.definition.string.begin.nimcfg"}},"endCaptures":{"0":{"name":"string.quoted.triple.nimcfg punctuation.definition.string.end.nimcfg"}}}]}}}