sync to the latest github/linguist v7.11.1

This commit is contained in:
Lauris BH 2020-10-12 12:31:27 +03:00
parent d7f6b27b7d
commit bc76dd38b0
28 changed files with 3496 additions and 2640 deletions

View File

@ -150,7 +150,7 @@ macOS and linux platforms. Windows support is planned under [src-d/enry#150](htt
## Divergences from Linguist
The `enry` library is based on the data from `github/linguist` version **v7.11.0**.
The `enry` library is based on the data from `github/linguist` version **v7.11.1**.
Parsing [linguist/samples](https://github.com/github/linguist/tree/master/samples) the following `enry` results are different from the Linguist:

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
@ -31,7 +31,7 @@ var LanguageByAliasMap = map[string]string{
"ags": "AGS Script",
"ags_script": "AGS Script",
"ahk": "AutoHotkey",
"al_code": "AL Code",
"al": "AL",
"alloy": "Alloy",
"alpine_abuild": "Alpine Abuild",
"altium": "Altium Designer",

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
@ -7,7 +7,7 @@ var LanguagesColor = map[string]string{
"1C Enterprise": "#814CCC",
"ABAP": "#E8274B",
"AGS Script": "#B9D9FF",
"AL Code": "#3AA2B5",
"AL": "#3AA2B5",
"AMPL": "#E6EFBB",
"ANTLR": "#9DC3FF",
"API Blueprint": "#2ACCA8",
@ -20,6 +20,7 @@ var LanguagesColor = map[string]string{
"Alloy": "#64C800",
"AngelScript": "#C7D7DC",
"Apex": "#1797c0",
"Apollo Guidance Computer": "#0B3D91",
"AppleScript": "#101F1F",
"Arc": "#aa2afe",
"AspectJ": "#a957b0",
@ -29,6 +30,7 @@ var LanguagesColor = map[string]string{
"AutoIt": "#1C3552",
"Ballerina": "#FF5000",
"Batchfile": "#C1F12E",
"Bison": "#6A463F",
"Blade": "#f7523f",
"BlitzMax": "#cd6400",
"Boo": "#d4bec1",
@ -48,6 +50,7 @@ var LanguagesColor = map[string]string{
"Clojure": "#db5855",
"CoffeeScript": "#244776",
"ColdFusion": "#ed2cd6",
"ColdFusion CFC": "#ed2cd6",
"Common Lisp": "#3fb68b",
"Common Workflow Language": "#B5314C",
"Component Pascal": "#B0CE4E",
@ -64,6 +67,7 @@ var LanguagesColor = map[string]string{
"Dylan": "#6c616e",
"E": "#ccce35",
"ECL": "#8a1267",
"EJS": "#a91e50",
"EQ": "#a78649",
"Eiffel": "#4d6977",
"Elixir": "#6e4a7e",
@ -95,6 +99,7 @@ var LanguagesColor = map[string]string{
"Golo": "#88562A",
"Gosu": "#82937f",
"Grammatical Framework": "#ff0000",
"GraphQL": "#e10098",
"Groovy": "#e69f56",
"HTML": "#e34c26",
"Hack": "#878787",
@ -113,6 +118,7 @@ var LanguagesColor = map[string]string{
"Ioke": "#078193",
"Isabelle": "#FEFE00",
"J": "#9EEDFF",
"JFlex": "#DBCA00",
"JSONiq": "#40d47e",
"Java": "#b07219",
"JavaScript": "#f1e05a",
@ -163,6 +169,7 @@ var LanguagesColor = map[string]string{
"Nit": "#009917",
"Nix": "#7e7eff",
"Nu": "#c9df40",
"NumPy": "#9C8AF9",
"OCaml": "#3be133",
"ObjectScript": "#424893",
"Objective-C": "#438eff",
@ -255,6 +262,7 @@ var LanguagesColor = map[string]string{
"Turing": "#cf142b",
"Twig": "#c1d026",
"TypeScript": "#2b7489",
"Unified Parallel C": "#4e3617",
"Uno": "#9933cc",
"UnrealScript": "#a54c4d",
"V": "#4f87c4",

View File

@ -1,7 +1,7 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
// linguist's commit from which files were generated.
var LinguistCommit = "61fc3f06a3ee2f6b530873b6c01b10c37f5209fc"
var LinguistCommit = "3d39c1c1a0d34c1af890ecfd18cf9ed595c68132"

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
@ -570,7 +570,7 @@ var ContentHeuristics = map[string]*Heuristics{
},
".al": &Heuristics{
rule.And(
rule.MatchingLanguages("AL Code"),
rule.MatchingLanguages("AL"),
rule.Or(
rule.MatchingLanguages(""),
regexp.MustCompile(`(?m)\b(?i:(CODEUNIT|PAGE|PAGEEXTENSION|PAGECUSTOMIZATION|DOTNET|ENUM|ENUMEXTENSION|VALUE|QUERY|REPORT|TABLE|TABLEEXTENSION|XMLPORT|PROFILE|CONTROLADDIN))\b`),
@ -1363,7 +1363,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Raku"),
regexp.MustCompile(`(?m)^\s*(?:use\s+v6\b|\bmodule\b|\b(?:my\s+)?class\b)`),
regexp.MustCompile(`(?m)^\s*(?:use\s+v6\b|\bmodule\b|\bmy\s+class\b)`),
),
rule.Or(
rule.MatchingLanguages("Turing"),

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
@ -50,7 +50,7 @@ var LanguagesByExtension = map[string][]string{
".ahk": {"AutoHotkey"},
".ahkl": {"AutoHotkey"},
".aj": {"AspectJ"},
".al": {"AL Code", "Perl"},
".al": {"AL", "Perl"},
".als": {"Alloy"},
".ampl": {"AMPL"},
".angelscript": {"AngelScript"},
@ -1190,7 +1190,7 @@ var ExtensionsByLanguage = map[string][]string{
"ABAP": {".abap"},
"ABNF": {".abnf"},
"AGS Script": {".asc", ".ash"},
"AL Code": {".al"},
"AL": {".al"},
"AMPL": {".ampl", ".mod"},
"ANTLR": {".g4"},
"API Blueprint": {".apib"},

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
@ -74,7 +74,7 @@ var LanguagesByInterpreter = map[string][]string{
"node": {"JavaScript"},
"nodejs": {"JavaScript"},
"nush": {"Nu"},
"ocaml": {"OCaml", "Reason"},
"ocaml": {"OCaml"},
"ocamlrun": {"OCaml"},
"ocamlscript": {"OCaml"},
"openrc-run": {"OpenRC runscript"},
@ -106,7 +106,9 @@ var LanguagesByInterpreter = map[string][]string{
"rhino": {"JavaScript"},
"ruby": {"Ruby"},
"rune": {"E"},
"runghc": {"Haskell"},
"runhaskell": {"Haskell"},
"runhugs": {"Haskell"},
"sbcl": {"Common Lisp"},
"scala": {"Scala"},
"scheme": {"Scheme"},

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
@ -9,7 +9,7 @@ var LanguagesType = map[string]int{
"ABAP": 2,
"ABNF": 1,
"AGS Script": 2,
"AL Code": 2,
"AL": 2,
"AMPL": 2,
"ANTLR": 2,
"API Blueprint": 3,

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data

View File

@ -19,7 +19,7 @@ import (
var (
linguistURL = "https://github.com/github/linguist.git"
linguistClonedEnvVar = "ENRY_TEST_REPO"
commit = "61fc3f06a3ee2f6b530873b6c01b10c37f5209fc"
commit = "3d39c1c1a0d34c1af890ecfd18cf9ed595c68132"
samplesDir = "samples"
languagesFile = filepath.Join("lib", "linguist", "languages.yml")

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
@ -31,7 +31,7 @@ var LanguageByAliasMap = map[string]string{
"ags": "AGS Script",
"ags_script": "AGS Script",
"ahk": "AutoHotkey",
"al_code": "AL Code",
"al": "AL",
"alloy": "Alloy",
"alpine_abuild": "Alpine Abuild",
"altium": "Altium Designer",

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
@ -7,7 +7,7 @@ var LanguagesColor = map[string]string{
"1C Enterprise": "#814CCC",
"ABAP": "#E8274B",
"AGS Script": "#B9D9FF",
"AL Code": "#3AA2B5",
"AL": "#3AA2B5",
"AMPL": "#E6EFBB",
"ANTLR": "#9DC3FF",
"API Blueprint": "#2ACCA8",
@ -20,6 +20,7 @@ var LanguagesColor = map[string]string{
"Alloy": "#64C800",
"AngelScript": "#C7D7DC",
"Apex": "#1797c0",
"Apollo Guidance Computer": "#0B3D91",
"AppleScript": "#101F1F",
"Arc": "#aa2afe",
"AspectJ": "#a957b0",
@ -29,6 +30,7 @@ var LanguagesColor = map[string]string{
"AutoIt": "#1C3552",
"Ballerina": "#FF5000",
"Batchfile": "#C1F12E",
"Bison": "#6A463F",
"Blade": "#f7523f",
"BlitzMax": "#cd6400",
"Boo": "#d4bec1",
@ -48,6 +50,7 @@ var LanguagesColor = map[string]string{
"Clojure": "#db5855",
"CoffeeScript": "#244776",
"ColdFusion": "#ed2cd6",
"ColdFusion CFC": "#ed2cd6",
"Common Lisp": "#3fb68b",
"Common Workflow Language": "#B5314C",
"Component Pascal": "#B0CE4E",
@ -64,6 +67,7 @@ var LanguagesColor = map[string]string{
"Dylan": "#6c616e",
"E": "#ccce35",
"ECL": "#8a1267",
"EJS": "#a91e50",
"EQ": "#a78649",
"Eiffel": "#4d6977",
"Elixir": "#6e4a7e",
@ -95,6 +99,7 @@ var LanguagesColor = map[string]string{
"Golo": "#88562A",
"Gosu": "#82937f",
"Grammatical Framework": "#ff0000",
"GraphQL": "#e10098",
"Groovy": "#e69f56",
"HTML": "#e34c26",
"Hack": "#878787",
@ -113,6 +118,7 @@ var LanguagesColor = map[string]string{
"Ioke": "#078193",
"Isabelle": "#FEFE00",
"J": "#9EEDFF",
"JFlex": "#DBCA00",
"JSONiq": "#40d47e",
"Java": "#b07219",
"JavaScript": "#f1e05a",
@ -163,6 +169,7 @@ var LanguagesColor = map[string]string{
"Nit": "#009917",
"Nix": "#7e7eff",
"Nu": "#c9df40",
"NumPy": "#9C8AF9",
"OCaml": "#3be133",
"ObjectScript": "#424893",
"Objective-C": "#438eff",
@ -255,6 +262,7 @@ var LanguagesColor = map[string]string{
"Turing": "#cf142b",
"Twig": "#c1d026",
"TypeScript": "#2b7489",
"Unified Parallel C": "#4e3617",
"Uno": "#9933cc",
"UnrealScript": "#a54c4d",
"V": "#4f87c4",

View File

@ -1,7 +1,7 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
// linguist's commit from which files were generated.
var LinguistCommit = "61fc3f06a3ee2f6b530873b6c01b10c37f5209fc"
var LinguistCommit = "3d39c1c1a0d34c1af890ecfd18cf9ed595c68132"

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
@ -570,7 +570,7 @@ var ContentHeuristics = map[string]*Heuristics{
},
".al": &Heuristics{
rule.And(
rule.MatchingLanguages("AL Code"),
rule.MatchingLanguages("AL"),
rule.Or(
rule.MatchingLanguages(""),
regexp.MustCompile(`(?m)\b(?i:(CODEUNIT|PAGE|PAGEEXTENSION|PAGECUSTOMIZATION|DOTNET|ENUM|ENUMEXTENSION|VALUE|QUERY|REPORT|TABLE|TABLEEXTENSION|XMLPORT|PROFILE|CONTROLADDIN))\b`),
@ -1363,7 +1363,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Raku"),
regexp.MustCompile(`(?m)^\s*(?:use\s+v6\b|\bmodule\b|\b(?:my\s+)?class\b)`),
regexp.MustCompile(`(?m)^\s*(?:use\s+v6\b|\bmodule\b|\bmy\s+class\b)`),
),
rule.Or(
rule.MatchingLanguages("Turing"),

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
@ -50,7 +50,7 @@ var LanguagesByExtension = map[string][]string{
".ahk": {"AutoHotkey"},
".ahkl": {"AutoHotkey"},
".aj": {"AspectJ"},
".al": {"AL Code", "Perl"},
".al": {"AL", "Perl"},
".als": {"Alloy"},
".ampl": {"AMPL"},
".angelscript": {"AngelScript"},
@ -1190,7 +1190,7 @@ var ExtensionsByLanguage = map[string][]string{
"ABAP": {".abap"},
"ABNF": {".abnf"},
"AGS Script": {".asc", ".ash"},
"AL Code": {".al"},
"AL": {".al"},
"AMPL": {".ampl", ".mod"},
"ANTLR": {".g4"},
"API Blueprint": {".apib"},

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
@ -74,7 +74,7 @@ var LanguagesByInterpreter = map[string][]string{
"node": {"JavaScript"},
"nodejs": {"JavaScript"},
"nush": {"Nu"},
"ocaml": {"OCaml", "Reason"},
"ocaml": {"OCaml"},
"ocamlrun": {"OCaml"},
"ocamlscript": {"OCaml"},
"openrc-run": {"OpenRC runscript"},
@ -106,7 +106,9 @@ var LanguagesByInterpreter = map[string][]string{
"rhino": {"JavaScript"},
"ruby": {"Ruby"},
"rune": {"E"},
"runghc": {"Haskell"},
"runhaskell": {"Haskell"},
"runhugs": {"Haskell"},
"sbcl": {"Common Lisp"},
"scala": {"Scala"},
"scheme": {"Scheme"},

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data
@ -9,7 +9,7 @@ var LanguagesType = map[string]int{
"ABAP": 2,
"ABNF": 1,
"AGS Script": 2,
"AL Code": 2,
"AL": 2,
"AMPL": 2,
"ANTLR": 2,
"API Blueprint": 3,

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 61fc3f06a3ee2f6b530873b6c01b10c37f5209fc
// Extracted from github/linguist commit: 3d39c1c1a0d34c1af890ecfd18cf9ed595c68132
package data