Merge pull request #43 from lafriks-fork/feat/v7.13.0

Sync with Liguist v7.13.0
This commit is contained in:
Alex 2021-03-12 08:02:57 +01:00 committed by GitHub
commit 7f5d84ad74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 48134 additions and 37744 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.12.2**.
The `enry` library is based on the data from `github/linguist` version **v7.13.0**.
Parsing [linguist/samples](https://github.com/github/linguist/tree/master/samples) the following `enry` results are different from the Linguist:

View File

@ -318,14 +318,12 @@ func (s *EnryTestSuite) TestGetLanguagesByManpage() {
}
}
func (s *EnryTestSuite) TestGetLanguagesByXML() {
tests := []struct {
name string
filename string
candidates []string
expected []string
}{
{name: "TestGetLanguagesByXML_1", filename: filepath.Join(s.testFixturesDir, "XML/app.config"), expected: []string{"XML"}},
{name: "TestGetLanguagesByXML_2", filename: filepath.Join(s.testFixturesDir, "XML/AssertionIDRequestOptionalAttributes.xml.svn-base"), expected: []string{"XML"}},
@ -460,7 +458,7 @@ func (s *EnryTestSuite) TestGetLanguageGroup() {
expected string
}{
{name: "TestGetLanguageGroup_1", language: "BestLanguageEver", expected: ""},
{name: "TestGetLanguageGroup_2", language: "JSX", expected: "JavaScript"},
{name: "TestGetLanguageGroup_2", language: "Bison", expected: "Yacc"},
{name: "TestGetLanguageGroup_3", language: "HTML+PHP", expected: "HTML"},
{name: "TestGetLanguageGroup_4", language: "HTML", expected: ""},
}

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -11,6 +11,7 @@ var LanguageByAliasMap = map[string]string{
"1c_enterprise": "1C Enterprise",
"4d": "4D",
"abap": "ABAP",
"abap_cds": "ABAP CDS",
"abl": "OpenEdge ABL",
"abnf": "ABNF",
"abuild": "Alpine Abuild",
@ -83,6 +84,7 @@ var LanguageByAliasMap = map[string]string{
"batch": "Batchfile",
"batchfile": "Batchfile",
"bazel": "Starlark",
"beef": "Beef",
"befunge": "Befunge",
"bibtex": "BibTeX",
"bison": "Bison",
@ -95,6 +97,7 @@ var LanguageByAliasMap = map[string]string{
"bluespec": "Bluespec",
"bmax": "BlitzMax",
"boo": "Boo",
"boogie": "Boogie",
"bplus": "BlitzBasic",
"brainfuck": "Brainfuck",
"brightscript": "Brightscript",
@ -112,6 +115,8 @@ var LanguageByAliasMap = map[string]string{
"c2hs_haskell": "C2hs Haskell",
"cabal": "Cabal Config",
"cabal_config": "Cabal Config",
"cake": "C#",
"cakescript": "C#",
"cap'n_proto": "Cap'n Proto",
"carto": "CartoCSS",
"cartocss": "CartoCSS",
@ -183,7 +188,7 @@ var LanguageByAliasMap = map[string]string{
"dart": "Dart",
"dataweave": "DataWeave",
"dcl": "DIGITAL Command Language",
"delphi": "Component Pascal",
"delphi": "Pascal",
"desktop": "desktop",
"dhall": "Dhall",
"diff": "Diff",
@ -302,6 +307,7 @@ var LanguageByAliasMap = map[string]string{
"handlebars": "Handlebars",
"haproxy": "HAProxy",
"harbour": "Harbour",
"hashicorp_configuration_language": "HCL",
"haskell": "Haskell",
"haxe": "Haxe",
"hbs": "Handlebars",
@ -334,6 +340,8 @@ var LanguageByAliasMap = map[string]string{
"igor": "IGOR Pro",
"igor_pro": "IGOR Pro",
"igorpro": "IGOR Pro",
"ijm": "ImageJ Macro",
"imagej_macro": "ImageJ Macro",
"inc": "PHP",
"inform7": "Inform 7",
"inform_7": "Inform 7",
@ -370,7 +378,6 @@ var LanguageByAliasMap = map[string]string{
"jsonld": "JSONLD",
"jsonnet": "Jsonnet",
"jsp": "Java Server Pages",
"jsx": "JSX",
"julia": "Julia",
"jupyter_notebook": "Jupyter Notebook",
"kaitai_struct": "Kaitai Struct",
@ -494,7 +501,7 @@ var LanguageByAliasMap = map[string]string{
"nit": "Nit",
"nix": "Nix",
"nixos": "Nix",
"njk": "HTML+Django",
"njk": "Nunjucks",
"nl": "NL",
"node": "JavaScript",
"npm_config": "NPM Config",
@ -503,7 +510,7 @@ var LanguageByAliasMap = map[string]string{
"nsis": "NSIS",
"nu": "Nu",
"numpy": "NumPy",
"nunjucks": "HTML+Django",
"nunjucks": "Nunjucks",
"nush": "Nu",
"nvim": "Vim script",
"nwscript": "NWScript",
@ -520,7 +527,7 @@ var LanguageByAliasMap = map[string]string{
"objectivec": "Objective-C",
"objectivec++": "Objective-C++",
"objectivej": "Objective-J",
"objectpascal": "Component Pascal",
"objectpascal": "Pascal",
"objectscript": "ObjectScript",
"objj": "Objective-J",
"ocaml": "OCaml",
@ -570,6 +577,7 @@ var LanguageByAliasMap = map[string]string{
"piglatin": "PigLatin",
"pike": "Pike",
"pir": "Parrot Internal Representation",
"plain_text": "Text",
"plantuml": "PlantUML",
"plpgsql": "PLpgSQL",
"plsql": "PLSQL",
@ -637,6 +645,7 @@ var LanguageByAliasMap = map[string]string{
"realbasic": "REALbasic",
"reason": "Reason",
"rebol": "Rebol",
"record_jar": "Record Jar",
"red": "Red",
"red/system": "Red",
"redcode": "Redcode",

View File

@ -1,11 +1,12 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
var LanguagesColor = map[string]string{
"1C Enterprise": "#814CCC",
"ABAP": "#E8274B",
"ABAP CDS": "#555e25",
"AGS Script": "#B9D9FF",
"AL": "#3AA2B5",
"AMPL": "#E6EFBB",
@ -30,10 +31,12 @@ var LanguagesColor = map[string]string{
"AutoIt": "#1C3552",
"Ballerina": "#FF5000",
"Batchfile": "#C1F12E",
"Beef": "#a52f4e",
"Bison": "#6A463F",
"Blade": "#f7523f",
"BlitzMax": "#cd6400",
"Boo": "#d4bec1",
"Boogie": "#c80fa0",
"Brainfuck": "#2F2530",
"Browserslist": "#ffd539",
"C": "#555555",
@ -49,6 +52,7 @@ var LanguagesColor = map[string]string{
"Clean": "#3F85AF",
"Click": "#E4E6F3",
"Clojure": "#db5855",
"Closure Templates": "#0d948f",
"CoffeeScript": "#244776",
"ColdFusion": "#ed2cd6",
"ColdFusion CFC": "#ed2cd6",
@ -115,6 +119,7 @@ var LanguagesColor = map[string]string{
"IDL": "#a3522f",
"IGOR Pro": "#0000cc",
"Idris": "#b30000",
"ImageJ Macro": "#99AAFF",
"Io": "#a9188d",
"Ioke": "#078193",
"Isabelle": "#FEFE00",
@ -139,6 +144,7 @@ var LanguagesColor = map[string]string{
"Latte": "#f2a542",
"Less": "#1d365d",
"Lex": "#DBCA00",
"Liquid": "#67b8de",
"LiveScript": "#499886",
"LookML": "#652B81",
"Lua": "#000080",
@ -159,6 +165,7 @@ var LanguagesColor = map[string]string{
"Metal": "#8f14e9",
"Mirah": "#c7a938",
"Modula-3": "#223388",
"Mustache": "#724b3b",
"NCL": "#28431f",
"NWScript": "#111522",
"Nearley": "#990000",
@ -173,6 +180,7 @@ var LanguagesColor = map[string]string{
"Nix": "#7e7eff",
"Nu": "#c9df40",
"NumPy": "#9C8AF9",
"Nunjucks": "#3d8137",
"OCaml": "#3be133",
"ObjectScript": "#424893",
"Objective-C": "#438eff",
@ -182,6 +190,7 @@ var LanguagesColor = map[string]string{
"Omgrofl": "#cabbff",
"Opal": "#f7ede0",
"OpenQASM": "#AA70FF",
"Org": "#77aa99",
"Oxygene": "#cdd0e3",
"Oz": "#fab738",
"P4": "#7055b5",
@ -223,6 +232,7 @@ var LanguagesColor = map[string]string{
"ReScript": "#ed5051",
"Reason": "#ff5847",
"Rebol": "#358a5b",
"Record Jar": "#0673ba",
"Red": "#f50000",
"Ren'Py": "#ff7f7f",
"Ring": "#2D54CB",
@ -239,6 +249,7 @@ var LanguagesColor = map[string]string{
"SaltStack": "#646464",
"Sass": "#a53b70",
"Scala": "#c22d40",
"Scaml": "#bd181a",
"Scheme": "#1e4aec",
"Self": "#0579aa",
"Shell": "#89e051",

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
// linguist's commit from which files were generated.
var LinguistCommit = "3ef386bbb7d10afe2ef81d85c9911871a9f2c221"
var LinguistCommit = "6aed0bd564f55c4f2d987c2e6035eda7aea26375"

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -665,6 +665,12 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)^Class\s`),
),
},
".cmp": &Heuristics{
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regexp.MustCompile(`(?m)^[DGMT][0-9]{2}\*\r?\n`),
),
},
".cs": &Heuristics{
rule.Or(
rule.MatchingLanguages("Smalltalk"),
@ -791,7 +797,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regexp.MustCompile(`(?m)\*\%$`),
regexp.MustCompile(`(?m)^[DGMT][0-9]{2}\*$`),
),
rule.Always(
rule.MatchingLanguages("Game Maker Language"),
@ -948,6 +954,15 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)^\w+\s*:\s*module\s*{`),
),
},
".m4": &Heuristics{
rule.Or(
rule.MatchingLanguages("M4Sugar"),
regexp.MustCompile(`(?m)AC_DEFUN|AC_PREREQ|AC_INIT|^_?m4_`),
),
rule.Always(
rule.MatchingLanguages("M4"),
),
},
".man": &Heuristics{
rule.And(
rule.MatchingLanguages("Roff Manpage"),
@ -1087,6 +1102,10 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("XML"),
regexp.MustCompile(`(?m)^\s*<\?xml\s+version`),
),
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regexp.MustCompile(`(?m)^[DGMT][0-9]{2}\*\r?\n`),
),
rule.Or(
rule.MatchingLanguages("Text"),
regexp.MustCompile(`(?m)THE_TITLE`),
@ -1317,6 +1336,10 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("RenderScript"),
regexp.MustCompile(`(?m)#include|#pragma\s+(rs|version)|__attribute__`),
),
rule.Or(
rule.MatchingLanguages("XML"),
regexp.MustCompile(`(?m)^\s*<\?xml`),
),
},
".s": &Heuristics{
rule.Or(
@ -1337,7 +1360,7 @@ var ContentHeuristics = map[string]*Heuristics{
".sol": &Heuristics{
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regexp.MustCompile(`(?m)^G75\*`),
regexp.MustCompile(`(?m)^[DGMT][0-9]{2}\*\r?\n`),
),
},
".sql": &Heuristics{

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -69,6 +69,7 @@ var LanguagesByExtension = map[string][]string{
".asciidoc": {"AsciiDoc"},
".ascx": {"ASP.NET"},
".asd": {"Common Lisp"},
".asddls": {"ABAP CDS"},
".ash": {"AGS Script"},
".ashx": {"ASP.NET"},
".asl": {"ASL"},
@ -105,7 +106,7 @@ var LanguagesByExtension = map[string][]string{
".bdf": {"Glyph Bitmap Distribution Format"},
".bdy": {"PLSQL"},
".befunge": {"Befunge"},
".bf": {"Brainfuck", "HyPhy"},
".bf": {"Beef", "Brainfuck", "HyPhy"},
".bib": {"BibTeX"},
".bibtex": {"BibTeX"},
".bison": {"Bison"},
@ -115,6 +116,7 @@ var LanguagesByExtension = map[string][]string{
".bones": {"JavaScript"},
".boo": {"Boo"},
".boot": {"Clojure"},
".bpl": {"Boogie"},
".brd": {"Eagle", "KiCad Legacy Layout"},
".bro": {"Zeek"},
".brs": {"Brightscript"},
@ -170,6 +172,7 @@ var LanguagesByExtension = map[string][]string{
".cmake": {"CMake"},
".cmake.in": {"CMake"},
".cmd": {"Batchfile"},
".cmp": {"Gerber Image"},
".cnc": {"G-code"},
".cob": {"COBOL"},
".cobol": {"COBOL"},
@ -449,6 +452,7 @@ var LanguagesByExtension = map[string][]string{
".idr": {"Idris"},
".ig": {"Modula-3"},
".ihlp": {"Stata"},
".ijm": {"ImageJ Macro"},
".ijs": {"J"},
".ik": {"Ioke"},
".ily": {"LilyPond"},
@ -500,7 +504,7 @@ var LanguagesByExtension = map[string][]string{
".jsproj": {"XML"},
".jss": {"JavaScript"},
".jst": {"EJS"},
".jsx": {"JSX"},
".jsx": {"JavaScript"},
".kicad_mod": {"KiCad Layout"},
".kicad_pcb": {"KiCad Layout"},
".kicad_wks": {"KiCad Layout"},
@ -650,7 +654,7 @@ var LanguagesByExtension = map[string][]string{
".nb": {"Mathematica", "Text"},
".nbp": {"Mathematica"},
".nc": {"nesC"},
".ncl": {"NCL", "Text", "XML"},
".ncl": {"Gerber Image", "NCL", "Text", "XML"},
".ndproj": {"XML"},
".ne": {"Nearley"},
".nearley": {"Nearley"},
@ -667,7 +671,7 @@ var LanguagesByExtension = map[string][]string{
".ninja": {"Ninja"},
".nit": {"Nit"},
".nix": {"Nix"},
".njk": {"HTML+Django"},
".njk": {"Nunjucks"},
".njs": {"JavaScript"},
".nl": {"NL", "NewLisp"},
".nlogo": {"NetLogo"},
@ -828,6 +832,8 @@ var LanguagesByExtension = map[string][]string{
".r3": {"Rebol"},
".rabl": {"Ruby"},
".rake": {"Ruby"},
".raku": {"Raku"},
".rakumod": {"Raku"},
".raml": {"RAML"},
".raw": {"Raw token data"},
".razor": {"HTML+Razor"},
@ -880,7 +886,7 @@ var LanguagesByExtension = map[string][]string{
".ronn": {"Markdown"},
".rpy": {"Python", "Ren'Py"},
".rq": {"SPARQL"},
".rs": {"RenderScript", "Rust"},
".rs": {"RenderScript", "Rust", "XML"},
".rs.in": {"Rust"},
".rsc": {"Rascal"},
".rsh": {"RenderScript"},
@ -903,7 +909,7 @@ var LanguagesByExtension = map[string][]string{
".scad": {"OpenSCAD"},
".scala": {"Scala"},
".scaml": {"Scaml"},
".scd": {"SuperCollider"},
".scd": {"Markdown", "SuperCollider"},
".sce": {"Scilab"},
".sch": {"Eagle", "KiCad Schematic", "Scheme", "XML"},
".schdoc": {"Altium Designer"},
@ -1194,6 +1200,7 @@ var ExtensionsByLanguage = map[string][]string{
"1C Enterprise": {".bsl", ".os"},
"4D": {".4dm"},
"ABAP": {".abap"},
"ABAP CDS": {".asddls"},
"ABNF": {".abnf"},
"AGS Script": {".asc", ".ash"},
"AL": {".al"},
@ -1228,6 +1235,7 @@ var ExtensionsByLanguage = map[string][]string{
"Awk": {".awk", ".auk", ".gawk", ".mawk", ".nawk"},
"Ballerina": {".bal"},
"Batchfile": {".bat", ".cmd"},
"Beef": {".bf"},
"Befunge": {".befunge"},
"BibTeX": {".bib", ".bibtex"},
"Bison": {".bison"},
@ -1237,6 +1245,7 @@ var ExtensionsByLanguage = map[string][]string{
"BlitzMax": {".bmx"},
"Bluespec": {".bsv"},
"Boo": {".boo"},
"Boogie": {".bpl"},
"Brainfuck": {".b", ".bf"},
"Brightscript": {".brs"},
"C": {".c", ".cats", ".h", ".idc"},
@ -1350,7 +1359,7 @@ var ExtensionsByLanguage = map[string][]string{
"Genshi": {".kid"},
"Gentoo Ebuild": {".ebuild"},
"Gentoo Eclass": {".eclass"},
"Gerber Image": {".gbr", ".gbl", ".gbo", ".gbp", ".gbs", ".gko", ".gml", ".gpb", ".gpt", ".gtl", ".gto", ".gtp", ".gts", ".sol"},
"Gerber Image": {".gbr", ".cmp", ".gbl", ".gbo", ".gbp", ".gbs", ".gko", ".gml", ".gpb", ".gpt", ".gtl", ".gto", ".gtp", ".gts", ".ncl", ".sol"},
"Gettext Catalog": {".po", ".pot"},
"Gherkin": {".feature", ".story"},
"Git Config": {".gitconfig"},
@ -1372,7 +1381,7 @@ var ExtensionsByLanguage = map[string][]string{
"HCL": {".hcl", ".nomad", ".tf", ".tfvars", ".workflow"},
"HLSL": {".hlsl", ".cginc", ".fx", ".fxh", ".hlsli"},
"HTML": {".html", ".htm", ".html.hl", ".inc", ".st", ".xht", ".xhtml"},
"HTML+Django": {".jinja", ".j2", ".jinja2", ".njk"},
"HTML+Django": {".jinja", ".j2", ".jinja2"},
"HTML+ECR": {".ecr"},
"HTML+EEX": {".eex", ".html.leex"},
"HTML+ERB": {".erb", ".erb.deface", ".rhtml"},
@ -1396,6 +1405,7 @@ var ExtensionsByLanguage = map[string][]string{
"IRC log": {".irclog", ".weechatlog"},
"Idris": {".idr", ".lidr"},
"Ignore List": {".gitignore"},
"ImageJ Macro": {".ijm"},
"Inform 7": {".ni", ".i7x"},
"Inno Setup": {".iss", ".isl"},
"Io": {".io"},
@ -1408,12 +1418,11 @@ var ExtensionsByLanguage = map[string][]string{
"JSON5": {".json5"},
"JSONLD": {".jsonld"},
"JSONiq": {".jq"},
"JSX": {".jsx"},
"Jasmin": {".j"},
"Java": {".java"},
"Java Properties": {".properties"},
"Java Server Pages": {".jsp"},
"JavaScript": {".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".jsb", ".jscad", ".jsfl", ".jsm", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib"},
"JavaScript": {".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".jsb", ".jscad", ".jsfl", ".jsm", ".jss", ".jsx", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib"},
"JavaScript+ERB": {".js.erb"},
"Jison": {".jison"},
"Jison Lex": {".jisonlex"},
@ -1467,7 +1476,7 @@ var ExtensionsByLanguage = map[string][]string{
"Macaulay2": {".m2"},
"Makefile": {".mak", ".d", ".make", ".mk", ".mkfile"},
"Mako": {".mako", ".mao"},
"Markdown": {".md", ".markdown", ".mdown", ".mdwn", ".mdx", ".mkd", ".mkdn", ".mkdown", ".ronn", ".workbook"},
"Markdown": {".md", ".markdown", ".mdown", ".mdwn", ".mdx", ".mkd", ".mkdn", ".mkdown", ".ronn", ".scd", ".workbook"},
"Marko": {".marko"},
"Mask": {".mask"},
"Mathematica": {".mathematica", ".cdf", ".m", ".ma", ".mt", ".nb", ".nbp", ".wl", ".wlt"},
@ -1509,6 +1518,7 @@ var ExtensionsByLanguage = map[string][]string{
"Nix": {".nix"},
"Nu": {".nu"},
"NumPy": {".numpy", ".numpyw", ".numsc"},
"Nunjucks": {".njk"},
"OCaml": {".ml", ".eliom", ".eliomi", ".ml4", ".mli", ".mll", ".mly"},
"ObjDump": {".objdump"},
"Object Data Instance Notation": {".odin"},
@ -1588,7 +1598,7 @@ var ExtensionsByLanguage = map[string][]string{
"RUNOFF": {".rnh", ".rno"},
"Racket": {".rkt", ".rktd", ".rktl", ".scrbl"},
"Ragel": {".rl"},
"Raku": {".6pl", ".6pm", ".nqp", ".p6", ".p6l", ".p6m", ".pl", ".pl6", ".pm", ".pm6", ".t"},
"Raku": {".6pl", ".6pm", ".nqp", ".p6", ".p6l", ".p6m", ".pl", ".pl6", ".pm", ".pm6", ".raku", ".rakumod", ".t"},
"Rascal": {".rsc"},
"Raw token data": {".raw"},
"ReScript": {".res"},
@ -1707,7 +1717,7 @@ var ExtensionsByLanguage = map[string][]string{
"X PixMap": {".xpm", ".pm"},
"X10": {".x10"},
"XC": {".xc"},
"XML": {".xml", ".adml", ".admx", ".ant", ".axml", ".builds", ".ccproj", ".ccxml", ".clixml", ".cproject", ".cscfg", ".csdef", ".csl", ".csproj", ".ct", ".depproj", ".dita", ".ditamap", ".ditaval", ".dll.config", ".dotsettings", ".filters", ".fsproj", ".fxml", ".glade", ".gml", ".gmx", ".grxml", ".gst", ".iml", ".ivy", ".jelly", ".jsproj", ".kml", ".launch", ".mdpolicy", ".mjml", ".mm", ".mod", ".mxml", ".natvis", ".ncl", ".ndproj", ".nproj", ".nuspec", ".odd", ".osm", ".pkgproj", ".pluginspec", ".proj", ".props", ".ps1xml", ".psc1", ".pt", ".rdf", ".res", ".resx", ".rss", ".sch", ".scxml", ".sfproj", ".shproj", ".srdf", ".storyboard", ".sublime-snippet", ".targets", ".tml", ".ts", ".tsx", ".ui", ".urdf", ".ux", ".vbproj", ".vcxproj", ".vsixmanifest", ".vssettings", ".vstemplate", ".vxml", ".wixproj", ".workflow", ".wsdl", ".wsf", ".wxi", ".wxl", ".wxs", ".x3d", ".xacro", ".xaml", ".xib", ".xlf", ".xliff", ".xmi", ".xml.dist", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
"XML": {".xml", ".adml", ".admx", ".ant", ".axml", ".builds", ".ccproj", ".ccxml", ".clixml", ".cproject", ".cscfg", ".csdef", ".csl", ".csproj", ".ct", ".depproj", ".dita", ".ditamap", ".ditaval", ".dll.config", ".dotsettings", ".filters", ".fsproj", ".fxml", ".glade", ".gml", ".gmx", ".grxml", ".gst", ".iml", ".ivy", ".jelly", ".jsproj", ".kml", ".launch", ".mdpolicy", ".mjml", ".mm", ".mod", ".mxml", ".natvis", ".ncl", ".ndproj", ".nproj", ".nuspec", ".odd", ".osm", ".pkgproj", ".pluginspec", ".proj", ".props", ".ps1xml", ".psc1", ".pt", ".rdf", ".res", ".resx", ".rs", ".rss", ".sch", ".scxml", ".sfproj", ".shproj", ".srdf", ".storyboard", ".sublime-snippet", ".targets", ".tml", ".ts", ".tsx", ".ui", ".urdf", ".ux", ".vbproj", ".vcxproj", ".vsixmanifest", ".vssettings", ".vstemplate", ".vxml", ".wixproj", ".workflow", ".wsdl", ".wsf", ".wxi", ".wxl", ".wxs", ".x3d", ".xacro", ".xaml", ".xib", ".xlf", ".xliff", ".xmi", ".xml.dist", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
"XML Property List": {".plist", ".sttheme", ".tmcommand", ".tmlanguage", ".tmpreferences", ".tmsnippet", ".tmtheme"},
"XPages": {".xsp-config", ".xsp.metadata"},
"XProc": {".xpl", ".xproc"},

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -30,6 +30,7 @@ var LanguagesByFilename = map[string][]string{
".dircolors": {"dircolors"},
".dockerignore": {"Ignore List"},
".editorconfig": {"EditorConfig"},
".eleventyignore": {"Ignore List"},
".emacs": {"Emacs Lisp"},
".emacs.desktop": {"Emacs Lisp"},
".env": {"Shell"},
@ -143,6 +144,8 @@ var LanguagesByFilename = map[string][]string{
"Nukefile": {"Nu"},
"PKGBUILD": {"Shell"},
"Phakefile": {"PHP"},
"Pipfile": {"TOML"},
"Pipfile.lock": {"JSON"},
"Podfile": {"Ruby"},
"Project.ede": {"Emacs Lisp"},
"Puppetfile": {"Ruby"},
@ -219,6 +222,7 @@ var LanguagesByFilename = map[string][]string{
"jsconfig.json": {"JSON with Comments"},
"keep.me": {"Text"},
"language-configuration.json": {"JSON with Comments"},
"language-subtag-registry.txt": {"Record Jar"},
"ld.script": {"Linker Script"},
"lexer.x": {"Lex"},
"login": {"Shell"},

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -9,11 +9,9 @@ var LanguagesGroup = map[string]string{
"BibTeX": "TeX",
"Bison": "Yacc",
"C2hs Haskell": "Haskell",
"Closure Templates": "HTML",
"ColdFusion CFC": "ColdFusion",
"Cython": "Python",
"ECLiPSe": "prolog",
"EJS": "HTML",
"Easybuild": "Python",
"Ecere Projects": "JavaScript",
"EditorConfig": "INI",
@ -35,7 +33,6 @@ var LanguagesGroup = map[string]string{
"Isabelle ROOT": "Isabelle",
"JFlex": "Lex",
"JSON with Comments": "JSON",
"JSX": "JavaScript",
"Java Server Pages": "Java",
"JavaScript+ERB": "JavaScript",
"Jison": "Yacc",
@ -47,7 +44,6 @@ var LanguagesGroup = map[string]string{
"M4Sugar": "M4",
"MUF": "Forth",
"Motorola 68K Assembly": "Assembly",
"Mustache": "HTML",
"NPM Config": "INI",
"NumPy": "Python",
"OpenCL": "C",
@ -62,7 +58,6 @@ var LanguagesGroup = map[string]string{
"Roff Manpage": "Roff",
"SSH Config": "INI",
"STON": "Smalltalk",
"Scaml": "HTML",
"SugarSS": "CSS",
"TSX": "TypeScript",
"Tcsh": "Shell",

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -13,6 +13,7 @@ var LanguagesByInterpreter = map[string][]string{
"awk": {"Awk"},
"bash": {"Shell"},
"bigloo": {"Scheme"},
"boogie": {"Boogie"},
"boolector": {"SMT"},
"ccl": {"Common Lisp"},
"chakra": {"JavaScript"},

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -13,6 +13,7 @@ var LanguagesMime = map[string]string{
"Ant Build System": "application/xml",
"Apex": "text/x-java",
"Asymptote": "text/x-kotlin",
"Beef": "text/x-csharp",
"BibTeX": "text/x-stex",
"Brainfuck": "text/x-brainfuck",
"C": "text/x-csrc",
@ -98,7 +99,6 @@ var LanguagesMime = map[string]string{
"JSON5": "application/json",
"JSONLD": "application/json",
"JSONiq": "application/json",
"JSX": "text/jsx",
"Java": "text/x-java",
"Java Properties": "text/x-properties",
"Java Server Pages": "application/x-jsp",
@ -169,6 +169,7 @@ var LanguagesMime = map[string]string{
"Raku": "text/x-perl",
"ReScript": "text/x-rustsrc",
"Reason": "text/x-rustsrc",
"Record Jar": "text/x-properties",
"Roff": "text/troff",
"Roff Manpage": "text/troff",
"Rouge": "text/x-clojure",

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -7,6 +7,7 @@ var LanguagesType = map[string]int{
"1C Enterprise": 2,
"4D": 2,
"ABAP": 2,
"ABAP CDS": 2,
"ABNF": 1,
"AGS Script": 2,
"AL": 2,
@ -43,6 +44,7 @@ var LanguagesType = map[string]int{
"Awk": 2,
"Ballerina": 2,
"Batchfile": 2,
"Beef": 2,
"Befunge": 2,
"BibTeX": 3,
"Bison": 2,
@ -52,6 +54,7 @@ var LanguagesType = map[string]int{
"BlitzMax": 2,
"Bluespec": 2,
"Boo": 2,
"Boogie": 2,
"Brainfuck": 2,
"Brightscript": 2,
"Browserslist": 1,
@ -215,6 +218,7 @@ var LanguagesType = map[string]int{
"IRC log": 1,
"Idris": 2,
"Ignore List": 1,
"ImageJ Macro": 2,
"Inform 7": 2,
"Inno Setup": 2,
"Io": 2,
@ -228,7 +232,6 @@ var LanguagesType = map[string]int{
"JSON5": 1,
"JSONLD": 1,
"JSONiq": 2,
"JSX": 2,
"Jasmin": 2,
"Java": 2,
"Java Properties": 1,
@ -332,6 +335,7 @@ var LanguagesType = map[string]int{
"Nix": 2,
"Nu": 2,
"NumPy": 2,
"Nunjucks": 3,
"OCaml": 2,
"ObjDump": 1,
"Object Data Instance Notation": 1,
@ -421,6 +425,7 @@ var LanguagesType = map[string]int{
"Readline Config": 1,
"Reason": 2,
"Rebol": 2,
"Record Jar": 1,
"Red": 2,
"Redcode": 2,
"Regular Expression": 1,

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -50,7 +50,7 @@ var VendorMatchers = []regex.EnryRegexp{
regex.MustCompile(`(^|/)bulma\.(css|sass|scss)$`),
regex.MustCompile(`(3rd|[Tt]hird)[-_]?[Pp]arty/`),
regex.MustCompile(`(^|/)vendors?/`),
regex.MustCompile(`(^|/)extern(al)?/`),
regex.MustCompile(`(^|/)[Ee]xtern(als?)?/`),
regex.MustCompile(`(^|/)[Vv]+endor/`),
regex.MustCompile(`^debian/`),
regex.MustCompile(`(^|/)run\.n$`),

View File

@ -19,7 +19,7 @@ import (
var (
linguistURL = "https://github.com/github/linguist.git"
linguistClonedEnvVar = "ENRY_TEST_REPO"
commit = "3ef386bbb7d10afe2ef81d85c9911871a9f2c221"
commit = "6aed0bd564f55c4f2d987c2e6035eda7aea26375"
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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -11,6 +11,7 @@ var LanguageByAliasMap = map[string]string{
"1c_enterprise": "1C Enterprise",
"4d": "4D",
"abap": "ABAP",
"abap_cds": "ABAP CDS",
"abl": "OpenEdge ABL",
"abnf": "ABNF",
"abuild": "Alpine Abuild",
@ -83,6 +84,7 @@ var LanguageByAliasMap = map[string]string{
"batch": "Batchfile",
"batchfile": "Batchfile",
"bazel": "Starlark",
"beef": "Beef",
"befunge": "Befunge",
"bibtex": "BibTeX",
"bison": "Bison",
@ -95,6 +97,7 @@ var LanguageByAliasMap = map[string]string{
"bluespec": "Bluespec",
"bmax": "BlitzMax",
"boo": "Boo",
"boogie": "Boogie",
"bplus": "BlitzBasic",
"brainfuck": "Brainfuck",
"brightscript": "Brightscript",
@ -112,6 +115,8 @@ var LanguageByAliasMap = map[string]string{
"c2hs_haskell": "C2hs Haskell",
"cabal": "Cabal Config",
"cabal_config": "Cabal Config",
"cake": "C#",
"cakescript": "C#",
"cap'n_proto": "Cap'n Proto",
"carto": "CartoCSS",
"cartocss": "CartoCSS",
@ -183,7 +188,7 @@ var LanguageByAliasMap = map[string]string{
"dart": "Dart",
"dataweave": "DataWeave",
"dcl": "DIGITAL Command Language",
"delphi": "Component Pascal",
"delphi": "Pascal",
"desktop": "desktop",
"dhall": "Dhall",
"diff": "Diff",
@ -302,6 +307,7 @@ var LanguageByAliasMap = map[string]string{
"handlebars": "Handlebars",
"haproxy": "HAProxy",
"harbour": "Harbour",
"hashicorp_configuration_language": "HCL",
"haskell": "Haskell",
"haxe": "Haxe",
"hbs": "Handlebars",
@ -334,6 +340,8 @@ var LanguageByAliasMap = map[string]string{
"igor": "IGOR Pro",
"igor_pro": "IGOR Pro",
"igorpro": "IGOR Pro",
"ijm": "ImageJ Macro",
"imagej_macro": "ImageJ Macro",
"inc": "PHP",
"inform7": "Inform 7",
"inform_7": "Inform 7",
@ -370,7 +378,6 @@ var LanguageByAliasMap = map[string]string{
"jsonld": "JSONLD",
"jsonnet": "Jsonnet",
"jsp": "Java Server Pages",
"jsx": "JSX",
"julia": "Julia",
"jupyter_notebook": "Jupyter Notebook",
"kaitai_struct": "Kaitai Struct",
@ -494,7 +501,7 @@ var LanguageByAliasMap = map[string]string{
"nit": "Nit",
"nix": "Nix",
"nixos": "Nix",
"njk": "HTML+Django",
"njk": "Nunjucks",
"nl": "NL",
"node": "JavaScript",
"npm_config": "NPM Config",
@ -503,7 +510,7 @@ var LanguageByAliasMap = map[string]string{
"nsis": "NSIS",
"nu": "Nu",
"numpy": "NumPy",
"nunjucks": "HTML+Django",
"nunjucks": "Nunjucks",
"nush": "Nu",
"nvim": "Vim script",
"nwscript": "NWScript",
@ -520,7 +527,7 @@ var LanguageByAliasMap = map[string]string{
"objectivec": "Objective-C",
"objectivec++": "Objective-C++",
"objectivej": "Objective-J",
"objectpascal": "Component Pascal",
"objectpascal": "Pascal",
"objectscript": "ObjectScript",
"objj": "Objective-J",
"ocaml": "OCaml",
@ -570,6 +577,7 @@ var LanguageByAliasMap = map[string]string{
"piglatin": "PigLatin",
"pike": "Pike",
"pir": "Parrot Internal Representation",
"plain_text": "Text",
"plantuml": "PlantUML",
"plpgsql": "PLpgSQL",
"plsql": "PLSQL",
@ -637,6 +645,7 @@ var LanguageByAliasMap = map[string]string{
"realbasic": "REALbasic",
"reason": "Reason",
"rebol": "Rebol",
"record_jar": "Record Jar",
"red": "Red",
"red/system": "Red",
"redcode": "Redcode",

View File

@ -1,11 +1,12 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
var LanguagesColor = map[string]string{
"1C Enterprise": "#814CCC",
"ABAP": "#E8274B",
"ABAP CDS": "#555e25",
"AGS Script": "#B9D9FF",
"AL": "#3AA2B5",
"AMPL": "#E6EFBB",
@ -30,10 +31,12 @@ var LanguagesColor = map[string]string{
"AutoIt": "#1C3552",
"Ballerina": "#FF5000",
"Batchfile": "#C1F12E",
"Beef": "#a52f4e",
"Bison": "#6A463F",
"Blade": "#f7523f",
"BlitzMax": "#cd6400",
"Boo": "#d4bec1",
"Boogie": "#c80fa0",
"Brainfuck": "#2F2530",
"Browserslist": "#ffd539",
"C": "#555555",
@ -49,6 +52,7 @@ var LanguagesColor = map[string]string{
"Clean": "#3F85AF",
"Click": "#E4E6F3",
"Clojure": "#db5855",
"Closure Templates": "#0d948f",
"CoffeeScript": "#244776",
"ColdFusion": "#ed2cd6",
"ColdFusion CFC": "#ed2cd6",
@ -115,6 +119,7 @@ var LanguagesColor = map[string]string{
"IDL": "#a3522f",
"IGOR Pro": "#0000cc",
"Idris": "#b30000",
"ImageJ Macro": "#99AAFF",
"Io": "#a9188d",
"Ioke": "#078193",
"Isabelle": "#FEFE00",
@ -139,6 +144,7 @@ var LanguagesColor = map[string]string{
"Latte": "#f2a542",
"Less": "#1d365d",
"Lex": "#DBCA00",
"Liquid": "#67b8de",
"LiveScript": "#499886",
"LookML": "#652B81",
"Lua": "#000080",
@ -159,6 +165,7 @@ var LanguagesColor = map[string]string{
"Metal": "#8f14e9",
"Mirah": "#c7a938",
"Modula-3": "#223388",
"Mustache": "#724b3b",
"NCL": "#28431f",
"NWScript": "#111522",
"Nearley": "#990000",
@ -173,6 +180,7 @@ var LanguagesColor = map[string]string{
"Nix": "#7e7eff",
"Nu": "#c9df40",
"NumPy": "#9C8AF9",
"Nunjucks": "#3d8137",
"OCaml": "#3be133",
"ObjectScript": "#424893",
"Objective-C": "#438eff",
@ -182,6 +190,7 @@ var LanguagesColor = map[string]string{
"Omgrofl": "#cabbff",
"Opal": "#f7ede0",
"OpenQASM": "#AA70FF",
"Org": "#77aa99",
"Oxygene": "#cdd0e3",
"Oz": "#fab738",
"P4": "#7055b5",
@ -223,6 +232,7 @@ var LanguagesColor = map[string]string{
"ReScript": "#ed5051",
"Reason": "#ff5847",
"Rebol": "#358a5b",
"Record Jar": "#0673ba",
"Red": "#f50000",
"Ren'Py": "#ff7f7f",
"Ring": "#2D54CB",
@ -239,6 +249,7 @@ var LanguagesColor = map[string]string{
"SaltStack": "#646464",
"Sass": "#a53b70",
"Scala": "#c22d40",
"Scaml": "#bd181a",
"Scheme": "#1e4aec",
"Self": "#0579aa",
"Shell": "#89e051",

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
// linguist's commit from which files were generated.
var LinguistCommit = "3ef386bbb7d10afe2ef81d85c9911871a9f2c221"
var LinguistCommit = "6aed0bd564f55c4f2d987c2e6035eda7aea26375"

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -665,6 +665,12 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)^Class\s`),
),
},
".cmp": &Heuristics{
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regexp.MustCompile(`(?m)^[DGMT][0-9]{2}\*\r?\n`),
),
},
".cs": &Heuristics{
rule.Or(
rule.MatchingLanguages("Smalltalk"),
@ -791,7 +797,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regexp.MustCompile(`(?m)\*\%$`),
regexp.MustCompile(`(?m)^[DGMT][0-9]{2}\*$`),
),
rule.Always(
rule.MatchingLanguages("Game Maker Language"),
@ -948,6 +954,15 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)^\w+\s*:\s*module\s*{`),
),
},
".m4": &Heuristics{
rule.Or(
rule.MatchingLanguages("M4Sugar"),
regexp.MustCompile(`(?m)AC_DEFUN|AC_PREREQ|AC_INIT|^_?m4_`),
),
rule.Always(
rule.MatchingLanguages("M4"),
),
},
".man": &Heuristics{
rule.And(
rule.MatchingLanguages("Roff Manpage"),
@ -1087,6 +1102,10 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("XML"),
regexp.MustCompile(`(?m)^\s*<\?xml\s+version`),
),
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regexp.MustCompile(`(?m)^[DGMT][0-9]{2}\*\r?\n`),
),
rule.Or(
rule.MatchingLanguages("Text"),
regexp.MustCompile(`(?m)THE_TITLE`),
@ -1317,6 +1336,10 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("RenderScript"),
regexp.MustCompile(`(?m)#include|#pragma\s+(rs|version)|__attribute__`),
),
rule.Or(
rule.MatchingLanguages("XML"),
regexp.MustCompile(`(?m)^\s*<\?xml`),
),
},
".s": &Heuristics{
rule.Or(
@ -1337,7 +1360,7 @@ var ContentHeuristics = map[string]*Heuristics{
".sol": &Heuristics{
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regexp.MustCompile(`(?m)^G75\*`),
regexp.MustCompile(`(?m)^[DGMT][0-9]{2}\*\r?\n`),
),
},
".sql": &Heuristics{

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -69,6 +69,7 @@ var LanguagesByExtension = map[string][]string{
".asciidoc": {"AsciiDoc"},
".ascx": {"ASP.NET"},
".asd": {"Common Lisp"},
".asddls": {"ABAP CDS"},
".ash": {"AGS Script"},
".ashx": {"ASP.NET"},
".asl": {"ASL"},
@ -105,7 +106,7 @@ var LanguagesByExtension = map[string][]string{
".bdf": {"Glyph Bitmap Distribution Format"},
".bdy": {"PLSQL"},
".befunge": {"Befunge"},
".bf": {"Brainfuck", "HyPhy"},
".bf": {"Beef", "Brainfuck", "HyPhy"},
".bib": {"BibTeX"},
".bibtex": {"BibTeX"},
".bison": {"Bison"},
@ -115,6 +116,7 @@ var LanguagesByExtension = map[string][]string{
".bones": {"JavaScript"},
".boo": {"Boo"},
".boot": {"Clojure"},
".bpl": {"Boogie"},
".brd": {"Eagle", "KiCad Legacy Layout"},
".bro": {"Zeek"},
".brs": {"Brightscript"},
@ -170,6 +172,7 @@ var LanguagesByExtension = map[string][]string{
".cmake": {"CMake"},
".cmake.in": {"CMake"},
".cmd": {"Batchfile"},
".cmp": {"Gerber Image"},
".cnc": {"G-code"},
".cob": {"COBOL"},
".cobol": {"COBOL"},
@ -449,6 +452,7 @@ var LanguagesByExtension = map[string][]string{
".idr": {"Idris"},
".ig": {"Modula-3"},
".ihlp": {"Stata"},
".ijm": {"ImageJ Macro"},
".ijs": {"J"},
".ik": {"Ioke"},
".ily": {"LilyPond"},
@ -500,7 +504,7 @@ var LanguagesByExtension = map[string][]string{
".jsproj": {"XML"},
".jss": {"JavaScript"},
".jst": {"EJS"},
".jsx": {"JSX"},
".jsx": {"JavaScript"},
".kicad_mod": {"KiCad Layout"},
".kicad_pcb": {"KiCad Layout"},
".kicad_wks": {"KiCad Layout"},
@ -650,7 +654,7 @@ var LanguagesByExtension = map[string][]string{
".nb": {"Mathematica", "Text"},
".nbp": {"Mathematica"},
".nc": {"nesC"},
".ncl": {"NCL", "Text", "XML"},
".ncl": {"Gerber Image", "NCL", "Text", "XML"},
".ndproj": {"XML"},
".ne": {"Nearley"},
".nearley": {"Nearley"},
@ -667,7 +671,7 @@ var LanguagesByExtension = map[string][]string{
".ninja": {"Ninja"},
".nit": {"Nit"},
".nix": {"Nix"},
".njk": {"HTML+Django"},
".njk": {"Nunjucks"},
".njs": {"JavaScript"},
".nl": {"NL", "NewLisp"},
".nlogo": {"NetLogo"},
@ -828,6 +832,8 @@ var LanguagesByExtension = map[string][]string{
".r3": {"Rebol"},
".rabl": {"Ruby"},
".rake": {"Ruby"},
".raku": {"Raku"},
".rakumod": {"Raku"},
".raml": {"RAML"},
".raw": {"Raw token data"},
".razor": {"HTML+Razor"},
@ -880,7 +886,7 @@ var LanguagesByExtension = map[string][]string{
".ronn": {"Markdown"},
".rpy": {"Python", "Ren'Py"},
".rq": {"SPARQL"},
".rs": {"RenderScript", "Rust"},
".rs": {"RenderScript", "Rust", "XML"},
".rs.in": {"Rust"},
".rsc": {"Rascal"},
".rsh": {"RenderScript"},
@ -903,7 +909,7 @@ var LanguagesByExtension = map[string][]string{
".scad": {"OpenSCAD"},
".scala": {"Scala"},
".scaml": {"Scaml"},
".scd": {"SuperCollider"},
".scd": {"Markdown", "SuperCollider"},
".sce": {"Scilab"},
".sch": {"Eagle", "KiCad Schematic", "Scheme", "XML"},
".schdoc": {"Altium Designer"},
@ -1194,6 +1200,7 @@ var ExtensionsByLanguage = map[string][]string{
"1C Enterprise": {".bsl", ".os"},
"4D": {".4dm"},
"ABAP": {".abap"},
"ABAP CDS": {".asddls"},
"ABNF": {".abnf"},
"AGS Script": {".asc", ".ash"},
"AL": {".al"},
@ -1228,6 +1235,7 @@ var ExtensionsByLanguage = map[string][]string{
"Awk": {".awk", ".auk", ".gawk", ".mawk", ".nawk"},
"Ballerina": {".bal"},
"Batchfile": {".bat", ".cmd"},
"Beef": {".bf"},
"Befunge": {".befunge"},
"BibTeX": {".bib", ".bibtex"},
"Bison": {".bison"},
@ -1237,6 +1245,7 @@ var ExtensionsByLanguage = map[string][]string{
"BlitzMax": {".bmx"},
"Bluespec": {".bsv"},
"Boo": {".boo"},
"Boogie": {".bpl"},
"Brainfuck": {".b", ".bf"},
"Brightscript": {".brs"},
"C": {".c", ".cats", ".h", ".idc"},
@ -1350,7 +1359,7 @@ var ExtensionsByLanguage = map[string][]string{
"Genshi": {".kid"},
"Gentoo Ebuild": {".ebuild"},
"Gentoo Eclass": {".eclass"},
"Gerber Image": {".gbr", ".gbl", ".gbo", ".gbp", ".gbs", ".gko", ".gml", ".gpb", ".gpt", ".gtl", ".gto", ".gtp", ".gts", ".sol"},
"Gerber Image": {".gbr", ".cmp", ".gbl", ".gbo", ".gbp", ".gbs", ".gko", ".gml", ".gpb", ".gpt", ".gtl", ".gto", ".gtp", ".gts", ".ncl", ".sol"},
"Gettext Catalog": {".po", ".pot"},
"Gherkin": {".feature", ".story"},
"Git Config": {".gitconfig"},
@ -1372,7 +1381,7 @@ var ExtensionsByLanguage = map[string][]string{
"HCL": {".hcl", ".nomad", ".tf", ".tfvars", ".workflow"},
"HLSL": {".hlsl", ".cginc", ".fx", ".fxh", ".hlsli"},
"HTML": {".html", ".htm", ".html.hl", ".inc", ".st", ".xht", ".xhtml"},
"HTML+Django": {".jinja", ".j2", ".jinja2", ".njk"},
"HTML+Django": {".jinja", ".j2", ".jinja2"},
"HTML+ECR": {".ecr"},
"HTML+EEX": {".eex", ".html.leex"},
"HTML+ERB": {".erb", ".erb.deface", ".rhtml"},
@ -1396,6 +1405,7 @@ var ExtensionsByLanguage = map[string][]string{
"IRC log": {".irclog", ".weechatlog"},
"Idris": {".idr", ".lidr"},
"Ignore List": {".gitignore"},
"ImageJ Macro": {".ijm"},
"Inform 7": {".ni", ".i7x"},
"Inno Setup": {".iss", ".isl"},
"Io": {".io"},
@ -1408,12 +1418,11 @@ var ExtensionsByLanguage = map[string][]string{
"JSON5": {".json5"},
"JSONLD": {".jsonld"},
"JSONiq": {".jq"},
"JSX": {".jsx"},
"Jasmin": {".j"},
"Java": {".java"},
"Java Properties": {".properties"},
"Java Server Pages": {".jsp"},
"JavaScript": {".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".jsb", ".jscad", ".jsfl", ".jsm", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib"},
"JavaScript": {".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".jsb", ".jscad", ".jsfl", ".jsm", ".jss", ".jsx", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib"},
"JavaScript+ERB": {".js.erb"},
"Jison": {".jison"},
"Jison Lex": {".jisonlex"},
@ -1467,7 +1476,7 @@ var ExtensionsByLanguage = map[string][]string{
"Macaulay2": {".m2"},
"Makefile": {".mak", ".d", ".make", ".mk", ".mkfile"},
"Mako": {".mako", ".mao"},
"Markdown": {".md", ".markdown", ".mdown", ".mdwn", ".mdx", ".mkd", ".mkdn", ".mkdown", ".ronn", ".workbook"},
"Markdown": {".md", ".markdown", ".mdown", ".mdwn", ".mdx", ".mkd", ".mkdn", ".mkdown", ".ronn", ".scd", ".workbook"},
"Marko": {".marko"},
"Mask": {".mask"},
"Mathematica": {".mathematica", ".cdf", ".m", ".ma", ".mt", ".nb", ".nbp", ".wl", ".wlt"},
@ -1509,6 +1518,7 @@ var ExtensionsByLanguage = map[string][]string{
"Nix": {".nix"},
"Nu": {".nu"},
"NumPy": {".numpy", ".numpyw", ".numsc"},
"Nunjucks": {".njk"},
"OCaml": {".ml", ".eliom", ".eliomi", ".ml4", ".mli", ".mll", ".mly"},
"ObjDump": {".objdump"},
"Object Data Instance Notation": {".odin"},
@ -1588,7 +1598,7 @@ var ExtensionsByLanguage = map[string][]string{
"RUNOFF": {".rnh", ".rno"},
"Racket": {".rkt", ".rktd", ".rktl", ".scrbl"},
"Ragel": {".rl"},
"Raku": {".6pl", ".6pm", ".nqp", ".p6", ".p6l", ".p6m", ".pl", ".pl6", ".pm", ".pm6", ".t"},
"Raku": {".6pl", ".6pm", ".nqp", ".p6", ".p6l", ".p6m", ".pl", ".pl6", ".pm", ".pm6", ".raku", ".rakumod", ".t"},
"Rascal": {".rsc"},
"Raw token data": {".raw"},
"ReScript": {".res"},
@ -1707,7 +1717,7 @@ var ExtensionsByLanguage = map[string][]string{
"X PixMap": {".xpm", ".pm"},
"X10": {".x10"},
"XC": {".xc"},
"XML": {".xml", ".adml", ".admx", ".ant", ".axml", ".builds", ".ccproj", ".ccxml", ".clixml", ".cproject", ".cscfg", ".csdef", ".csl", ".csproj", ".ct", ".depproj", ".dita", ".ditamap", ".ditaval", ".dll.config", ".dotsettings", ".filters", ".fsproj", ".fxml", ".glade", ".gml", ".gmx", ".grxml", ".gst", ".iml", ".ivy", ".jelly", ".jsproj", ".kml", ".launch", ".mdpolicy", ".mjml", ".mm", ".mod", ".mxml", ".natvis", ".ncl", ".ndproj", ".nproj", ".nuspec", ".odd", ".osm", ".pkgproj", ".pluginspec", ".proj", ".props", ".ps1xml", ".psc1", ".pt", ".rdf", ".res", ".resx", ".rss", ".sch", ".scxml", ".sfproj", ".shproj", ".srdf", ".storyboard", ".sublime-snippet", ".targets", ".tml", ".ts", ".tsx", ".ui", ".urdf", ".ux", ".vbproj", ".vcxproj", ".vsixmanifest", ".vssettings", ".vstemplate", ".vxml", ".wixproj", ".workflow", ".wsdl", ".wsf", ".wxi", ".wxl", ".wxs", ".x3d", ".xacro", ".xaml", ".xib", ".xlf", ".xliff", ".xmi", ".xml.dist", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
"XML": {".xml", ".adml", ".admx", ".ant", ".axml", ".builds", ".ccproj", ".ccxml", ".clixml", ".cproject", ".cscfg", ".csdef", ".csl", ".csproj", ".ct", ".depproj", ".dita", ".ditamap", ".ditaval", ".dll.config", ".dotsettings", ".filters", ".fsproj", ".fxml", ".glade", ".gml", ".gmx", ".grxml", ".gst", ".iml", ".ivy", ".jelly", ".jsproj", ".kml", ".launch", ".mdpolicy", ".mjml", ".mm", ".mod", ".mxml", ".natvis", ".ncl", ".ndproj", ".nproj", ".nuspec", ".odd", ".osm", ".pkgproj", ".pluginspec", ".proj", ".props", ".ps1xml", ".psc1", ".pt", ".rdf", ".res", ".resx", ".rs", ".rss", ".sch", ".scxml", ".sfproj", ".shproj", ".srdf", ".storyboard", ".sublime-snippet", ".targets", ".tml", ".ts", ".tsx", ".ui", ".urdf", ".ux", ".vbproj", ".vcxproj", ".vsixmanifest", ".vssettings", ".vstemplate", ".vxml", ".wixproj", ".workflow", ".wsdl", ".wsf", ".wxi", ".wxl", ".wxs", ".x3d", ".xacro", ".xaml", ".xib", ".xlf", ".xliff", ".xmi", ".xml.dist", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
"XML Property List": {".plist", ".sttheme", ".tmcommand", ".tmlanguage", ".tmpreferences", ".tmsnippet", ".tmtheme"},
"XPages": {".xsp-config", ".xsp.metadata"},
"XProc": {".xpl", ".xproc"},

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -30,6 +30,7 @@ var LanguagesByFilename = map[string][]string{
".dircolors": {"dircolors"},
".dockerignore": {"Ignore List"},
".editorconfig": {"EditorConfig"},
".eleventyignore": {"Ignore List"},
".emacs": {"Emacs Lisp"},
".emacs.desktop": {"Emacs Lisp"},
".env": {"Shell"},
@ -143,6 +144,8 @@ var LanguagesByFilename = map[string][]string{
"Nukefile": {"Nu"},
"PKGBUILD": {"Shell"},
"Phakefile": {"PHP"},
"Pipfile": {"TOML"},
"Pipfile.lock": {"JSON"},
"Podfile": {"Ruby"},
"Project.ede": {"Emacs Lisp"},
"Puppetfile": {"Ruby"},
@ -219,6 +222,7 @@ var LanguagesByFilename = map[string][]string{
"jsconfig.json": {"JSON with Comments"},
"keep.me": {"Text"},
"language-configuration.json": {"JSON with Comments"},
"language-subtag-registry.txt": {"Record Jar"},
"ld.script": {"Linker Script"},
"lexer.x": {"Lex"},
"login": {"Shell"},

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -9,11 +9,9 @@ var LanguagesGroup = map[string]string{
"BibTeX": "TeX",
"Bison": "Yacc",
"C2hs Haskell": "Haskell",
"Closure Templates": "HTML",
"ColdFusion CFC": "ColdFusion",
"Cython": "Python",
"ECLiPSe": "prolog",
"EJS": "HTML",
"Easybuild": "Python",
"Ecere Projects": "JavaScript",
"EditorConfig": "INI",
@ -35,7 +33,6 @@ var LanguagesGroup = map[string]string{
"Isabelle ROOT": "Isabelle",
"JFlex": "Lex",
"JSON with Comments": "JSON",
"JSX": "JavaScript",
"Java Server Pages": "Java",
"JavaScript+ERB": "JavaScript",
"Jison": "Yacc",
@ -47,7 +44,6 @@ var LanguagesGroup = map[string]string{
"M4Sugar": "M4",
"MUF": "Forth",
"Motorola 68K Assembly": "Assembly",
"Mustache": "HTML",
"NPM Config": "INI",
"NumPy": "Python",
"OpenCL": "C",
@ -62,7 +58,6 @@ var LanguagesGroup = map[string]string{
"Roff Manpage": "Roff",
"SSH Config": "INI",
"STON": "Smalltalk",
"Scaml": "HTML",
"SugarSS": "CSS",
"TSX": "TypeScript",
"Tcsh": "Shell",

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -13,6 +13,7 @@ var LanguagesByInterpreter = map[string][]string{
"awk": {"Awk"},
"bash": {"Shell"},
"bigloo": {"Scheme"},
"boogie": {"Boogie"},
"boolector": {"SMT"},
"ccl": {"Common Lisp"},
"chakra": {"JavaScript"},

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -13,6 +13,7 @@ var LanguagesMime = map[string]string{
"Ant Build System": "application/xml",
"Apex": "text/x-java",
"Asymptote": "text/x-kotlin",
"Beef": "text/x-csharp",
"BibTeX": "text/x-stex",
"Brainfuck": "text/x-brainfuck",
"C": "text/x-csrc",
@ -98,7 +99,6 @@ var LanguagesMime = map[string]string{
"JSON5": "application/json",
"JSONLD": "application/json",
"JSONiq": "application/json",
"JSX": "text/jsx",
"Java": "text/x-java",
"Java Properties": "text/x-properties",
"Java Server Pages": "application/x-jsp",
@ -169,6 +169,7 @@ var LanguagesMime = map[string]string{
"Raku": "text/x-perl",
"ReScript": "text/x-rustsrc",
"Reason": "text/x-rustsrc",
"Record Jar": "text/x-properties",
"Roff": "text/troff",
"Roff Manpage": "text/troff",
"Rouge": "text/x-clojure",

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -7,6 +7,7 @@ var LanguagesType = map[string]int{
"1C Enterprise": 2,
"4D": 2,
"ABAP": 2,
"ABAP CDS": 2,
"ABNF": 1,
"AGS Script": 2,
"AL": 2,
@ -43,6 +44,7 @@ var LanguagesType = map[string]int{
"Awk": 2,
"Ballerina": 2,
"Batchfile": 2,
"Beef": 2,
"Befunge": 2,
"BibTeX": 3,
"Bison": 2,
@ -52,6 +54,7 @@ var LanguagesType = map[string]int{
"BlitzMax": 2,
"Bluespec": 2,
"Boo": 2,
"Boogie": 2,
"Brainfuck": 2,
"Brightscript": 2,
"Browserslist": 1,
@ -215,6 +218,7 @@ var LanguagesType = map[string]int{
"IRC log": 1,
"Idris": 2,
"Ignore List": 1,
"ImageJ Macro": 2,
"Inform 7": 2,
"Inno Setup": 2,
"Io": 2,
@ -228,7 +232,6 @@ var LanguagesType = map[string]int{
"JSON5": 1,
"JSONLD": 1,
"JSONiq": 2,
"JSX": 2,
"Jasmin": 2,
"Java": 2,
"Java Properties": 1,
@ -332,6 +335,7 @@ var LanguagesType = map[string]int{
"Nix": 2,
"Nu": 2,
"NumPy": 2,
"Nunjucks": 3,
"OCaml": 2,
"ObjDump": 1,
"Object Data Instance Notation": 1,
@ -421,6 +425,7 @@ var LanguagesType = map[string]int{
"Readline Config": 1,
"Reason": 2,
"Rebol": 2,
"Record Jar": 1,
"Red": 2,
"Redcode": 2,
"Regular Expression": 1,

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: 3ef386bbb7d10afe2ef81d85c9911871a9f2c221
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
package data
@ -50,7 +50,7 @@ var VendorMatchers = []regex.EnryRegexp{
regex.MustCompile(`(^|/)bulma\.(css|sass|scss)$`),
regex.MustCompile(`(3rd|[Tt]hird)[-_]?[Pp]arty/`),
regex.MustCompile(`(^|/)vendors?/`),
regex.MustCompile(`(^|/)extern(al)?/`),
regex.MustCompile(`(^|/)[Ee]xtern(als?)?/`),
regex.MustCompile(`(^|/)[Vv]+endor/`),
regex.MustCompile(`^debian/`),
regex.MustCompile(`(^|/)run\.n$`),