mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-12-04 15:50:35 +00:00
Merge pull request #137 from go-enry/feature/sync-linguist-d7799da8
Update Linguist to v7.23.0
This commit is contained in:
commit
467ac4d2d3
@ -156,7 +156,7 @@ Generated Rust bindings using a C static library are available at https://github
|
||||
|
||||
## Divergences from Linguist
|
||||
|
||||
The `enry` library is based on the data from `github/linguist` version **v7.21.0**.
|
||||
The `enry` library is based on the data from `github/linguist` version **v7.23.0**.
|
||||
|
||||
Parsing [linguist/samples](https://github.com/github/linguist/tree/master/samples) the following `enry` results are different from the Linguist:
|
||||
|
||||
@ -174,6 +174,10 @@ Parsing [linguist/samples](https://github.com/github/linguist/tree/master/sample
|
||||
|
||||
- [Heuristics for ".csc", ".gsc" and ".gsh" extension](https://github.com/github/linguist/blob/7469c7982d93f2ad922230d712f586a353dc1a42/lib/linguist/heuristics.yml#L650-L651) in GSC could not be parsed, due to unsupported non-backtracking subexpressions in RE2 regexp engine.
|
||||
|
||||
- [Heuristic for ".txt"](https://github.com/github/linguist/blob/bf853f1c663903e3ee35935189760191f1c45e1c/lib/linguist/heuristics.yml#L680-L702) detecting 'Adblock Filter List' regexp syntax not supported by RE2
|
||||
|
||||
- [IsVendor('bootstrap.css') == false](https://github.com/github/linguist/blob/v7.23.0/lib/linguist/vendor.yml#L77) v7.23 first unsupported RE syntax outside content heuristics
|
||||
|
||||
- As of [Linguist v5.3.2](https://github.com/github/linguist/releases/tag/v5.3.2) it is using [flex-based scanner in C for tokenization](https://github.com/github/linguist/pull/3846). Enry still uses [extract_token](https://github.com/github/linguist/pull/3846/files#diff-d5179df0b71620e3fac4535cd1368d15L60) regex-based algorithm. See [#193](https://github.com/src-d/enry/issues/193).
|
||||
|
||||
- Bayesian classifier can't distinguish "SQL" from "PLpgSQL. See [#194](https://github.com/src-d/enry/issues/194).
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -21,9 +21,14 @@ var LanguageByAliasMap = map[string]string{
|
||||
"actionscript": "ActionScript",
|
||||
"actionscript3": "ActionScript",
|
||||
"actionscript_3": "ActionScript",
|
||||
"ad_block": "Adblock Filter List",
|
||||
"ad_block_filters": "Adblock Filter List",
|
||||
"ada": "Ada",
|
||||
"ada2005": "Ada",
|
||||
"ada95": "Ada",
|
||||
"adb": "Adblock Filter List",
|
||||
"adblock": "Adblock Filter List",
|
||||
"adblock_filter_list": "Adblock Filter List",
|
||||
"adobe_composite_font_metrics": "Adobe Font Metrics",
|
||||
"adobe_font_metrics": "Adobe Font Metrics",
|
||||
"adobe_multiple_font_metrics": "Adobe Font Metrics",
|
||||
@ -257,6 +262,7 @@ var LanguageByAliasMap = map[string]string{
|
||||
"elisp": "Emacs Lisp",
|
||||
"elixir": "Elixir",
|
||||
"elm": "Elm",
|
||||
"elvish": "Elvish",
|
||||
"emacs": "Emacs Lisp",
|
||||
"emacs_lisp": "Emacs Lisp",
|
||||
"emacs_muse": "Muse",
|
||||
@ -307,6 +313,8 @@ var LanguageByAliasMap = map[string]string{
|
||||
"gdscript": "GDScript",
|
||||
"gedcom": "GEDCOM",
|
||||
"gemfile.lock": "Gemfile.lock",
|
||||
"gemini": "Gemini",
|
||||
"gemtext": "Gemini",
|
||||
"genero": "Genero",
|
||||
"genero_forms": "Genero Forms",
|
||||
"genie": "Genie",
|
||||
@ -371,6 +379,7 @@ var LanguageByAliasMap = map[string]string{
|
||||
"help": "Vim Help File",
|
||||
"hiveql": "HiveQL",
|
||||
"hlsl": "HLSL",
|
||||
"hocon": "HOCON",
|
||||
"holyc": "HolyC",
|
||||
"hoon": "hoon",
|
||||
"html": "HTML",
|
||||
@ -549,6 +558,7 @@ var LanguageByAliasMap = map[string]string{
|
||||
"moonscript": "MoonScript",
|
||||
"motoko": "Motoko",
|
||||
"motorola_68k_assembly": "Motorola 68K Assembly",
|
||||
"move": "Move",
|
||||
"mps": "JetBrains MPS",
|
||||
"mql4": "MQL4",
|
||||
"mql5": "MQL5",
|
||||
@ -560,6 +570,7 @@ var LanguageByAliasMap = map[string]string{
|
||||
"mustache": "Mustache",
|
||||
"myghty": "Myghty",
|
||||
"nanorc": "nanorc",
|
||||
"nasal": "Nasal",
|
||||
"nasl": "NASL",
|
||||
"nasm": "Assembly",
|
||||
"ncl": "NCL",
|
||||
@ -760,6 +771,7 @@ var LanguageByAliasMap = map[string]string{
|
||||
"roff": "Roff",
|
||||
"roff_manpage": "Roff Manpage",
|
||||
"rouge": "Rouge",
|
||||
"routeros_script": "RouterOS Script",
|
||||
"rpc": "RPC",
|
||||
"rpcgen": "RPC",
|
||||
"rpgle": "RPGLE",
|
||||
@ -900,6 +912,8 @@ var LanguageByAliasMap = map[string]string{
|
||||
"vbscript": "VBScript",
|
||||
"vcl": "VCL",
|
||||
"vdf": "Valve Data Format",
|
||||
"velocity": "Velocity Template Language",
|
||||
"velocity_template_language": "Velocity Template Language",
|
||||
"verilog": "Verilog",
|
||||
"vhdl": "VHDL",
|
||||
"vim": "Vim Script",
|
||||
@ -914,6 +928,7 @@ var LanguageByAliasMap = map[string]string{
|
||||
"visual_basic_for_applications": "VBA",
|
||||
"vlang": "V",
|
||||
"volt": "Volt",
|
||||
"vtl": "Velocity Template Language",
|
||||
"vtt": "WebVTT",
|
||||
"vue": "Vue",
|
||||
"vyper": "Vyper",
|
||||
@ -942,6 +957,8 @@ var LanguageByAliasMap = map[string]string{
|
||||
"wolfram_language": "Mathematica",
|
||||
"wollok": "Wollok",
|
||||
"world_of_warcraft_addon_data": "World of Warcraft Addon Data",
|
||||
"wren": "Wren",
|
||||
"wrenlang": "Wren",
|
||||
"wsdl": "XML",
|
||||
"x10": "X10",
|
||||
"x_bitmap": "X BitMap",
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -20,6 +20,7 @@ var LanguagesColor = map[string]string{
|
||||
"ATS": "#1ac620",
|
||||
"ActionScript": "#882B0F",
|
||||
"Ada": "#02f88c",
|
||||
"Adblock Filter List": "#800000",
|
||||
"Adobe Font Metrics": "#fa0f00",
|
||||
"Agda": "#315665",
|
||||
"Alloy": "#64C800",
|
||||
@ -132,6 +133,7 @@ var LanguagesColor = map[string]string{
|
||||
"Eiffel": "#4d6977",
|
||||
"Elixir": "#6e4a7e",
|
||||
"Elm": "#60B5CC",
|
||||
"Elvish": "#55BB55",
|
||||
"Emacs Lisp": "#c065db",
|
||||
"EmberScript": "#FFF4F3",
|
||||
"Erlang": "#B83998",
|
||||
@ -165,6 +167,7 @@ var LanguagesColor = map[string]string{
|
||||
"GSC": "#FF6800",
|
||||
"Game Maker Language": "#71b417",
|
||||
"Gemfile.lock": "#701516",
|
||||
"Gemini": "#ff6900",
|
||||
"Genero": "#63408e",
|
||||
"Genero Forms": "#d8df39",
|
||||
"Genie": "#fb855d",
|
||||
@ -193,6 +196,7 @@ var LanguagesColor = map[string]string{
|
||||
"Groovy Server Pages": "#4298b8",
|
||||
"HAProxy": "#106da9",
|
||||
"HLSL": "#aace60",
|
||||
"HOCON": "#9ff8ee",
|
||||
"HTML": "#e34c26",
|
||||
"HTML+ECR": "#2e1052",
|
||||
"HTML+EEX": "#6e4a7e",
|
||||
@ -299,10 +303,12 @@ var LanguagesColor = map[string]string{
|
||||
"MoonScript": "#ff4585",
|
||||
"Motoko": "#fbb03b",
|
||||
"Motorola 68K Assembly": "#005daa",
|
||||
"Move": "#4a137a",
|
||||
"Mustache": "#724b3b",
|
||||
"NCL": "#28431f",
|
||||
"NPM Config": "#cb3837",
|
||||
"NWScript": "#111522",
|
||||
"Nasal": "#1d2c4e",
|
||||
"Nearley": "#990000",
|
||||
"Nemerle": "#3d3c6e",
|
||||
"NetLinx": "#0aa0ff",
|
||||
@ -397,6 +403,7 @@ var LanguagesColor = map[string]string{
|
||||
"Roff": "#ecdebe",
|
||||
"Roff Manpage": "#ecdebe",
|
||||
"Rouge": "#cc0088",
|
||||
"RouterOS Script": "#DE3941",
|
||||
"Ruby": "#701516",
|
||||
"Rust": "#dea584",
|
||||
"SAS": "#B34936",
|
||||
@ -470,6 +477,7 @@ var LanguagesColor = map[string]string{
|
||||
"VHDL": "#adb2cb",
|
||||
"Vala": "#a56de2",
|
||||
"Valve Data Format": "#f26025",
|
||||
"Velocity Template Language": "#507cff",
|
||||
"Verilog": "#b2b7f8",
|
||||
"Vim Help File": "#199f4b",
|
||||
"Vim Script": "#199f4b",
|
||||
@ -486,6 +494,7 @@ var LanguagesColor = map[string]string{
|
||||
"Witcher Script": "#ff0000",
|
||||
"Wollok": "#a23738",
|
||||
"World of Warcraft Addon Data": "#f7e43f",
|
||||
"Wren": "#383838",
|
||||
"X10": "#4B6BEF",
|
||||
"XC": "#99DA07",
|
||||
"XML": "#0060ac",
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
// linguist's commit from which files were generated.
|
||||
var LinguistCommit = "d7799da826e01acdb8f84694d33116dccaabe9c2"
|
||||
var LinguistCommit = "bf853f1c663903e3ee35935189760191f1c45e1c"
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -647,6 +647,20 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileMultiline(`\((def|defn|defmacro|let)\s`),
|
||||
),
|
||||
},
|
||||
".bf": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Beef"),
|
||||
regex.MustCompileMultiline(`(?-m)^\s*using\s+(System|Beefy)(\.(.*))?;\s*$`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("HyPhy"),
|
||||
regex.MustCompileMultiline(`(?-m)^\s*#include\s+".*";\s*$|\sfprintf\s*\(`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Brainfuck"),
|
||||
regex.MustCompileMultiline(`(>\+>|>\+<)`),
|
||||
),
|
||||
},
|
||||
".bi": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("FreeBasic"),
|
||||
@ -712,7 +726,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("C#"),
|
||||
regex.MustCompileMultiline(`^(\s*namespace\s*[\w\.]+\s*{|\s*\/\/)`),
|
||||
regex.MustCompileMultiline(`^\s*(using\s+[A-Z][\s\w.]+;|namespace\s*[\w\.]+\s*({|;)|\/\/)`),
|
||||
),
|
||||
},
|
||||
".csc": &Heuristics{
|
||||
@ -864,6 +878,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileMultiline(`^-?[a-zA-Z][a-zA-Z0-9_-]* *=|\{\$-?[a-zA-Z][-\w]*(?:\.[a-zA-Z][-\w]*)?\}`),
|
||||
),
|
||||
},
|
||||
".g": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("GAP"),
|
||||
regex.MustCompileMultiline(`\s*(Declare|BindGlobal|KeyDependentOperation|Install(Method|GlobalFunction)|SetPackageInfo)`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("G-code"),
|
||||
regex.MustCompileMultiline(`^[MG][0-9]+\n`),
|
||||
),
|
||||
},
|
||||
".gd": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("GAP"),
|
||||
@ -1356,7 +1380,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("IDL"),
|
||||
regex.MustCompileMultiline(`^\s*function[ \w,]+$`),
|
||||
regex.MustCompileMultiline(`^\s*(?i:function|pro|compile_opt) \w[ \w,:]*$`),
|
||||
),
|
||||
},
|
||||
".properties": &Heuristics{
|
||||
@ -1486,6 +1510,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileMultiline(`(^\s*import (scala|java)\.|^\s*class\b)`),
|
||||
),
|
||||
},
|
||||
".scd": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("SuperCollider"),
|
||||
regex.MustCompileMultiline(`(?i:\^(this|super)\.|^\s*(~\w+\s*=\.|SynthDef\b))`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Markdown"),
|
||||
regex.MustCompileMultiline(`^#+\s+(NAME|SYNOPSIS|DESCRIPTION)`),
|
||||
),
|
||||
},
|
||||
".sol": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Solidity"),
|
||||
@ -1562,6 +1596,12 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileMultiline(`^\s*%[ \t]+|^\s*var\s+\w+(\s*:\s*\w+)?\s*:=\s*\w+`),
|
||||
),
|
||||
},
|
||||
".tag": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Java Server Pages"),
|
||||
regex.MustCompileMultiline(`<%[@!=\s]?\s*(taglib|tag|include|attribute|variable)\s`),
|
||||
),
|
||||
},
|
||||
".toc": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("World of Warcraft Addon Data"),
|
||||
@ -1605,6 +1645,28 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("Vim Help File"),
|
||||
regex.MustCompileRuby(`(?:(?:^|[ \t])(?:vi|Vi(?=m))(?:m[<=>]?[0-9]+|m)?|[ \t]ex)(?=:(?=[ \t]*set?[ \t][^\r\n:]+:)|:(?![ \t]*set?[ \t]))(?:(?:[ \t]*:[ \t]*|[ \t])\w*(?:[ \t]*=(?:[^\\\s]|\\.)*)?)*[ \t:](?:filetype|ft|syntax)[ \t]*=(help)(?=$|\s|:)`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Adblock Filter List"),
|
||||
regex.MustCompileRuby(`(?x)\A
|
||||
\[
|
||||
(?<version>
|
||||
(?:
|
||||
[Aa]d[Bb]lock
|
||||
(?:[ \t][Pp]lus)?
|
||||
|
|
||||
u[Bb]lock
|
||||
(?:[ \t][Oo]rigin)?
|
||||
|
|
||||
[Aa]d[Gg]uard
|
||||
)
|
||||
(?:[ \t] \d+(?:\.\d+)*+)?
|
||||
)
|
||||
(?:
|
||||
[ \t]?;[ \t]?
|
||||
\g<version>
|
||||
)*+
|
||||
\]`),
|
||||
),
|
||||
rule.Always(
|
||||
rule.MatchingLanguages("Text"),
|
||||
),
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -117,7 +117,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".bdy": {"PLSQL"},
|
||||
".be": {"Berry"},
|
||||
".befunge": {"Befunge"},
|
||||
".bf": {"Beef", "Brainfuck", "HyPhy"},
|
||||
".bf": {"Beef", "Befunge", "Brainfuck", "HyPhy"},
|
||||
".bi": {"FreeBasic"},
|
||||
".bib": {"BibTeX"},
|
||||
".bibtex": {"BibTeX"},
|
||||
@ -305,6 +305,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".eliom": {"OCaml"},
|
||||
".eliomi": {"OCaml"},
|
||||
".elm": {"Elm"},
|
||||
".elv": {"Elvish"},
|
||||
".em": {"EmberScript"},
|
||||
".emacs": {"Emacs Lisp"},
|
||||
".emacs.desktop": {"Emacs Lisp"},
|
||||
@ -402,6 +403,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".glslv": {"GLSL"},
|
||||
".gltf": {"JSON"},
|
||||
".glyphs": {"OpenStep Property List"},
|
||||
".gmi": {"Gemini"},
|
||||
".gml": {"Game Maker Language", "Gerber Image", "Graph Modeling Language", "XML"},
|
||||
".gms": {"GAMS"},
|
||||
".gmx": {"XML"},
|
||||
@ -457,6 +459,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".hlean": {"Lean"},
|
||||
".hlsl": {"HLSL"},
|
||||
".hlsli": {"HLSL"},
|
||||
".hocon": {"HOCON"},
|
||||
".hoon": {"hoon"},
|
||||
".hpp": {"C++"},
|
||||
".hqf": {"SQF"},
|
||||
@ -556,6 +559,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".kit": {"Kit"},
|
||||
".kml": {"XML"},
|
||||
".kojo": {"Scala"},
|
||||
".kql": {"Kusto"},
|
||||
".krl": {"KRL"},
|
||||
".ksh": {"Shell"},
|
||||
".ksy": {"Kaitai Struct"},
|
||||
@ -680,6 +684,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".monkey2": {"Monkey"},
|
||||
".moo": {"Mercury", "Moocode"},
|
||||
".moon": {"MoonScript"},
|
||||
".move": {"Move"},
|
||||
".mpl": {"JetBrains MPS"},
|
||||
".mps": {"JetBrains MPS"},
|
||||
".mq4": {"MQL4"},
|
||||
@ -706,6 +711,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".myt": {"Myghty"},
|
||||
".n": {"Nemerle", "Roff"},
|
||||
".nanorc": {"nanorc"},
|
||||
".nas": {"Assembly", "Nasal"},
|
||||
".nasl": {"NASL"},
|
||||
".nasm": {"Assembly"},
|
||||
".natvis": {"XML"},
|
||||
@ -888,6 +894,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".q": {"HiveQL", "q"},
|
||||
".qasm": {"OpenQASM"},
|
||||
".qbs": {"QML"},
|
||||
".qhelp": {"XML"},
|
||||
".ql": {"CodeQL"},
|
||||
".qll": {"CodeQL"},
|
||||
".qmd": {"RMarkdown"},
|
||||
@ -958,7 +965,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".rq": {"SPARQL"},
|
||||
".rs": {"RenderScript", "Rust", "XML"},
|
||||
".rs.in": {"Rust"},
|
||||
".rsc": {"Rascal"},
|
||||
".rsc": {"Rascal", "RouterOS Script"},
|
||||
".rsh": {"RenderScript"},
|
||||
".rss": {"XML"},
|
||||
".rst": {"reStructuredText"},
|
||||
@ -1083,6 +1090,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".t": {"Perl", "Raku", "Terra", "Turing"},
|
||||
".tab": {"SQL"},
|
||||
".tac": {"Python"},
|
||||
".tag": {"Java Server Pages"},
|
||||
".talon": {"Talon"},
|
||||
".targets": {"XML"},
|
||||
".tcc": {"C++"},
|
||||
@ -1134,7 +1142,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".twig": {"Twig"},
|
||||
".txi": {"Texinfo"},
|
||||
".txl": {"TXL"},
|
||||
".txt": {"Text", "Vim Help File"},
|
||||
".txt": {"Adblock Filter List", "Text", "Vim Help File"},
|
||||
".uc": {"UnrealScript"},
|
||||
".udf": {"SQL"},
|
||||
".udo": {"Csound"},
|
||||
@ -1183,6 +1191,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".vsixmanifest": {"XML"},
|
||||
".vssettings": {"XML"},
|
||||
".vstemplate": {"XML"},
|
||||
".vtl": {"Velocity Template Language"},
|
||||
".vtt": {"WebVTT"},
|
||||
".vue": {"Vue"},
|
||||
".vw": {"PLSQL"},
|
||||
@ -1208,6 +1217,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".wlua": {"Lua"},
|
||||
".workbook": {"Markdown"},
|
||||
".workflow": {"HCL", "XML"},
|
||||
".wren": {"Wren"},
|
||||
".ws": {"Witcher Script"},
|
||||
".wsdl": {"XML"},
|
||||
".wsf": {"XML"},
|
||||
@ -1315,6 +1325,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"ATS": {".dats", ".hats", ".sats"},
|
||||
"ActionScript": {".as"},
|
||||
"Ada": {".adb", ".ada", ".ads"},
|
||||
"Adblock Filter List": {".txt"},
|
||||
"Adobe Font Metrics": {".afm"},
|
||||
"Agda": {".agda"},
|
||||
"Alloy": {".als"},
|
||||
@ -1328,7 +1339,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Arc": {".arc"},
|
||||
"AsciiDoc": {".asciidoc", ".adoc", ".asc"},
|
||||
"AspectJ": {".aj"},
|
||||
"Assembly": {".asm", ".a51", ".i", ".inc", ".nasm"},
|
||||
"Assembly": {".asm", ".a51", ".i", ".inc", ".nas", ".nasm"},
|
||||
"Astro": {".astro"},
|
||||
"Asymptote": {".asy"},
|
||||
"Augeas": {".aug"},
|
||||
@ -1340,7 +1351,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Ballerina": {".bal"},
|
||||
"Batchfile": {".bat", ".cmd"},
|
||||
"Beef": {".bf"},
|
||||
"Befunge": {".befunge"},
|
||||
"Befunge": {".befunge", ".bf"},
|
||||
"Berry": {".be"},
|
||||
"BibTeX": {".bib", ".bibtex"},
|
||||
"Bicep": {".bicep"},
|
||||
@ -1444,6 +1455,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Eiffel": {".e"},
|
||||
"Elixir": {".ex", ".exs"},
|
||||
"Elm": {".elm"},
|
||||
"Elvish": {".elv"},
|
||||
"Emacs Lisp": {".el", ".emacs", ".emacs.desktop"},
|
||||
"EmberScript": {".em", ".emberscript"},
|
||||
"Erlang": {".erl", ".app.src", ".es", ".escript", ".hrl", ".xrl", ".yrl"},
|
||||
@ -1480,6 +1492,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"GN": {".gn", ".gni"},
|
||||
"GSC": {".gsc", ".csc", ".gsh"},
|
||||
"Game Maker Language": {".gml"},
|
||||
"Gemini": {".gmi"},
|
||||
"Genero": {".4gl"},
|
||||
"Genero Forms": {".per"},
|
||||
"Genie": {".gs"},
|
||||
@ -1508,6 +1521,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"HAProxy": {".cfg"},
|
||||
"HCL": {".hcl", ".nomad", ".tf", ".tfvars", ".workflow"},
|
||||
"HLSL": {".hlsl", ".cginc", ".fx", ".fxh", ".hlsli"},
|
||||
"HOCON": {".hocon"},
|
||||
"HTML": {".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml"},
|
||||
"HTML+ECR": {".ecr"},
|
||||
"HTML+EEX": {".eex", ".html.heex", ".html.leex"},
|
||||
@ -1549,7 +1563,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Jasmin": {".j"},
|
||||
"Java": {".java", ".jav"},
|
||||
"Java Properties": {".properties"},
|
||||
"Java Server Pages": {".jsp"},
|
||||
"Java Server Pages": {".jsp", ".tag"},
|
||||
"JavaScript": {".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".jsx", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib"},
|
||||
"JavaScript+ERB": {".js.erb"},
|
||||
"Jest Snapshot": {".snap"},
|
||||
@ -1569,7 +1583,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"KiCad Schematic": {".kicad_sch", ".sch"},
|
||||
"Kit": {".kit"},
|
||||
"Kotlin": {".kt", ".ktm", ".kts"},
|
||||
"Kusto": {".csl"},
|
||||
"Kusto": {".csl", ".kql"},
|
||||
"LFE": {".lfe"},
|
||||
"LLVM": {".ll"},
|
||||
"LOLCODE": {".lol"},
|
||||
@ -1633,6 +1647,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"MoonScript": {".moon"},
|
||||
"Motoko": {".mo"},
|
||||
"Motorola 68K Assembly": {".asm", ".i", ".inc", ".s", ".x68"},
|
||||
"Move": {".move"},
|
||||
"Muse": {".muse"},
|
||||
"Mustache": {".mustache"},
|
||||
"Myghty": {".myt"},
|
||||
@ -1642,6 +1657,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"NL": {".nl"},
|
||||
"NSIS": {".nsi", ".nsh"},
|
||||
"NWScript": {".nss"},
|
||||
"Nasal": {".nas"},
|
||||
"Nearley": {".ne", ".nearley"},
|
||||
"Nemerle": {".n"},
|
||||
"NetLinx": {".axs", ".axi"},
|
||||
@ -1760,6 +1776,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Roff": {".roff", ".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3p", ".3pm", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".l", ".man", ".mdoc", ".me", ".ms", ".n", ".nr", ".rno", ".tmac"},
|
||||
"Roff Manpage": {".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3p", ".3pm", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".man", ".mdoc"},
|
||||
"Rouge": {".rg"},
|
||||
"RouterOS Script": {".rsc"},
|
||||
"Ruby": {".rb", ".builder", ".eye", ".fcgi", ".gemspec", ".god", ".jbuilder", ".mspec", ".pluginspec", ".podspec", ".prawn", ".rabl", ".rake", ".rbi", ".rbuild", ".rbw", ".rbx", ".ru", ".ruby", ".spec", ".thor", ".watchr"},
|
||||
"Rust": {".rs", ".rs.in"},
|
||||
"SAS": {".sas"},
|
||||
@ -1847,6 +1864,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"VHDL": {".vhdl", ".vhd", ".vhf", ".vhi", ".vho", ".vhs", ".vht", ".vhw"},
|
||||
"Vala": {".vala", ".vapi"},
|
||||
"Valve Data Format": {".vdf"},
|
||||
"Velocity Template Language": {".vtl"},
|
||||
"Verilog": {".v", ".veo"},
|
||||
"Vim Help File": {".txt"},
|
||||
"Vim Script": {".vim", ".vba", ".vimrc", ".vmb"},
|
||||
@ -1868,11 +1886,12 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Witcher Script": {".ws"},
|
||||
"Wollok": {".wlk"},
|
||||
"World of Warcraft Addon Data": {".toc"},
|
||||
"Wren": {".wren"},
|
||||
"X BitMap": {".xbm"},
|
||||
"X PixMap": {".xpm", ".pm"},
|
||||
"X10": {".x10"},
|
||||
"XC": {".xc"},
|
||||
"XML": {".xml", ".adml", ".admx", ".ant", ".axaml", ".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", ".hzp", ".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", ".xmp", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
|
||||
"XML": {".xml", ".adml", ".admx", ".ant", ".axaml", ".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", ".hzp", ".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", ".qhelp", ".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", ".xmp", ".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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
|
9317
data/frequencies.go
9317
data/frequencies.go
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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -59,7 +59,6 @@ var LanguagesGroup = map[string]string{
|
||||
"Roff Manpage": "Roff",
|
||||
"SSH Config": "INI",
|
||||
"STON": "Smalltalk",
|
||||
"SugarSS": "CSS",
|
||||
"TSX": "TypeScript",
|
||||
"Tcsh": "Shell",
|
||||
"Unified Parallel C": "C",
|
||||
|
11
data/id.go
11
data/id.go
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -23,6 +23,7 @@ var IDByLanguage = map[string]int{
|
||||
"ATS": 9,
|
||||
"ActionScript": 10,
|
||||
"Ada": 11,
|
||||
"Adblock Filter List": 884614762,
|
||||
"Adobe Font Metrics": 147198098,
|
||||
"Agda": 12,
|
||||
"Alloy": 13,
|
||||
@ -159,6 +160,7 @@ var IDByLanguage = map[string]int{
|
||||
"Eiffel": 99,
|
||||
"Elixir": 100,
|
||||
"Elm": 101,
|
||||
"Elvish": 570996448,
|
||||
"Emacs Lisp": 102,
|
||||
"EmberScript": 103,
|
||||
"Erlang": 104,
|
||||
@ -196,6 +198,7 @@ var IDByLanguage = map[string]int{
|
||||
"GSC": 257856279,
|
||||
"Game Maker Language": 125,
|
||||
"Gemfile.lock": 907065713,
|
||||
"Gemini": 310828396,
|
||||
"Genero": 986054050,
|
||||
"Genero Forms": 902995658,
|
||||
"Genie": 792408528,
|
||||
@ -228,6 +231,7 @@ var IDByLanguage = map[string]int{
|
||||
"HAProxy": 366607477,
|
||||
"HCL": 144,
|
||||
"HLSL": 145,
|
||||
"HOCON": 679725279,
|
||||
"HTML": 146,
|
||||
"HTML+ECR": 148,
|
||||
"HTML+EEX": 149,
|
||||
@ -357,6 +361,7 @@ var IDByLanguage = map[string]int{
|
||||
"MoonScript": 238,
|
||||
"Motoko": 202937027,
|
||||
"Motorola 68K Assembly": 477582706,
|
||||
"Move": 638334599,
|
||||
"Muse": 474864066,
|
||||
"Mustache": 638334590,
|
||||
"Myghty": 239,
|
||||
@ -367,6 +372,7 @@ var IDByLanguage = map[string]int{
|
||||
"NPM Config": 685022663,
|
||||
"NSIS": 242,
|
||||
"NWScript": 731233819,
|
||||
"Nasal": 178322513,
|
||||
"Nearley": 521429430,
|
||||
"Nemerle": 243,
|
||||
"NetLinx": 244,
|
||||
@ -492,6 +498,7 @@ var IDByLanguage = map[string]int{
|
||||
"Roff": 141,
|
||||
"Roff Manpage": 612669833,
|
||||
"Rouge": 325,
|
||||
"RouterOS Script": 592853203,
|
||||
"Ruby": 326,
|
||||
"Rust": 327,
|
||||
"SAS": 328,
|
||||
@ -584,6 +591,7 @@ var IDByLanguage = map[string]int{
|
||||
"VHDL": 385,
|
||||
"Vala": 386,
|
||||
"Valve Data Format": 544060961,
|
||||
"Velocity Template Language": 292377326,
|
||||
"Verilog": 387,
|
||||
"Vim Help File": 508563686,
|
||||
"Vim Script": 388,
|
||||
@ -606,6 +614,7 @@ var IDByLanguage = map[string]int{
|
||||
"Witcher Script": 686821385,
|
||||
"Wollok": 632745969,
|
||||
"World of Warcraft Addon Data": 396,
|
||||
"Wren": 713580619,
|
||||
"X BitMap": 782911107,
|
||||
"X Font Directory Index": 208700028,
|
||||
"X PixMap": 781846279,
|
||||
|
@ -1,10 +1,11 @@
|
||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
var LanguagesByInterpreter = map[string][]string{
|
||||
"M2": {"Macaulay2"},
|
||||
"RouterOS": {"RouterOS Script"},
|
||||
"Rscript": {"R"},
|
||||
"aidl": {"AIDL"},
|
||||
"apl": {"APL"},
|
||||
@ -37,6 +38,7 @@ var LanguagesByInterpreter = map[string][]string{
|
||||
"dyalog": {"APL"},
|
||||
"ecl": {"Common Lisp"},
|
||||
"elixir": {"Elixir"},
|
||||
"elvish": {"Elvish"},
|
||||
"escript": {"Erlang"},
|
||||
"eui": {"Euphoria"},
|
||||
"euiw": {"Euphoria"},
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -436,6 +436,30 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
Wrap: false,
|
||||
LanguageID: 11,
|
||||
},
|
||||
884614762: LanguageInfo{
|
||||
Name: "Adblock Filter List",
|
||||
FSName: "",
|
||||
Type: TypeForString("data"),
|
||||
Color: "#800000",
|
||||
Group: "",
|
||||
Aliases: []string{
|
||||
"ad block filters",
|
||||
"ad block",
|
||||
"adb",
|
||||
"adblock",
|
||||
},
|
||||
Extensions: []string{
|
||||
".txt",
|
||||
},
|
||||
Interpreters: []string{},
|
||||
Filenames: []string{},
|
||||
MimeType: "",
|
||||
TMScope: "text.adblock",
|
||||
AceMode: "text",
|
||||
CodeMirrorMode: "",
|
||||
Wrap: false,
|
||||
LanguageID: 884614762,
|
||||
},
|
||||
147198098: LanguageInfo{
|
||||
Name: "Adobe Font Metrics",
|
||||
FSName: "",
|
||||
@ -768,6 +792,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
".a51",
|
||||
".i",
|
||||
".inc",
|
||||
".nas",
|
||||
".nasm",
|
||||
},
|
||||
Interpreters: []string{},
|
||||
@ -1021,6 +1046,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
Aliases: []string{},
|
||||
Extensions: []string{
|
||||
".befunge",
|
||||
".bf",
|
||||
},
|
||||
Interpreters: []string{},
|
||||
Filenames: []string{},
|
||||
@ -3312,6 +3338,27 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
Wrap: false,
|
||||
LanguageID: 101,
|
||||
},
|
||||
570996448: LanguageInfo{
|
||||
Name: "Elvish",
|
||||
FSName: "",
|
||||
Type: TypeForString("programming"),
|
||||
Color: "#55BB55",
|
||||
Group: "",
|
||||
Aliases: []string{},
|
||||
Extensions: []string{
|
||||
".elv",
|
||||
},
|
||||
Interpreters: []string{
|
||||
"elvish",
|
||||
},
|
||||
Filenames: []string{},
|
||||
MimeType: "",
|
||||
TMScope: "source.elvish",
|
||||
AceMode: "text",
|
||||
CodeMirrorMode: "",
|
||||
Wrap: false,
|
||||
LanguageID: 570996448,
|
||||
},
|
||||
102: LanguageInfo{
|
||||
Name: "Emacs Lisp",
|
||||
FSName: "",
|
||||
@ -4122,6 +4169,27 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
Wrap: false,
|
||||
LanguageID: 907065713,
|
||||
},
|
||||
310828396: LanguageInfo{
|
||||
Name: "Gemini",
|
||||
FSName: "",
|
||||
Type: TypeForString("prose"),
|
||||
Color: "#ff6900",
|
||||
Group: "",
|
||||
Aliases: []string{
|
||||
"gemtext",
|
||||
},
|
||||
Extensions: []string{
|
||||
".gmi",
|
||||
},
|
||||
Interpreters: []string{},
|
||||
Filenames: []string{},
|
||||
MimeType: "",
|
||||
TMScope: "source.gemini",
|
||||
AceMode: "text",
|
||||
CodeMirrorMode: "",
|
||||
Wrap: true,
|
||||
LanguageID: 310828396,
|
||||
},
|
||||
986054050: LanguageInfo{
|
||||
Name: "Genero",
|
||||
FSName: "",
|
||||
@ -4815,6 +4883,25 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
Wrap: false,
|
||||
LanguageID: 145,
|
||||
},
|
||||
679725279: LanguageInfo{
|
||||
Name: "HOCON",
|
||||
FSName: "",
|
||||
Type: TypeForString("data"),
|
||||
Color: "#9ff8ee",
|
||||
Group: "",
|
||||
Aliases: []string{},
|
||||
Extensions: []string{
|
||||
".hocon",
|
||||
},
|
||||
Interpreters: []string{},
|
||||
Filenames: []string{},
|
||||
MimeType: "",
|
||||
TMScope: "source.hocon",
|
||||
AceMode: "text",
|
||||
CodeMirrorMode: "",
|
||||
Wrap: false,
|
||||
LanguageID: 679725279,
|
||||
},
|
||||
146: LanguageInfo{
|
||||
Name: "HTML",
|
||||
FSName: "",
|
||||
@ -5815,6 +5902,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
},
|
||||
Extensions: []string{
|
||||
".jsp",
|
||||
".tag",
|
||||
},
|
||||
Interpreters: []string{},
|
||||
Filenames: []string{},
|
||||
@ -6274,6 +6362,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
Aliases: []string{},
|
||||
Extensions: []string{
|
||||
".csl",
|
||||
".kql",
|
||||
},
|
||||
Interpreters: []string{},
|
||||
Filenames: []string{},
|
||||
@ -7677,6 +7766,25 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
Wrap: false,
|
||||
LanguageID: 477582706,
|
||||
},
|
||||
638334599: LanguageInfo{
|
||||
Name: "Move",
|
||||
FSName: "",
|
||||
Type: TypeForString("programming"),
|
||||
Color: "#4a137a",
|
||||
Group: "",
|
||||
Aliases: []string{},
|
||||
Extensions: []string{
|
||||
".move",
|
||||
},
|
||||
Interpreters: []string{},
|
||||
Filenames: []string{},
|
||||
MimeType: "",
|
||||
TMScope: "source.move",
|
||||
AceMode: "text",
|
||||
CodeMirrorMode: "",
|
||||
Wrap: false,
|
||||
LanguageID: 638334599,
|
||||
},
|
||||
474864066: LanguageInfo{
|
||||
Name: "Muse",
|
||||
FSName: "",
|
||||
@ -7877,6 +7985,25 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
Wrap: false,
|
||||
LanguageID: 731233819,
|
||||
},
|
||||
178322513: LanguageInfo{
|
||||
Name: "Nasal",
|
||||
FSName: "",
|
||||
Type: TypeForString("programming"),
|
||||
Color: "#1d2c4e",
|
||||
Group: "",
|
||||
Aliases: []string{},
|
||||
Extensions: []string{
|
||||
".nas",
|
||||
},
|
||||
Interpreters: []string{},
|
||||
Filenames: []string{},
|
||||
MimeType: "",
|
||||
TMScope: "none",
|
||||
AceMode: "text",
|
||||
CodeMirrorMode: "",
|
||||
Wrap: false,
|
||||
LanguageID: 178322513,
|
||||
},
|
||||
521429430: LanguageInfo{
|
||||
Name: "Nearley",
|
||||
FSName: "",
|
||||
@ -10644,6 +10771,27 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
Wrap: false,
|
||||
LanguageID: 325,
|
||||
},
|
||||
592853203: LanguageInfo{
|
||||
Name: "RouterOS Script",
|
||||
FSName: "",
|
||||
Type: TypeForString("programming"),
|
||||
Color: "#DE3941",
|
||||
Group: "",
|
||||
Aliases: []string{},
|
||||
Extensions: []string{
|
||||
".rsc",
|
||||
},
|
||||
Interpreters: []string{
|
||||
"RouterOS",
|
||||
},
|
||||
Filenames: []string{},
|
||||
MimeType: "",
|
||||
TMScope: "none",
|
||||
AceMode: "text",
|
||||
CodeMirrorMode: "",
|
||||
Wrap: false,
|
||||
LanguageID: 592853203,
|
||||
},
|
||||
326: LanguageInfo{
|
||||
Name: "Ruby",
|
||||
FSName: "",
|
||||
@ -11838,7 +11986,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
FSName: "",
|
||||
Type: TypeForString("markup"),
|
||||
Color: "#2fcc9f",
|
||||
Group: "CSS",
|
||||
Group: "",
|
||||
Aliases: []string{},
|
||||
Extensions: []string{
|
||||
".sss",
|
||||
@ -12741,6 +12889,28 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
Wrap: false,
|
||||
LanguageID: 544060961,
|
||||
},
|
||||
292377326: LanguageInfo{
|
||||
Name: "Velocity Template Language",
|
||||
FSName: "",
|
||||
Type: TypeForString("markup"),
|
||||
Color: "#507cff",
|
||||
Group: "",
|
||||
Aliases: []string{
|
||||
"vtl",
|
||||
"velocity",
|
||||
},
|
||||
Extensions: []string{
|
||||
".vtl",
|
||||
},
|
||||
Interpreters: []string{},
|
||||
Filenames: []string{},
|
||||
MimeType: "text/velocity",
|
||||
TMScope: "source.velocity",
|
||||
AceMode: "velocity",
|
||||
CodeMirrorMode: "velocity",
|
||||
Wrap: false,
|
||||
LanguageID: 292377326,
|
||||
},
|
||||
387: LanguageInfo{
|
||||
Name: "Verilog",
|
||||
FSName: "",
|
||||
@ -13205,6 +13375,27 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
Wrap: false,
|
||||
LanguageID: 396,
|
||||
},
|
||||
713580619: LanguageInfo{
|
||||
Name: "Wren",
|
||||
FSName: "",
|
||||
Type: TypeForString("programming"),
|
||||
Color: "#383838",
|
||||
Group: "",
|
||||
Aliases: []string{
|
||||
"wrenlang",
|
||||
},
|
||||
Extensions: []string{
|
||||
".wren",
|
||||
},
|
||||
Interpreters: []string{},
|
||||
Filenames: []string{},
|
||||
MimeType: "",
|
||||
TMScope: "source.wren",
|
||||
AceMode: "text",
|
||||
CodeMirrorMode: "",
|
||||
Wrap: false,
|
||||
LanguageID: 713580619,
|
||||
},
|
||||
782911107: LanguageInfo{
|
||||
Name: "X BitMap",
|
||||
FSName: "",
|
||||
@ -13399,6 +13590,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
||||
".ps1xml",
|
||||
".psc1",
|
||||
".pt",
|
||||
".qhelp",
|
||||
".rdf",
|
||||
".res",
|
||||
".resx",
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -236,6 +236,7 @@ var LanguagesMime = map[string]string{
|
||||
"VBA": "text/x-vb",
|
||||
"VBScript": "text/vbscript",
|
||||
"VHDL": "text/x-vhdl",
|
||||
"Velocity Template Language": "text/velocity",
|
||||
"Verilog": "text/x-verilog",
|
||||
"Visual Basic .NET": "text/x-vb",
|
||||
"Volt": "text/x-d",
|
||||
|
11
data/type.go
11
data/type.go
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -65,6 +65,7 @@ var LanguagesType = map[string]int{
|
||||
"ATS": 2,
|
||||
"ActionScript": 2,
|
||||
"Ada": 2,
|
||||
"Adblock Filter List": 1,
|
||||
"Adobe Font Metrics": 1,
|
||||
"Agda": 2,
|
||||
"Alloy": 2,
|
||||
@ -201,6 +202,7 @@ var LanguagesType = map[string]int{
|
||||
"Eiffel": 2,
|
||||
"Elixir": 2,
|
||||
"Elm": 2,
|
||||
"Elvish": 2,
|
||||
"Emacs Lisp": 2,
|
||||
"EmberScript": 2,
|
||||
"Erlang": 2,
|
||||
@ -238,6 +240,7 @@ var LanguagesType = map[string]int{
|
||||
"GSC": 2,
|
||||
"Game Maker Language": 2,
|
||||
"Gemfile.lock": 1,
|
||||
"Gemini": 4,
|
||||
"Genero": 2,
|
||||
"Genero Forms": 3,
|
||||
"Genie": 2,
|
||||
@ -270,6 +273,7 @@ var LanguagesType = map[string]int{
|
||||
"HAProxy": 1,
|
||||
"HCL": 2,
|
||||
"HLSL": 2,
|
||||
"HOCON": 1,
|
||||
"HTML": 3,
|
||||
"HTML+ECR": 3,
|
||||
"HTML+EEX": 3,
|
||||
@ -399,6 +403,7 @@ var LanguagesType = map[string]int{
|
||||
"MoonScript": 2,
|
||||
"Motoko": 2,
|
||||
"Motorola 68K Assembly": 2,
|
||||
"Move": 2,
|
||||
"Muse": 4,
|
||||
"Mustache": 3,
|
||||
"Myghty": 2,
|
||||
@ -409,6 +414,7 @@ var LanguagesType = map[string]int{
|
||||
"NPM Config": 1,
|
||||
"NSIS": 2,
|
||||
"NWScript": 2,
|
||||
"Nasal": 2,
|
||||
"Nearley": 2,
|
||||
"Nemerle": 2,
|
||||
"NetLinx": 2,
|
||||
@ -534,6 +540,7 @@ var LanguagesType = map[string]int{
|
||||
"Roff": 3,
|
||||
"Roff Manpage": 3,
|
||||
"Rouge": 2,
|
||||
"RouterOS Script": 2,
|
||||
"Ruby": 2,
|
||||
"Rust": 2,
|
||||
"SAS": 2,
|
||||
@ -626,6 +633,7 @@ var LanguagesType = map[string]int{
|
||||
"VHDL": 2,
|
||||
"Vala": 2,
|
||||
"Valve Data Format": 1,
|
||||
"Velocity Template Language": 3,
|
||||
"Verilog": 2,
|
||||
"Vim Help File": 4,
|
||||
"Vim Script": 2,
|
||||
@ -648,6 +656,7 @@ var LanguagesType = map[string]int{
|
||||
"Witcher Script": 2,
|
||||
"Wollok": 2,
|
||||
"World of Warcraft Addon Data": 1,
|
||||
"Wren": 2,
|
||||
"X BitMap": 1,
|
||||
"X Font Directory Index": 1,
|
||||
"X PixMap": 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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -36,7 +36,7 @@ var VendorMatchers = []regex.EnryRegexp{
|
||||
regex.MustCompile(`(^|/)\.indent\.pro`),
|
||||
regex.MustCompile(`(\.|-)min\.(js|css)$`),
|
||||
regex.MustCompile(`([^\s]*)import\.(css|less|scss|styl)$`),
|
||||
regex.MustCompile(`(^|/)bootstrap([^/.]*)\.(js|css|less|scss|styl)$`),
|
||||
regex.MustCompileRuby(`(^|/)bootstrap([^/.]*)(?=\.).*\.(js|css|less|scss|styl)$`),
|
||||
regex.MustCompile(`(^|/)custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$`),
|
||||
regex.MustCompile(`(^|/)font-?awesome\.(css|less|scss|styl)$`),
|
||||
regex.MustCompile(`(^|/)font-?awesome/.*\.(css|less|scss|styl)$`),
|
||||
@ -175,4 +175,4 @@ var VendorMatchers = []regex.EnryRegexp{
|
||||
}
|
||||
|
||||
// FastVendorMatcher is equivalent to matching any of the VendorMatchers.
|
||||
var FastVendorMatcher = regex.MustCompile(`(?:^(?:(?:[Dd]ependencies/)|(?:debian/)|(?:deps/)|(?:rebar$)))|(?:(?:^|/)(?:(?:BuddyBuildSDK\.framework/)|(?:Carthage/)|(?:Chart\.js$)|(?:Control\.FullScreen\.css)|(?:Control\.FullScreen\.js)|(?:Crashlytics\.framework/)|(?:Fabric\.framework/)|(?:Godeps/_workspace/)|(?:Jenkinsfile$)|(?:Leaflet\.Coordinates-\d+\.\d+\.\d+\.src\.js$)|(?:MathJax/)|(?:MochiKit\.js$)|(?:RealmSwift\.framework)|(?:Realm\.framework)|(?:Sparkle/)|(?:Vagrantfile$)|(?:[Bb]ourbon/.*\.(css|less|scss|styl)$)|(?:[Cc]ode[Mm]irror/(\d+\.\d+/)?(lib|mode|theme|addon|keymap|demo))|(?:[Ee]xtern(als?)?/)|(?:[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$)|(?:[Pp]ackages\/.+\.\d+\/)|(?:[Ss]pecs?/fixtures/)|(?:[Tt]ests?/fixtures/)|(?:[Vv]+endor/)|(?:\.[Dd][Ss]_[Ss]tore$)|(?:\.gitattributes$)|(?:\.github/)|(?:\.gitignore$)|(?:\.gitmodules$)|(?:\.gitpod\.Dockerfile$)|(?:\.google_apis/)|(?:\.indent\.pro)|(?:\.mvn/wrapper/)|(?:\.osx$)|(?:\.sublime-project)|(?:\.sublime-workspace)|(?:\.vscode/)|(?:\.yarn/plugins/)|(?:\.yarn/releases/)|(?:\.yarn/sdks/)|(?:\.yarn/unplugged/)|(?:\.yarn/versions/)|(?:_esy$)|(?:ace-builds/)|(?:aclocal\.m4)|(?:activator$)|(?:activator\.bat$)|(?:admin_media/)|(?:angular([^.]*)\.js$)|(?:animate\.(css|less|scss|styl)$)|(?:bootbox\.js)|(?:bootstrap([^/.]*)\.(js|css|less|scss|styl)$)|(?:bootstrap-datepicker/)|(?:bower_components/)|(?:bulma\.(css|sass|scss)$)|(?:cache/)|(?:ckeditor\.js$)|(?:config\.guess$)|(?:config\.sub$)|(?:configure$)|(?:controls\.js$)|(?:cordova([^.]*)\.js$)|(?:cordova\-\d\.\d(\.\d)?\.js$)|(?:cpplint\.py)|(?:custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$)|(?:dist/)|(?:docs?/_?(build|themes?|templates?|static)/)|(?:dojo\.js$)|(?:dotnet-install\.(ps1|sh)$)|(?:dragdrop\.js$)|(?:effects\.js$)|(?:env/)|(?:erlang\.mk)|(?:extjs/.*?\.html$)|(?:extjs/.*?\.js$)|(?:extjs/.*?\.properties$)|(?:extjs/.*?\.txt$)|(?:extjs/.*?\.xml$)|(?:extjs/\.sencha/)|(?:extjs/builds/)|(?:extjs/cmd/)|(?:extjs/docs/)|(?:extjs/examples/)|(?:extjs/locale/)|(?:extjs/packages/)|(?:extjs/plugins/)|(?:extjs/resources/)|(?:extjs/src/)|(?:extjs/welcome/)|(?:fabfile\.py$)|(?:flow-typed/.*\.js$)|(?:font-?awesome/.*\.(css|less|scss|styl)$)|(?:font-?awesome\.(css|less|scss|styl)$)|(?:fontello(.*?)\.css$)|(?:foundation(\..*)?\.js$)|(?:foundation\.(css|less|scss|styl)$)|(?:fuelux\.js)|(?:gradle/wrapper/)|(?:gradlew$)|(?:gradlew\.bat$)|(?:html5shiv\.js$)|(?:inst/extdata/)|(?:jquery([^.]*)\.js$)|(?:jquery([^.]*)\.unobtrusive\-ajax\.js$)|(?:jquery([^.]*)\.validate(\.unobtrusive)?\.js$)|(?:jquery\-\d\.\d+(\.\d+)?\.js$)|(?:jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?\.(js|css)$)|(?:jquery\.(ui|effects)\.([^.]*)\.(js|css)$)|(?:jquery\.dataTables\.js)|(?:jquery\.fancybox\.(js|css))|(?:jquery\.fileupload(-\w+)?\.js$)|(?:jquery\.fn\.gantt\.js)|(?:knockout-(\d+\.){3}(debug\.)?js$)|(?:leaflet\.draw-src\.js)|(?:leaflet\.draw\.css)|(?:leaflet\.spin\.js)|(?:libtool\.m4)|(?:ltoptions\.m4)|(?:ltsugar\.m4)|(?:ltversion\.m4)|(?:lt~obsolete\.m4)|(?:materialize\.(css|less|scss|styl|js)$)|(?:modernizr\-\d\.\d+(\.\d+)?\.js$)|(?:modernizr\.custom\.\d+\.js$)|(?:mootools([^.]*)\d+\.\d+.\d+([^.]*)\.js$)|(?:mvnw$)|(?:mvnw\.cmd$)|(?:node_modules/)|(?:normalize\.(css|less|scss|styl)$)|(?:octicons\.css)|(?:pdf\.worker\.js)|(?:proguard-rules\.pro$)|(?:proguard\.pro$)|(?:prototype(.*)\.js$)|(?:puphpet/)|(?:react(-[^.]*)?\.js$)|(?:run\.n$)|(?:select2/.*\.(css|scss|js)$)|(?:shBrush([^.]*)\.js$)|(?:shCore\.js$)|(?:shLegacy\.js$)|(?:skeleton\.(css|less|scss|styl)$)|(?:slick\.\w+.js$)|(?:sprockets-octicons\.scss)|(?:testdata/)|(?:tiny_mce([^.]*)\.js$)|(?:tiny_mce/(langs|plugins|themes|utils))|(?:vendors?/)|(?:vignettes/)|(?:waf$)|(?:wicket-leaflet\.js)|(?:yahoo-([^.]*)\.js$)|(?:yui([^.]*)\.js$)))|(?:(.*?)\.d\.ts$)|(?:(3rd|[Tt]hird)[-_]?[Pp]arty/)|(?:([^\s]*)import\.(css|less|scss|styl)$)|(?:(\.|-)min\.(js|css)$)|(?:(^|\/)d3(\.v\d+)?([^.]*)\.js$)|(?:-vsdoc\.js$)|(?:\.imageset/)|(?:\.intellisense\.js$)|(?:\.xctemplate/)`)
|
||||
var FastVendorMatcher = regex.MustCompileRuby(`(?:^(?:(?:[Dd]ependencies/)|(?:debian/)|(?:deps/)|(?:rebar$)))|(?:(?:^|/)(?:(?:BuddyBuildSDK\.framework/)|(?:Carthage/)|(?:Chart\.js$)|(?:Control\.FullScreen\.css)|(?:Control\.FullScreen\.js)|(?:Crashlytics\.framework/)|(?:Fabric\.framework/)|(?:Godeps/_workspace/)|(?:Jenkinsfile$)|(?:Leaflet\.Coordinates-\d+\.\d+\.\d+\.src\.js$)|(?:MathJax/)|(?:MochiKit\.js$)|(?:RealmSwift\.framework)|(?:Realm\.framework)|(?:Sparkle/)|(?:Vagrantfile$)|(?:[Bb]ourbon/.*\.(css|less|scss|styl)$)|(?:[Cc]ode[Mm]irror/(\d+\.\d+/)?(lib|mode|theme|addon|keymap|demo))|(?:[Ee]xtern(als?)?/)|(?:[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$)|(?:[Pp]ackages\/.+\.\d+\/)|(?:[Ss]pecs?/fixtures/)|(?:[Tt]ests?/fixtures/)|(?:[Vv]+endor/)|(?:\.[Dd][Ss]_[Ss]tore$)|(?:\.gitattributes$)|(?:\.github/)|(?:\.gitignore$)|(?:\.gitmodules$)|(?:\.gitpod\.Dockerfile$)|(?:\.google_apis/)|(?:\.indent\.pro)|(?:\.mvn/wrapper/)|(?:\.osx$)|(?:\.sublime-project)|(?:\.sublime-workspace)|(?:\.vscode/)|(?:\.yarn/plugins/)|(?:\.yarn/releases/)|(?:\.yarn/sdks/)|(?:\.yarn/unplugged/)|(?:\.yarn/versions/)|(?:_esy$)|(?:ace-builds/)|(?:aclocal\.m4)|(?:activator$)|(?:activator\.bat$)|(?:admin_media/)|(?:angular([^.]*)\.js$)|(?:animate\.(css|less|scss|styl)$)|(?:bootbox\.js)|(?:bootstrap([^/.]*)(?=\.).*\.(js|css|less|scss|styl)$)|(?:bootstrap-datepicker/)|(?:bower_components/)|(?:bulma\.(css|sass|scss)$)|(?:cache/)|(?:ckeditor\.js$)|(?:config\.guess$)|(?:config\.sub$)|(?:configure$)|(?:controls\.js$)|(?:cordova([^.]*)\.js$)|(?:cordova\-\d\.\d(\.\d)?\.js$)|(?:cpplint\.py)|(?:custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$)|(?:dist/)|(?:docs?/_?(build|themes?|templates?|static)/)|(?:dojo\.js$)|(?:dotnet-install\.(ps1|sh)$)|(?:dragdrop\.js$)|(?:effects\.js$)|(?:env/)|(?:erlang\.mk)|(?:extjs/.*?\.html$)|(?:extjs/.*?\.js$)|(?:extjs/.*?\.properties$)|(?:extjs/.*?\.txt$)|(?:extjs/.*?\.xml$)|(?:extjs/\.sencha/)|(?:extjs/builds/)|(?:extjs/cmd/)|(?:extjs/docs/)|(?:extjs/examples/)|(?:extjs/locale/)|(?:extjs/packages/)|(?:extjs/plugins/)|(?:extjs/resources/)|(?:extjs/src/)|(?:extjs/welcome/)|(?:fabfile\.py$)|(?:flow-typed/.*\.js$)|(?:font-?awesome/.*\.(css|less|scss|styl)$)|(?:font-?awesome\.(css|less|scss|styl)$)|(?:fontello(.*?)\.css$)|(?:foundation(\..*)?\.js$)|(?:foundation\.(css|less|scss|styl)$)|(?:fuelux\.js)|(?:gradle/wrapper/)|(?:gradlew$)|(?:gradlew\.bat$)|(?:html5shiv\.js$)|(?:inst/extdata/)|(?:jquery([^.]*)\.js$)|(?:jquery([^.]*)\.unobtrusive\-ajax\.js$)|(?:jquery([^.]*)\.validate(\.unobtrusive)?\.js$)|(?:jquery\-\d\.\d+(\.\d+)?\.js$)|(?:jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?\.(js|css)$)|(?:jquery\.(ui|effects)\.([^.]*)\.(js|css)$)|(?:jquery\.dataTables\.js)|(?:jquery\.fancybox\.(js|css))|(?:jquery\.fileupload(-\w+)?\.js$)|(?:jquery\.fn\.gantt\.js)|(?:knockout-(\d+\.){3}(debug\.)?js$)|(?:leaflet\.draw-src\.js)|(?:leaflet\.draw\.css)|(?:leaflet\.spin\.js)|(?:libtool\.m4)|(?:ltoptions\.m4)|(?:ltsugar\.m4)|(?:ltversion\.m4)|(?:lt~obsolete\.m4)|(?:materialize\.(css|less|scss|styl|js)$)|(?:modernizr\-\d\.\d+(\.\d+)?\.js$)|(?:modernizr\.custom\.\d+\.js$)|(?:mootools([^.]*)\d+\.\d+.\d+([^.]*)\.js$)|(?:mvnw$)|(?:mvnw\.cmd$)|(?:node_modules/)|(?:normalize\.(css|less|scss|styl)$)|(?:octicons\.css)|(?:pdf\.worker\.js)|(?:proguard-rules\.pro$)|(?:proguard\.pro$)|(?:prototype(.*)\.js$)|(?:puphpet/)|(?:react(-[^.]*)?\.js$)|(?:run\.n$)|(?:select2/.*\.(css|scss|js)$)|(?:shBrush([^.]*)\.js$)|(?:shCore\.js$)|(?:shLegacy\.js$)|(?:skeleton\.(css|less|scss|styl)$)|(?:slick\.\w+.js$)|(?:sprockets-octicons\.scss)|(?:testdata/)|(?:tiny_mce([^.]*)\.js$)|(?:tiny_mce/(langs|plugins|themes|utils))|(?:vendors?/)|(?:vignettes/)|(?:waf$)|(?:wicket-leaflet\.js)|(?:yahoo-([^.]*)\.js$)|(?:yui([^.]*)\.js$)))|(?:(.*?)\.d\.ts$)|(?:(3rd|[Tt]hird)[-_]?[Pp]arty/)|(?:([^\s]*)import\.(css|less|scss|styl)$)|(?:(\.|-)min\.(js|css)$)|(?:(^|\/)d3(\.v\d+)?([^.]*)\.js$)|(?:-vsdoc\.js$)|(?:\.imageset/)|(?:\.intellisense\.js$)|(?:\.xctemplate/)`)
|
||||
|
@ -20,7 +20,7 @@ import (
|
||||
var (
|
||||
linguistURL = "https://github.com/github/linguist.git"
|
||||
linguistClonedEnvVar = "ENRY_TEST_REPO"
|
||||
commit = "d7799da826e01acdb8f84694d33116dccaabe9c2"
|
||||
commit = "bf853f1c663903e3ee35935189760191f1c45e1c"
|
||||
samplesDir = "samples"
|
||||
languagesFile = filepath.Join("lib", "linguist", "languages.yml")
|
||||
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -21,9 +21,14 @@ var LanguageByAliasMap = map[string]string{
|
||||
"actionscript": "ActionScript",
|
||||
"actionscript3": "ActionScript",
|
||||
"actionscript_3": "ActionScript",
|
||||
"ad_block": "Adblock Filter List",
|
||||
"ad_block_filters": "Adblock Filter List",
|
||||
"ada": "Ada",
|
||||
"ada2005": "Ada",
|
||||
"ada95": "Ada",
|
||||
"adb": "Adblock Filter List",
|
||||
"adblock": "Adblock Filter List",
|
||||
"adblock_filter_list": "Adblock Filter List",
|
||||
"adobe_composite_font_metrics": "Adobe Font Metrics",
|
||||
"adobe_font_metrics": "Adobe Font Metrics",
|
||||
"adobe_multiple_font_metrics": "Adobe Font Metrics",
|
||||
@ -257,6 +262,7 @@ var LanguageByAliasMap = map[string]string{
|
||||
"elisp": "Emacs Lisp",
|
||||
"elixir": "Elixir",
|
||||
"elm": "Elm",
|
||||
"elvish": "Elvish",
|
||||
"emacs": "Emacs Lisp",
|
||||
"emacs_lisp": "Emacs Lisp",
|
||||
"emacs_muse": "Muse",
|
||||
@ -307,6 +313,8 @@ var LanguageByAliasMap = map[string]string{
|
||||
"gdscript": "GDScript",
|
||||
"gedcom": "GEDCOM",
|
||||
"gemfile.lock": "Gemfile.lock",
|
||||
"gemini": "Gemini",
|
||||
"gemtext": "Gemini",
|
||||
"genero": "Genero",
|
||||
"genero_forms": "Genero Forms",
|
||||
"genie": "Genie",
|
||||
@ -371,6 +379,7 @@ var LanguageByAliasMap = map[string]string{
|
||||
"help": "Vim Help File",
|
||||
"hiveql": "HiveQL",
|
||||
"hlsl": "HLSL",
|
||||
"hocon": "HOCON",
|
||||
"holyc": "HolyC",
|
||||
"hoon": "hoon",
|
||||
"html": "HTML",
|
||||
@ -549,6 +558,7 @@ var LanguageByAliasMap = map[string]string{
|
||||
"moonscript": "MoonScript",
|
||||
"motoko": "Motoko",
|
||||
"motorola_68k_assembly": "Motorola 68K Assembly",
|
||||
"move": "Move",
|
||||
"mps": "JetBrains MPS",
|
||||
"mql4": "MQL4",
|
||||
"mql5": "MQL5",
|
||||
@ -560,6 +570,7 @@ var LanguageByAliasMap = map[string]string{
|
||||
"mustache": "Mustache",
|
||||
"myghty": "Myghty",
|
||||
"nanorc": "nanorc",
|
||||
"nasal": "Nasal",
|
||||
"nasl": "NASL",
|
||||
"nasm": "Assembly",
|
||||
"ncl": "NCL",
|
||||
@ -760,6 +771,7 @@ var LanguageByAliasMap = map[string]string{
|
||||
"roff": "Roff",
|
||||
"roff_manpage": "Roff Manpage",
|
||||
"rouge": "Rouge",
|
||||
"routeros_script": "RouterOS Script",
|
||||
"rpc": "RPC",
|
||||
"rpcgen": "RPC",
|
||||
"rpgle": "RPGLE",
|
||||
@ -900,6 +912,8 @@ var LanguageByAliasMap = map[string]string{
|
||||
"vbscript": "VBScript",
|
||||
"vcl": "VCL",
|
||||
"vdf": "Valve Data Format",
|
||||
"velocity": "Velocity Template Language",
|
||||
"velocity_template_language": "Velocity Template Language",
|
||||
"verilog": "Verilog",
|
||||
"vhdl": "VHDL",
|
||||
"vim": "Vim Script",
|
||||
@ -914,6 +928,7 @@ var LanguageByAliasMap = map[string]string{
|
||||
"visual_basic_for_applications": "VBA",
|
||||
"vlang": "V",
|
||||
"volt": "Volt",
|
||||
"vtl": "Velocity Template Language",
|
||||
"vtt": "WebVTT",
|
||||
"vue": "Vue",
|
||||
"vyper": "Vyper",
|
||||
@ -942,6 +957,8 @@ var LanguageByAliasMap = map[string]string{
|
||||
"wolfram_language": "Mathematica",
|
||||
"wollok": "Wollok",
|
||||
"world_of_warcraft_addon_data": "World of Warcraft Addon Data",
|
||||
"wren": "Wren",
|
||||
"wrenlang": "Wren",
|
||||
"wsdl": "XML",
|
||||
"x10": "X10",
|
||||
"x_bitmap": "X BitMap",
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -20,6 +20,7 @@ var LanguagesColor = map[string]string{
|
||||
"ATS": "#1ac620",
|
||||
"ActionScript": "#882B0F",
|
||||
"Ada": "#02f88c",
|
||||
"Adblock Filter List": "#800000",
|
||||
"Adobe Font Metrics": "#fa0f00",
|
||||
"Agda": "#315665",
|
||||
"Alloy": "#64C800",
|
||||
@ -132,6 +133,7 @@ var LanguagesColor = map[string]string{
|
||||
"Eiffel": "#4d6977",
|
||||
"Elixir": "#6e4a7e",
|
||||
"Elm": "#60B5CC",
|
||||
"Elvish": "#55BB55",
|
||||
"Emacs Lisp": "#c065db",
|
||||
"EmberScript": "#FFF4F3",
|
||||
"Erlang": "#B83998",
|
||||
@ -165,6 +167,7 @@ var LanguagesColor = map[string]string{
|
||||
"GSC": "#FF6800",
|
||||
"Game Maker Language": "#71b417",
|
||||
"Gemfile.lock": "#701516",
|
||||
"Gemini": "#ff6900",
|
||||
"Genero": "#63408e",
|
||||
"Genero Forms": "#d8df39",
|
||||
"Genie": "#fb855d",
|
||||
@ -193,6 +196,7 @@ var LanguagesColor = map[string]string{
|
||||
"Groovy Server Pages": "#4298b8",
|
||||
"HAProxy": "#106da9",
|
||||
"HLSL": "#aace60",
|
||||
"HOCON": "#9ff8ee",
|
||||
"HTML": "#e34c26",
|
||||
"HTML+ECR": "#2e1052",
|
||||
"HTML+EEX": "#6e4a7e",
|
||||
@ -299,10 +303,12 @@ var LanguagesColor = map[string]string{
|
||||
"MoonScript": "#ff4585",
|
||||
"Motoko": "#fbb03b",
|
||||
"Motorola 68K Assembly": "#005daa",
|
||||
"Move": "#4a137a",
|
||||
"Mustache": "#724b3b",
|
||||
"NCL": "#28431f",
|
||||
"NPM Config": "#cb3837",
|
||||
"NWScript": "#111522",
|
||||
"Nasal": "#1d2c4e",
|
||||
"Nearley": "#990000",
|
||||
"Nemerle": "#3d3c6e",
|
||||
"NetLinx": "#0aa0ff",
|
||||
@ -397,6 +403,7 @@ var LanguagesColor = map[string]string{
|
||||
"Roff": "#ecdebe",
|
||||
"Roff Manpage": "#ecdebe",
|
||||
"Rouge": "#cc0088",
|
||||
"RouterOS Script": "#DE3941",
|
||||
"Ruby": "#701516",
|
||||
"Rust": "#dea584",
|
||||
"SAS": "#B34936",
|
||||
@ -470,6 +477,7 @@ var LanguagesColor = map[string]string{
|
||||
"VHDL": "#adb2cb",
|
||||
"Vala": "#a56de2",
|
||||
"Valve Data Format": "#f26025",
|
||||
"Velocity Template Language": "#507cff",
|
||||
"Verilog": "#b2b7f8",
|
||||
"Vim Help File": "#199f4b",
|
||||
"Vim Script": "#199f4b",
|
||||
@ -486,6 +494,7 @@ var LanguagesColor = map[string]string{
|
||||
"Witcher Script": "#ff0000",
|
||||
"Wollok": "#a23738",
|
||||
"World of Warcraft Addon Data": "#f7e43f",
|
||||
"Wren": "#383838",
|
||||
"X10": "#4B6BEF",
|
||||
"XC": "#99DA07",
|
||||
"XML": "#0060ac",
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
// linguist's commit from which files were generated.
|
||||
var LinguistCommit = "d7799da826e01acdb8f84694d33116dccaabe9c2"
|
||||
var LinguistCommit = "bf853f1c663903e3ee35935189760191f1c45e1c"
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -647,6 +647,20 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileMultiline(`\((def|defn|defmacro|let)\s`),
|
||||
),
|
||||
},
|
||||
".bf": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Beef"),
|
||||
regex.MustCompileMultiline(`(?-m)^\s*using\s+(System|Beefy)(\.(.*))?;\s*$`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("HyPhy"),
|
||||
regex.MustCompileMultiline(`(?-m)^\s*#include\s+".*";\s*$|\sfprintf\s*\(`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Brainfuck"),
|
||||
regex.MustCompileMultiline(`(>\+>|>\+<)`),
|
||||
),
|
||||
},
|
||||
".bi": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("FreeBasic"),
|
||||
@ -712,7 +726,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("C#"),
|
||||
regex.MustCompileMultiline(`^(\s*namespace\s*[\w\.]+\s*{|\s*\/\/)`),
|
||||
regex.MustCompileMultiline(`^\s*(using\s+[A-Z][\s\w.]+;|namespace\s*[\w\.]+\s*({|;)|\/\/)`),
|
||||
),
|
||||
},
|
||||
".csc": &Heuristics{
|
||||
@ -864,6 +878,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileMultiline(`^-?[a-zA-Z][a-zA-Z0-9_-]* *=|\{\$-?[a-zA-Z][-\w]*(?:\.[a-zA-Z][-\w]*)?\}`),
|
||||
),
|
||||
},
|
||||
".g": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("GAP"),
|
||||
regex.MustCompileMultiline(`\s*(Declare|BindGlobal|KeyDependentOperation|Install(Method|GlobalFunction)|SetPackageInfo)`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("G-code"),
|
||||
regex.MustCompileMultiline(`^[MG][0-9]+\n`),
|
||||
),
|
||||
},
|
||||
".gd": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("GAP"),
|
||||
@ -1356,7 +1380,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("IDL"),
|
||||
regex.MustCompileMultiline(`^\s*function[ \w,]+$`),
|
||||
regex.MustCompileMultiline(`^\s*(?i:function|pro|compile_opt) \w[ \w,:]*$`),
|
||||
),
|
||||
},
|
||||
".properties": &Heuristics{
|
||||
@ -1486,6 +1510,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileMultiline(`(^\s*import (scala|java)\.|^\s*class\b)`),
|
||||
),
|
||||
},
|
||||
".scd": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("SuperCollider"),
|
||||
regex.MustCompileMultiline(`(?i:\^(this|super)\.|^\s*(~\w+\s*=\.|SynthDef\b))`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Markdown"),
|
||||
regex.MustCompileMultiline(`^#+\s+(NAME|SYNOPSIS|DESCRIPTION)`),
|
||||
),
|
||||
},
|
||||
".sol": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Solidity"),
|
||||
@ -1562,6 +1596,12 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
regex.MustCompileMultiline(`^\s*%[ \t]+|^\s*var\s+\w+(\s*:\s*\w+)?\s*:=\s*\w+`),
|
||||
),
|
||||
},
|
||||
".tag": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Java Server Pages"),
|
||||
regex.MustCompileMultiline(`<%[@!=\s]?\s*(taglib|tag|include|attribute|variable)\s`),
|
||||
),
|
||||
},
|
||||
".toc": &Heuristics{
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("World of Warcraft Addon Data"),
|
||||
@ -1605,6 +1645,28 @@ var ContentHeuristics = map[string]*Heuristics{
|
||||
rule.MatchingLanguages("Vim Help File"),
|
||||
regex.MustCompileRuby(`(?:(?:^|[ \t])(?:vi|Vi(?=m))(?:m[<=>]?[0-9]+|m)?|[ \t]ex)(?=:(?=[ \t]*set?[ \t][^\r\n:]+:)|:(?![ \t]*set?[ \t]))(?:(?:[ \t]*:[ \t]*|[ \t])\w*(?:[ \t]*=(?:[^\\\s]|\\.)*)?)*[ \t:](?:filetype|ft|syntax)[ \t]*=(help)(?=$|\s|:)`),
|
||||
),
|
||||
rule.Or(
|
||||
rule.MatchingLanguages("Adblock Filter List"),
|
||||
regex.MustCompileRuby(`(?x)\A
|
||||
\[
|
||||
(?<version>
|
||||
(?:
|
||||
[Aa]d[Bb]lock
|
||||
(?:[ \t][Pp]lus)?
|
||||
|
|
||||
u[Bb]lock
|
||||
(?:[ \t][Oo]rigin)?
|
||||
|
|
||||
[Aa]d[Gg]uard
|
||||
)
|
||||
(?:[ \t] \d+(?:\.\d+)*+)?
|
||||
)
|
||||
(?:
|
||||
[ \t]?;[ \t]?
|
||||
\g<version>
|
||||
)*+
|
||||
\]`),
|
||||
),
|
||||
rule.Always(
|
||||
rule.MatchingLanguages("Text"),
|
||||
),
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -117,7 +117,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".bdy": {"PLSQL"},
|
||||
".be": {"Berry"},
|
||||
".befunge": {"Befunge"},
|
||||
".bf": {"Beef", "Brainfuck", "HyPhy"},
|
||||
".bf": {"Beef", "Befunge", "Brainfuck", "HyPhy"},
|
||||
".bi": {"FreeBasic"},
|
||||
".bib": {"BibTeX"},
|
||||
".bibtex": {"BibTeX"},
|
||||
@ -305,6 +305,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".eliom": {"OCaml"},
|
||||
".eliomi": {"OCaml"},
|
||||
".elm": {"Elm"},
|
||||
".elv": {"Elvish"},
|
||||
".em": {"EmberScript"},
|
||||
".emacs": {"Emacs Lisp"},
|
||||
".emacs.desktop": {"Emacs Lisp"},
|
||||
@ -402,6 +403,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".glslv": {"GLSL"},
|
||||
".gltf": {"JSON"},
|
||||
".glyphs": {"OpenStep Property List"},
|
||||
".gmi": {"Gemini"},
|
||||
".gml": {"Game Maker Language", "Gerber Image", "Graph Modeling Language", "XML"},
|
||||
".gms": {"GAMS"},
|
||||
".gmx": {"XML"},
|
||||
@ -457,6 +459,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".hlean": {"Lean"},
|
||||
".hlsl": {"HLSL"},
|
||||
".hlsli": {"HLSL"},
|
||||
".hocon": {"HOCON"},
|
||||
".hoon": {"hoon"},
|
||||
".hpp": {"C++"},
|
||||
".hqf": {"SQF"},
|
||||
@ -556,6 +559,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".kit": {"Kit"},
|
||||
".kml": {"XML"},
|
||||
".kojo": {"Scala"},
|
||||
".kql": {"Kusto"},
|
||||
".krl": {"KRL"},
|
||||
".ksh": {"Shell"},
|
||||
".ksy": {"Kaitai Struct"},
|
||||
@ -680,6 +684,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".monkey2": {"Monkey"},
|
||||
".moo": {"Mercury", "Moocode"},
|
||||
".moon": {"MoonScript"},
|
||||
".move": {"Move"},
|
||||
".mpl": {"JetBrains MPS"},
|
||||
".mps": {"JetBrains MPS"},
|
||||
".mq4": {"MQL4"},
|
||||
@ -706,6 +711,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".myt": {"Myghty"},
|
||||
".n": {"Nemerle", "Roff"},
|
||||
".nanorc": {"nanorc"},
|
||||
".nas": {"Assembly", "Nasal"},
|
||||
".nasl": {"NASL"},
|
||||
".nasm": {"Assembly"},
|
||||
".natvis": {"XML"},
|
||||
@ -888,6 +894,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".q": {"HiveQL", "q"},
|
||||
".qasm": {"OpenQASM"},
|
||||
".qbs": {"QML"},
|
||||
".qhelp": {"XML"},
|
||||
".ql": {"CodeQL"},
|
||||
".qll": {"CodeQL"},
|
||||
".qmd": {"RMarkdown"},
|
||||
@ -958,7 +965,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".rq": {"SPARQL"},
|
||||
".rs": {"RenderScript", "Rust", "XML"},
|
||||
".rs.in": {"Rust"},
|
||||
".rsc": {"Rascal"},
|
||||
".rsc": {"Rascal", "RouterOS Script"},
|
||||
".rsh": {"RenderScript"},
|
||||
".rss": {"XML"},
|
||||
".rst": {"reStructuredText"},
|
||||
@ -1083,6 +1090,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".t": {"Perl", "Raku", "Terra", "Turing"},
|
||||
".tab": {"SQL"},
|
||||
".tac": {"Python"},
|
||||
".tag": {"Java Server Pages"},
|
||||
".talon": {"Talon"},
|
||||
".targets": {"XML"},
|
||||
".tcc": {"C++"},
|
||||
@ -1134,7 +1142,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".twig": {"Twig"},
|
||||
".txi": {"Texinfo"},
|
||||
".txl": {"TXL"},
|
||||
".txt": {"Text", "Vim Help File"},
|
||||
".txt": {"Adblock Filter List", "Text", "Vim Help File"},
|
||||
".uc": {"UnrealScript"},
|
||||
".udf": {"SQL"},
|
||||
".udo": {"Csound"},
|
||||
@ -1183,6 +1191,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".vsixmanifest": {"XML"},
|
||||
".vssettings": {"XML"},
|
||||
".vstemplate": {"XML"},
|
||||
".vtl": {"Velocity Template Language"},
|
||||
".vtt": {"WebVTT"},
|
||||
".vue": {"Vue"},
|
||||
".vw": {"PLSQL"},
|
||||
@ -1208,6 +1217,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".wlua": {"Lua"},
|
||||
".workbook": {"Markdown"},
|
||||
".workflow": {"HCL", "XML"},
|
||||
".wren": {"Wren"},
|
||||
".ws": {"Witcher Script"},
|
||||
".wsdl": {"XML"},
|
||||
".wsf": {"XML"},
|
||||
@ -1315,6 +1325,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"ATS": {".dats", ".hats", ".sats"},
|
||||
"ActionScript": {".as"},
|
||||
"Ada": {".adb", ".ada", ".ads"},
|
||||
"Adblock Filter List": {".txt"},
|
||||
"Adobe Font Metrics": {".afm"},
|
||||
"Agda": {".agda"},
|
||||
"Alloy": {".als"},
|
||||
@ -1328,7 +1339,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Arc": {".arc"},
|
||||
"AsciiDoc": {".asciidoc", ".adoc", ".asc"},
|
||||
"AspectJ": {".aj"},
|
||||
"Assembly": {".asm", ".a51", ".i", ".inc", ".nasm"},
|
||||
"Assembly": {".asm", ".a51", ".i", ".inc", ".nas", ".nasm"},
|
||||
"Astro": {".astro"},
|
||||
"Asymptote": {".asy"},
|
||||
"Augeas": {".aug"},
|
||||
@ -1340,7 +1351,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Ballerina": {".bal"},
|
||||
"Batchfile": {".bat", ".cmd"},
|
||||
"Beef": {".bf"},
|
||||
"Befunge": {".befunge"},
|
||||
"Befunge": {".befunge", ".bf"},
|
||||
"Berry": {".be"},
|
||||
"BibTeX": {".bib", ".bibtex"},
|
||||
"Bicep": {".bicep"},
|
||||
@ -1444,6 +1455,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Eiffel": {".e"},
|
||||
"Elixir": {".ex", ".exs"},
|
||||
"Elm": {".elm"},
|
||||
"Elvish": {".elv"},
|
||||
"Emacs Lisp": {".el", ".emacs", ".emacs.desktop"},
|
||||
"EmberScript": {".em", ".emberscript"},
|
||||
"Erlang": {".erl", ".app.src", ".es", ".escript", ".hrl", ".xrl", ".yrl"},
|
||||
@ -1480,6 +1492,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"GN": {".gn", ".gni"},
|
||||
"GSC": {".gsc", ".csc", ".gsh"},
|
||||
"Game Maker Language": {".gml"},
|
||||
"Gemini": {".gmi"},
|
||||
"Genero": {".4gl"},
|
||||
"Genero Forms": {".per"},
|
||||
"Genie": {".gs"},
|
||||
@ -1508,6 +1521,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"HAProxy": {".cfg"},
|
||||
"HCL": {".hcl", ".nomad", ".tf", ".tfvars", ".workflow"},
|
||||
"HLSL": {".hlsl", ".cginc", ".fx", ".fxh", ".hlsli"},
|
||||
"HOCON": {".hocon"},
|
||||
"HTML": {".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml"},
|
||||
"HTML+ECR": {".ecr"},
|
||||
"HTML+EEX": {".eex", ".html.heex", ".html.leex"},
|
||||
@ -1549,7 +1563,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Jasmin": {".j"},
|
||||
"Java": {".java", ".jav"},
|
||||
"Java Properties": {".properties"},
|
||||
"Java Server Pages": {".jsp"},
|
||||
"Java Server Pages": {".jsp", ".tag"},
|
||||
"JavaScript": {".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".jsx", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib"},
|
||||
"JavaScript+ERB": {".js.erb"},
|
||||
"Jest Snapshot": {".snap"},
|
||||
@ -1569,7 +1583,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"KiCad Schematic": {".kicad_sch", ".sch"},
|
||||
"Kit": {".kit"},
|
||||
"Kotlin": {".kt", ".ktm", ".kts"},
|
||||
"Kusto": {".csl"},
|
||||
"Kusto": {".csl", ".kql"},
|
||||
"LFE": {".lfe"},
|
||||
"LLVM": {".ll"},
|
||||
"LOLCODE": {".lol"},
|
||||
@ -1633,6 +1647,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"MoonScript": {".moon"},
|
||||
"Motoko": {".mo"},
|
||||
"Motorola 68K Assembly": {".asm", ".i", ".inc", ".s", ".x68"},
|
||||
"Move": {".move"},
|
||||
"Muse": {".muse"},
|
||||
"Mustache": {".mustache"},
|
||||
"Myghty": {".myt"},
|
||||
@ -1642,6 +1657,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"NL": {".nl"},
|
||||
"NSIS": {".nsi", ".nsh"},
|
||||
"NWScript": {".nss"},
|
||||
"Nasal": {".nas"},
|
||||
"Nearley": {".ne", ".nearley"},
|
||||
"Nemerle": {".n"},
|
||||
"NetLinx": {".axs", ".axi"},
|
||||
@ -1760,6 +1776,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Roff": {".roff", ".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3p", ".3pm", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".l", ".man", ".mdoc", ".me", ".ms", ".n", ".nr", ".rno", ".tmac"},
|
||||
"Roff Manpage": {".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3p", ".3pm", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".man", ".mdoc"},
|
||||
"Rouge": {".rg"},
|
||||
"RouterOS Script": {".rsc"},
|
||||
"Ruby": {".rb", ".builder", ".eye", ".fcgi", ".gemspec", ".god", ".jbuilder", ".mspec", ".pluginspec", ".podspec", ".prawn", ".rabl", ".rake", ".rbi", ".rbuild", ".rbw", ".rbx", ".ru", ".ruby", ".spec", ".thor", ".watchr"},
|
||||
"Rust": {".rs", ".rs.in"},
|
||||
"SAS": {".sas"},
|
||||
@ -1847,6 +1864,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"VHDL": {".vhdl", ".vhd", ".vhf", ".vhi", ".vho", ".vhs", ".vht", ".vhw"},
|
||||
"Vala": {".vala", ".vapi"},
|
||||
"Valve Data Format": {".vdf"},
|
||||
"Velocity Template Language": {".vtl"},
|
||||
"Verilog": {".v", ".veo"},
|
||||
"Vim Help File": {".txt"},
|
||||
"Vim Script": {".vim", ".vba", ".vimrc", ".vmb"},
|
||||
@ -1868,11 +1886,12 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Witcher Script": {".ws"},
|
||||
"Wollok": {".wlk"},
|
||||
"World of Warcraft Addon Data": {".toc"},
|
||||
"Wren": {".wren"},
|
||||
"X BitMap": {".xbm"},
|
||||
"X PixMap": {".xpm", ".pm"},
|
||||
"X10": {".x10"},
|
||||
"XC": {".xc"},
|
||||
"XML": {".xml", ".adml", ".admx", ".ant", ".axaml", ".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", ".hzp", ".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", ".xmp", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
|
||||
"XML": {".xml", ".adml", ".admx", ".ant", ".axaml", ".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", ".hzp", ".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", ".qhelp", ".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", ".xmp", ".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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
|
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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -59,7 +59,6 @@ var LanguagesGroup = map[string]string{
|
||||
"Roff Manpage": "Roff",
|
||||
"SSH Config": "INI",
|
||||
"STON": "Smalltalk",
|
||||
"SugarSS": "CSS",
|
||||
"TSX": "TypeScript",
|
||||
"Tcsh": "Shell",
|
||||
"Unified Parallel C": "C",
|
||||
|
@ -1,10 +1,11 @@
|
||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
var LanguagesByInterpreter = map[string][]string{
|
||||
"M2": {"Macaulay2"},
|
||||
"RouterOS": {"RouterOS Script"},
|
||||
"Rscript": {"R"},
|
||||
"aidl": {"AIDL"},
|
||||
"apl": {"APL"},
|
||||
@ -37,6 +38,7 @@ var LanguagesByInterpreter = map[string][]string{
|
||||
"dyalog": {"APL"},
|
||||
"ecl": {"Common Lisp"},
|
||||
"elixir": {"Elixir"},
|
||||
"elvish": {"Elvish"},
|
||||
"escript": {"Erlang"},
|
||||
"eui": {"Euphoria"},
|
||||
"euiw": {"Euphoria"},
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -236,6 +236,7 @@ var LanguagesMime = map[string]string{
|
||||
"VBA": "text/x-vb",
|
||||
"VBScript": "text/vbscript",
|
||||
"VHDL": "text/x-vhdl",
|
||||
"Velocity Template Language": "text/velocity",
|
||||
"Verilog": "text/x-verilog",
|
||||
"Visual Basic .NET": "text/x-vb",
|
||||
"Volt": "text/x-d",
|
||||
|
@ -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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -65,6 +65,7 @@ var LanguagesType = map[string]int{
|
||||
"ATS": 2,
|
||||
"ActionScript": 2,
|
||||
"Ada": 2,
|
||||
"Adblock Filter List": 1,
|
||||
"Adobe Font Metrics": 1,
|
||||
"Agda": 2,
|
||||
"Alloy": 2,
|
||||
@ -201,6 +202,7 @@ var LanguagesType = map[string]int{
|
||||
"Eiffel": 2,
|
||||
"Elixir": 2,
|
||||
"Elm": 2,
|
||||
"Elvish": 2,
|
||||
"Emacs Lisp": 2,
|
||||
"EmberScript": 2,
|
||||
"Erlang": 2,
|
||||
@ -238,6 +240,7 @@ var LanguagesType = map[string]int{
|
||||
"GSC": 2,
|
||||
"Game Maker Language": 2,
|
||||
"Gemfile.lock": 1,
|
||||
"Gemini": 4,
|
||||
"Genero": 2,
|
||||
"Genero Forms": 3,
|
||||
"Genie": 2,
|
||||
@ -270,6 +273,7 @@ var LanguagesType = map[string]int{
|
||||
"HAProxy": 1,
|
||||
"HCL": 2,
|
||||
"HLSL": 2,
|
||||
"HOCON": 1,
|
||||
"HTML": 3,
|
||||
"HTML+ECR": 3,
|
||||
"HTML+EEX": 3,
|
||||
@ -399,6 +403,7 @@ var LanguagesType = map[string]int{
|
||||
"MoonScript": 2,
|
||||
"Motoko": 2,
|
||||
"Motorola 68K Assembly": 2,
|
||||
"Move": 2,
|
||||
"Muse": 4,
|
||||
"Mustache": 3,
|
||||
"Myghty": 2,
|
||||
@ -409,6 +414,7 @@ var LanguagesType = map[string]int{
|
||||
"NPM Config": 1,
|
||||
"NSIS": 2,
|
||||
"NWScript": 2,
|
||||
"Nasal": 2,
|
||||
"Nearley": 2,
|
||||
"Nemerle": 2,
|
||||
"NetLinx": 2,
|
||||
@ -534,6 +540,7 @@ var LanguagesType = map[string]int{
|
||||
"Roff": 3,
|
||||
"Roff Manpage": 3,
|
||||
"Rouge": 2,
|
||||
"RouterOS Script": 2,
|
||||
"Ruby": 2,
|
||||
"Rust": 2,
|
||||
"SAS": 2,
|
||||
@ -626,6 +633,7 @@ var LanguagesType = map[string]int{
|
||||
"VHDL": 2,
|
||||
"Vala": 2,
|
||||
"Valve Data Format": 1,
|
||||
"Velocity Template Language": 3,
|
||||
"Verilog": 2,
|
||||
"Vim Help File": 4,
|
||||
"Vim Script": 2,
|
||||
@ -648,6 +656,7 @@ var LanguagesType = map[string]int{
|
||||
"Witcher Script": 2,
|
||||
"Wollok": 2,
|
||||
"World of Warcraft Addon Data": 1,
|
||||
"Wren": 2,
|
||||
"X BitMap": 1,
|
||||
"X Font Directory Index": 1,
|
||||
"X PixMap": 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: d7799da826e01acdb8f84694d33116dccaabe9c2
|
||||
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
|
||||
|
||||
package data
|
||||
|
||||
@ -36,7 +36,7 @@ var VendorMatchers = []regex.EnryRegexp{
|
||||
regex.MustCompile(`(^|/)\.indent\.pro`),
|
||||
regex.MustCompile(`(\.|-)min\.(js|css)$`),
|
||||
regex.MustCompile(`([^\s]*)import\.(css|less|scss|styl)$`),
|
||||
regex.MustCompile(`(^|/)bootstrap([^/.]*)\.(js|css|less|scss|styl)$`),
|
||||
regex.MustCompileRuby(`(^|/)bootstrap([^/.]*)(?=\.).*\.(js|css|less|scss|styl)$`),
|
||||
regex.MustCompile(`(^|/)custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$`),
|
||||
regex.MustCompile(`(^|/)font-?awesome\.(css|less|scss|styl)$`),
|
||||
regex.MustCompile(`(^|/)font-?awesome/.*\.(css|less|scss|styl)$`),
|
||||
@ -175,4 +175,4 @@ var VendorMatchers = []regex.EnryRegexp{
|
||||
}
|
||||
|
||||
// FastVendorMatcher is equivalent to matching any of the VendorMatchers.
|
||||
var FastVendorMatcher = regex.MustCompile(`(?:^(?:(?:[Dd]ependencies/)|(?:debian/)|(?:deps/)|(?:rebar$)))|(?:(?:^|/)(?:(?:BuddyBuildSDK\.framework/)|(?:Carthage/)|(?:Chart\.js$)|(?:Control\.FullScreen\.css)|(?:Control\.FullScreen\.js)|(?:Crashlytics\.framework/)|(?:Fabric\.framework/)|(?:Godeps/_workspace/)|(?:Jenkinsfile$)|(?:Leaflet\.Coordinates-\d+\.\d+\.\d+\.src\.js$)|(?:MathJax/)|(?:MochiKit\.js$)|(?:RealmSwift\.framework)|(?:Realm\.framework)|(?:Sparkle/)|(?:Vagrantfile$)|(?:[Bb]ourbon/.*\.(css|less|scss|styl)$)|(?:[Cc]ode[Mm]irror/(\d+\.\d+/)?(lib|mode|theme|addon|keymap|demo))|(?:[Ee]xtern(als?)?/)|(?:[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$)|(?:[Pp]ackages\/.+\.\d+\/)|(?:[Ss]pecs?/fixtures/)|(?:[Tt]ests?/fixtures/)|(?:[Vv]+endor/)|(?:\.[Dd][Ss]_[Ss]tore$)|(?:\.gitattributes$)|(?:\.github/)|(?:\.gitignore$)|(?:\.gitmodules$)|(?:\.gitpod\.Dockerfile$)|(?:\.google_apis/)|(?:\.indent\.pro)|(?:\.mvn/wrapper/)|(?:\.osx$)|(?:\.sublime-project)|(?:\.sublime-workspace)|(?:\.vscode/)|(?:\.yarn/plugins/)|(?:\.yarn/releases/)|(?:\.yarn/sdks/)|(?:\.yarn/unplugged/)|(?:\.yarn/versions/)|(?:_esy$)|(?:ace-builds/)|(?:aclocal\.m4)|(?:activator$)|(?:activator\.bat$)|(?:admin_media/)|(?:angular([^.]*)\.js$)|(?:animate\.(css|less|scss|styl)$)|(?:bootbox\.js)|(?:bootstrap([^/.]*)\.(js|css|less|scss|styl)$)|(?:bootstrap-datepicker/)|(?:bower_components/)|(?:bulma\.(css|sass|scss)$)|(?:cache/)|(?:ckeditor\.js$)|(?:config\.guess$)|(?:config\.sub$)|(?:configure$)|(?:controls\.js$)|(?:cordova([^.]*)\.js$)|(?:cordova\-\d\.\d(\.\d)?\.js$)|(?:cpplint\.py)|(?:custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$)|(?:dist/)|(?:docs?/_?(build|themes?|templates?|static)/)|(?:dojo\.js$)|(?:dotnet-install\.(ps1|sh)$)|(?:dragdrop\.js$)|(?:effects\.js$)|(?:env/)|(?:erlang\.mk)|(?:extjs/.*?\.html$)|(?:extjs/.*?\.js$)|(?:extjs/.*?\.properties$)|(?:extjs/.*?\.txt$)|(?:extjs/.*?\.xml$)|(?:extjs/\.sencha/)|(?:extjs/builds/)|(?:extjs/cmd/)|(?:extjs/docs/)|(?:extjs/examples/)|(?:extjs/locale/)|(?:extjs/packages/)|(?:extjs/plugins/)|(?:extjs/resources/)|(?:extjs/src/)|(?:extjs/welcome/)|(?:fabfile\.py$)|(?:flow-typed/.*\.js$)|(?:font-?awesome/.*\.(css|less|scss|styl)$)|(?:font-?awesome\.(css|less|scss|styl)$)|(?:fontello(.*?)\.css$)|(?:foundation(\..*)?\.js$)|(?:foundation\.(css|less|scss|styl)$)|(?:fuelux\.js)|(?:gradle/wrapper/)|(?:gradlew$)|(?:gradlew\.bat$)|(?:html5shiv\.js$)|(?:inst/extdata/)|(?:jquery([^.]*)\.js$)|(?:jquery([^.]*)\.unobtrusive\-ajax\.js$)|(?:jquery([^.]*)\.validate(\.unobtrusive)?\.js$)|(?:jquery\-\d\.\d+(\.\d+)?\.js$)|(?:jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?\.(js|css)$)|(?:jquery\.(ui|effects)\.([^.]*)\.(js|css)$)|(?:jquery\.dataTables\.js)|(?:jquery\.fancybox\.(js|css))|(?:jquery\.fileupload(-\w+)?\.js$)|(?:jquery\.fn\.gantt\.js)|(?:knockout-(\d+\.){3}(debug\.)?js$)|(?:leaflet\.draw-src\.js)|(?:leaflet\.draw\.css)|(?:leaflet\.spin\.js)|(?:libtool\.m4)|(?:ltoptions\.m4)|(?:ltsugar\.m4)|(?:ltversion\.m4)|(?:lt~obsolete\.m4)|(?:materialize\.(css|less|scss|styl|js)$)|(?:modernizr\-\d\.\d+(\.\d+)?\.js$)|(?:modernizr\.custom\.\d+\.js$)|(?:mootools([^.]*)\d+\.\d+.\d+([^.]*)\.js$)|(?:mvnw$)|(?:mvnw\.cmd$)|(?:node_modules/)|(?:normalize\.(css|less|scss|styl)$)|(?:octicons\.css)|(?:pdf\.worker\.js)|(?:proguard-rules\.pro$)|(?:proguard\.pro$)|(?:prototype(.*)\.js$)|(?:puphpet/)|(?:react(-[^.]*)?\.js$)|(?:run\.n$)|(?:select2/.*\.(css|scss|js)$)|(?:shBrush([^.]*)\.js$)|(?:shCore\.js$)|(?:shLegacy\.js$)|(?:skeleton\.(css|less|scss|styl)$)|(?:slick\.\w+.js$)|(?:sprockets-octicons\.scss)|(?:testdata/)|(?:tiny_mce([^.]*)\.js$)|(?:tiny_mce/(langs|plugins|themes|utils))|(?:vendors?/)|(?:vignettes/)|(?:waf$)|(?:wicket-leaflet\.js)|(?:yahoo-([^.]*)\.js$)|(?:yui([^.]*)\.js$)))|(?:(.*?)\.d\.ts$)|(?:(3rd|[Tt]hird)[-_]?[Pp]arty/)|(?:([^\s]*)import\.(css|less|scss|styl)$)|(?:(\.|-)min\.(js|css)$)|(?:(^|\/)d3(\.v\d+)?([^.]*)\.js$)|(?:-vsdoc\.js$)|(?:\.imageset/)|(?:\.intellisense\.js$)|(?:\.xctemplate/)`)
|
||||
var FastVendorMatcher = regex.MustCompileRuby(`(?:^(?:(?:[Dd]ependencies/)|(?:debian/)|(?:deps/)|(?:rebar$)))|(?:(?:^|/)(?:(?:BuddyBuildSDK\.framework/)|(?:Carthage/)|(?:Chart\.js$)|(?:Control\.FullScreen\.css)|(?:Control\.FullScreen\.js)|(?:Crashlytics\.framework/)|(?:Fabric\.framework/)|(?:Godeps/_workspace/)|(?:Jenkinsfile$)|(?:Leaflet\.Coordinates-\d+\.\d+\.\d+\.src\.js$)|(?:MathJax/)|(?:MochiKit\.js$)|(?:RealmSwift\.framework)|(?:Realm\.framework)|(?:Sparkle/)|(?:Vagrantfile$)|(?:[Bb]ourbon/.*\.(css|less|scss|styl)$)|(?:[Cc]ode[Mm]irror/(\d+\.\d+/)?(lib|mode|theme|addon|keymap|demo))|(?:[Ee]xtern(als?)?/)|(?:[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$)|(?:[Pp]ackages\/.+\.\d+\/)|(?:[Ss]pecs?/fixtures/)|(?:[Tt]ests?/fixtures/)|(?:[Vv]+endor/)|(?:\.[Dd][Ss]_[Ss]tore$)|(?:\.gitattributes$)|(?:\.github/)|(?:\.gitignore$)|(?:\.gitmodules$)|(?:\.gitpod\.Dockerfile$)|(?:\.google_apis/)|(?:\.indent\.pro)|(?:\.mvn/wrapper/)|(?:\.osx$)|(?:\.sublime-project)|(?:\.sublime-workspace)|(?:\.vscode/)|(?:\.yarn/plugins/)|(?:\.yarn/releases/)|(?:\.yarn/sdks/)|(?:\.yarn/unplugged/)|(?:\.yarn/versions/)|(?:_esy$)|(?:ace-builds/)|(?:aclocal\.m4)|(?:activator$)|(?:activator\.bat$)|(?:admin_media/)|(?:angular([^.]*)\.js$)|(?:animate\.(css|less|scss|styl)$)|(?:bootbox\.js)|(?:bootstrap([^/.]*)(?=\.).*\.(js|css|less|scss|styl)$)|(?:bootstrap-datepicker/)|(?:bower_components/)|(?:bulma\.(css|sass|scss)$)|(?:cache/)|(?:ckeditor\.js$)|(?:config\.guess$)|(?:config\.sub$)|(?:configure$)|(?:controls\.js$)|(?:cordova([^.]*)\.js$)|(?:cordova\-\d\.\d(\.\d)?\.js$)|(?:cpplint\.py)|(?:custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$)|(?:dist/)|(?:docs?/_?(build|themes?|templates?|static)/)|(?:dojo\.js$)|(?:dotnet-install\.(ps1|sh)$)|(?:dragdrop\.js$)|(?:effects\.js$)|(?:env/)|(?:erlang\.mk)|(?:extjs/.*?\.html$)|(?:extjs/.*?\.js$)|(?:extjs/.*?\.properties$)|(?:extjs/.*?\.txt$)|(?:extjs/.*?\.xml$)|(?:extjs/\.sencha/)|(?:extjs/builds/)|(?:extjs/cmd/)|(?:extjs/docs/)|(?:extjs/examples/)|(?:extjs/locale/)|(?:extjs/packages/)|(?:extjs/plugins/)|(?:extjs/resources/)|(?:extjs/src/)|(?:extjs/welcome/)|(?:fabfile\.py$)|(?:flow-typed/.*\.js$)|(?:font-?awesome/.*\.(css|less|scss|styl)$)|(?:font-?awesome\.(css|less|scss|styl)$)|(?:fontello(.*?)\.css$)|(?:foundation(\..*)?\.js$)|(?:foundation\.(css|less|scss|styl)$)|(?:fuelux\.js)|(?:gradle/wrapper/)|(?:gradlew$)|(?:gradlew\.bat$)|(?:html5shiv\.js$)|(?:inst/extdata/)|(?:jquery([^.]*)\.js$)|(?:jquery([^.]*)\.unobtrusive\-ajax\.js$)|(?:jquery([^.]*)\.validate(\.unobtrusive)?\.js$)|(?:jquery\-\d\.\d+(\.\d+)?\.js$)|(?:jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?\.(js|css)$)|(?:jquery\.(ui|effects)\.([^.]*)\.(js|css)$)|(?:jquery\.dataTables\.js)|(?:jquery\.fancybox\.(js|css))|(?:jquery\.fileupload(-\w+)?\.js$)|(?:jquery\.fn\.gantt\.js)|(?:knockout-(\d+\.){3}(debug\.)?js$)|(?:leaflet\.draw-src\.js)|(?:leaflet\.draw\.css)|(?:leaflet\.spin\.js)|(?:libtool\.m4)|(?:ltoptions\.m4)|(?:ltsugar\.m4)|(?:ltversion\.m4)|(?:lt~obsolete\.m4)|(?:materialize\.(css|less|scss|styl|js)$)|(?:modernizr\-\d\.\d+(\.\d+)?\.js$)|(?:modernizr\.custom\.\d+\.js$)|(?:mootools([^.]*)\d+\.\d+.\d+([^.]*)\.js$)|(?:mvnw$)|(?:mvnw\.cmd$)|(?:node_modules/)|(?:normalize\.(css|less|scss|styl)$)|(?:octicons\.css)|(?:pdf\.worker\.js)|(?:proguard-rules\.pro$)|(?:proguard\.pro$)|(?:prototype(.*)\.js$)|(?:puphpet/)|(?:react(-[^.]*)?\.js$)|(?:run\.n$)|(?:select2/.*\.(css|scss|js)$)|(?:shBrush([^.]*)\.js$)|(?:shCore\.js$)|(?:shLegacy\.js$)|(?:skeleton\.(css|less|scss|styl)$)|(?:slick\.\w+.js$)|(?:sprockets-octicons\.scss)|(?:testdata/)|(?:tiny_mce([^.]*)\.js$)|(?:tiny_mce/(langs|plugins|themes|utils))|(?:vendors?/)|(?:vignettes/)|(?:waf$)|(?:wicket-leaflet\.js)|(?:yahoo-([^.]*)\.js$)|(?:yui([^.]*)\.js$)))|(?:(.*?)\.d\.ts$)|(?:(3rd|[Tt]hird)[-_]?[Pp]arty/)|(?:([^\s]*)import\.(css|less|scss|styl)$)|(?:(\.|-)min\.(js|css)$)|(?:(^|\/)d3(\.v\d+)?([^.]*)\.js$)|(?:-vsdoc\.js$)|(?:\.imageset/)|(?:\.intellisense\.js$)|(?:\.xctemplate/)`)
|
||||
|
@ -8,7 +8,6 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/go-enry/go-enry/v2/data"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/suite"
|
||||
)
|
||||
|
||||
@ -25,9 +24,15 @@ func Test_EnryOnLinguistCorpus(t *testing.T) {
|
||||
func (s *linguistCorpusSuite) TestLinguistSamples() {
|
||||
const filenamesDir = "filenames"
|
||||
var cornerCases = map[string]bool{
|
||||
"drop_stuff.sql": true, // https://github.com/src-d/enry/issues/194
|
||||
"textobj-rubyblock.vba": true, // Because of unsupported negative lookahead RE syntax (https://github.com/github/linguist/blob/8083cb5a89cee2d99f5a988f165994d0243f0d1e/lib/linguist/heuristics.yml#L521)
|
||||
"drop_stuff.sql": false, // not the case in v7.23, https://github.com/src-d/enry/issues/194
|
||||
"textobj-rubyblock.vba": true, // unsupported negative lookahead RE syntax (https://github.com/github/linguist/blob/8083cb5a89cee2d99f5a988f165994d0243f0d1e/lib/linguist/heuristics.yml#L521)
|
||||
// .es and .ice fail heuristics parsing, but do not fail any tests
|
||||
// 'Adblock Filter List' hack https://github.com/github/linguist/blob/bf853f1c663903e3ee35935189760191f1c45e1c/lib/linguist/heuristics.yml#L680-L702
|
||||
"Imperial Units Remover.txt": true,
|
||||
"abp-filters-anti-cv.txt": true,
|
||||
"anti-facebook.txt": true,
|
||||
"fake-news.txt": true,
|
||||
"test_rules.txt": true,
|
||||
}
|
||||
|
||||
var total, failed, ok, other int
|
||||
@ -45,25 +50,23 @@ func (s *linguistCorpusSuite) TestLinguistSamples() {
|
||||
content, _ := ioutil.ReadFile(path)
|
||||
|
||||
total++
|
||||
obtained := GetLanguage(filename, content)
|
||||
if obtained == OtherLanguage {
|
||||
obtained = "Other"
|
||||
got := GetLanguage(filename, content)
|
||||
if got == OtherLanguage {
|
||||
got = "Other"
|
||||
other++
|
||||
}
|
||||
|
||||
var status string
|
||||
if expected == obtained {
|
||||
status = "ok"
|
||||
if expected == got {
|
||||
ok++
|
||||
} else {
|
||||
status = "failed"
|
||||
failed++
|
||||
}
|
||||
|
||||
errMsg := fmt.Sprintf("file: %q\texpected: %q\tgot: %q\n", path, expected, got)
|
||||
if _, ok := cornerCases[filename]; ok {
|
||||
s.T().Logf("\t\t[considered corner case] %s\texpected: %s\tobtained: %s\tstatus: %s\n", filename, expected, obtained, status)
|
||||
s.T().Logf(fmt.Sprintf("\t\t[corner case] %s", errMsg))
|
||||
} else {
|
||||
assert.Equal(s.T(), expected, obtained, fmt.Sprintf("%s\texpected: %s\tobtained: %s\tstatus: %s\n", filename, expected, obtained, status))
|
||||
s.Equal(expected, got, errMsg)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
@ -51,8 +51,9 @@ var vendorTests = []struct {
|
||||
{false, "some/python/venv/", false},
|
||||
{false, "foo/.imageset/bar", true},
|
||||
{false, "Vagrantfile", true},
|
||||
{false, "custom.bootstrap.css", true},
|
||||
{true, "src/bootstrap-custom.js", true},
|
||||
// {true, "/css/bootstrap.rtl.css", true}, // from linguist v7.23
|
||||
{true, "/css/bootstrap.rtl.css", true}, // from linguist v7.23
|
||||
}
|
||||
|
||||
func TestIsVendor(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user