mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-12-05 00:00:34 +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
|
## 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:
|
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.
|
- [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).
|
- 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).
|
- 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.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -21,9 +21,14 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"actionscript": "ActionScript",
|
"actionscript": "ActionScript",
|
||||||
"actionscript3": "ActionScript",
|
"actionscript3": "ActionScript",
|
||||||
"actionscript_3": "ActionScript",
|
"actionscript_3": "ActionScript",
|
||||||
|
"ad_block": "Adblock Filter List",
|
||||||
|
"ad_block_filters": "Adblock Filter List",
|
||||||
"ada": "Ada",
|
"ada": "Ada",
|
||||||
"ada2005": "Ada",
|
"ada2005": "Ada",
|
||||||
"ada95": "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_composite_font_metrics": "Adobe Font Metrics",
|
||||||
"adobe_font_metrics": "Adobe Font Metrics",
|
"adobe_font_metrics": "Adobe Font Metrics",
|
||||||
"adobe_multiple_font_metrics": "Adobe Font Metrics",
|
"adobe_multiple_font_metrics": "Adobe Font Metrics",
|
||||||
@ -257,6 +262,7 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"elisp": "Emacs Lisp",
|
"elisp": "Emacs Lisp",
|
||||||
"elixir": "Elixir",
|
"elixir": "Elixir",
|
||||||
"elm": "Elm",
|
"elm": "Elm",
|
||||||
|
"elvish": "Elvish",
|
||||||
"emacs": "Emacs Lisp",
|
"emacs": "Emacs Lisp",
|
||||||
"emacs_lisp": "Emacs Lisp",
|
"emacs_lisp": "Emacs Lisp",
|
||||||
"emacs_muse": "Muse",
|
"emacs_muse": "Muse",
|
||||||
@ -307,6 +313,8 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"gdscript": "GDScript",
|
"gdscript": "GDScript",
|
||||||
"gedcom": "GEDCOM",
|
"gedcom": "GEDCOM",
|
||||||
"gemfile.lock": "Gemfile.lock",
|
"gemfile.lock": "Gemfile.lock",
|
||||||
|
"gemini": "Gemini",
|
||||||
|
"gemtext": "Gemini",
|
||||||
"genero": "Genero",
|
"genero": "Genero",
|
||||||
"genero_forms": "Genero Forms",
|
"genero_forms": "Genero Forms",
|
||||||
"genie": "Genie",
|
"genie": "Genie",
|
||||||
@ -371,6 +379,7 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"help": "Vim Help File",
|
"help": "Vim Help File",
|
||||||
"hiveql": "HiveQL",
|
"hiveql": "HiveQL",
|
||||||
"hlsl": "HLSL",
|
"hlsl": "HLSL",
|
||||||
|
"hocon": "HOCON",
|
||||||
"holyc": "HolyC",
|
"holyc": "HolyC",
|
||||||
"hoon": "hoon",
|
"hoon": "hoon",
|
||||||
"html": "HTML",
|
"html": "HTML",
|
||||||
@ -549,6 +558,7 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"moonscript": "MoonScript",
|
"moonscript": "MoonScript",
|
||||||
"motoko": "Motoko",
|
"motoko": "Motoko",
|
||||||
"motorola_68k_assembly": "Motorola 68K Assembly",
|
"motorola_68k_assembly": "Motorola 68K Assembly",
|
||||||
|
"move": "Move",
|
||||||
"mps": "JetBrains MPS",
|
"mps": "JetBrains MPS",
|
||||||
"mql4": "MQL4",
|
"mql4": "MQL4",
|
||||||
"mql5": "MQL5",
|
"mql5": "MQL5",
|
||||||
@ -560,6 +570,7 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"mustache": "Mustache",
|
"mustache": "Mustache",
|
||||||
"myghty": "Myghty",
|
"myghty": "Myghty",
|
||||||
"nanorc": "nanorc",
|
"nanorc": "nanorc",
|
||||||
|
"nasal": "Nasal",
|
||||||
"nasl": "NASL",
|
"nasl": "NASL",
|
||||||
"nasm": "Assembly",
|
"nasm": "Assembly",
|
||||||
"ncl": "NCL",
|
"ncl": "NCL",
|
||||||
@ -760,6 +771,7 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"roff": "Roff",
|
"roff": "Roff",
|
||||||
"roff_manpage": "Roff Manpage",
|
"roff_manpage": "Roff Manpage",
|
||||||
"rouge": "Rouge",
|
"rouge": "Rouge",
|
||||||
|
"routeros_script": "RouterOS Script",
|
||||||
"rpc": "RPC",
|
"rpc": "RPC",
|
||||||
"rpcgen": "RPC",
|
"rpcgen": "RPC",
|
||||||
"rpgle": "RPGLE",
|
"rpgle": "RPGLE",
|
||||||
@ -900,6 +912,8 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"vbscript": "VBScript",
|
"vbscript": "VBScript",
|
||||||
"vcl": "VCL",
|
"vcl": "VCL",
|
||||||
"vdf": "Valve Data Format",
|
"vdf": "Valve Data Format",
|
||||||
|
"velocity": "Velocity Template Language",
|
||||||
|
"velocity_template_language": "Velocity Template Language",
|
||||||
"verilog": "Verilog",
|
"verilog": "Verilog",
|
||||||
"vhdl": "VHDL",
|
"vhdl": "VHDL",
|
||||||
"vim": "Vim Script",
|
"vim": "Vim Script",
|
||||||
@ -914,6 +928,7 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"visual_basic_for_applications": "VBA",
|
"visual_basic_for_applications": "VBA",
|
||||||
"vlang": "V",
|
"vlang": "V",
|
||||||
"volt": "Volt",
|
"volt": "Volt",
|
||||||
|
"vtl": "Velocity Template Language",
|
||||||
"vtt": "WebVTT",
|
"vtt": "WebVTT",
|
||||||
"vue": "Vue",
|
"vue": "Vue",
|
||||||
"vyper": "Vyper",
|
"vyper": "Vyper",
|
||||||
@ -942,6 +957,8 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"wolfram_language": "Mathematica",
|
"wolfram_language": "Mathematica",
|
||||||
"wollok": "Wollok",
|
"wollok": "Wollok",
|
||||||
"world_of_warcraft_addon_data": "World of Warcraft Addon Data",
|
"world_of_warcraft_addon_data": "World of Warcraft Addon Data",
|
||||||
|
"wren": "Wren",
|
||||||
|
"wrenlang": "Wren",
|
||||||
"wsdl": "XML",
|
"wsdl": "XML",
|
||||||
"x10": "X10",
|
"x10": "X10",
|
||||||
"x_bitmap": "X BitMap",
|
"x_bitmap": "X BitMap",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -20,6 +20,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"ATS": "#1ac620",
|
"ATS": "#1ac620",
|
||||||
"ActionScript": "#882B0F",
|
"ActionScript": "#882B0F",
|
||||||
"Ada": "#02f88c",
|
"Ada": "#02f88c",
|
||||||
|
"Adblock Filter List": "#800000",
|
||||||
"Adobe Font Metrics": "#fa0f00",
|
"Adobe Font Metrics": "#fa0f00",
|
||||||
"Agda": "#315665",
|
"Agda": "#315665",
|
||||||
"Alloy": "#64C800",
|
"Alloy": "#64C800",
|
||||||
@ -132,6 +133,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"Eiffel": "#4d6977",
|
"Eiffel": "#4d6977",
|
||||||
"Elixir": "#6e4a7e",
|
"Elixir": "#6e4a7e",
|
||||||
"Elm": "#60B5CC",
|
"Elm": "#60B5CC",
|
||||||
|
"Elvish": "#55BB55",
|
||||||
"Emacs Lisp": "#c065db",
|
"Emacs Lisp": "#c065db",
|
||||||
"EmberScript": "#FFF4F3",
|
"EmberScript": "#FFF4F3",
|
||||||
"Erlang": "#B83998",
|
"Erlang": "#B83998",
|
||||||
@ -165,6 +167,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"GSC": "#FF6800",
|
"GSC": "#FF6800",
|
||||||
"Game Maker Language": "#71b417",
|
"Game Maker Language": "#71b417",
|
||||||
"Gemfile.lock": "#701516",
|
"Gemfile.lock": "#701516",
|
||||||
|
"Gemini": "#ff6900",
|
||||||
"Genero": "#63408e",
|
"Genero": "#63408e",
|
||||||
"Genero Forms": "#d8df39",
|
"Genero Forms": "#d8df39",
|
||||||
"Genie": "#fb855d",
|
"Genie": "#fb855d",
|
||||||
@ -193,6 +196,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"Groovy Server Pages": "#4298b8",
|
"Groovy Server Pages": "#4298b8",
|
||||||
"HAProxy": "#106da9",
|
"HAProxy": "#106da9",
|
||||||
"HLSL": "#aace60",
|
"HLSL": "#aace60",
|
||||||
|
"HOCON": "#9ff8ee",
|
||||||
"HTML": "#e34c26",
|
"HTML": "#e34c26",
|
||||||
"HTML+ECR": "#2e1052",
|
"HTML+ECR": "#2e1052",
|
||||||
"HTML+EEX": "#6e4a7e",
|
"HTML+EEX": "#6e4a7e",
|
||||||
@ -299,10 +303,12 @@ var LanguagesColor = map[string]string{
|
|||||||
"MoonScript": "#ff4585",
|
"MoonScript": "#ff4585",
|
||||||
"Motoko": "#fbb03b",
|
"Motoko": "#fbb03b",
|
||||||
"Motorola 68K Assembly": "#005daa",
|
"Motorola 68K Assembly": "#005daa",
|
||||||
|
"Move": "#4a137a",
|
||||||
"Mustache": "#724b3b",
|
"Mustache": "#724b3b",
|
||||||
"NCL": "#28431f",
|
"NCL": "#28431f",
|
||||||
"NPM Config": "#cb3837",
|
"NPM Config": "#cb3837",
|
||||||
"NWScript": "#111522",
|
"NWScript": "#111522",
|
||||||
|
"Nasal": "#1d2c4e",
|
||||||
"Nearley": "#990000",
|
"Nearley": "#990000",
|
||||||
"Nemerle": "#3d3c6e",
|
"Nemerle": "#3d3c6e",
|
||||||
"NetLinx": "#0aa0ff",
|
"NetLinx": "#0aa0ff",
|
||||||
@ -397,6 +403,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"Roff": "#ecdebe",
|
"Roff": "#ecdebe",
|
||||||
"Roff Manpage": "#ecdebe",
|
"Roff Manpage": "#ecdebe",
|
||||||
"Rouge": "#cc0088",
|
"Rouge": "#cc0088",
|
||||||
|
"RouterOS Script": "#DE3941",
|
||||||
"Ruby": "#701516",
|
"Ruby": "#701516",
|
||||||
"Rust": "#dea584",
|
"Rust": "#dea584",
|
||||||
"SAS": "#B34936",
|
"SAS": "#B34936",
|
||||||
@ -470,6 +477,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"VHDL": "#adb2cb",
|
"VHDL": "#adb2cb",
|
||||||
"Vala": "#a56de2",
|
"Vala": "#a56de2",
|
||||||
"Valve Data Format": "#f26025",
|
"Valve Data Format": "#f26025",
|
||||||
|
"Velocity Template Language": "#507cff",
|
||||||
"Verilog": "#b2b7f8",
|
"Verilog": "#b2b7f8",
|
||||||
"Vim Help File": "#199f4b",
|
"Vim Help File": "#199f4b",
|
||||||
"Vim Script": "#199f4b",
|
"Vim Script": "#199f4b",
|
||||||
@ -486,6 +494,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"Witcher Script": "#ff0000",
|
"Witcher Script": "#ff0000",
|
||||||
"Wollok": "#a23738",
|
"Wollok": "#a23738",
|
||||||
"World of Warcraft Addon Data": "#f7e43f",
|
"World of Warcraft Addon Data": "#f7e43f",
|
||||||
|
"Wren": "#383838",
|
||||||
"X10": "#4B6BEF",
|
"X10": "#4B6BEF",
|
||||||
"XC": "#99DA07",
|
"XC": "#99DA07",
|
||||||
"XML": "#0060ac",
|
"XML": "#0060ac",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
// linguist's commit from which files were generated.
|
// 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.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -647,6 +647,20 @@ var ContentHeuristics = map[string]*Heuristics{
|
|||||||
regex.MustCompileMultiline(`\((def|defn|defmacro|let)\s`),
|
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{
|
".bi": &Heuristics{
|
||||||
rule.Or(
|
rule.Or(
|
||||||
rule.MatchingLanguages("FreeBasic"),
|
rule.MatchingLanguages("FreeBasic"),
|
||||||
@ -712,7 +726,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
|||||||
),
|
),
|
||||||
rule.Or(
|
rule.Or(
|
||||||
rule.MatchingLanguages("C#"),
|
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{
|
".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]*)?\}`),
|
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{
|
".gd": &Heuristics{
|
||||||
rule.Or(
|
rule.Or(
|
||||||
rule.MatchingLanguages("GAP"),
|
rule.MatchingLanguages("GAP"),
|
||||||
@ -1356,7 +1380,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
|||||||
),
|
),
|
||||||
rule.Or(
|
rule.Or(
|
||||||
rule.MatchingLanguages("IDL"),
|
rule.MatchingLanguages("IDL"),
|
||||||
regex.MustCompileMultiline(`^\s*function[ \w,]+$`),
|
regex.MustCompileMultiline(`^\s*(?i:function|pro|compile_opt) \w[ \w,:]*$`),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
".properties": &Heuristics{
|
".properties": &Heuristics{
|
||||||
@ -1486,6 +1510,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
|||||||
regex.MustCompileMultiline(`(^\s*import (scala|java)\.|^\s*class\b)`),
|
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{
|
".sol": &Heuristics{
|
||||||
rule.Or(
|
rule.Or(
|
||||||
rule.MatchingLanguages("Solidity"),
|
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+`),
|
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{
|
".toc": &Heuristics{
|
||||||
rule.Or(
|
rule.Or(
|
||||||
rule.MatchingLanguages("World of Warcraft Addon Data"),
|
rule.MatchingLanguages("World of Warcraft Addon Data"),
|
||||||
@ -1605,6 +1645,28 @@ var ContentHeuristics = map[string]*Heuristics{
|
|||||||
rule.MatchingLanguages("Vim Help File"),
|
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|:)`),
|
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.Always(
|
||||||
rule.MatchingLanguages("Text"),
|
rule.MatchingLanguages("Text"),
|
||||||
),
|
),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".bdy": {"PLSQL"},
|
".bdy": {"PLSQL"},
|
||||||
".be": {"Berry"},
|
".be": {"Berry"},
|
||||||
".befunge": {"Befunge"},
|
".befunge": {"Befunge"},
|
||||||
".bf": {"Beef", "Brainfuck", "HyPhy"},
|
".bf": {"Beef", "Befunge", "Brainfuck", "HyPhy"},
|
||||||
".bi": {"FreeBasic"},
|
".bi": {"FreeBasic"},
|
||||||
".bib": {"BibTeX"},
|
".bib": {"BibTeX"},
|
||||||
".bibtex": {"BibTeX"},
|
".bibtex": {"BibTeX"},
|
||||||
@ -305,6 +305,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".eliom": {"OCaml"},
|
".eliom": {"OCaml"},
|
||||||
".eliomi": {"OCaml"},
|
".eliomi": {"OCaml"},
|
||||||
".elm": {"Elm"},
|
".elm": {"Elm"},
|
||||||
|
".elv": {"Elvish"},
|
||||||
".em": {"EmberScript"},
|
".em": {"EmberScript"},
|
||||||
".emacs": {"Emacs Lisp"},
|
".emacs": {"Emacs Lisp"},
|
||||||
".emacs.desktop": {"Emacs Lisp"},
|
".emacs.desktop": {"Emacs Lisp"},
|
||||||
@ -402,6 +403,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".glslv": {"GLSL"},
|
".glslv": {"GLSL"},
|
||||||
".gltf": {"JSON"},
|
".gltf": {"JSON"},
|
||||||
".glyphs": {"OpenStep Property List"},
|
".glyphs": {"OpenStep Property List"},
|
||||||
|
".gmi": {"Gemini"},
|
||||||
".gml": {"Game Maker Language", "Gerber Image", "Graph Modeling Language", "XML"},
|
".gml": {"Game Maker Language", "Gerber Image", "Graph Modeling Language", "XML"},
|
||||||
".gms": {"GAMS"},
|
".gms": {"GAMS"},
|
||||||
".gmx": {"XML"},
|
".gmx": {"XML"},
|
||||||
@ -457,6 +459,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".hlean": {"Lean"},
|
".hlean": {"Lean"},
|
||||||
".hlsl": {"HLSL"},
|
".hlsl": {"HLSL"},
|
||||||
".hlsli": {"HLSL"},
|
".hlsli": {"HLSL"},
|
||||||
|
".hocon": {"HOCON"},
|
||||||
".hoon": {"hoon"},
|
".hoon": {"hoon"},
|
||||||
".hpp": {"C++"},
|
".hpp": {"C++"},
|
||||||
".hqf": {"SQF"},
|
".hqf": {"SQF"},
|
||||||
@ -556,6 +559,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".kit": {"Kit"},
|
".kit": {"Kit"},
|
||||||
".kml": {"XML"},
|
".kml": {"XML"},
|
||||||
".kojo": {"Scala"},
|
".kojo": {"Scala"},
|
||||||
|
".kql": {"Kusto"},
|
||||||
".krl": {"KRL"},
|
".krl": {"KRL"},
|
||||||
".ksh": {"Shell"},
|
".ksh": {"Shell"},
|
||||||
".ksy": {"Kaitai Struct"},
|
".ksy": {"Kaitai Struct"},
|
||||||
@ -680,6 +684,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".monkey2": {"Monkey"},
|
".monkey2": {"Monkey"},
|
||||||
".moo": {"Mercury", "Moocode"},
|
".moo": {"Mercury", "Moocode"},
|
||||||
".moon": {"MoonScript"},
|
".moon": {"MoonScript"},
|
||||||
|
".move": {"Move"},
|
||||||
".mpl": {"JetBrains MPS"},
|
".mpl": {"JetBrains MPS"},
|
||||||
".mps": {"JetBrains MPS"},
|
".mps": {"JetBrains MPS"},
|
||||||
".mq4": {"MQL4"},
|
".mq4": {"MQL4"},
|
||||||
@ -706,6 +711,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".myt": {"Myghty"},
|
".myt": {"Myghty"},
|
||||||
".n": {"Nemerle", "Roff"},
|
".n": {"Nemerle", "Roff"},
|
||||||
".nanorc": {"nanorc"},
|
".nanorc": {"nanorc"},
|
||||||
|
".nas": {"Assembly", "Nasal"},
|
||||||
".nasl": {"NASL"},
|
".nasl": {"NASL"},
|
||||||
".nasm": {"Assembly"},
|
".nasm": {"Assembly"},
|
||||||
".natvis": {"XML"},
|
".natvis": {"XML"},
|
||||||
@ -888,6 +894,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".q": {"HiveQL", "q"},
|
".q": {"HiveQL", "q"},
|
||||||
".qasm": {"OpenQASM"},
|
".qasm": {"OpenQASM"},
|
||||||
".qbs": {"QML"},
|
".qbs": {"QML"},
|
||||||
|
".qhelp": {"XML"},
|
||||||
".ql": {"CodeQL"},
|
".ql": {"CodeQL"},
|
||||||
".qll": {"CodeQL"},
|
".qll": {"CodeQL"},
|
||||||
".qmd": {"RMarkdown"},
|
".qmd": {"RMarkdown"},
|
||||||
@ -958,7 +965,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".rq": {"SPARQL"},
|
".rq": {"SPARQL"},
|
||||||
".rs": {"RenderScript", "Rust", "XML"},
|
".rs": {"RenderScript", "Rust", "XML"},
|
||||||
".rs.in": {"Rust"},
|
".rs.in": {"Rust"},
|
||||||
".rsc": {"Rascal"},
|
".rsc": {"Rascal", "RouterOS Script"},
|
||||||
".rsh": {"RenderScript"},
|
".rsh": {"RenderScript"},
|
||||||
".rss": {"XML"},
|
".rss": {"XML"},
|
||||||
".rst": {"reStructuredText"},
|
".rst": {"reStructuredText"},
|
||||||
@ -1083,6 +1090,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".t": {"Perl", "Raku", "Terra", "Turing"},
|
".t": {"Perl", "Raku", "Terra", "Turing"},
|
||||||
".tab": {"SQL"},
|
".tab": {"SQL"},
|
||||||
".tac": {"Python"},
|
".tac": {"Python"},
|
||||||
|
".tag": {"Java Server Pages"},
|
||||||
".talon": {"Talon"},
|
".talon": {"Talon"},
|
||||||
".targets": {"XML"},
|
".targets": {"XML"},
|
||||||
".tcc": {"C++"},
|
".tcc": {"C++"},
|
||||||
@ -1134,7 +1142,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".twig": {"Twig"},
|
".twig": {"Twig"},
|
||||||
".txi": {"Texinfo"},
|
".txi": {"Texinfo"},
|
||||||
".txl": {"TXL"},
|
".txl": {"TXL"},
|
||||||
".txt": {"Text", "Vim Help File"},
|
".txt": {"Adblock Filter List", "Text", "Vim Help File"},
|
||||||
".uc": {"UnrealScript"},
|
".uc": {"UnrealScript"},
|
||||||
".udf": {"SQL"},
|
".udf": {"SQL"},
|
||||||
".udo": {"Csound"},
|
".udo": {"Csound"},
|
||||||
@ -1183,6 +1191,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".vsixmanifest": {"XML"},
|
".vsixmanifest": {"XML"},
|
||||||
".vssettings": {"XML"},
|
".vssettings": {"XML"},
|
||||||
".vstemplate": {"XML"},
|
".vstemplate": {"XML"},
|
||||||
|
".vtl": {"Velocity Template Language"},
|
||||||
".vtt": {"WebVTT"},
|
".vtt": {"WebVTT"},
|
||||||
".vue": {"Vue"},
|
".vue": {"Vue"},
|
||||||
".vw": {"PLSQL"},
|
".vw": {"PLSQL"},
|
||||||
@ -1208,6 +1217,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".wlua": {"Lua"},
|
".wlua": {"Lua"},
|
||||||
".workbook": {"Markdown"},
|
".workbook": {"Markdown"},
|
||||||
".workflow": {"HCL", "XML"},
|
".workflow": {"HCL", "XML"},
|
||||||
|
".wren": {"Wren"},
|
||||||
".ws": {"Witcher Script"},
|
".ws": {"Witcher Script"},
|
||||||
".wsdl": {"XML"},
|
".wsdl": {"XML"},
|
||||||
".wsf": {"XML"},
|
".wsf": {"XML"},
|
||||||
@ -1315,6 +1325,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"ATS": {".dats", ".hats", ".sats"},
|
"ATS": {".dats", ".hats", ".sats"},
|
||||||
"ActionScript": {".as"},
|
"ActionScript": {".as"},
|
||||||
"Ada": {".adb", ".ada", ".ads"},
|
"Ada": {".adb", ".ada", ".ads"},
|
||||||
|
"Adblock Filter List": {".txt"},
|
||||||
"Adobe Font Metrics": {".afm"},
|
"Adobe Font Metrics": {".afm"},
|
||||||
"Agda": {".agda"},
|
"Agda": {".agda"},
|
||||||
"Alloy": {".als"},
|
"Alloy": {".als"},
|
||||||
@ -1328,7 +1339,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"Arc": {".arc"},
|
"Arc": {".arc"},
|
||||||
"AsciiDoc": {".asciidoc", ".adoc", ".asc"},
|
"AsciiDoc": {".asciidoc", ".adoc", ".asc"},
|
||||||
"AspectJ": {".aj"},
|
"AspectJ": {".aj"},
|
||||||
"Assembly": {".asm", ".a51", ".i", ".inc", ".nasm"},
|
"Assembly": {".asm", ".a51", ".i", ".inc", ".nas", ".nasm"},
|
||||||
"Astro": {".astro"},
|
"Astro": {".astro"},
|
||||||
"Asymptote": {".asy"},
|
"Asymptote": {".asy"},
|
||||||
"Augeas": {".aug"},
|
"Augeas": {".aug"},
|
||||||
@ -1340,7 +1351,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"Ballerina": {".bal"},
|
"Ballerina": {".bal"},
|
||||||
"Batchfile": {".bat", ".cmd"},
|
"Batchfile": {".bat", ".cmd"},
|
||||||
"Beef": {".bf"},
|
"Beef": {".bf"},
|
||||||
"Befunge": {".befunge"},
|
"Befunge": {".befunge", ".bf"},
|
||||||
"Berry": {".be"},
|
"Berry": {".be"},
|
||||||
"BibTeX": {".bib", ".bibtex"},
|
"BibTeX": {".bib", ".bibtex"},
|
||||||
"Bicep": {".bicep"},
|
"Bicep": {".bicep"},
|
||||||
@ -1444,6 +1455,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"Eiffel": {".e"},
|
"Eiffel": {".e"},
|
||||||
"Elixir": {".ex", ".exs"},
|
"Elixir": {".ex", ".exs"},
|
||||||
"Elm": {".elm"},
|
"Elm": {".elm"},
|
||||||
|
"Elvish": {".elv"},
|
||||||
"Emacs Lisp": {".el", ".emacs", ".emacs.desktop"},
|
"Emacs Lisp": {".el", ".emacs", ".emacs.desktop"},
|
||||||
"EmberScript": {".em", ".emberscript"},
|
"EmberScript": {".em", ".emberscript"},
|
||||||
"Erlang": {".erl", ".app.src", ".es", ".escript", ".hrl", ".xrl", ".yrl"},
|
"Erlang": {".erl", ".app.src", ".es", ".escript", ".hrl", ".xrl", ".yrl"},
|
||||||
@ -1480,6 +1492,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"GN": {".gn", ".gni"},
|
"GN": {".gn", ".gni"},
|
||||||
"GSC": {".gsc", ".csc", ".gsh"},
|
"GSC": {".gsc", ".csc", ".gsh"},
|
||||||
"Game Maker Language": {".gml"},
|
"Game Maker Language": {".gml"},
|
||||||
|
"Gemini": {".gmi"},
|
||||||
"Genero": {".4gl"},
|
"Genero": {".4gl"},
|
||||||
"Genero Forms": {".per"},
|
"Genero Forms": {".per"},
|
||||||
"Genie": {".gs"},
|
"Genie": {".gs"},
|
||||||
@ -1508,6 +1521,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"HAProxy": {".cfg"},
|
"HAProxy": {".cfg"},
|
||||||
"HCL": {".hcl", ".nomad", ".tf", ".tfvars", ".workflow"},
|
"HCL": {".hcl", ".nomad", ".tf", ".tfvars", ".workflow"},
|
||||||
"HLSL": {".hlsl", ".cginc", ".fx", ".fxh", ".hlsli"},
|
"HLSL": {".hlsl", ".cginc", ".fx", ".fxh", ".hlsli"},
|
||||||
|
"HOCON": {".hocon"},
|
||||||
"HTML": {".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml"},
|
"HTML": {".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml"},
|
||||||
"HTML+ECR": {".ecr"},
|
"HTML+ECR": {".ecr"},
|
||||||
"HTML+EEX": {".eex", ".html.heex", ".html.leex"},
|
"HTML+EEX": {".eex", ".html.heex", ".html.leex"},
|
||||||
@ -1549,7 +1563,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"Jasmin": {".j"},
|
"Jasmin": {".j"},
|
||||||
"Java": {".java", ".jav"},
|
"Java": {".java", ".jav"},
|
||||||
"Java Properties": {".properties"},
|
"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": {".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"},
|
"JavaScript+ERB": {".js.erb"},
|
||||||
"Jest Snapshot": {".snap"},
|
"Jest Snapshot": {".snap"},
|
||||||
@ -1569,7 +1583,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"KiCad Schematic": {".kicad_sch", ".sch"},
|
"KiCad Schematic": {".kicad_sch", ".sch"},
|
||||||
"Kit": {".kit"},
|
"Kit": {".kit"},
|
||||||
"Kotlin": {".kt", ".ktm", ".kts"},
|
"Kotlin": {".kt", ".ktm", ".kts"},
|
||||||
"Kusto": {".csl"},
|
"Kusto": {".csl", ".kql"},
|
||||||
"LFE": {".lfe"},
|
"LFE": {".lfe"},
|
||||||
"LLVM": {".ll"},
|
"LLVM": {".ll"},
|
||||||
"LOLCODE": {".lol"},
|
"LOLCODE": {".lol"},
|
||||||
@ -1633,6 +1647,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"MoonScript": {".moon"},
|
"MoonScript": {".moon"},
|
||||||
"Motoko": {".mo"},
|
"Motoko": {".mo"},
|
||||||
"Motorola 68K Assembly": {".asm", ".i", ".inc", ".s", ".x68"},
|
"Motorola 68K Assembly": {".asm", ".i", ".inc", ".s", ".x68"},
|
||||||
|
"Move": {".move"},
|
||||||
"Muse": {".muse"},
|
"Muse": {".muse"},
|
||||||
"Mustache": {".mustache"},
|
"Mustache": {".mustache"},
|
||||||
"Myghty": {".myt"},
|
"Myghty": {".myt"},
|
||||||
@ -1642,6 +1657,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"NL": {".nl"},
|
"NL": {".nl"},
|
||||||
"NSIS": {".nsi", ".nsh"},
|
"NSIS": {".nsi", ".nsh"},
|
||||||
"NWScript": {".nss"},
|
"NWScript": {".nss"},
|
||||||
|
"Nasal": {".nas"},
|
||||||
"Nearley": {".ne", ".nearley"},
|
"Nearley": {".ne", ".nearley"},
|
||||||
"Nemerle": {".n"},
|
"Nemerle": {".n"},
|
||||||
"NetLinx": {".axs", ".axi"},
|
"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": {".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"},
|
"Roff Manpage": {".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3p", ".3pm", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".man", ".mdoc"},
|
||||||
"Rouge": {".rg"},
|
"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"},
|
"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"},
|
"Rust": {".rs", ".rs.in"},
|
||||||
"SAS": {".sas"},
|
"SAS": {".sas"},
|
||||||
@ -1847,6 +1864,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"VHDL": {".vhdl", ".vhd", ".vhf", ".vhi", ".vho", ".vhs", ".vht", ".vhw"},
|
"VHDL": {".vhdl", ".vhd", ".vhf", ".vhi", ".vho", ".vhs", ".vht", ".vhw"},
|
||||||
"Vala": {".vala", ".vapi"},
|
"Vala": {".vala", ".vapi"},
|
||||||
"Valve Data Format": {".vdf"},
|
"Valve Data Format": {".vdf"},
|
||||||
|
"Velocity Template Language": {".vtl"},
|
||||||
"Verilog": {".v", ".veo"},
|
"Verilog": {".v", ".veo"},
|
||||||
"Vim Help File": {".txt"},
|
"Vim Help File": {".txt"},
|
||||||
"Vim Script": {".vim", ".vba", ".vimrc", ".vmb"},
|
"Vim Script": {".vim", ".vba", ".vimrc", ".vmb"},
|
||||||
@ -1868,11 +1886,12 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"Witcher Script": {".ws"},
|
"Witcher Script": {".ws"},
|
||||||
"Wollok": {".wlk"},
|
"Wollok": {".wlk"},
|
||||||
"World of Warcraft Addon Data": {".toc"},
|
"World of Warcraft Addon Data": {".toc"},
|
||||||
|
"Wren": {".wren"},
|
||||||
"X BitMap": {".xbm"},
|
"X BitMap": {".xbm"},
|
||||||
"X PixMap": {".xpm", ".pm"},
|
"X PixMap": {".xpm", ".pm"},
|
||||||
"X10": {".x10"},
|
"X10": {".x10"},
|
||||||
"XC": {".xc"},
|
"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"},
|
"XML Property List": {".plist", ".sttheme", ".tmcommand", ".tmlanguage", ".tmpreferences", ".tmsnippet", ".tmtheme"},
|
||||||
"XPages": {".xsp-config", ".xsp.metadata"},
|
"XPages": {".xsp-config", ".xsp.metadata"},
|
||||||
"XProc": {".xpl", ".xproc"},
|
"XProc": {".xpl", ".xproc"},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
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.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -59,7 +59,6 @@ var LanguagesGroup = map[string]string{
|
|||||||
"Roff Manpage": "Roff",
|
"Roff Manpage": "Roff",
|
||||||
"SSH Config": "INI",
|
"SSH Config": "INI",
|
||||||
"STON": "Smalltalk",
|
"STON": "Smalltalk",
|
||||||
"SugarSS": "CSS",
|
|
||||||
"TSX": "TypeScript",
|
"TSX": "TypeScript",
|
||||||
"Tcsh": "Shell",
|
"Tcsh": "Shell",
|
||||||
"Unified Parallel C": "C",
|
"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.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -23,6 +23,7 @@ var IDByLanguage = map[string]int{
|
|||||||
"ATS": 9,
|
"ATS": 9,
|
||||||
"ActionScript": 10,
|
"ActionScript": 10,
|
||||||
"Ada": 11,
|
"Ada": 11,
|
||||||
|
"Adblock Filter List": 884614762,
|
||||||
"Adobe Font Metrics": 147198098,
|
"Adobe Font Metrics": 147198098,
|
||||||
"Agda": 12,
|
"Agda": 12,
|
||||||
"Alloy": 13,
|
"Alloy": 13,
|
||||||
@ -159,6 +160,7 @@ var IDByLanguage = map[string]int{
|
|||||||
"Eiffel": 99,
|
"Eiffel": 99,
|
||||||
"Elixir": 100,
|
"Elixir": 100,
|
||||||
"Elm": 101,
|
"Elm": 101,
|
||||||
|
"Elvish": 570996448,
|
||||||
"Emacs Lisp": 102,
|
"Emacs Lisp": 102,
|
||||||
"EmberScript": 103,
|
"EmberScript": 103,
|
||||||
"Erlang": 104,
|
"Erlang": 104,
|
||||||
@ -196,6 +198,7 @@ var IDByLanguage = map[string]int{
|
|||||||
"GSC": 257856279,
|
"GSC": 257856279,
|
||||||
"Game Maker Language": 125,
|
"Game Maker Language": 125,
|
||||||
"Gemfile.lock": 907065713,
|
"Gemfile.lock": 907065713,
|
||||||
|
"Gemini": 310828396,
|
||||||
"Genero": 986054050,
|
"Genero": 986054050,
|
||||||
"Genero Forms": 902995658,
|
"Genero Forms": 902995658,
|
||||||
"Genie": 792408528,
|
"Genie": 792408528,
|
||||||
@ -228,6 +231,7 @@ var IDByLanguage = map[string]int{
|
|||||||
"HAProxy": 366607477,
|
"HAProxy": 366607477,
|
||||||
"HCL": 144,
|
"HCL": 144,
|
||||||
"HLSL": 145,
|
"HLSL": 145,
|
||||||
|
"HOCON": 679725279,
|
||||||
"HTML": 146,
|
"HTML": 146,
|
||||||
"HTML+ECR": 148,
|
"HTML+ECR": 148,
|
||||||
"HTML+EEX": 149,
|
"HTML+EEX": 149,
|
||||||
@ -357,6 +361,7 @@ var IDByLanguage = map[string]int{
|
|||||||
"MoonScript": 238,
|
"MoonScript": 238,
|
||||||
"Motoko": 202937027,
|
"Motoko": 202937027,
|
||||||
"Motorola 68K Assembly": 477582706,
|
"Motorola 68K Assembly": 477582706,
|
||||||
|
"Move": 638334599,
|
||||||
"Muse": 474864066,
|
"Muse": 474864066,
|
||||||
"Mustache": 638334590,
|
"Mustache": 638334590,
|
||||||
"Myghty": 239,
|
"Myghty": 239,
|
||||||
@ -367,6 +372,7 @@ var IDByLanguage = map[string]int{
|
|||||||
"NPM Config": 685022663,
|
"NPM Config": 685022663,
|
||||||
"NSIS": 242,
|
"NSIS": 242,
|
||||||
"NWScript": 731233819,
|
"NWScript": 731233819,
|
||||||
|
"Nasal": 178322513,
|
||||||
"Nearley": 521429430,
|
"Nearley": 521429430,
|
||||||
"Nemerle": 243,
|
"Nemerle": 243,
|
||||||
"NetLinx": 244,
|
"NetLinx": 244,
|
||||||
@ -492,6 +498,7 @@ var IDByLanguage = map[string]int{
|
|||||||
"Roff": 141,
|
"Roff": 141,
|
||||||
"Roff Manpage": 612669833,
|
"Roff Manpage": 612669833,
|
||||||
"Rouge": 325,
|
"Rouge": 325,
|
||||||
|
"RouterOS Script": 592853203,
|
||||||
"Ruby": 326,
|
"Ruby": 326,
|
||||||
"Rust": 327,
|
"Rust": 327,
|
||||||
"SAS": 328,
|
"SAS": 328,
|
||||||
@ -584,6 +591,7 @@ var IDByLanguage = map[string]int{
|
|||||||
"VHDL": 385,
|
"VHDL": 385,
|
||||||
"Vala": 386,
|
"Vala": 386,
|
||||||
"Valve Data Format": 544060961,
|
"Valve Data Format": 544060961,
|
||||||
|
"Velocity Template Language": 292377326,
|
||||||
"Verilog": 387,
|
"Verilog": 387,
|
||||||
"Vim Help File": 508563686,
|
"Vim Help File": 508563686,
|
||||||
"Vim Script": 388,
|
"Vim Script": 388,
|
||||||
@ -606,6 +614,7 @@ var IDByLanguage = map[string]int{
|
|||||||
"Witcher Script": 686821385,
|
"Witcher Script": 686821385,
|
||||||
"Wollok": 632745969,
|
"Wollok": 632745969,
|
||||||
"World of Warcraft Addon Data": 396,
|
"World of Warcraft Addon Data": 396,
|
||||||
|
"Wren": 713580619,
|
||||||
"X BitMap": 782911107,
|
"X BitMap": 782911107,
|
||||||
"X Font Directory Index": 208700028,
|
"X Font Directory Index": 208700028,
|
||||||
"X PixMap": 781846279,
|
"X PixMap": 781846279,
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
var LanguagesByInterpreter = map[string][]string{
|
var LanguagesByInterpreter = map[string][]string{
|
||||||
"M2": {"Macaulay2"},
|
"M2": {"Macaulay2"},
|
||||||
|
"RouterOS": {"RouterOS Script"},
|
||||||
"Rscript": {"R"},
|
"Rscript": {"R"},
|
||||||
"aidl": {"AIDL"},
|
"aidl": {"AIDL"},
|
||||||
"apl": {"APL"},
|
"apl": {"APL"},
|
||||||
@ -37,6 +38,7 @@ var LanguagesByInterpreter = map[string][]string{
|
|||||||
"dyalog": {"APL"},
|
"dyalog": {"APL"},
|
||||||
"ecl": {"Common Lisp"},
|
"ecl": {"Common Lisp"},
|
||||||
"elixir": {"Elixir"},
|
"elixir": {"Elixir"},
|
||||||
|
"elvish": {"Elvish"},
|
||||||
"escript": {"Erlang"},
|
"escript": {"Erlang"},
|
||||||
"eui": {"Euphoria"},
|
"eui": {"Euphoria"},
|
||||||
"euiw": {"Euphoria"},
|
"euiw": {"Euphoria"},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -436,6 +436,30 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
Wrap: false,
|
Wrap: false,
|
||||||
LanguageID: 11,
|
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{
|
147198098: LanguageInfo{
|
||||||
Name: "Adobe Font Metrics",
|
Name: "Adobe Font Metrics",
|
||||||
FSName: "",
|
FSName: "",
|
||||||
@ -768,6 +792,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
".a51",
|
".a51",
|
||||||
".i",
|
".i",
|
||||||
".inc",
|
".inc",
|
||||||
|
".nas",
|
||||||
".nasm",
|
".nasm",
|
||||||
},
|
},
|
||||||
Interpreters: []string{},
|
Interpreters: []string{},
|
||||||
@ -1021,6 +1046,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
Aliases: []string{},
|
Aliases: []string{},
|
||||||
Extensions: []string{
|
Extensions: []string{
|
||||||
".befunge",
|
".befunge",
|
||||||
|
".bf",
|
||||||
},
|
},
|
||||||
Interpreters: []string{},
|
Interpreters: []string{},
|
||||||
Filenames: []string{},
|
Filenames: []string{},
|
||||||
@ -3312,6 +3338,27 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
Wrap: false,
|
Wrap: false,
|
||||||
LanguageID: 101,
|
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{
|
102: LanguageInfo{
|
||||||
Name: "Emacs Lisp",
|
Name: "Emacs Lisp",
|
||||||
FSName: "",
|
FSName: "",
|
||||||
@ -4122,6 +4169,27 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
Wrap: false,
|
Wrap: false,
|
||||||
LanguageID: 907065713,
|
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{
|
986054050: LanguageInfo{
|
||||||
Name: "Genero",
|
Name: "Genero",
|
||||||
FSName: "",
|
FSName: "",
|
||||||
@ -4815,6 +4883,25 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
Wrap: false,
|
Wrap: false,
|
||||||
LanguageID: 145,
|
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{
|
146: LanguageInfo{
|
||||||
Name: "HTML",
|
Name: "HTML",
|
||||||
FSName: "",
|
FSName: "",
|
||||||
@ -5815,6 +5902,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
},
|
},
|
||||||
Extensions: []string{
|
Extensions: []string{
|
||||||
".jsp",
|
".jsp",
|
||||||
|
".tag",
|
||||||
},
|
},
|
||||||
Interpreters: []string{},
|
Interpreters: []string{},
|
||||||
Filenames: []string{},
|
Filenames: []string{},
|
||||||
@ -6274,6 +6362,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
Aliases: []string{},
|
Aliases: []string{},
|
||||||
Extensions: []string{
|
Extensions: []string{
|
||||||
".csl",
|
".csl",
|
||||||
|
".kql",
|
||||||
},
|
},
|
||||||
Interpreters: []string{},
|
Interpreters: []string{},
|
||||||
Filenames: []string{},
|
Filenames: []string{},
|
||||||
@ -7677,6 +7766,25 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
Wrap: false,
|
Wrap: false,
|
||||||
LanguageID: 477582706,
|
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{
|
474864066: LanguageInfo{
|
||||||
Name: "Muse",
|
Name: "Muse",
|
||||||
FSName: "",
|
FSName: "",
|
||||||
@ -7877,6 +7985,25 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
Wrap: false,
|
Wrap: false,
|
||||||
LanguageID: 731233819,
|
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{
|
521429430: LanguageInfo{
|
||||||
Name: "Nearley",
|
Name: "Nearley",
|
||||||
FSName: "",
|
FSName: "",
|
||||||
@ -10644,6 +10771,27 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
Wrap: false,
|
Wrap: false,
|
||||||
LanguageID: 325,
|
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{
|
326: LanguageInfo{
|
||||||
Name: "Ruby",
|
Name: "Ruby",
|
||||||
FSName: "",
|
FSName: "",
|
||||||
@ -11838,7 +11986,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
FSName: "",
|
FSName: "",
|
||||||
Type: TypeForString("markup"),
|
Type: TypeForString("markup"),
|
||||||
Color: "#2fcc9f",
|
Color: "#2fcc9f",
|
||||||
Group: "CSS",
|
Group: "",
|
||||||
Aliases: []string{},
|
Aliases: []string{},
|
||||||
Extensions: []string{
|
Extensions: []string{
|
||||||
".sss",
|
".sss",
|
||||||
@ -12741,6 +12889,28 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
Wrap: false,
|
Wrap: false,
|
||||||
LanguageID: 544060961,
|
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{
|
387: LanguageInfo{
|
||||||
Name: "Verilog",
|
Name: "Verilog",
|
||||||
FSName: "",
|
FSName: "",
|
||||||
@ -13205,6 +13375,27 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
Wrap: false,
|
Wrap: false,
|
||||||
LanguageID: 396,
|
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{
|
782911107: LanguageInfo{
|
||||||
Name: "X BitMap",
|
Name: "X BitMap",
|
||||||
FSName: "",
|
FSName: "",
|
||||||
@ -13399,6 +13590,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
|
|||||||
".ps1xml",
|
".ps1xml",
|
||||||
".psc1",
|
".psc1",
|
||||||
".pt",
|
".pt",
|
||||||
|
".qhelp",
|
||||||
".rdf",
|
".rdf",
|
||||||
".res",
|
".res",
|
||||||
".resx",
|
".resx",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -236,6 +236,7 @@ var LanguagesMime = map[string]string{
|
|||||||
"VBA": "text/x-vb",
|
"VBA": "text/x-vb",
|
||||||
"VBScript": "text/vbscript",
|
"VBScript": "text/vbscript",
|
||||||
"VHDL": "text/x-vhdl",
|
"VHDL": "text/x-vhdl",
|
||||||
|
"Velocity Template Language": "text/velocity",
|
||||||
"Verilog": "text/x-verilog",
|
"Verilog": "text/x-verilog",
|
||||||
"Visual Basic .NET": "text/x-vb",
|
"Visual Basic .NET": "text/x-vb",
|
||||||
"Volt": "text/x-d",
|
"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.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -65,6 +65,7 @@ var LanguagesType = map[string]int{
|
|||||||
"ATS": 2,
|
"ATS": 2,
|
||||||
"ActionScript": 2,
|
"ActionScript": 2,
|
||||||
"Ada": 2,
|
"Ada": 2,
|
||||||
|
"Adblock Filter List": 1,
|
||||||
"Adobe Font Metrics": 1,
|
"Adobe Font Metrics": 1,
|
||||||
"Agda": 2,
|
"Agda": 2,
|
||||||
"Alloy": 2,
|
"Alloy": 2,
|
||||||
@ -201,6 +202,7 @@ var LanguagesType = map[string]int{
|
|||||||
"Eiffel": 2,
|
"Eiffel": 2,
|
||||||
"Elixir": 2,
|
"Elixir": 2,
|
||||||
"Elm": 2,
|
"Elm": 2,
|
||||||
|
"Elvish": 2,
|
||||||
"Emacs Lisp": 2,
|
"Emacs Lisp": 2,
|
||||||
"EmberScript": 2,
|
"EmberScript": 2,
|
||||||
"Erlang": 2,
|
"Erlang": 2,
|
||||||
@ -238,6 +240,7 @@ var LanguagesType = map[string]int{
|
|||||||
"GSC": 2,
|
"GSC": 2,
|
||||||
"Game Maker Language": 2,
|
"Game Maker Language": 2,
|
||||||
"Gemfile.lock": 1,
|
"Gemfile.lock": 1,
|
||||||
|
"Gemini": 4,
|
||||||
"Genero": 2,
|
"Genero": 2,
|
||||||
"Genero Forms": 3,
|
"Genero Forms": 3,
|
||||||
"Genie": 2,
|
"Genie": 2,
|
||||||
@ -270,6 +273,7 @@ var LanguagesType = map[string]int{
|
|||||||
"HAProxy": 1,
|
"HAProxy": 1,
|
||||||
"HCL": 2,
|
"HCL": 2,
|
||||||
"HLSL": 2,
|
"HLSL": 2,
|
||||||
|
"HOCON": 1,
|
||||||
"HTML": 3,
|
"HTML": 3,
|
||||||
"HTML+ECR": 3,
|
"HTML+ECR": 3,
|
||||||
"HTML+EEX": 3,
|
"HTML+EEX": 3,
|
||||||
@ -399,6 +403,7 @@ var LanguagesType = map[string]int{
|
|||||||
"MoonScript": 2,
|
"MoonScript": 2,
|
||||||
"Motoko": 2,
|
"Motoko": 2,
|
||||||
"Motorola 68K Assembly": 2,
|
"Motorola 68K Assembly": 2,
|
||||||
|
"Move": 2,
|
||||||
"Muse": 4,
|
"Muse": 4,
|
||||||
"Mustache": 3,
|
"Mustache": 3,
|
||||||
"Myghty": 2,
|
"Myghty": 2,
|
||||||
@ -409,6 +414,7 @@ var LanguagesType = map[string]int{
|
|||||||
"NPM Config": 1,
|
"NPM Config": 1,
|
||||||
"NSIS": 2,
|
"NSIS": 2,
|
||||||
"NWScript": 2,
|
"NWScript": 2,
|
||||||
|
"Nasal": 2,
|
||||||
"Nearley": 2,
|
"Nearley": 2,
|
||||||
"Nemerle": 2,
|
"Nemerle": 2,
|
||||||
"NetLinx": 2,
|
"NetLinx": 2,
|
||||||
@ -534,6 +540,7 @@ var LanguagesType = map[string]int{
|
|||||||
"Roff": 3,
|
"Roff": 3,
|
||||||
"Roff Manpage": 3,
|
"Roff Manpage": 3,
|
||||||
"Rouge": 2,
|
"Rouge": 2,
|
||||||
|
"RouterOS Script": 2,
|
||||||
"Ruby": 2,
|
"Ruby": 2,
|
||||||
"Rust": 2,
|
"Rust": 2,
|
||||||
"SAS": 2,
|
"SAS": 2,
|
||||||
@ -626,6 +633,7 @@ var LanguagesType = map[string]int{
|
|||||||
"VHDL": 2,
|
"VHDL": 2,
|
||||||
"Vala": 2,
|
"Vala": 2,
|
||||||
"Valve Data Format": 1,
|
"Valve Data Format": 1,
|
||||||
|
"Velocity Template Language": 3,
|
||||||
"Verilog": 2,
|
"Verilog": 2,
|
||||||
"Vim Help File": 4,
|
"Vim Help File": 4,
|
||||||
"Vim Script": 2,
|
"Vim Script": 2,
|
||||||
@ -648,6 +656,7 @@ var LanguagesType = map[string]int{
|
|||||||
"Witcher Script": 2,
|
"Witcher Script": 2,
|
||||||
"Wollok": 2,
|
"Wollok": 2,
|
||||||
"World of Warcraft Addon Data": 1,
|
"World of Warcraft Addon Data": 1,
|
||||||
|
"Wren": 2,
|
||||||
"X BitMap": 1,
|
"X BitMap": 1,
|
||||||
"X Font Directory Index": 1,
|
"X Font Directory Index": 1,
|
||||||
"X PixMap": 1,
|
"X PixMap": 1,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ var VendorMatchers = []regex.EnryRegexp{
|
|||||||
regex.MustCompile(`(^|/)\.indent\.pro`),
|
regex.MustCompile(`(^|/)\.indent\.pro`),
|
||||||
regex.MustCompile(`(\.|-)min\.(js|css)$`),
|
regex.MustCompile(`(\.|-)min\.(js|css)$`),
|
||||||
regex.MustCompile(`([^\s]*)import\.(css|less|scss|styl)$`),
|
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(`(^|/)custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$`),
|
||||||
regex.MustCompile(`(^|/)font-?awesome\.(css|less|scss|styl)$`),
|
regex.MustCompile(`(^|/)font-?awesome\.(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.
|
// 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 (
|
var (
|
||||||
linguistURL = "https://github.com/github/linguist.git"
|
linguistURL = "https://github.com/github/linguist.git"
|
||||||
linguistClonedEnvVar = "ENRY_TEST_REPO"
|
linguistClonedEnvVar = "ENRY_TEST_REPO"
|
||||||
commit = "d7799da826e01acdb8f84694d33116dccaabe9c2"
|
commit = "bf853f1c663903e3ee35935189760191f1c45e1c"
|
||||||
samplesDir = "samples"
|
samplesDir = "samples"
|
||||||
languagesFile = filepath.Join("lib", "linguist", "languages.yml")
|
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.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -21,9 +21,14 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"actionscript": "ActionScript",
|
"actionscript": "ActionScript",
|
||||||
"actionscript3": "ActionScript",
|
"actionscript3": "ActionScript",
|
||||||
"actionscript_3": "ActionScript",
|
"actionscript_3": "ActionScript",
|
||||||
|
"ad_block": "Adblock Filter List",
|
||||||
|
"ad_block_filters": "Adblock Filter List",
|
||||||
"ada": "Ada",
|
"ada": "Ada",
|
||||||
"ada2005": "Ada",
|
"ada2005": "Ada",
|
||||||
"ada95": "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_composite_font_metrics": "Adobe Font Metrics",
|
||||||
"adobe_font_metrics": "Adobe Font Metrics",
|
"adobe_font_metrics": "Adobe Font Metrics",
|
||||||
"adobe_multiple_font_metrics": "Adobe Font Metrics",
|
"adobe_multiple_font_metrics": "Adobe Font Metrics",
|
||||||
@ -257,6 +262,7 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"elisp": "Emacs Lisp",
|
"elisp": "Emacs Lisp",
|
||||||
"elixir": "Elixir",
|
"elixir": "Elixir",
|
||||||
"elm": "Elm",
|
"elm": "Elm",
|
||||||
|
"elvish": "Elvish",
|
||||||
"emacs": "Emacs Lisp",
|
"emacs": "Emacs Lisp",
|
||||||
"emacs_lisp": "Emacs Lisp",
|
"emacs_lisp": "Emacs Lisp",
|
||||||
"emacs_muse": "Muse",
|
"emacs_muse": "Muse",
|
||||||
@ -307,6 +313,8 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"gdscript": "GDScript",
|
"gdscript": "GDScript",
|
||||||
"gedcom": "GEDCOM",
|
"gedcom": "GEDCOM",
|
||||||
"gemfile.lock": "Gemfile.lock",
|
"gemfile.lock": "Gemfile.lock",
|
||||||
|
"gemini": "Gemini",
|
||||||
|
"gemtext": "Gemini",
|
||||||
"genero": "Genero",
|
"genero": "Genero",
|
||||||
"genero_forms": "Genero Forms",
|
"genero_forms": "Genero Forms",
|
||||||
"genie": "Genie",
|
"genie": "Genie",
|
||||||
@ -371,6 +379,7 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"help": "Vim Help File",
|
"help": "Vim Help File",
|
||||||
"hiveql": "HiveQL",
|
"hiveql": "HiveQL",
|
||||||
"hlsl": "HLSL",
|
"hlsl": "HLSL",
|
||||||
|
"hocon": "HOCON",
|
||||||
"holyc": "HolyC",
|
"holyc": "HolyC",
|
||||||
"hoon": "hoon",
|
"hoon": "hoon",
|
||||||
"html": "HTML",
|
"html": "HTML",
|
||||||
@ -549,6 +558,7 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"moonscript": "MoonScript",
|
"moonscript": "MoonScript",
|
||||||
"motoko": "Motoko",
|
"motoko": "Motoko",
|
||||||
"motorola_68k_assembly": "Motorola 68K Assembly",
|
"motorola_68k_assembly": "Motorola 68K Assembly",
|
||||||
|
"move": "Move",
|
||||||
"mps": "JetBrains MPS",
|
"mps": "JetBrains MPS",
|
||||||
"mql4": "MQL4",
|
"mql4": "MQL4",
|
||||||
"mql5": "MQL5",
|
"mql5": "MQL5",
|
||||||
@ -560,6 +570,7 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"mustache": "Mustache",
|
"mustache": "Mustache",
|
||||||
"myghty": "Myghty",
|
"myghty": "Myghty",
|
||||||
"nanorc": "nanorc",
|
"nanorc": "nanorc",
|
||||||
|
"nasal": "Nasal",
|
||||||
"nasl": "NASL",
|
"nasl": "NASL",
|
||||||
"nasm": "Assembly",
|
"nasm": "Assembly",
|
||||||
"ncl": "NCL",
|
"ncl": "NCL",
|
||||||
@ -760,6 +771,7 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"roff": "Roff",
|
"roff": "Roff",
|
||||||
"roff_manpage": "Roff Manpage",
|
"roff_manpage": "Roff Manpage",
|
||||||
"rouge": "Rouge",
|
"rouge": "Rouge",
|
||||||
|
"routeros_script": "RouterOS Script",
|
||||||
"rpc": "RPC",
|
"rpc": "RPC",
|
||||||
"rpcgen": "RPC",
|
"rpcgen": "RPC",
|
||||||
"rpgle": "RPGLE",
|
"rpgle": "RPGLE",
|
||||||
@ -900,6 +912,8 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"vbscript": "VBScript",
|
"vbscript": "VBScript",
|
||||||
"vcl": "VCL",
|
"vcl": "VCL",
|
||||||
"vdf": "Valve Data Format",
|
"vdf": "Valve Data Format",
|
||||||
|
"velocity": "Velocity Template Language",
|
||||||
|
"velocity_template_language": "Velocity Template Language",
|
||||||
"verilog": "Verilog",
|
"verilog": "Verilog",
|
||||||
"vhdl": "VHDL",
|
"vhdl": "VHDL",
|
||||||
"vim": "Vim Script",
|
"vim": "Vim Script",
|
||||||
@ -914,6 +928,7 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"visual_basic_for_applications": "VBA",
|
"visual_basic_for_applications": "VBA",
|
||||||
"vlang": "V",
|
"vlang": "V",
|
||||||
"volt": "Volt",
|
"volt": "Volt",
|
||||||
|
"vtl": "Velocity Template Language",
|
||||||
"vtt": "WebVTT",
|
"vtt": "WebVTT",
|
||||||
"vue": "Vue",
|
"vue": "Vue",
|
||||||
"vyper": "Vyper",
|
"vyper": "Vyper",
|
||||||
@ -942,6 +957,8 @@ var LanguageByAliasMap = map[string]string{
|
|||||||
"wolfram_language": "Mathematica",
|
"wolfram_language": "Mathematica",
|
||||||
"wollok": "Wollok",
|
"wollok": "Wollok",
|
||||||
"world_of_warcraft_addon_data": "World of Warcraft Addon Data",
|
"world_of_warcraft_addon_data": "World of Warcraft Addon Data",
|
||||||
|
"wren": "Wren",
|
||||||
|
"wrenlang": "Wren",
|
||||||
"wsdl": "XML",
|
"wsdl": "XML",
|
||||||
"x10": "X10",
|
"x10": "X10",
|
||||||
"x_bitmap": "X BitMap",
|
"x_bitmap": "X BitMap",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -20,6 +20,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"ATS": "#1ac620",
|
"ATS": "#1ac620",
|
||||||
"ActionScript": "#882B0F",
|
"ActionScript": "#882B0F",
|
||||||
"Ada": "#02f88c",
|
"Ada": "#02f88c",
|
||||||
|
"Adblock Filter List": "#800000",
|
||||||
"Adobe Font Metrics": "#fa0f00",
|
"Adobe Font Metrics": "#fa0f00",
|
||||||
"Agda": "#315665",
|
"Agda": "#315665",
|
||||||
"Alloy": "#64C800",
|
"Alloy": "#64C800",
|
||||||
@ -132,6 +133,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"Eiffel": "#4d6977",
|
"Eiffel": "#4d6977",
|
||||||
"Elixir": "#6e4a7e",
|
"Elixir": "#6e4a7e",
|
||||||
"Elm": "#60B5CC",
|
"Elm": "#60B5CC",
|
||||||
|
"Elvish": "#55BB55",
|
||||||
"Emacs Lisp": "#c065db",
|
"Emacs Lisp": "#c065db",
|
||||||
"EmberScript": "#FFF4F3",
|
"EmberScript": "#FFF4F3",
|
||||||
"Erlang": "#B83998",
|
"Erlang": "#B83998",
|
||||||
@ -165,6 +167,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"GSC": "#FF6800",
|
"GSC": "#FF6800",
|
||||||
"Game Maker Language": "#71b417",
|
"Game Maker Language": "#71b417",
|
||||||
"Gemfile.lock": "#701516",
|
"Gemfile.lock": "#701516",
|
||||||
|
"Gemini": "#ff6900",
|
||||||
"Genero": "#63408e",
|
"Genero": "#63408e",
|
||||||
"Genero Forms": "#d8df39",
|
"Genero Forms": "#d8df39",
|
||||||
"Genie": "#fb855d",
|
"Genie": "#fb855d",
|
||||||
@ -193,6 +196,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"Groovy Server Pages": "#4298b8",
|
"Groovy Server Pages": "#4298b8",
|
||||||
"HAProxy": "#106da9",
|
"HAProxy": "#106da9",
|
||||||
"HLSL": "#aace60",
|
"HLSL": "#aace60",
|
||||||
|
"HOCON": "#9ff8ee",
|
||||||
"HTML": "#e34c26",
|
"HTML": "#e34c26",
|
||||||
"HTML+ECR": "#2e1052",
|
"HTML+ECR": "#2e1052",
|
||||||
"HTML+EEX": "#6e4a7e",
|
"HTML+EEX": "#6e4a7e",
|
||||||
@ -299,10 +303,12 @@ var LanguagesColor = map[string]string{
|
|||||||
"MoonScript": "#ff4585",
|
"MoonScript": "#ff4585",
|
||||||
"Motoko": "#fbb03b",
|
"Motoko": "#fbb03b",
|
||||||
"Motorola 68K Assembly": "#005daa",
|
"Motorola 68K Assembly": "#005daa",
|
||||||
|
"Move": "#4a137a",
|
||||||
"Mustache": "#724b3b",
|
"Mustache": "#724b3b",
|
||||||
"NCL": "#28431f",
|
"NCL": "#28431f",
|
||||||
"NPM Config": "#cb3837",
|
"NPM Config": "#cb3837",
|
||||||
"NWScript": "#111522",
|
"NWScript": "#111522",
|
||||||
|
"Nasal": "#1d2c4e",
|
||||||
"Nearley": "#990000",
|
"Nearley": "#990000",
|
||||||
"Nemerle": "#3d3c6e",
|
"Nemerle": "#3d3c6e",
|
||||||
"NetLinx": "#0aa0ff",
|
"NetLinx": "#0aa0ff",
|
||||||
@ -397,6 +403,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"Roff": "#ecdebe",
|
"Roff": "#ecdebe",
|
||||||
"Roff Manpage": "#ecdebe",
|
"Roff Manpage": "#ecdebe",
|
||||||
"Rouge": "#cc0088",
|
"Rouge": "#cc0088",
|
||||||
|
"RouterOS Script": "#DE3941",
|
||||||
"Ruby": "#701516",
|
"Ruby": "#701516",
|
||||||
"Rust": "#dea584",
|
"Rust": "#dea584",
|
||||||
"SAS": "#B34936",
|
"SAS": "#B34936",
|
||||||
@ -470,6 +477,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"VHDL": "#adb2cb",
|
"VHDL": "#adb2cb",
|
||||||
"Vala": "#a56de2",
|
"Vala": "#a56de2",
|
||||||
"Valve Data Format": "#f26025",
|
"Valve Data Format": "#f26025",
|
||||||
|
"Velocity Template Language": "#507cff",
|
||||||
"Verilog": "#b2b7f8",
|
"Verilog": "#b2b7f8",
|
||||||
"Vim Help File": "#199f4b",
|
"Vim Help File": "#199f4b",
|
||||||
"Vim Script": "#199f4b",
|
"Vim Script": "#199f4b",
|
||||||
@ -486,6 +494,7 @@ var LanguagesColor = map[string]string{
|
|||||||
"Witcher Script": "#ff0000",
|
"Witcher Script": "#ff0000",
|
||||||
"Wollok": "#a23738",
|
"Wollok": "#a23738",
|
||||||
"World of Warcraft Addon Data": "#f7e43f",
|
"World of Warcraft Addon Data": "#f7e43f",
|
||||||
|
"Wren": "#383838",
|
||||||
"X10": "#4B6BEF",
|
"X10": "#4B6BEF",
|
||||||
"XC": "#99DA07",
|
"XC": "#99DA07",
|
||||||
"XML": "#0060ac",
|
"XML": "#0060ac",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
// linguist's commit from which files were generated.
|
// 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.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -647,6 +647,20 @@ var ContentHeuristics = map[string]*Heuristics{
|
|||||||
regex.MustCompileMultiline(`\((def|defn|defmacro|let)\s`),
|
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{
|
".bi": &Heuristics{
|
||||||
rule.Or(
|
rule.Or(
|
||||||
rule.MatchingLanguages("FreeBasic"),
|
rule.MatchingLanguages("FreeBasic"),
|
||||||
@ -712,7 +726,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
|||||||
),
|
),
|
||||||
rule.Or(
|
rule.Or(
|
||||||
rule.MatchingLanguages("C#"),
|
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{
|
".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]*)?\}`),
|
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{
|
".gd": &Heuristics{
|
||||||
rule.Or(
|
rule.Or(
|
||||||
rule.MatchingLanguages("GAP"),
|
rule.MatchingLanguages("GAP"),
|
||||||
@ -1356,7 +1380,7 @@ var ContentHeuristics = map[string]*Heuristics{
|
|||||||
),
|
),
|
||||||
rule.Or(
|
rule.Or(
|
||||||
rule.MatchingLanguages("IDL"),
|
rule.MatchingLanguages("IDL"),
|
||||||
regex.MustCompileMultiline(`^\s*function[ \w,]+$`),
|
regex.MustCompileMultiline(`^\s*(?i:function|pro|compile_opt) \w[ \w,:]*$`),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
".properties": &Heuristics{
|
".properties": &Heuristics{
|
||||||
@ -1486,6 +1510,16 @@ var ContentHeuristics = map[string]*Heuristics{
|
|||||||
regex.MustCompileMultiline(`(^\s*import (scala|java)\.|^\s*class\b)`),
|
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{
|
".sol": &Heuristics{
|
||||||
rule.Or(
|
rule.Or(
|
||||||
rule.MatchingLanguages("Solidity"),
|
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+`),
|
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{
|
".toc": &Heuristics{
|
||||||
rule.Or(
|
rule.Or(
|
||||||
rule.MatchingLanguages("World of Warcraft Addon Data"),
|
rule.MatchingLanguages("World of Warcraft Addon Data"),
|
||||||
@ -1605,6 +1645,28 @@ var ContentHeuristics = map[string]*Heuristics{
|
|||||||
rule.MatchingLanguages("Vim Help File"),
|
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|:)`),
|
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.Always(
|
||||||
rule.MatchingLanguages("Text"),
|
rule.MatchingLanguages("Text"),
|
||||||
),
|
),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".bdy": {"PLSQL"},
|
".bdy": {"PLSQL"},
|
||||||
".be": {"Berry"},
|
".be": {"Berry"},
|
||||||
".befunge": {"Befunge"},
|
".befunge": {"Befunge"},
|
||||||
".bf": {"Beef", "Brainfuck", "HyPhy"},
|
".bf": {"Beef", "Befunge", "Brainfuck", "HyPhy"},
|
||||||
".bi": {"FreeBasic"},
|
".bi": {"FreeBasic"},
|
||||||
".bib": {"BibTeX"},
|
".bib": {"BibTeX"},
|
||||||
".bibtex": {"BibTeX"},
|
".bibtex": {"BibTeX"},
|
||||||
@ -305,6 +305,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".eliom": {"OCaml"},
|
".eliom": {"OCaml"},
|
||||||
".eliomi": {"OCaml"},
|
".eliomi": {"OCaml"},
|
||||||
".elm": {"Elm"},
|
".elm": {"Elm"},
|
||||||
|
".elv": {"Elvish"},
|
||||||
".em": {"EmberScript"},
|
".em": {"EmberScript"},
|
||||||
".emacs": {"Emacs Lisp"},
|
".emacs": {"Emacs Lisp"},
|
||||||
".emacs.desktop": {"Emacs Lisp"},
|
".emacs.desktop": {"Emacs Lisp"},
|
||||||
@ -402,6 +403,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".glslv": {"GLSL"},
|
".glslv": {"GLSL"},
|
||||||
".gltf": {"JSON"},
|
".gltf": {"JSON"},
|
||||||
".glyphs": {"OpenStep Property List"},
|
".glyphs": {"OpenStep Property List"},
|
||||||
|
".gmi": {"Gemini"},
|
||||||
".gml": {"Game Maker Language", "Gerber Image", "Graph Modeling Language", "XML"},
|
".gml": {"Game Maker Language", "Gerber Image", "Graph Modeling Language", "XML"},
|
||||||
".gms": {"GAMS"},
|
".gms": {"GAMS"},
|
||||||
".gmx": {"XML"},
|
".gmx": {"XML"},
|
||||||
@ -457,6 +459,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".hlean": {"Lean"},
|
".hlean": {"Lean"},
|
||||||
".hlsl": {"HLSL"},
|
".hlsl": {"HLSL"},
|
||||||
".hlsli": {"HLSL"},
|
".hlsli": {"HLSL"},
|
||||||
|
".hocon": {"HOCON"},
|
||||||
".hoon": {"hoon"},
|
".hoon": {"hoon"},
|
||||||
".hpp": {"C++"},
|
".hpp": {"C++"},
|
||||||
".hqf": {"SQF"},
|
".hqf": {"SQF"},
|
||||||
@ -556,6 +559,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".kit": {"Kit"},
|
".kit": {"Kit"},
|
||||||
".kml": {"XML"},
|
".kml": {"XML"},
|
||||||
".kojo": {"Scala"},
|
".kojo": {"Scala"},
|
||||||
|
".kql": {"Kusto"},
|
||||||
".krl": {"KRL"},
|
".krl": {"KRL"},
|
||||||
".ksh": {"Shell"},
|
".ksh": {"Shell"},
|
||||||
".ksy": {"Kaitai Struct"},
|
".ksy": {"Kaitai Struct"},
|
||||||
@ -680,6 +684,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".monkey2": {"Monkey"},
|
".monkey2": {"Monkey"},
|
||||||
".moo": {"Mercury", "Moocode"},
|
".moo": {"Mercury", "Moocode"},
|
||||||
".moon": {"MoonScript"},
|
".moon": {"MoonScript"},
|
||||||
|
".move": {"Move"},
|
||||||
".mpl": {"JetBrains MPS"},
|
".mpl": {"JetBrains MPS"},
|
||||||
".mps": {"JetBrains MPS"},
|
".mps": {"JetBrains MPS"},
|
||||||
".mq4": {"MQL4"},
|
".mq4": {"MQL4"},
|
||||||
@ -706,6 +711,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".myt": {"Myghty"},
|
".myt": {"Myghty"},
|
||||||
".n": {"Nemerle", "Roff"},
|
".n": {"Nemerle", "Roff"},
|
||||||
".nanorc": {"nanorc"},
|
".nanorc": {"nanorc"},
|
||||||
|
".nas": {"Assembly", "Nasal"},
|
||||||
".nasl": {"NASL"},
|
".nasl": {"NASL"},
|
||||||
".nasm": {"Assembly"},
|
".nasm": {"Assembly"},
|
||||||
".natvis": {"XML"},
|
".natvis": {"XML"},
|
||||||
@ -888,6 +894,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".q": {"HiveQL", "q"},
|
".q": {"HiveQL", "q"},
|
||||||
".qasm": {"OpenQASM"},
|
".qasm": {"OpenQASM"},
|
||||||
".qbs": {"QML"},
|
".qbs": {"QML"},
|
||||||
|
".qhelp": {"XML"},
|
||||||
".ql": {"CodeQL"},
|
".ql": {"CodeQL"},
|
||||||
".qll": {"CodeQL"},
|
".qll": {"CodeQL"},
|
||||||
".qmd": {"RMarkdown"},
|
".qmd": {"RMarkdown"},
|
||||||
@ -958,7 +965,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".rq": {"SPARQL"},
|
".rq": {"SPARQL"},
|
||||||
".rs": {"RenderScript", "Rust", "XML"},
|
".rs": {"RenderScript", "Rust", "XML"},
|
||||||
".rs.in": {"Rust"},
|
".rs.in": {"Rust"},
|
||||||
".rsc": {"Rascal"},
|
".rsc": {"Rascal", "RouterOS Script"},
|
||||||
".rsh": {"RenderScript"},
|
".rsh": {"RenderScript"},
|
||||||
".rss": {"XML"},
|
".rss": {"XML"},
|
||||||
".rst": {"reStructuredText"},
|
".rst": {"reStructuredText"},
|
||||||
@ -1083,6 +1090,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".t": {"Perl", "Raku", "Terra", "Turing"},
|
".t": {"Perl", "Raku", "Terra", "Turing"},
|
||||||
".tab": {"SQL"},
|
".tab": {"SQL"},
|
||||||
".tac": {"Python"},
|
".tac": {"Python"},
|
||||||
|
".tag": {"Java Server Pages"},
|
||||||
".talon": {"Talon"},
|
".talon": {"Talon"},
|
||||||
".targets": {"XML"},
|
".targets": {"XML"},
|
||||||
".tcc": {"C++"},
|
".tcc": {"C++"},
|
||||||
@ -1134,7 +1142,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".twig": {"Twig"},
|
".twig": {"Twig"},
|
||||||
".txi": {"Texinfo"},
|
".txi": {"Texinfo"},
|
||||||
".txl": {"TXL"},
|
".txl": {"TXL"},
|
||||||
".txt": {"Text", "Vim Help File"},
|
".txt": {"Adblock Filter List", "Text", "Vim Help File"},
|
||||||
".uc": {"UnrealScript"},
|
".uc": {"UnrealScript"},
|
||||||
".udf": {"SQL"},
|
".udf": {"SQL"},
|
||||||
".udo": {"Csound"},
|
".udo": {"Csound"},
|
||||||
@ -1183,6 +1191,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".vsixmanifest": {"XML"},
|
".vsixmanifest": {"XML"},
|
||||||
".vssettings": {"XML"},
|
".vssettings": {"XML"},
|
||||||
".vstemplate": {"XML"},
|
".vstemplate": {"XML"},
|
||||||
|
".vtl": {"Velocity Template Language"},
|
||||||
".vtt": {"WebVTT"},
|
".vtt": {"WebVTT"},
|
||||||
".vue": {"Vue"},
|
".vue": {"Vue"},
|
||||||
".vw": {"PLSQL"},
|
".vw": {"PLSQL"},
|
||||||
@ -1208,6 +1217,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".wlua": {"Lua"},
|
".wlua": {"Lua"},
|
||||||
".workbook": {"Markdown"},
|
".workbook": {"Markdown"},
|
||||||
".workflow": {"HCL", "XML"},
|
".workflow": {"HCL", "XML"},
|
||||||
|
".wren": {"Wren"},
|
||||||
".ws": {"Witcher Script"},
|
".ws": {"Witcher Script"},
|
||||||
".wsdl": {"XML"},
|
".wsdl": {"XML"},
|
||||||
".wsf": {"XML"},
|
".wsf": {"XML"},
|
||||||
@ -1315,6 +1325,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"ATS": {".dats", ".hats", ".sats"},
|
"ATS": {".dats", ".hats", ".sats"},
|
||||||
"ActionScript": {".as"},
|
"ActionScript": {".as"},
|
||||||
"Ada": {".adb", ".ada", ".ads"},
|
"Ada": {".adb", ".ada", ".ads"},
|
||||||
|
"Adblock Filter List": {".txt"},
|
||||||
"Adobe Font Metrics": {".afm"},
|
"Adobe Font Metrics": {".afm"},
|
||||||
"Agda": {".agda"},
|
"Agda": {".agda"},
|
||||||
"Alloy": {".als"},
|
"Alloy": {".als"},
|
||||||
@ -1328,7 +1339,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"Arc": {".arc"},
|
"Arc": {".arc"},
|
||||||
"AsciiDoc": {".asciidoc", ".adoc", ".asc"},
|
"AsciiDoc": {".asciidoc", ".adoc", ".asc"},
|
||||||
"AspectJ": {".aj"},
|
"AspectJ": {".aj"},
|
||||||
"Assembly": {".asm", ".a51", ".i", ".inc", ".nasm"},
|
"Assembly": {".asm", ".a51", ".i", ".inc", ".nas", ".nasm"},
|
||||||
"Astro": {".astro"},
|
"Astro": {".astro"},
|
||||||
"Asymptote": {".asy"},
|
"Asymptote": {".asy"},
|
||||||
"Augeas": {".aug"},
|
"Augeas": {".aug"},
|
||||||
@ -1340,7 +1351,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"Ballerina": {".bal"},
|
"Ballerina": {".bal"},
|
||||||
"Batchfile": {".bat", ".cmd"},
|
"Batchfile": {".bat", ".cmd"},
|
||||||
"Beef": {".bf"},
|
"Beef": {".bf"},
|
||||||
"Befunge": {".befunge"},
|
"Befunge": {".befunge", ".bf"},
|
||||||
"Berry": {".be"},
|
"Berry": {".be"},
|
||||||
"BibTeX": {".bib", ".bibtex"},
|
"BibTeX": {".bib", ".bibtex"},
|
||||||
"Bicep": {".bicep"},
|
"Bicep": {".bicep"},
|
||||||
@ -1444,6 +1455,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"Eiffel": {".e"},
|
"Eiffel": {".e"},
|
||||||
"Elixir": {".ex", ".exs"},
|
"Elixir": {".ex", ".exs"},
|
||||||
"Elm": {".elm"},
|
"Elm": {".elm"},
|
||||||
|
"Elvish": {".elv"},
|
||||||
"Emacs Lisp": {".el", ".emacs", ".emacs.desktop"},
|
"Emacs Lisp": {".el", ".emacs", ".emacs.desktop"},
|
||||||
"EmberScript": {".em", ".emberscript"},
|
"EmberScript": {".em", ".emberscript"},
|
||||||
"Erlang": {".erl", ".app.src", ".es", ".escript", ".hrl", ".xrl", ".yrl"},
|
"Erlang": {".erl", ".app.src", ".es", ".escript", ".hrl", ".xrl", ".yrl"},
|
||||||
@ -1480,6 +1492,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"GN": {".gn", ".gni"},
|
"GN": {".gn", ".gni"},
|
||||||
"GSC": {".gsc", ".csc", ".gsh"},
|
"GSC": {".gsc", ".csc", ".gsh"},
|
||||||
"Game Maker Language": {".gml"},
|
"Game Maker Language": {".gml"},
|
||||||
|
"Gemini": {".gmi"},
|
||||||
"Genero": {".4gl"},
|
"Genero": {".4gl"},
|
||||||
"Genero Forms": {".per"},
|
"Genero Forms": {".per"},
|
||||||
"Genie": {".gs"},
|
"Genie": {".gs"},
|
||||||
@ -1508,6 +1521,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"HAProxy": {".cfg"},
|
"HAProxy": {".cfg"},
|
||||||
"HCL": {".hcl", ".nomad", ".tf", ".tfvars", ".workflow"},
|
"HCL": {".hcl", ".nomad", ".tf", ".tfvars", ".workflow"},
|
||||||
"HLSL": {".hlsl", ".cginc", ".fx", ".fxh", ".hlsli"},
|
"HLSL": {".hlsl", ".cginc", ".fx", ".fxh", ".hlsli"},
|
||||||
|
"HOCON": {".hocon"},
|
||||||
"HTML": {".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml"},
|
"HTML": {".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml"},
|
||||||
"HTML+ECR": {".ecr"},
|
"HTML+ECR": {".ecr"},
|
||||||
"HTML+EEX": {".eex", ".html.heex", ".html.leex"},
|
"HTML+EEX": {".eex", ".html.heex", ".html.leex"},
|
||||||
@ -1549,7 +1563,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"Jasmin": {".j"},
|
"Jasmin": {".j"},
|
||||||
"Java": {".java", ".jav"},
|
"Java": {".java", ".jav"},
|
||||||
"Java Properties": {".properties"},
|
"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": {".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"},
|
"JavaScript+ERB": {".js.erb"},
|
||||||
"Jest Snapshot": {".snap"},
|
"Jest Snapshot": {".snap"},
|
||||||
@ -1569,7 +1583,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"KiCad Schematic": {".kicad_sch", ".sch"},
|
"KiCad Schematic": {".kicad_sch", ".sch"},
|
||||||
"Kit": {".kit"},
|
"Kit": {".kit"},
|
||||||
"Kotlin": {".kt", ".ktm", ".kts"},
|
"Kotlin": {".kt", ".ktm", ".kts"},
|
||||||
"Kusto": {".csl"},
|
"Kusto": {".csl", ".kql"},
|
||||||
"LFE": {".lfe"},
|
"LFE": {".lfe"},
|
||||||
"LLVM": {".ll"},
|
"LLVM": {".ll"},
|
||||||
"LOLCODE": {".lol"},
|
"LOLCODE": {".lol"},
|
||||||
@ -1633,6 +1647,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"MoonScript": {".moon"},
|
"MoonScript": {".moon"},
|
||||||
"Motoko": {".mo"},
|
"Motoko": {".mo"},
|
||||||
"Motorola 68K Assembly": {".asm", ".i", ".inc", ".s", ".x68"},
|
"Motorola 68K Assembly": {".asm", ".i", ".inc", ".s", ".x68"},
|
||||||
|
"Move": {".move"},
|
||||||
"Muse": {".muse"},
|
"Muse": {".muse"},
|
||||||
"Mustache": {".mustache"},
|
"Mustache": {".mustache"},
|
||||||
"Myghty": {".myt"},
|
"Myghty": {".myt"},
|
||||||
@ -1642,6 +1657,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"NL": {".nl"},
|
"NL": {".nl"},
|
||||||
"NSIS": {".nsi", ".nsh"},
|
"NSIS": {".nsi", ".nsh"},
|
||||||
"NWScript": {".nss"},
|
"NWScript": {".nss"},
|
||||||
|
"Nasal": {".nas"},
|
||||||
"Nearley": {".ne", ".nearley"},
|
"Nearley": {".ne", ".nearley"},
|
||||||
"Nemerle": {".n"},
|
"Nemerle": {".n"},
|
||||||
"NetLinx": {".axs", ".axi"},
|
"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": {".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"},
|
"Roff Manpage": {".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3p", ".3pm", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".man", ".mdoc"},
|
||||||
"Rouge": {".rg"},
|
"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"},
|
"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"},
|
"Rust": {".rs", ".rs.in"},
|
||||||
"SAS": {".sas"},
|
"SAS": {".sas"},
|
||||||
@ -1847,6 +1864,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"VHDL": {".vhdl", ".vhd", ".vhf", ".vhi", ".vho", ".vhs", ".vht", ".vhw"},
|
"VHDL": {".vhdl", ".vhd", ".vhf", ".vhi", ".vho", ".vhs", ".vht", ".vhw"},
|
||||||
"Vala": {".vala", ".vapi"},
|
"Vala": {".vala", ".vapi"},
|
||||||
"Valve Data Format": {".vdf"},
|
"Valve Data Format": {".vdf"},
|
||||||
|
"Velocity Template Language": {".vtl"},
|
||||||
"Verilog": {".v", ".veo"},
|
"Verilog": {".v", ".veo"},
|
||||||
"Vim Help File": {".txt"},
|
"Vim Help File": {".txt"},
|
||||||
"Vim Script": {".vim", ".vba", ".vimrc", ".vmb"},
|
"Vim Script": {".vim", ".vba", ".vimrc", ".vmb"},
|
||||||
@ -1868,11 +1886,12 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"Witcher Script": {".ws"},
|
"Witcher Script": {".ws"},
|
||||||
"Wollok": {".wlk"},
|
"Wollok": {".wlk"},
|
||||||
"World of Warcraft Addon Data": {".toc"},
|
"World of Warcraft Addon Data": {".toc"},
|
||||||
|
"Wren": {".wren"},
|
||||||
"X BitMap": {".xbm"},
|
"X BitMap": {".xbm"},
|
||||||
"X PixMap": {".xpm", ".pm"},
|
"X PixMap": {".xpm", ".pm"},
|
||||||
"X10": {".x10"},
|
"X10": {".x10"},
|
||||||
"XC": {".xc"},
|
"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"},
|
"XML Property List": {".plist", ".sttheme", ".tmcommand", ".tmlanguage", ".tmpreferences", ".tmsnippet", ".tmtheme"},
|
||||||
"XPages": {".xsp-config", ".xsp.metadata"},
|
"XPages": {".xsp-config", ".xsp.metadata"},
|
||||||
"XProc": {".xpl", ".xproc"},
|
"XProc": {".xpl", ".xproc"},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
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.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -59,7 +59,6 @@ var LanguagesGroup = map[string]string{
|
|||||||
"Roff Manpage": "Roff",
|
"Roff Manpage": "Roff",
|
||||||
"SSH Config": "INI",
|
"SSH Config": "INI",
|
||||||
"STON": "Smalltalk",
|
"STON": "Smalltalk",
|
||||||
"SugarSS": "CSS",
|
|
||||||
"TSX": "TypeScript",
|
"TSX": "TypeScript",
|
||||||
"Tcsh": "Shell",
|
"Tcsh": "Shell",
|
||||||
"Unified Parallel C": "C",
|
"Unified Parallel C": "C",
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
var LanguagesByInterpreter = map[string][]string{
|
var LanguagesByInterpreter = map[string][]string{
|
||||||
"M2": {"Macaulay2"},
|
"M2": {"Macaulay2"},
|
||||||
|
"RouterOS": {"RouterOS Script"},
|
||||||
"Rscript": {"R"},
|
"Rscript": {"R"},
|
||||||
"aidl": {"AIDL"},
|
"aidl": {"AIDL"},
|
||||||
"apl": {"APL"},
|
"apl": {"APL"},
|
||||||
@ -37,6 +38,7 @@ var LanguagesByInterpreter = map[string][]string{
|
|||||||
"dyalog": {"APL"},
|
"dyalog": {"APL"},
|
||||||
"ecl": {"Common Lisp"},
|
"ecl": {"Common Lisp"},
|
||||||
"elixir": {"Elixir"},
|
"elixir": {"Elixir"},
|
||||||
|
"elvish": {"Elvish"},
|
||||||
"escript": {"Erlang"},
|
"escript": {"Erlang"},
|
||||||
"eui": {"Euphoria"},
|
"eui": {"Euphoria"},
|
||||||
"euiw": {"Euphoria"},
|
"euiw": {"Euphoria"},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -236,6 +236,7 @@ var LanguagesMime = map[string]string{
|
|||||||
"VBA": "text/x-vb",
|
"VBA": "text/x-vb",
|
||||||
"VBScript": "text/vbscript",
|
"VBScript": "text/vbscript",
|
||||||
"VHDL": "text/x-vhdl",
|
"VHDL": "text/x-vhdl",
|
||||||
|
"Velocity Template Language": "text/velocity",
|
||||||
"Verilog": "text/x-verilog",
|
"Verilog": "text/x-verilog",
|
||||||
"Visual Basic .NET": "text/x-vb",
|
"Visual Basic .NET": "text/x-vb",
|
||||||
"Volt": "text/x-d",
|
"Volt": "text/x-d",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -65,6 +65,7 @@ var LanguagesType = map[string]int{
|
|||||||
"ATS": 2,
|
"ATS": 2,
|
||||||
"ActionScript": 2,
|
"ActionScript": 2,
|
||||||
"Ada": 2,
|
"Ada": 2,
|
||||||
|
"Adblock Filter List": 1,
|
||||||
"Adobe Font Metrics": 1,
|
"Adobe Font Metrics": 1,
|
||||||
"Agda": 2,
|
"Agda": 2,
|
||||||
"Alloy": 2,
|
"Alloy": 2,
|
||||||
@ -201,6 +202,7 @@ var LanguagesType = map[string]int{
|
|||||||
"Eiffel": 2,
|
"Eiffel": 2,
|
||||||
"Elixir": 2,
|
"Elixir": 2,
|
||||||
"Elm": 2,
|
"Elm": 2,
|
||||||
|
"Elvish": 2,
|
||||||
"Emacs Lisp": 2,
|
"Emacs Lisp": 2,
|
||||||
"EmberScript": 2,
|
"EmberScript": 2,
|
||||||
"Erlang": 2,
|
"Erlang": 2,
|
||||||
@ -238,6 +240,7 @@ var LanguagesType = map[string]int{
|
|||||||
"GSC": 2,
|
"GSC": 2,
|
||||||
"Game Maker Language": 2,
|
"Game Maker Language": 2,
|
||||||
"Gemfile.lock": 1,
|
"Gemfile.lock": 1,
|
||||||
|
"Gemini": 4,
|
||||||
"Genero": 2,
|
"Genero": 2,
|
||||||
"Genero Forms": 3,
|
"Genero Forms": 3,
|
||||||
"Genie": 2,
|
"Genie": 2,
|
||||||
@ -270,6 +273,7 @@ var LanguagesType = map[string]int{
|
|||||||
"HAProxy": 1,
|
"HAProxy": 1,
|
||||||
"HCL": 2,
|
"HCL": 2,
|
||||||
"HLSL": 2,
|
"HLSL": 2,
|
||||||
|
"HOCON": 1,
|
||||||
"HTML": 3,
|
"HTML": 3,
|
||||||
"HTML+ECR": 3,
|
"HTML+ECR": 3,
|
||||||
"HTML+EEX": 3,
|
"HTML+EEX": 3,
|
||||||
@ -399,6 +403,7 @@ var LanguagesType = map[string]int{
|
|||||||
"MoonScript": 2,
|
"MoonScript": 2,
|
||||||
"Motoko": 2,
|
"Motoko": 2,
|
||||||
"Motorola 68K Assembly": 2,
|
"Motorola 68K Assembly": 2,
|
||||||
|
"Move": 2,
|
||||||
"Muse": 4,
|
"Muse": 4,
|
||||||
"Mustache": 3,
|
"Mustache": 3,
|
||||||
"Myghty": 2,
|
"Myghty": 2,
|
||||||
@ -409,6 +414,7 @@ var LanguagesType = map[string]int{
|
|||||||
"NPM Config": 1,
|
"NPM Config": 1,
|
||||||
"NSIS": 2,
|
"NSIS": 2,
|
||||||
"NWScript": 2,
|
"NWScript": 2,
|
||||||
|
"Nasal": 2,
|
||||||
"Nearley": 2,
|
"Nearley": 2,
|
||||||
"Nemerle": 2,
|
"Nemerle": 2,
|
||||||
"NetLinx": 2,
|
"NetLinx": 2,
|
||||||
@ -534,6 +540,7 @@ var LanguagesType = map[string]int{
|
|||||||
"Roff": 3,
|
"Roff": 3,
|
||||||
"Roff Manpage": 3,
|
"Roff Manpage": 3,
|
||||||
"Rouge": 2,
|
"Rouge": 2,
|
||||||
|
"RouterOS Script": 2,
|
||||||
"Ruby": 2,
|
"Ruby": 2,
|
||||||
"Rust": 2,
|
"Rust": 2,
|
||||||
"SAS": 2,
|
"SAS": 2,
|
||||||
@ -626,6 +633,7 @@ var LanguagesType = map[string]int{
|
|||||||
"VHDL": 2,
|
"VHDL": 2,
|
||||||
"Vala": 2,
|
"Vala": 2,
|
||||||
"Valve Data Format": 1,
|
"Valve Data Format": 1,
|
||||||
|
"Velocity Template Language": 3,
|
||||||
"Verilog": 2,
|
"Verilog": 2,
|
||||||
"Vim Help File": 4,
|
"Vim Help File": 4,
|
||||||
"Vim Script": 2,
|
"Vim Script": 2,
|
||||||
@ -648,6 +656,7 @@ var LanguagesType = map[string]int{
|
|||||||
"Witcher Script": 2,
|
"Witcher Script": 2,
|
||||||
"Wollok": 2,
|
"Wollok": 2,
|
||||||
"World of Warcraft Addon Data": 1,
|
"World of Warcraft Addon Data": 1,
|
||||||
|
"Wren": 2,
|
||||||
"X BitMap": 1,
|
"X BitMap": 1,
|
||||||
"X Font Directory Index": 1,
|
"X Font Directory Index": 1,
|
||||||
"X PixMap": 1,
|
"X PixMap": 1,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
|
// 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
|
package data
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ var VendorMatchers = []regex.EnryRegexp{
|
|||||||
regex.MustCompile(`(^|/)\.indent\.pro`),
|
regex.MustCompile(`(^|/)\.indent\.pro`),
|
||||||
regex.MustCompile(`(\.|-)min\.(js|css)$`),
|
regex.MustCompile(`(\.|-)min\.(js|css)$`),
|
||||||
regex.MustCompile(`([^\s]*)import\.(css|less|scss|styl)$`),
|
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(`(^|/)custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$`),
|
||||||
regex.MustCompile(`(^|/)font-?awesome\.(css|less|scss|styl)$`),
|
regex.MustCompile(`(^|/)font-?awesome\.(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.
|
// 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"
|
"testing"
|
||||||
|
|
||||||
"github.com/go-enry/go-enry/v2/data"
|
"github.com/go-enry/go-enry/v2/data"
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -25,9 +24,15 @@ func Test_EnryOnLinguistCorpus(t *testing.T) {
|
|||||||
func (s *linguistCorpusSuite) TestLinguistSamples() {
|
func (s *linguistCorpusSuite) TestLinguistSamples() {
|
||||||
const filenamesDir = "filenames"
|
const filenamesDir = "filenames"
|
||||||
var cornerCases = map[string]bool{
|
var cornerCases = map[string]bool{
|
||||||
"drop_stuff.sql": true, // https://github.com/src-d/enry/issues/194
|
"drop_stuff.sql": false, // not the case in v7.23, 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)
|
"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
|
// .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
|
var total, failed, ok, other int
|
||||||
@ -45,25 +50,23 @@ func (s *linguistCorpusSuite) TestLinguistSamples() {
|
|||||||
content, _ := ioutil.ReadFile(path)
|
content, _ := ioutil.ReadFile(path)
|
||||||
|
|
||||||
total++
|
total++
|
||||||
obtained := GetLanguage(filename, content)
|
got := GetLanguage(filename, content)
|
||||||
if obtained == OtherLanguage {
|
if got == OtherLanguage {
|
||||||
obtained = "Other"
|
got = "Other"
|
||||||
other++
|
other++
|
||||||
}
|
}
|
||||||
|
|
||||||
var status string
|
if expected == got {
|
||||||
if expected == obtained {
|
|
||||||
status = "ok"
|
|
||||||
ok++
|
ok++
|
||||||
} else {
|
} else {
|
||||||
status = "failed"
|
|
||||||
failed++
|
failed++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
errMsg := fmt.Sprintf("file: %q\texpected: %q\tgot: %q\n", path, expected, got)
|
||||||
if _, ok := cornerCases[filename]; ok {
|
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 {
|
} 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
|
return nil
|
||||||
})
|
})
|
||||||
|
@ -51,8 +51,9 @@ var vendorTests = []struct {
|
|||||||
{false, "some/python/venv/", false},
|
{false, "some/python/venv/", false},
|
||||||
{false, "foo/.imageset/bar", true},
|
{false, "foo/.imageset/bar", true},
|
||||||
{false, "Vagrantfile", true},
|
{false, "Vagrantfile", true},
|
||||||
|
{false, "custom.bootstrap.css", true},
|
||||||
{true, "src/bootstrap-custom.js", 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) {
|
func TestIsVendor(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user