parent
5f8478ab0a
commit
1ae9b2a89b
2
go.mod
2
go.mod
|
@ -38,7 +38,7 @@ require (
|
|||
github.com/go-asn1-ber/asn1-ber v1.5.3 // indirect
|
||||
github.com/go-chi/chi v1.5.4
|
||||
github.com/go-chi/cors v1.1.1
|
||||
github.com/go-enry/go-enry/v2 v2.6.0
|
||||
github.com/go-enry/go-enry/v2 v2.6.1
|
||||
github.com/go-git/go-billy/v5 v5.0.0
|
||||
github.com/go-git/go-git/v5 v5.2.0
|
||||
github.com/go-ldap/ldap/v3 v3.2.4
|
||||
|
|
4
go.sum
4
go.sum
|
@ -320,8 +320,8 @@ github.com/go-chi/chi v1.5.4 h1:QHdzF2szwjqVV4wmByUnTcsbIg7UGaQ0tPF2t5GcAIs=
|
|||
github.com/go-chi/chi v1.5.4/go.mod h1:uaf8YgoFazUOkPBG7fxPftUylNumIev9awIWOENIuEg=
|
||||
github.com/go-chi/cors v1.1.1 h1:eHuqxsIw89iXcWnWUN8R72JMibABJTN/4IOYI5WERvw=
|
||||
github.com/go-chi/cors v1.1.1/go.mod h1:K2Yje0VW/SJzxiyMYu6iPQYa7hMjQX2i/F491VChg1I=
|
||||
github.com/go-enry/go-enry/v2 v2.6.0 h1:nbGWQBpO+D+cJuRxNgSDFnFY9QWz3QM/CeZxU7VAH20=
|
||||
github.com/go-enry/go-enry/v2 v2.6.0/go.mod h1:GVzIiAytiS5uT/QiuakK7TF1u4xDab87Y8V5EJRpsIQ=
|
||||
github.com/go-enry/go-enry/v2 v2.6.1 h1:ckFkMVj2NeHpaQDFDiSjanVjNy2IiuMNivhXDB4c5Q0=
|
||||
github.com/go-enry/go-enry/v2 v2.6.1/go.mod h1:GVzIiAytiS5uT/QiuakK7TF1u4xDab87Y8V5EJRpsIQ=
|
||||
github.com/go-enry/go-oniguruma v1.2.1 h1:k8aAMuJfMrqm/56SG2lV9Cfti6tC4x8673aHCcBk+eo=
|
||||
github.com/go-enry/go-oniguruma v1.2.1/go.mod h1:bWDhYP+S6xZQgiRL7wlTScFYBe023B6ilRZbCAD5Hf4=
|
||||
github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4=
|
||||
|
|
|
@ -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.1**.
|
||||
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:
|
||||
|
||||
|
|
|
@ -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: 223c00bb80eff04788e29010f98c5778993d2b2a
|
||||
// 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,10 +97,12 @@ var LanguageByAliasMap = map[string]string{
|
|||
"bluespec": "Bluespec",
|
||||
"bmax": "BlitzMax",
|
||||
"boo": "Boo",
|
||||
"boogie": "Boogie",
|
||||
"bplus": "BlitzBasic",
|
||||
"brainfuck": "Brainfuck",
|
||||
"brightscript": "Brightscript",
|
||||
"bro": "Zeek",
|
||||
"browserslist": "Browserslist",
|
||||
"bsdmake": "Makefile",
|
||||
"byond": "DM",
|
||||
"bzl": "Starlark",
|
||||
|
@ -111,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",
|
||||
|
@ -182,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",
|
||||
|
@ -301,6 +307,7 @@ var LanguageByAliasMap = map[string]string{
|
|||
"handlebars": "Handlebars",
|
||||
"haproxy": "HAProxy",
|
||||
"harbour": "Harbour",
|
||||
"hashicorp_configuration_language": "HCL",
|
||||
"haskell": "Haskell",
|
||||
"haxe": "Haxe",
|
||||
"hbs": "Handlebars",
|
||||
|
@ -333,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",
|
||||
|
@ -369,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",
|
||||
|
@ -493,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",
|
||||
|
@ -502,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",
|
||||
|
@ -519,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",
|
||||
|
@ -569,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",
|
||||
|
@ -636,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",
|
||||
|
|
|
@ -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: 223c00bb80eff04788e29010f98c5778993d2b2a
|
||||
// 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,11 +31,14 @@ 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",
|
||||
"C#": "#178600",
|
||||
"C++": "#f34b7d",
|
||||
|
@ -48,6 +52,7 @@ var LanguagesColor = map[string]string{
|
|||
"Clean": "#3F85AF",
|
||||
"Click": "#E4E6F3",
|
||||
"Clojure": "#db5855",
|
||||
"Closure Templates": "#0d948f",
|
||||
"CoffeeScript": "#244776",
|
||||
"ColdFusion": "#ed2cd6",
|
||||
"ColdFusion CFC": "#ed2cd6",
|
||||
|
@ -114,6 +119,7 @@ var LanguagesColor = map[string]string{
|
|||
"IDL": "#a3522f",
|
||||
"IGOR Pro": "#0000cc",
|
||||
"Idris": "#b30000",
|
||||
"ImageJ Macro": "#99AAFF",
|
||||
"Io": "#a9188d",
|
||||
"Ioke": "#078193",
|
||||
"Isabelle": "#FEFE00",
|
||||
|
@ -138,6 +144,7 @@ var LanguagesColor = map[string]string{
|
|||
"Latte": "#f2a542",
|
||||
"Less": "#1d365d",
|
||||
"Lex": "#DBCA00",
|
||||
"Liquid": "#67b8de",
|
||||
"LiveScript": "#499886",
|
||||
"LookML": "#652B81",
|
||||
"Lua": "#000080",
|
||||
|
@ -158,6 +165,7 @@ var LanguagesColor = map[string]string{
|
|||
"Metal": "#8f14e9",
|
||||
"Mirah": "#c7a938",
|
||||
"Modula-3": "#223388",
|
||||
"Mustache": "#724b3b",
|
||||
"NCL": "#28431f",
|
||||
"NWScript": "#111522",
|
||||
"Nearley": "#990000",
|
||||
|
@ -172,6 +180,7 @@ var LanguagesColor = map[string]string{
|
|||
"Nix": "#7e7eff",
|
||||
"Nu": "#c9df40",
|
||||
"NumPy": "#9C8AF9",
|
||||
"Nunjucks": "#3d8137",
|
||||
"OCaml": "#3be133",
|
||||
"ObjectScript": "#424893",
|
||||
"Objective-C": "#438eff",
|
||||
|
@ -181,6 +190,7 @@ var LanguagesColor = map[string]string{
|
|||
"Omgrofl": "#cabbff",
|
||||
"Opal": "#f7ede0",
|
||||
"OpenQASM": "#AA70FF",
|
||||
"Org": "#77aa99",
|
||||
"Oxygene": "#cdd0e3",
|
||||
"Oz": "#fab738",
|
||||
"P4": "#7055b5",
|
||||
|
@ -222,6 +232,7 @@ var LanguagesColor = map[string]string{
|
|||
"ReScript": "#ed5051",
|
||||
"Reason": "#ff5847",
|
||||
"Rebol": "#358a5b",
|
||||
"Record Jar": "#0673ba",
|
||||
"Red": "#f50000",
|
||||
"Ren'Py": "#ff7f7f",
|
||||
"Ring": "#2D54CB",
|
||||
|
@ -238,6 +249,7 @@ var LanguagesColor = map[string]string{
|
|||
"SaltStack": "#646464",
|
||||
"Sass": "#a53b70",
|
||||
"Scala": "#c22d40",
|
||||
"Scaml": "#bd181a",
|
||||
"Scheme": "#1e4aec",
|
||||
"Self": "#0579aa",
|
||||
"Shell": "#89e051",
|
||||
|
|
|
@ -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: 223c00bb80eff04788e29010f98c5778993d2b2a
|
||||
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
|
||||
|
||||
package data
|
||||
|
||||
// linguist's commit from which files were generated.
|
||||
var LinguistCommit = "223c00bb80eff04788e29010f98c5778993d2b2a"
|
||||
var LinguistCommit = "6aed0bd564f55c4f2d987c2e6035eda7aea26375"
|
||||
|
|
|
@ -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: 223c00bb80eff04788e29010f98c5778993d2b2a
|
||||
// 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{
|
||||
|
|
|
@ -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: 223c00bb80eff04788e29010f98c5778993d2b2a
|
||||
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
|
||||
|
||||
package data
|
||||
|
||||
|
|
|
@ -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: 223c00bb80eff04788e29010f98c5778993d2b2a
|
||||
// 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"},
|
||||
|
@ -368,6 +371,7 @@ var LanguagesByExtension = map[string][]string{
|
|||
".glslf": {"GLSL"},
|
||||
".glslv": {"GLSL"},
|
||||
".gltf": {"JSON"},
|
||||
".glyphs": {"OpenStep Property List"},
|
||||
".gml": {"Game Maker Language", "Gerber Image", "Graph Modeling Language", "XML"},
|
||||
".gms": {"GAMS"},
|
||||
".gmx": {"XML"},
|
||||
|
@ -448,6 +452,7 @@ var LanguagesByExtension = map[string][]string{
|
|||
".idr": {"Idris"},
|
||||
".ig": {"Modula-3"},
|
||||
".ihlp": {"Stata"},
|
||||
".ijm": {"ImageJ Macro"},
|
||||
".ijs": {"J"},
|
||||
".ik": {"Ioke"},
|
||||
".ily": {"LilyPond"},
|
||||
|
@ -499,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"},
|
||||
|
@ -649,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"},
|
||||
|
@ -666,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"},
|
||||
|
@ -827,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"},
|
||||
|
@ -879,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"},
|
||||
|
@ -902,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"},
|
||||
|
@ -1193,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"},
|
||||
|
@ -1227,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"},
|
||||
|
@ -1236,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"},
|
||||
|
@ -1349,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"},
|
||||
|
@ -1371,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"},
|
||||
|
@ -1395,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"},
|
||||
|
@ -1407,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"},
|
||||
|
@ -1466,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"},
|
||||
|
@ -1508,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"},
|
||||
|
@ -1524,7 +1535,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||
"OpenEdge ABL": {".p", ".cls", ".w"},
|
||||
"OpenQASM": {".qasm"},
|
||||
"OpenSCAD": {".scad"},
|
||||
"OpenStep Property List": {".plist"},
|
||||
"OpenStep Property List": {".plist", ".glyphs"},
|
||||
"OpenType Feature File": {".fea"},
|
||||
"Org": {".org"},
|
||||
"Ox": {".ox", ".oxh", ".oxo"},
|
||||
|
@ -1587,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"},
|
||||
|
@ -1706,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"},
|
||||
|
|
|
@ -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: 223c00bb80eff04788e29010f98c5778993d2b2a
|
||||
// Extracted from github/linguist commit: 6aed0bd564f55c4f2d987c2e6035eda7aea26375
|
||||
|
||||
package data
|
||||
|
||||
|
@ -16,6 +16,7 @@ var LanguagesByFilename = map[string][]string{
|
|||
".bash_logout": {"Shell"},
|
||||
".bash_profile": {"Shell"},
|
||||
".bashrc": {"Shell"},
|
||||
".browserslistrc": {"Browserslist"},
|
||||
".bzrignore": {"Ignore List"},
|
||||
".clang-format": {"YAML"},
|
||||
".clang-tidy": {"YAML"},
|
||||
|
@ -29,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"},
|
||||
|
@ -142,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"},
|
||||
|
@ -179,6 +183,7 @@ var LanguagesByFilename = map[string][]string{
|
|||
"bash_logout": {"Shell"},
|
||||
"bash_profile": {"Shell"},
|
||||
"bashrc": {"Shell"},
|
||||
"browserslist": {"Browserslist"},
|
||||
"build.xml": {"Ant Build System"},
|
||||
"buildfile": {"Ruby"},
|
||||
"buildozer.spec": {"INI"},
|
||||
|
@ -217,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
|
@ -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: 223c00bb80eff04788e29010f98c5778993d2b2a
|
||||
// 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",
|
||||
|
|
|
@ -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: 223c00bb80eff04788e29010f98c5778993d2b2a
|
||||
// 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"},
|
||||
|
|
|
@ -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: 223c00bb80eff04788e29010f98c5778993d2b2a
|
||||
// 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",
|
||||
|
|
|
@ -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: 223c00bb80eff04788e29010f98c5778993d2b2a
|
||||
// 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,8 +54,10 @@ var LanguagesType = map[string]int{
|
|||
"BlitzMax": 2,
|
||||
"Bluespec": 2,
|
||||
"Boo": 2,
|
||||
"Boogie": 2,
|
||||
"Brainfuck": 2,
|
||||
"Brightscript": 2,
|
||||
"Browserslist": 1,
|
||||
"C": 2,
|
||||
"C#": 2,
|
||||
"C++": 2,
|
||||
|
@ -214,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,
|
||||
|
@ -227,7 +232,6 @@ var LanguagesType = map[string]int{
|
|||
"JSON5": 1,
|
||||
"JSONLD": 1,
|
||||
"JSONiq": 2,
|
||||
"JSX": 2,
|
||||
"Jasmin": 2,
|
||||
"Java": 2,
|
||||
"Java Properties": 1,
|
||||
|
@ -331,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,
|
||||
|
@ -420,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,
|
||||
|
|
|
@ -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: 223c00bb80eff04788e29010f98c5778993d2b2a
|
||||
// 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$`),
|
||||
|
|
|
@ -258,7 +258,7 @@ github.com/go-chi/chi/middleware
|
|||
# github.com/go-chi/cors v1.1.1
|
||||
## explicit
|
||||
github.com/go-chi/cors
|
||||
# github.com/go-enry/go-enry/v2 v2.6.0
|
||||
# github.com/go-enry/go-enry/v2 v2.6.1
|
||||
## explicit
|
||||
github.com/go-enry/go-enry/v2
|
||||
github.com/go-enry/go-enry/v2/data
|
||||
|
|
Loading…
Reference in New Issue