sync to the latest github/linguist v7.9.0

This commit is contained in:
Lauris BH
2020-03-21 21:16:52 +02:00
parent fa1c6f39b5
commit 9030d3671b
30 changed files with 52041 additions and 30895 deletions

View File

@ -118,6 +118,8 @@ Parsing [linguist/samples](https://github.com/github/linguist/tree/master/sample
* [Heuristics for ".rno" extension](https://github.com/github/linguist/blob/3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d/lib/linguist/heuristics.yml#L365) in RUNOFF could not be parsed, due to unsupported lookahead in RE2 regexp engine.
* [Heuristics for ".inc" extension](https://github.com/github/linguist/blob/f0e2d0d7f1ce600b2a5acccaef6b149c87d8b99c/lib/linguist/heuristics.yml#L222) in NASL could not be parsed, due to unsupported possessive quantifier in RE2 regexp engine.
* 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).

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -9,6 +9,7 @@ import "strings"
// All the keys (alias or not) are written in lower case and the whitespaces has been replaced by underscores.
var LanguageByAliasMap = map[string]string{
"1c_enterprise": "1C Enterprise",
"4d": "4D",
"abap": "ABAP",
"abl": "OpenEdge ABL",
"abnf": "ABNF",
@ -36,6 +37,7 @@ var LanguageByAliasMap = map[string]string{
"altium_designer": "Altium Designer",
"amfm": "Adobe Font Metrics",
"ampl": "AMPL",
"amusewiki": "Muse",
"angelscript": "AngelScript",
"ant_build_system": "Ant Build System",
"antlr": "ANTLR",
@ -76,7 +78,9 @@ var LanguageByAliasMap = map[string]string{
"bat": "Batchfile",
"batch": "Batchfile",
"batchfile": "Batchfile",
"bazel": "Starlark",
"befunge": "Befunge",
"bibtex": "BibTeX",
"bison": "Bison",
"bitbake": "BitBake",
"blade": "Blade",
@ -93,6 +97,7 @@ var LanguageByAliasMap = map[string]string{
"bro": "Zeek",
"bsdmake": "Makefile",
"byond": "DM",
"bzl": "Starlark",
"c": "C",
"c#": "C#",
"c++": "C++",
@ -124,6 +129,8 @@ var LanguageByAliasMap = map[string]string{
"cloud_firestore_security_rules": "Cloud Firestore Security Rules",
"cmake": "CMake",
"cobol": "COBOL",
"coccinelle": "SmPL",
"codeql": "CodeQL",
"coffee": "CoffeeScript",
"coffee-script": "CoffeeScript",
"coffeescript": "CoffeeScript",
@ -157,6 +164,8 @@ var LanguageByAliasMap = map[string]string{
"csv": "CSV",
"cucumber": "Gherkin",
"cuda": "Cuda",
"curl_config": "cURL Config",
"curlrc": "cURL Config",
"cweb": "CWeb",
"cwl": "Common Workflow Language",
"cycript": "Cycript",
@ -172,6 +181,8 @@ var LanguageByAliasMap = map[string]string{
"dhall": "Dhall",
"diff": "Diff",
"digital_command_language": "DIGITAL Command Language",
"dircolors": "dircolors",
"directx_3d_file": "DirectX 3D File",
"django": "HTML+Django",
"dm": "DM",
"dns_zone": "DNS Zone",
@ -205,6 +216,7 @@ var LanguageByAliasMap = map[string]string{
"elm": "Elm",
"emacs": "Emacs Lisp",
"emacs_lisp": "Emacs Lisp",
"emacs_muse": "Muse",
"emberscript": "EmberScript",
"eml": "EML",
"eq": "EQ",
@ -215,6 +227,7 @@ var LanguageByAliasMap = map[string]string{
"factor": "Factor",
"fancy": "Fancy",
"fantom": "Fantom",
"faust": "Faust",
"figfont": "FIGlet Font",
"figlet_font": "FIGlet Font",
"filebench_wml": "Filebench WML",
@ -234,6 +247,7 @@ var LanguageByAliasMap = map[string]string{
"fundamental": "Text",
"g-code": "G-code",
"game_maker_language": "Game Maker Language",
"gaml": "GAML",
"gams": "GAMS",
"gap": "GAP",
"gcc_machine_description": "GCC Machine Description",
@ -315,6 +329,7 @@ var LanguageByAliasMap = map[string]string{
"inform_7": "Inform 7",
"ini": "INI",
"inno_setup": "Inno Setup",
"inputrc": "Readline Config",
"io": "Io",
"ioke": "Ioke",
"ipython_notebook": "Jupyter Notebook",
@ -390,6 +405,7 @@ var LanguageByAliasMap = map[string]string{
"m": "M",
"m4": "M4",
"m4sugar": "M4Sugar",
"m68k": "Motorola 68K Assembly",
"macruby": "Ruby",
"make": "Makefile",
"makefile": "Makefile",
@ -416,8 +432,11 @@ var LanguageByAliasMap = map[string]string{
"meson": "Meson",
"metal": "Metal",
"mf": "Makefile",
"microsoft_developer_studio_project": "Microsoft Developer Studio Project",
"minid": "MiniD",
"mirah": "Mirah",
"mirc_script": "mIRC Script",
"mlir": "MLIR",
"mma": "Mathematica",
"modelica": "Modelica",
"modula-2": "Modula-2",
@ -433,12 +452,15 @@ var LanguageByAliasMap = map[string]string{
"muf": "MUF",
"mumps": "M",
"mupad": "mupad",
"muse": "Muse",
"myghty": "Myghty",
"nanorc": "nanorc",
"nasl": "NASL",
"nasm": "Assembly",
"ncl": "NCL",
"nearley": "Nearley",
"nemerle": "Nemerle",
"neosnippet": "Vim Snippet",
"nesc": "nesC",
"netlinx": "NetLinx",
"netlinx+erb": "NetLinx+ERB",
@ -455,6 +477,8 @@ var LanguageByAliasMap = map[string]string{
"njk": "HTML+Django",
"nl": "NL",
"node": "JavaScript",
"npm_config": "NPM Config",
"npmrc": "NPM Config",
"nroff": "Roff",
"nsis": "NSIS",
"nu": "Nu",
@ -468,6 +492,7 @@ var LanguageByAliasMap = map[string]string{
"objc": "Objective-C",
"objc++": "Objective-C++",
"objdump": "ObjDump",
"object_data_instance_notation": "Object Data Instance Notation",
"objective-c": "Objective-C",
"objective-c++": "Objective-C++",
"objective-j": "Objective-J",
@ -479,17 +504,23 @@ var LanguageByAliasMap = map[string]string{
"objj": "Objective-J",
"ocaml": "OCaml",
"octave": "MATLAB",
"odin": "Odin",
"odin-lang": "Odin",
"odinlang": "Odin",
"omgrofl": "Omgrofl",
"oncrpc": "RPC",
"ooc": "ooc",
"opa": "Opa",
"opal": "Opal",
"open_policy_agent": "Open Policy Agent",
"opencl": "OpenCL",
"openedge": "OpenEdge ABL",
"openedge_abl": "OpenEdge ABL",
"openqasm": "OpenQASM",
"openrc": "OpenRC runscript",
"openrc_runscript": "OpenRC runscript",
"openscad": "OpenSCAD",
"openstep_property_list": "OpenStep Property List",
"opentype_feature_file": "OpenType Feature File",
"org": "Org",
"osascript": "AppleScript",
@ -509,8 +540,8 @@ var LanguageByAliasMap = map[string]string{
"pcbnew": "KiCad Layout",
"pep8": "Pep8",
"perl": "Perl",
"perl6": "Perl 6",
"perl_6": "Perl 6",
"perl-6": "Raku",
"perl6": "Raku",
"php": "PHP",
"pic": "Pic",
"pickle": "Pickle",
@ -518,6 +549,7 @@ var LanguageByAliasMap = map[string]string{
"piglatin": "PigLatin",
"pike": "Pike",
"pir": "Parrot Internal Representation",
"plantuml": "PlantUML",
"plpgsql": "PLpgSQL",
"plsql": "PLSQL",
"pod": "Pod",
@ -534,8 +566,10 @@ var LanguageByAliasMap = map[string]string{
"povray": "POV-Ray SDL",
"powerbuilder": "PowerBuilder",
"powershell": "PowerShell",
"prisma": "Prisma",
"processing": "Processing",
"progress": "OpenEdge ABL",
"proguard": "Proguard",
"prolog": "Prolog",
"propeller_spin": "Propeller Spin",
"protobuf": "Protocol Buffer",
@ -555,6 +589,7 @@ var LanguageByAliasMap = map[string]string{
"python_console": "Python console",
"python_traceback": "Python traceback",
"q": "q",
"ql": "CodeQL",
"qmake": "QMake",
"qml": "QML",
"quake": "Quake",
@ -564,6 +599,7 @@ var LanguageByAliasMap = map[string]string{
"ragel-rb": "Ragel",
"ragel-ruby": "Ragel",
"rake": "Ruby",
"raku": "Raku",
"raml": "RAML",
"rascal": "Rascal",
"raw": "Raw token data",
@ -572,6 +608,8 @@ var LanguageByAliasMap = map[string]string{
"rb": "Ruby",
"rbx": "Ruby",
"rdoc": "RDoc",
"readline": "Readline Config",
"readline_config": "Readline Config",
"realbasic": "REALbasic",
"reason": "Reason",
"rebol": "Rebol",
@ -589,6 +627,7 @@ var LanguageByAliasMap = map[string]string{
"rhtml": "RHTML",
"rich_text_format": "Rich Text Format",
"ring": "Ring",
"riot": "Riot",
"rmarkdown": "RMarkdown",
"robotframework": "RobotFramework",
"roff": "Roff",
@ -631,7 +670,9 @@ var LanguageByAliasMap = map[string]string{
"smalltalk": "Smalltalk",
"smarty": "Smarty",
"sml": "Standard ML",
"smpl": "SmPL",
"smt": "SMT",
"snipmate": "Vim Snippet",
"snippet": "YASnippet",
"solidity": "Solidity",
"sourcemod": "SourcePawn",
@ -650,6 +691,7 @@ var LanguageByAliasMap = map[string]string{
"ssh_config": "SSH Config",
"stan": "Stan",
"standard_ml": "Standard ML",
"starlark": "Starlark",
"stata": "Stata",
"ston": "STON",
"stylus": "Stylus",
@ -659,6 +701,7 @@ var LanguageByAliasMap = map[string]string{
"svelte": "Svelte",
"svg": "SVG",
"swift": "Swift",
"swig": "SWIG",
"systemverilog": "SystemVerilog",
"tcl": "Tcl",
"tcsh": "Tcsh",
@ -666,6 +709,7 @@ var LanguageByAliasMap = map[string]string{
"terra": "Terra",
"terraform": "HCL",
"tex": "TeX",
"texinfo": "Texinfo",
"text": "Text",
"textile": "Textile",
"thrift": "Thrift",
@ -684,6 +728,8 @@ var LanguageByAliasMap = map[string]string{
"type_language": "Type Language",
"typescript": "TypeScript",
"udiff": "Diff",
"ultisnip": "Vim Snippet",
"ultisnips": "Vim Snippet",
"unified_parallel_c": "Unified Parallel C",
"unity3d_asset": "Unity3D Asset",
"unix_assembly": "Unix Assembly",
@ -692,16 +738,26 @@ var LanguageByAliasMap = map[string]string{
"ur": "UrWeb",
"ur/web": "UrWeb",
"urweb": "UrWeb",
"v": "V",
"vala": "Vala",
"vb.net": "Visual Basic",
"vbnet": "Visual Basic",
"vb.net": "Visual Basic .NET",
"vb6": "VBA",
"vb_.net": "Visual Basic .NET",
"vba": "VBA",
"vbnet": "Visual Basic .NET",
"vbscript": "VBScript",
"vcl": "VCL",
"verilog": "Verilog",
"vhdl": "VHDL",
"vim": "Vim script",
"vim_script": "Vim script",
"vim_snippet": "Vim Snippet",
"viml": "Vim script",
"visual_basic": "Visual Basic",
"visual_basic": "Visual Basic .NET",
"visual_basic_.net": "Visual Basic .NET",
"visual_basic_6": "VBA",
"visual_basic_for_applications": "VBA",
"vlang": "V",
"volt": "Volt",
"vue": "Vue",
"wasm": "WebAssembly",
@ -713,6 +769,8 @@ var LanguageByAliasMap = map[string]string{
"webassembly": "WebAssembly",
"webidl": "WebIDL",
"webvtt": "WebVTT",
"wget_config": "Wget Config",
"wgetrc": "Wget Config",
"winbatch": "Batchfile",
"windows_registry_entries": "Windows Registry Entries",
"wisp": "wisp",
@ -732,6 +790,7 @@ var LanguageByAliasMap = map[string]string{
"xml": "XML",
"xml+genshi": "Genshi",
"xml+kid": "Genshi",
"xml_property_list": "XML Property List",
"xojo": "Xojo",
"xpages": "XPages",
"xpm": "X PixMap",

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -71,11 +71,13 @@ var LanguagesColor = map[string]string{
"Factor": "#636746",
"Fancy": "#7b9db4",
"Fantom": "#14253c",
"Faust": "#c37240",
"Forth": "#341708",
"Fortran": "#4d41b1",
"FreeMarker": "#0050b2",
"Frege": "#00cafe",
"G-code": "#D08CF2",
"GAML": "#FFC766",
"GDScript": "#355570",
"Game Maker Language": "#71b417",
"Genie": "#fb855d",
@ -96,6 +98,7 @@ var LanguagesColor = map[string]string{
"HolyC": "#ffefaf",
"Hy": "#7790B2",
"IDL": "#a3522f",
"IGOR Pro": "#0000cc",
"Idris": "#b30000",
"Io": "#a9188d",
"Ioke": "#078193",
@ -121,6 +124,7 @@ var LanguagesColor = map[string]string{
"Lua": "#000080",
"MATLAB": "#e16737",
"MAXScript": "#00a6a6",
"MLIR": "#5EC8DB",
"MQL4": "#62A8D6",
"MQL5": "#4A76B8",
"MTML": "#b7e1f4",
@ -149,8 +153,10 @@ var LanguagesColor = map[string]string{
"Objective-C": "#438eff",
"Objective-C++": "#6866fb",
"Objective-J": "#ff0c5a",
"Odin": "#60AFFE",
"Omgrofl": "#cabbff",
"Opal": "#f7ede0",
"OpenQASM": "#AA70FF",
"Oxygene": "#cdd0e3",
"Oz": "#fab738",
"P4": "#7055b5",
@ -163,7 +169,6 @@ var LanguagesColor = map[string]string{
"Pawn": "#dbb284",
"Pep8": "#C76F5B",
"Perl": "#0298c3",
"Perl 6": "#0000fb",
"PigLatin": "#fcd7de",
"Pike": "#005390",
"PogoScript": "#d80074",
@ -184,11 +189,14 @@ var LanguagesColor = map[string]string{
"RUNOFF": "#665a4e",
"Racket": "#3c5caa",
"Ragel": "#9d5200",
"Raku": "#0000fb",
"Rascal": "#fffaa0",
"Reason": "#ff5847",
"Rebol": "#358a5b",
"Red": "#f50000",
"Ren'Py": "#ff7f7f",
"Ring": "#2D54CB",
"Riot": "#A71E49",
"Roff": "#ecdebe",
"Rouge": "#cc0088",
"Ruby": "#701516",
@ -204,12 +212,14 @@ var LanguagesColor = map[string]string{
"Shen": "#120F14",
"Slash": "#007eff",
"Slice": "#003fa2",
"SmPL": "#c94949",
"Smalltalk": "#596706",
"Solidity": "#AA6746",
"SourcePawn": "#5c7611",
"Squirrel": "#800000",
"Stan": "#b2011d",
"Standard ML": "#dc566d",
"Starlark": "#76d275",
"SuperCollider": "#46390b",
"Swift": "#ffac45",
"SystemVerilog": "#DAE1C2",
@ -220,12 +230,15 @@ var LanguagesColor = map[string]string{
"Turing": "#cf142b",
"TypeScript": "#2b7489",
"UnrealScript": "#a54c4d",
"V": "#5d87bd",
"VBA": "#867db1",
"VBScript": "#15dcdc",
"VCL": "#148AA8",
"VHDL": "#adb2cb",
"Vala": "#fbe5cd",
"Verilog": "#b2b7f8",
"Vim script": "#199f4b",
"Visual Basic": "#945db7",
"Visual Basic .NET": "#945db7",
"Volt": "#1F1F1F",
"Vue": "#2c3e50",
"WebAssembly": "#04133b",
@ -243,6 +256,7 @@ var LanguagesColor = map[string]string{
"Zephir": "#118f9e",
"Zig": "#ec915c",
"eC": "#913960",
"mIRC Script": "#926059",
"mcfunction": "#E22837",
"nesC": "#94B0C7",
"ooc": "#b0b77e",

View File

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

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -591,6 +591,12 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)^(\/\/.+|((import|export)\s+)?(function|int|float|char)\s+((room|repeatedly|on|game)_)?([A-Za-z]+[A-Za-z_0-9]+)\s*[;\(])`),
),
},
".asm": &Heuristics{
rule.Or(
rule.MatchingLanguages("Motorola 68K Assembly"),
regexp.MustCompile(`(?m)(?im)\bmoveq(?:\.l)?\s+#(?:\$-?[0-9a-f]{1,3}|%[0-1]{1,8}|-?[0-9]{1,3}),\s*d[0-7]\b|(?im)^\s*move(?:\.[bwl])?\s+(?:sr|usp),\s*[^\s]+|(?im)^\s*move\.[bwl]\s+.*\b[ad]\d|(?im)^\s*movem\.[bwl]\b|(?im)^\s*move[mp](?:\.[wl])?\b|(?im)^\s*btst\b|(?im)^\s*dbra\b`),
),
},
".asy": &Heuristics{
rule.Or(
rule.MatchingLanguages("LTspice Symbol"),
@ -673,6 +679,16 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)([\/\\].*:\s+.*\s\\$|: \\$|^[ %]:|^[\w\s\/\\.]+\w+\.\w+\s*:\s+[\w\s\/\\.]+\w+\.\w+)`),
),
},
".dsp": &Heuristics{
rule.Or(
rule.MatchingLanguages("Microsoft Developer Studio Project"),
regexp.MustCompile(`(?m)# Microsoft Developer Studio Generated Build File`),
),
rule.Or(
rule.MatchingLanguages("Faust"),
regexp.MustCompile(`(?m)\bprocess\s*[(=]|\b(library|import)\s*\(\s*"|\bdeclare\s+(name|version|author|copyright|license)\s+"`),
),
},
".ecl": &Heuristics{
rule.Or(
rule.MatchingLanguages("ECLiPSe"),
@ -772,6 +788,10 @@ var ContentHeuristics = map[string]*Heuristics{
),
},
".gs": &Heuristics{
rule.Or(
rule.MatchingLanguages("GLSL"),
regexp.MustCompile(`(?m)^#version\s+[0-9]+\b`),
),
rule.Or(
rule.MatchingLanguages("Gosu"),
regexp.MustCompile(`(?m)^uses java\.`),
@ -793,6 +813,16 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)<\?hh`),
),
},
".i": &Heuristics{
rule.Or(
rule.MatchingLanguages("Motorola 68K Assembly"),
regexp.MustCompile(`(?m)(?im)\bmoveq(?:\.l)?\s+#(?:\$-?[0-9a-f]{1,3}|%[0-1]{1,8}|-?[0-9]{1,3}),\s*d[0-7]\b|(?im)^\s*move(?:\.[bwl])?\s+(?:sr|usp),\s*[^\s]+|(?im)^\s*move\.[bwl]\s+.*\b[ad]\d|(?im)^\s*movem\.[bwl]\b|(?im)^\s*move[mp](?:\.[wl])?\b|(?im)^\s*btst\b|(?im)^\s*dbra\b`),
),
rule.Or(
rule.MatchingLanguages("SWIG"),
regexp.MustCompile(`(?m)^[ \t]*%[a-z_]+\b|^%[{}]$`),
),
},
".ice": &Heuristics{
rule.Or(
rule.MatchingLanguages("JSON"),
@ -803,6 +833,10 @@ var ContentHeuristics = map[string]*Heuristics{
),
},
".inc": &Heuristics{
rule.Or(
rule.MatchingLanguages("Motorola 68K Assembly"),
regexp.MustCompile(`(?m)(?im)\bmoveq(?:\.l)?\s+#(?:\$-?[0-9a-f]{1,3}|%[0-1]{1,8}|-?[0-9]{1,3}),\s*d[0-7]\b|(?im)^\s*move(?:\.[bwl])?\s+(?:sr|usp),\s*[^\s]+|(?im)^\s*move\.[bwl]\s+.*\b[ad]\d|(?im)^\s*movem\.[bwl]\b|(?im)^\s*move[mp](?:\.[wl])?\b|(?im)^\s*btst\b|(?im)^\s*dbra\b`),
),
rule.Or(
rule.MatchingLanguages("PHP"),
regexp.MustCompile(`(?m)^<\?(?:php)?`),
@ -931,6 +965,12 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("Roff"),
),
},
".mask": &Heuristics{
rule.Or(
rule.MatchingLanguages("Unity3d Asset"),
regexp.MustCompile(`(?m)tag:unity3d.com`),
),
},
".md": &Heuristics{
rule.Or(
rule.MatchingLanguages("Markdown"),
@ -1047,6 +1087,25 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("NewLisp"),
),
},
".odin": &Heuristics{
rule.Or(
rule.MatchingLanguages("Object Data Instance Notation"),
regexp.MustCompile(`(?m)(?:^|<)\s*[A-Za-z0-9_]+\s*=\s*<`),
),
rule.Or(
rule.MatchingLanguages("Odin"),
regexp.MustCompile(`(?m)package\s+\w+|\b(?:im|ex)port\s*"[\w:./]+"|\w+\s*::\s*(?:proc|struct)\s*\(|^\s*//\s`),
),
},
".p": &Heuristics{
rule.Or(
rule.MatchingLanguages("Gnuplot"),
regexp.MustCompile(`(?m)^s?plot\b|^set\s+(term|terminal|out|output|[xy]tics|[xy]label|[xy]range|style)\b`),
),
rule.Always(
rule.MatchingLanguages("OpenEdge ABL"),
),
},
".php": &Heuristics{
rule.Or(
rule.MatchingLanguages("Hack"),
@ -1067,17 +1126,26 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)\buse\s+(?:strict\b|v?5\.)`),
),
rule.Or(
rule.MatchingLanguages("Perl 6"),
rule.MatchingLanguages("Raku"),
regexp.MustCompile(`(?m)^\s*(?:use\s+v6\b|\bmodule\b|\b(?:my\s+)?class\b)`),
),
},
".plist": &Heuristics{
rule.Or(
rule.MatchingLanguages("XML Property List"),
regexp.MustCompile(`(?m)<!DOCTYPE\s+plist`),
),
rule.Always(
rule.MatchingLanguages("OpenStep Property List"),
),
},
".pm": &Heuristics{
rule.Or(
rule.MatchingLanguages("Perl"),
regexp.MustCompile(`(?m)\buse\s+(?:strict\b|v?5\.)`),
),
rule.Or(
rule.MatchingLanguages("Perl 6"),
rule.MatchingLanguages("Raku"),
regexp.MustCompile(`(?m)^\s*(?:use\s+v6\b|\bmodule\b|\b(?:my\s+)?class\b)`),
),
rule.Or(
@ -1105,6 +1173,10 @@ var ContentHeuristics = map[string]*Heuristics{
),
},
".pro": &Heuristics{
rule.Or(
rule.MatchingLanguages("Proguard"),
regexp.MustCompile(`(?m)^-(include\b.*\.pro$|keep\b|keepclassmembers\b|keepattributes\b)`),
),
rule.Or(
rule.MatchingLanguages("Prolog"),
regexp.MustCompile(`(?m)^[^\[#]+:-`),
@ -1216,6 +1288,12 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)#include|#pragma\s+(rs|version)|__attribute__`),
),
},
".s": &Heuristics{
rule.Or(
rule.MatchingLanguages("Motorola 68K Assembly"),
regexp.MustCompile(`(?m)(?im)\bmoveq(?:\.l)?\s+#(?:\$-?[0-9a-f]{1,3}|%[0-1]{1,8}|-?[0-9]{1,3}),\s*d[0-7]\b|(?im)^\s*move(?:\.[bwl])?\s+(?:sr|usp),\s*[^\s]+|(?im)^\s*move\.[bwl]\s+.*\b[ad]\d|(?im)^\s*movem\.[bwl]\b|(?im)^\s*move[mp](?:\.[wl])?\b|(?im)^\s*btst\b|(?im)^\s*dbra\b`),
),
},
".sc": &Heuristics{
rule.Or(
rule.MatchingLanguages("SuperCollider"),
@ -1267,7 +1345,7 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)\buse\s+(?:strict\b|v?5\.)`),
),
rule.Or(
rule.MatchingLanguages("Perl 6"),
rule.MatchingLanguages("Raku"),
regexp.MustCompile(`(?m)^\s*(?:use\s+v6\b|\bmodule\b|\b(?:my\s+)?class\b)`),
),
rule.Or(
@ -1313,13 +1391,27 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)(?i:^\s*<\?xml\s+version)`),
),
},
".v": &Heuristics{
rule.Or(
rule.MatchingLanguages("Coq"),
regexp.MustCompile(`(?m)\(\*.*?\*\)|(?:^|\s)(?:Proof|Qed)\.(?:$|\s)|(?:^|\s)Require[ \t]+Import\s`),
),
rule.Or(
rule.MatchingLanguages("Verilog"),
regexp.MustCompile(`(?m)^[ \t]*module\s+[^\s()]+\s+\#?\(|^[ \t]*`+"`"+`(?:ifdef|timescale)\s|^[ \t]*always[ \t]+@`),
),
rule.Or(
rule.MatchingLanguages("V"),
regexp.MustCompile(`(?m)\$(?:if|else)[ \t]|^[ \t]*fn\s+[^\s()]+\(.*?\).*?\{|^[ \t]*for\s*\{`),
),
},
".vba": &Heuristics{
rule.Or(
rule.MatchingLanguages("Vim script"),
regexp.MustCompile(`(?m)^UseVimball`),
),
rule.Always(
rule.MatchingLanguages("Visual Basic"),
rule.MatchingLanguages("VBA"),
),
},
".w": &Heuristics{
@ -1333,6 +1425,10 @@ var ContentHeuristics = map[string]*Heuristics{
),
},
".x": &Heuristics{
rule.Or(
rule.MatchingLanguages("DirectX 3D File"),
regexp.MustCompile(`(?m)^xof 030(2|3)(?:txt|bin|tzip|bzip)\b`),
),
rule.Or(
rule.MatchingLanguages("RPC"),
regexp.MustCompile(`(?m)\b(program|version)\s+\w+\s*{|\bunion\s+\w+\s+switch\s*\(`),

View File

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

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -17,11 +17,12 @@ var LanguagesByExtension = map[string][]string{
".3qt": {"Roff", "Roff Manpage"},
".3x": {"Roff", "Roff Manpage"},
".4": {"Roff", "Roff Manpage"},
".4dm": {"4D"},
".4th": {"Forth"},
".5": {"Roff", "Roff Manpage"},
".6": {"Roff", "Roff Manpage"},
".6pl": {"Perl 6"},
".6pm": {"Perl 6"},
".6pl": {"Raku"},
".6pm": {"Raku"},
".7": {"Roff", "Roff Manpage"},
".8": {"Roff", "Roff Manpage"},
".8xk": {"TI Program"},
@ -70,7 +71,7 @@ var LanguagesByExtension = map[string][]string{
".asd": {"Common Lisp"},
".ash": {"AGS Script"},
".ashx": {"ASP"},
".asm": {"Assembly"},
".asm": {"Assembly", "Motorola 68K Assembly"},
".asmx": {"ASP"},
".asn": {"ASN.1"},
".asn1": {"ASN.1"},
@ -93,7 +94,7 @@ var LanguagesByExtension = map[string][]string{
".axs.erb": {"NetLinx+ERB"},
".b": {"Brainfuck", "Limbo"},
".bal": {"Ballerina"},
".bas": {"Visual Basic"},
".bas": {"VBA"},
".bash": {"Shell"},
".bat": {"Batchfile"},
".bats": {"Shell"},
@ -103,7 +104,8 @@ var LanguagesByExtension = map[string][]string{
".bdy": {"PLSQL"},
".befunge": {"Befunge"},
".bf": {"Brainfuck", "HyPhy"},
".bib": {"TeX"},
".bib": {"BibTeX"},
".bibtex": {"BibTeX"},
".bison": {"Bison"},
".blade": {"Blade"},
".blade.php": {"Blade"},
@ -118,7 +120,7 @@ var LanguagesByExtension = map[string][]string{
".bsv": {"Bluespec"},
".builder": {"Ruby"},
".builds": {"XML"},
".bzl": {"Python"},
".bzl": {"Starlark"},
".c": {"C"},
".c++": {"C++"},
".c++-objdump": {"Cpp-ObjDump"},
@ -147,6 +149,7 @@ var LanguagesByExtension = map[string][]string{
".chpl": {"Chapel"},
".chs": {"C2hs Haskell"},
".cirru": {"Cirru"},
".cjs": {"JavaScript"},
".cjsx": {"CoffeeScript"},
".ck": {"ChucK"},
".cl": {"Common Lisp", "Cool", "OpenCL"},
@ -160,7 +163,7 @@ var LanguagesByExtension = map[string][]string{
".cljscm": {"Clojure"},
".cljx": {"Clojure"},
".clp": {"CLIPS"},
".cls": {"Apex", "ObjectScript", "OpenEdge ABL", "TeX", "Visual Basic"},
".cls": {"Apex", "ObjectScript", "OpenEdge ABL", "TeX", "VBA"},
".clw": {"Clarion"},
".cmake": {"CMake"},
".cmake.in": {"CMake"},
@ -168,6 +171,7 @@ var LanguagesByExtension = map[string][]string{
".cnc": {"G-code"},
".cob": {"COBOL"},
".cobol": {"COBOL"},
".cocci": {"SmPL"},
".coffee": {"CoffeeScript"},
".com": {"DIGITAL Command Language"},
".command": {"Shell"},
@ -222,6 +226,7 @@ var LanguagesByExtension = map[string][]string{
".dhall": {"Dhall"},
".di": {"D"},
".diff": {"Diff"},
".dircolors": {"dircolors"},
".dita": {"XML"},
".ditamap": {"XML"},
".ditaval": {"XML"},
@ -231,12 +236,14 @@ var LanguagesByExtension = map[string][]string{
".dm": {"DM"},
".do": {"Stata"},
".dockerfile": {"Dockerfile"},
".dof": {"INI"},
".doh": {"Stata"},
".dot": {"Graphviz (DOT)"},
".dotsettings": {"XML"},
".dpatch": {"Darcs Patch"},
".dpr": {"Pascal"},
".druby": {"Mirah"},
".dsp": {"Faust", "Microsoft Developer Studio Project"},
".dtx": {"TeX"},
".duby": {"Mirah"},
".dwl": {"DataWeave"},
@ -269,6 +276,7 @@ var LanguagesByExtension = map[string][]string{
".eml": {"EML"},
".epj": {"Ecere Projects"},
".eps": {"PostScript"},
".epsi": {"PostScript"},
".eq": {"EQ"},
".erb": {"HTML+ERB"},
".erb.deface": {"HTML+ERB"},
@ -304,9 +312,9 @@ var LanguagesByExtension = map[string][]string{
".fr": {"Forth", "Frege", "Text"},
".frag": {"GLSL", "JavaScript"},
".frg": {"GLSL"},
".frm": {"Visual Basic"},
".frm": {"VBA"},
".frt": {"Forth"},
".frx": {"Visual Basic"},
".frx": {"VBA"},
".fs": {"F#", "Filterscript", "Forth", "GLSL"},
".fsh": {"GLSL"},
".fshader": {"GLSL"},
@ -323,6 +331,7 @@ var LanguagesByExtension = map[string][]string{
".fy": {"Fancy"},
".g": {"G-code", "GAP"},
".g4": {"ANTLR"},
".gaml": {"GAML"},
".gap": {"GAP"},
".gawk": {"Awk"},
".gbl": {"Gerber Image"},
@ -347,6 +356,7 @@ var LanguagesByExtension = map[string][]string{
".glade": {"XML"},
".glf": {"Glyph"},
".glsl": {"GLSL"},
".glslf": {"GLSL"},
".glslv": {"GLSL"},
".gltf": {"JSON"},
".gml": {"Game Maker Language", "Gerber Image", "Graph Modeling Language", "XML"},
@ -370,7 +380,7 @@ var LanguagesByExtension = map[string][]string{
".groovy": {"Groovy"},
".grt": {"Groovy"},
".grxml": {"XML"},
".gs": {"Genie", "Gosu", "JavaScript"},
".gs": {"GLSL", "Genie", "Gosu", "JavaScript"},
".gshader": {"GLSL"},
".gsp": {"Groovy Server Pages"},
".gst": {"Gosu"},
@ -386,6 +396,7 @@ var LanguagesByExtension = map[string][]string{
".gypi": {"Python"},
".h": {"C", "C++", "Objective-C"},
".h++": {"C++"},
".hack": {"Hack"},
".haml": {"Haml"},
".haml.deface": {"Haml"},
".handlebars": {"Handlebars"},
@ -396,14 +407,17 @@ var LanguagesByExtension = map[string][]string{
".hc": {"HolyC"},
".hcl": {"HCL"},
".hh": {"C++", "Hack"},
".hhi": {"Hack"},
".hic": {"Clojure"},
".hlean": {"Lean"},
".hlsl": {"HLSL"},
".hlsli": {"HLSL"},
".hpp": {"C++"},
".hqf": {"SQF"},
".hql": {"HiveQL"},
".hrl": {"Erlang"},
".hs": {"Haskell"},
".hs-boot": {"Haskell"},
".hsc": {"Haskell"},
".htm": {"HTML"},
".html": {"HTML"},
@ -414,6 +428,7 @@ var LanguagesByExtension = map[string][]string{
".hxsl": {"Haxe"},
".hxx": {"C++"},
".hy": {"Hy"},
".i": {"Assembly", "Motorola 68K Assembly", "SWIG"},
".i3": {"Modula-3"},
".i7x": {"Inform 7"},
".ice": {"JSON", "Slice"},
@ -427,7 +442,7 @@ var LanguagesByExtension = map[string][]string{
".ik": {"Ioke"},
".ily": {"LilyPond"},
".iml": {"XML"},
".inc": {"Assembly", "C++", "HTML", "PHP", "POV-Ray SDL", "Pascal", "Pawn", "SQL", "SourcePawn"},
".inc": {"Assembly", "C++", "HTML", "Motorola 68K Assembly", "NASL", "PHP", "POV-Ray SDL", "Pascal", "Pawn", "SQL", "SourcePawn"},
".ini": {"INI"},
".inl": {"C++"},
".ino": {"C++"},
@ -440,6 +455,7 @@ var LanguagesByExtension = map[string][]string{
".ipynb": {"Jupyter Notebook"},
".irclog": {"IRC log"},
".iss": {"Inno Setup"},
".iuml": {"PlantUML"},
".ivy": {"XML"},
".j": {"Jasmin", "Objective-J"},
".jade": {"Pug"},
@ -463,6 +479,7 @@ var LanguagesByExtension = map[string][]string{
".json": {"JSON"},
".json-tmlanguage": {"JSON"},
".json5": {"JSON5"},
".jsonc": {"JSON with Comments"},
".jsonl": {"JSON"},
".jsonld": {"JSONLD"},
".jsonnet": {"Jsonnet"},
@ -492,7 +509,6 @@ var LanguagesByExtension = map[string][]string{
".launch": {"XML"},
".lbx": {"TeX"},
".ld": {"Linker Script"},
".ldml": {"Lasso"},
".lds": {"Linker Script"},
".lean": {"Lean"},
".lektorproject": {"INI"},
@ -532,7 +548,7 @@ var LanguagesByExtension = map[string][]string{
".mao": {"Mako"},
".markdown": {"Markdown"},
".marko": {"Marko"},
".mask": {"Mask"},
".mask": {"Mask", "Unity3D Asset"},
".mat": {"Unity3D Asset"},
".mata": {"Stata"},
".matah": {"Stata"},
@ -573,6 +589,7 @@ var LanguagesByExtension = map[string][]string{
".ml": {"OCaml", "Standard ML"},
".ml4": {"OCaml"},
".mli": {"OCaml"},
".mlir": {"MLIR"},
".mll": {"OCaml"},
".mly": {"OCaml"},
".mm": {"Objective-C++", "XML"},
@ -588,6 +605,7 @@ var LanguagesByExtension = map[string][]string{
".mq4": {"MQL4"},
".mq5": {"MQL5"},
".mqh": {"MQL4", "MQL5"},
".mrc": {"mIRC Script"},
".ms": {"MAXScript", "Roff", "Unix Assembly"},
".mspec": {"Ruby"},
".mss": {"CartoCSS"},
@ -598,6 +616,7 @@ var LanguagesByExtension = map[string][]string{
".mud": {"ZIL"},
".muf": {"MUF"},
".mumps": {"M"},
".muse": {"Muse"},
".mustache": {"HTML+Django"},
".mxml": {"XML"},
".mxt": {"Max"},
@ -605,6 +624,7 @@ var LanguagesByExtension = map[string][]string{
".myt": {"Myghty"},
".n": {"Nemerle", "Roff"},
".nanorc": {"nanorc"},
".nasl": {"NASL"},
".nasm": {"Assembly"},
".natvis": {"XML"},
".nawk": {"Awk"},
@ -632,7 +652,7 @@ var LanguagesByExtension = map[string][]string{
".nlogo": {"NetLogo"},
".no": {"Text"},
".nproj": {"XML"},
".nqp": {"Perl 6"},
".nqp": {"Raku"},
".nr": {"Roff"},
".nse": {"Lua"},
".nsh": {"NSIS"},
@ -647,6 +667,7 @@ var LanguagesByExtension = map[string][]string{
".obj": {"Wavefront Object"},
".objdump": {"ObjDump"},
".odd": {"XML"},
".odin": {"Object Data Instance Notation", "Odin"},
".ol": {"Jolie"},
".omgrofl": {"Omgrofl"},
".ooc": {"ooc"},
@ -664,11 +685,11 @@ var LanguagesByExtension = map[string][]string{
".oxo": {"Ox"},
".oxygene": {"Oxygene"},
".oz": {"Oz"},
".p": {"OpenEdge ABL"},
".p": {"Gnuplot", "OpenEdge ABL"},
".p4": {"P4"},
".p6": {"Perl 6"},
".p6l": {"Perl 6"},
".p6m": {"Perl 6"},
".p6": {"Raku"},
".p6l": {"Raku"},
".p6m": {"Raku"},
".p8": {"Lua"},
".pac": {"JavaScript"},
".pan": {"Pan"},
@ -707,18 +728,19 @@ var LanguagesByExtension = map[string][]string{
".pkgproj": {"XML"},
".pkl": {"Pickle"},
".pks": {"PLSQL"},
".pl": {"Perl", "Perl 6", "Prolog"},
".pl6": {"Perl 6"},
".pl": {"Perl", "Prolog", "Raku"},
".pl6": {"Raku"},
".plantuml": {"PlantUML"},
".plb": {"PLSQL"},
".plist": {"XML"},
".plist": {"OpenStep Property List", "XML Property List"},
".plot": {"Gnuplot"},
".pls": {"PLSQL"},
".plsql": {"PLSQL"},
".plt": {"Gnuplot"},
".pluginspec": {"Ruby", "XML"},
".plx": {"Perl"},
".pm": {"Perl", "Perl 6", "X PixMap"},
".pm6": {"Perl 6"},
".pm": {"Perl", "Raku", "X PixMap"},
".pm6": {"Raku"},
".pmod": {"Pike"},
".po": {"Gettext Catalog"},
".pod": {"Pod", "Pod 6"},
@ -727,6 +749,7 @@ var LanguagesByExtension = map[string][]string{
".podspec": {"Ruby"},
".pogo": {"PogoScript"},
".pony": {"Pony"},
".postcss": {"PostCSS"},
".pot": {"Gettext Catalog"},
".pov": {"POV-Ray SDL"},
".pp": {"Pascal", "Puppet"},
@ -736,8 +759,9 @@ var LanguagesByExtension = map[string][]string{
".prefs": {"INI"},
".prg": {"xBase"},
".pri": {"QMake"},
".prisma": {"Prisma"},
".prjpcb": {"Altium Designer"},
".pro": {"IDL", "INI", "Prolog", "QMake"},
".pro": {"IDL", "INI", "Proguard", "Prolog", "QMake"},
".proj": {"XML"},
".prolog": {"Prolog"},
".properties": {"INI", "Java Properties"},
@ -755,6 +779,7 @@ var LanguagesByExtension = map[string][]string{
".pt": {"XML"},
".pub": {"Public Key"},
".pug": {"Pug"},
".puml": {"PlantUML"},
".purs": {"PureScript"},
".pwn": {"Pawn"},
".pxd": {"Cython"},
@ -769,7 +794,10 @@ var LanguagesByExtension = map[string][]string{
".pyw": {"Python"},
".pyx": {"Cython"},
".q": {"HiveQL", "q"},
".qasm": {"OpenQASM"},
".qbs": {"QML"},
".ql": {"CodeQL"},
".qll": {"CodeQL"},
".qml": {"QML"},
".r": {"R", "Rebol"},
".r2": {"Rebol"},
@ -782,6 +810,7 @@ var LanguagesByExtension = map[string][]string{
".rb": {"Ruby"},
".rbbas": {"REALbasic"},
".rbfrm": {"REALbasic"},
".rbi": {"Ruby"},
".rbmnu": {"REALbasic"},
".rbres": {"REALbasic"},
".rbtbar": {"REALbasic"},
@ -802,6 +831,7 @@ var LanguagesByExtension = map[string][]string{
".reg": {"Windows Registry Entries"},
".regex": {"Regular Expression"},
".regexp": {"Regular Expression"},
".rego": {"Open Policy Agent"},
".rei": {"Reason"},
".rest": {"reStructuredText"},
".rest.txt": {"reStructuredText"},
@ -811,6 +841,7 @@ var LanguagesByExtension = map[string][]string{
".rg": {"Rouge"},
".rhtml": {"RHTML"},
".ring": {"Ring"},
".riot": {"Riot"},
".rkt": {"Racket"},
".rktd": {"Racket"},
".rktl": {"Racket"},
@ -819,6 +850,7 @@ var LanguagesByExtension = map[string][]string{
".rnh": {"RUNOFF"},
".rno": {"RUNOFF", "Roff"},
".robot": {"RobotFramework"},
".rockspec": {"Lua"},
".roff": {"Roff"},
".ronn": {"Markdown"},
".rpy": {"Python", "Ren'Py"},
@ -835,7 +867,7 @@ var LanguagesByExtension = map[string][]string{
".ru": {"Ruby"},
".ruby": {"Ruby"},
".rviz": {"YAML"},
".s": {"Unix Assembly"},
".s": {"Motorola 68K Assembly", "Unix Assembly"},
".sage": {"Sage"},
".sagews": {"Sage"},
".sas": {"SAS"},
@ -877,9 +909,13 @@ var LanguagesByExtension = map[string][]string{
".sls": {"SaltStack", "Scheme"},
".sma": {"Pawn"},
".smali": {"Smali"},
".smk": {"Python"},
".sml": {"Standard ML"},
".smt": {"SMT"},
".smt2": {"SMT"},
".snip": {"Vim Snippet"},
".snippet": {"Vim Snippet"},
".snippets": {"Vim Snippet"},
".soy": {"Closure Templates"},
".sp": {"SourcePawn"},
".sparql": {"SPARQL"},
@ -902,7 +938,7 @@ var LanguagesByExtension = map[string][]string{
".sthlp": {"Stata"},
".ston": {"STON"},
".storyboard": {"XML"},
".sttheme": {"XML"},
".sttheme": {"XML Property List"},
".sty": {"TeX"},
".styl": {"Stylus"},
".sublime-build": {"JSON with Comments"},
@ -926,7 +962,7 @@ var LanguagesByExtension = map[string][]string{
".svh": {"SystemVerilog"},
".swift": {"Swift"},
".syntax": {"YAML"},
".t": {"Perl", "Perl 6", "Terra", "Turing"},
".t": {"Perl", "Raku", "Terra", "Turing"},
".tab": {"SQL"},
".tac": {"Python"},
".targets": {"XML"},
@ -937,6 +973,8 @@ var LanguagesByExtension = map[string][]string{
".tesc": {"GLSL"},
".tese": {"GLSL"},
".tex": {"TeX"},
".texi": {"Texinfo"},
".texinfo": {"Texinfo"},
".textile": {"Textile"},
".tf": {"HCL"},
".tfstate": {"JSON"},
@ -949,12 +987,12 @@ var LanguagesByExtension = map[string][]string{
".tla": {"TLA"},
".tm": {"Tcl"},
".tmac": {"Roff"},
".tmcommand": {"XML"},
".tmcommand": {"XML Property List"},
".tml": {"XML"},
".tmlanguage": {"XML"},
".tmpreferences": {"XML"},
".tmsnippet": {"XML"},
".tmtheme": {"XML"},
".tmlanguage": {"XML Property List"},
".tmpreferences": {"XML Property List"},
".tmsnippet": {"XML Property List"},
".tmtheme": {"XML Property List"},
".tmux": {"Shell"},
".toc": {"TeX", "World of Warcraft Addon Data"},
".toml": {"TOML"},
@ -971,6 +1009,7 @@ var LanguagesByExtension = map[string][]string{
".ttl": {"Turtle"},
".tu": {"Turing"},
".twig": {"Twig"},
".txi": {"Texinfo"},
".txl": {"TXL"},
".txt": {"Text"},
".uc": {"UnrealScript"},
@ -984,15 +1023,15 @@ var LanguagesByExtension = map[string][]string{
".urdf": {"XML"},
".urs": {"UrWeb"},
".ux": {"XML"},
".v": {"Coq", "Verilog"},
".v": {"Coq", "V", "Verilog"},
".vala": {"Vala"},
".vapi": {"Vala"},
".vark": {"Gosu"},
".vb": {"Visual Basic"},
".vba": {"Vim script", "Visual Basic"},
".vbhtml": {"Visual Basic"},
".vb": {"Visual Basic .NET"},
".vba": {"VBA", "Vim script"},
".vbhtml": {"Visual Basic .NET"},
".vbproj": {"XML"},
".vbs": {"Visual Basic"},
".vbs": {"VBScript"},
".vcl": {"VCL"},
".vcxproj": {"XML"},
".veo": {"Verilog"},
@ -1046,7 +1085,7 @@ var LanguagesByExtension = map[string][]string{
".wxi": {"XML"},
".wxl": {"XML"},
".wxs": {"XML"},
".x": {"Linker Script", "Logos", "RPC"},
".x": {"DirectX 3D File", "Linker Script", "Logos", "RPC"},
".x10": {"X10"},
".x3d": {"XML"},
".x68": {"Motorola 68K Assembly"},
@ -1097,6 +1136,7 @@ var LanguagesByExtension = map[string][]string{
".yacc": {"Yacc"},
".yaml": {"YAML"},
".yaml-tmlanguage": {"YAML"},
".yaml.sed": {"YAML"},
".yang": {"YANG"},
".yap": {"Prolog"},
".yar": {"YARA"},
@ -1123,6 +1163,7 @@ var LanguagesByExtension = map[string][]string{
var ExtensionsByLanguage = map[string][]string{
"1C Enterprise": {".bsl", ".os"},
"4D": {".4dm"},
"ABAP": {".abap"},
"ABNF": {".abnf"},
"AGS Script": {".asc", ".ash"},
@ -1147,7 +1188,7 @@ var ExtensionsByLanguage = map[string][]string{
"Arc": {".arc"},
"AsciiDoc": {".asciidoc", ".adoc", ".asc"},
"AspectJ": {".aj"},
"Assembly": {".asm", ".a51", ".inc", ".nasm"},
"Assembly": {".asm", ".a51", ".i", ".inc", ".nasm"},
"Asymptote": {".asy"},
"Augeas": {".aug"},
"AutoHotkey": {".ahk", ".ahkl"},
@ -1156,6 +1197,7 @@ var ExtensionsByLanguage = map[string][]string{
"Ballerina": {".bal"},
"Batchfile": {".bat", ".cmd"},
"Befunge": {".befunge"},
"BibTeX": {".bib", ".bibtex"},
"Bison": {".bison"},
"BitBake": {".bb"},
"Blade": {".blade", ".blade.php"},
@ -1192,6 +1234,7 @@ var ExtensionsByLanguage = map[string][]string{
"Clojure": {".clj", ".boot", ".cl2", ".cljc", ".cljs", ".cljs.hl", ".cljscm", ".cljx", ".hic"},
"Closure Templates": {".soy"},
"CoNLL-U": {".conllu", ".conll"},
"CodeQL": {".ql", ".qll"},
"CoffeeScript": {".coffee", "._coffee", ".cake", ".cjsx", ".iced"},
"ColdFusion": {".cfm", ".cfml"},
"ColdFusion CFC": {".cfc"},
@ -1220,6 +1263,7 @@ var ExtensionsByLanguage = map[string][]string{
"DataWeave": {".dwl"},
"Dhall": {".dhall"},
"Diff": {".diff", ".patch"},
"DirectX 3D File": {".x"},
"Dockerfile": {".dockerfile"},
"Dogescript": {".djs"},
"Dylan": {".dylan", ".dyl", ".intr", ".lid"},
@ -1247,6 +1291,7 @@ var ExtensionsByLanguage = map[string][]string{
"Factor": {".factor"},
"Fancy": {".fy", ".fancypack"},
"Fantom": {".fan"},
"Faust": {".dsp"},
"Filebench WML": {".f"},
"Filterscript": {".fs"},
"Formatted": {".for", ".eam.fs"},
@ -1255,12 +1300,13 @@ var ExtensionsByLanguage = map[string][]string{
"FreeMarker": {".ftl"},
"Frege": {".fr"},
"G-code": {".g", ".cnc", ".gco", ".gcode"},
"GAML": {".gaml"},
"GAMS": {".gms"},
"GAP": {".g", ".gap", ".gd", ".gi", ".tst"},
"GCC Machine Description": {".md"},
"GDB": {".gdb", ".gdbinit"},
"GDScript": {".gd"},
"GLSL": {".glsl", ".fp", ".frag", ".frg", ".fs", ".fsh", ".fshader", ".geo", ".geom", ".glslv", ".gshader", ".shader", ".tesc", ".tese", ".vert", ".vrx", ".vsh", ".vshader"},
"GLSL": {".glsl", ".fp", ".frag", ".frg", ".fs", ".fsh", ".fshader", ".geo", ".geom", ".glslf", ".glslv", ".gs", ".gshader", ".shader", ".tesc", ".tese", ".vert", ".vrx", ".vsh", ".vshader"},
"GN": {".gn", ".gni"},
"Game Maker Language": {".gml"},
"Genie": {".gs"},
@ -1273,7 +1319,7 @@ var ExtensionsByLanguage = map[string][]string{
"Git Config": {".gitconfig"},
"Glyph": {".glf"},
"Glyph Bitmap Distribution Format": {".bdf"},
"Gnuplot": {".gp", ".gnu", ".gnuplot", ".plot", ".plt"},
"Gnuplot": {".gp", ".gnu", ".gnuplot", ".p", ".plot", ".plt"},
"Go": {".go"},
"Golo": {".golo"},
"Gosu": {".gs", ".gst", ".gsx", ".vark"},
@ -1297,19 +1343,19 @@ var ExtensionsByLanguage = map[string][]string{
"HTML+Razor": {".cshtml", ".razor"},
"HTTP": {".http"},
"HXML": {".hxml"},
"Hack": {".hh", ".php"},
"Hack": {".hack", ".hh", ".hhi", ".php"},
"Haml": {".haml", ".haml.deface"},
"Handlebars": {".handlebars", ".hbs"},
"Harbour": {".hb"},
"Haskell": {".hs", ".hsc"},
"Haskell": {".hs", ".hs-boot", ".hsc"},
"Haxe": {".hx", ".hxsl"},
"HiveQL": {".q"},
"HiveQL": {".q", ".hql"},
"HolyC": {".hc"},
"Hy": {".hy"},
"HyPhy": {".bf"},
"IDL": {".pro", ".dlm"},
"IGOR Pro": {".ipf"},
"INI": {".ini", ".cfg", ".lektorproject", ".prefs", ".pro", ".properties"},
"INI": {".ini", ".cfg", ".dof", ".lektorproject", ".prefs", ".pro", ".properties"},
"IRC log": {".irclog", ".weechatlog"},
"Idris": {".idr", ".lidr"},
"Ignore List": {".gitignore"},
@ -1321,7 +1367,7 @@ var ExtensionsByLanguage = map[string][]string{
"J": {".ijs"},
"JFlex": {".flex", ".jflex"},
"JSON": {".json", ".avsc", ".geojson", ".gltf", ".har", ".ice", ".json-tmlanguage", ".jsonl", ".mcmeta", ".tfstate", ".tfstate.backup", ".topojson", ".webapp", ".webmanifest", ".yy", ".yyp"},
"JSON with Comments": {".sublime-build", ".sublime-commands", ".sublime-completions", ".sublime-keymap", ".sublime-macro", ".sublime-menu", ".sublime-mousemap", ".sublime-project", ".sublime-settings", ".sublime-theme", ".sublime-workspace", ".sublime_metrics", ".sublime_session"},
"JSON with Comments": {".jsonc", ".sublime-build", ".sublime-commands", ".sublime-completions", ".sublime-keymap", ".sublime-macro", ".sublime-menu", ".sublime-mousemap", ".sublime-project", ".sublime-settings", ".sublime-theme", ".sublime-workspace", ".sublime_metrics", ".sublime_session"},
"JSON5": {".json5"},
"JSONLD": {".jsonld"},
"JSONiq": {".jq"},
@ -1330,7 +1376,7 @@ var ExtensionsByLanguage = map[string][]string{
"Java": {".java"},
"Java Properties": {".properties"},
"Java Server Pages": {".jsp"},
"JavaScript": {".js", "._js", ".bones", ".es", ".es6", ".frag", ".gs", ".jake", ".jsb", ".jscad", ".jsfl", ".jsm", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib"},
"JavaScript": {".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".jsb", ".jscad", ".jsfl", ".jsm", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib"},
"JavaScript+ERB": {".js.erb"},
"Jison": {".jison"},
"Jison Lex": {".jisonlex"},
@ -1350,7 +1396,7 @@ var ExtensionsByLanguage = map[string][]string{
"LSL": {".lsl", ".lslp"},
"LTspice Symbol": {".asy"},
"LabVIEW": {".lvproj"},
"Lasso": {".lasso", ".las", ".lasso8", ".lasso9", ".ldml"},
"Lasso": {".lasso", ".las", ".lasso8", ".lasso9"},
"Latte": {".latte"},
"Lean": {".lean", ".hlean"},
"Less": {".less"},
@ -1368,12 +1414,13 @@ var ExtensionsByLanguage = map[string][]string{
"Logtalk": {".lgt", ".logtalk"},
"LookML": {".lookml", ".model.lkml", ".view.lkml"},
"LoomScript": {".ls"},
"Lua": {".lua", ".fcgi", ".nse", ".p8", ".pd_lua", ".rbxs", ".wlua"},
"Lua": {".lua", ".fcgi", ".nse", ".p8", ".pd_lua", ".rbxs", ".rockspec", ".wlua"},
"M": {".mumps", ".m"},
"M4": {".m4"},
"M4Sugar": {".m4"},
"MATLAB": {".matlab", ".m"},
"MAXScript": {".ms", ".mcr"},
"MLIR": {".mlir"},
"MQL4": {".mq4", ".mqh"},
"MQL5": {".mq5", ".mqh"},
"MTML": {".mtml"},
@ -1388,6 +1435,7 @@ var ExtensionsByLanguage = map[string][]string{
"MediaWiki": {".mediawiki", ".wiki"},
"Mercury": {".m", ".moo"},
"Metal": {".metal"},
"Microsoft Developer Studio Project": {".dsp"},
"MiniD": {".minid"},
"Mirah": {".druby", ".duby", ".mirah"},
"Modelica": {".mo"},
@ -1397,8 +1445,10 @@ var ExtensionsByLanguage = map[string][]string{
"Monkey": {".monkey", ".monkey2"},
"Moocode": {".moo"},
"MoonScript": {".moon"},
"Motorola 68K Assembly": {".x68"},
"Motorola 68K Assembly": {".asm", ".i", ".inc", ".s", ".x68"},
"Muse": {".muse"},
"Myghty": {".myt"},
"NASL": {".nasl", ".inc"},
"NCL": {".ncl"},
"NL": {".nl"},
"NSIS": {".nsi", ".nsh"},
@ -1418,16 +1468,21 @@ var ExtensionsByLanguage = map[string][]string{
"NumPy": {".numpy", ".numpyw", ".numsc"},
"OCaml": {".ml", ".eliom", ".eliomi", ".ml4", ".mli", ".mll", ".mly"},
"ObjDump": {".objdump"},
"Object Data Instance Notation": {".odin"},
"ObjectScript": {".cls"},
"Objective-C": {".m", ".h"},
"Objective-C++": {".mm"},
"Objective-J": {".j", ".sj"},
"Odin": {".odin"},
"Omgrofl": {".omgrofl"},
"Opa": {".opa"},
"Opal": {".opal"},
"Open Policy Agent": {".rego"},
"OpenCL": {".cl", ".opencl"},
"OpenEdge ABL": {".p", ".cls", ".w"},
"OpenQASM": {".qasm"},
"OpenSCAD": {".scad"},
"OpenStep Property List": {".plist"},
"OpenType Feature File": {".fea"},
"Org": {".org"},
"Ox": {".ox", ".oxh", ".oxo"},
@ -1447,21 +1502,23 @@ var ExtensionsByLanguage = map[string][]string{
"Pawn": {".pwn", ".inc", ".sma"},
"Pep8": {".pep"},
"Perl": {".pl", ".al", ".cgi", ".fcgi", ".perl", ".ph", ".plx", ".pm", ".psgi", ".t"},
"Perl 6": {".6pl", ".6pm", ".nqp", ".p6", ".p6l", ".p6m", ".pl", ".pl6", ".pm", ".pm6", ".t"},
"Pic": {".pic", ".chem"},
"Pickle": {".pkl"},
"PicoLisp": {".l"},
"PigLatin": {".pig"},
"Pike": {".pike", ".pmod"},
"PlantUML": {".puml", ".iuml", ".plantuml"},
"Pod": {".pod"},
"Pod 6": {".pod", ".pod6"},
"PogoScript": {".pogo"},
"Pony": {".pony"},
"PostCSS": {".pcss"},
"PostScript": {".ps", ".eps", ".pfa"},
"PostCSS": {".pcss", ".postcss"},
"PostScript": {".ps", ".eps", ".epsi", ".pfa"},
"PowerBuilder": {".pbt", ".sra", ".sru", ".srw"},
"PowerShell": {".ps1", ".psd1", ".psm1"},
"Prisma": {".prisma"},
"Processing": {".pde"},
"Proguard": {".pro"},
"Prolog": {".pl", ".pro", ".prolog", ".yap"},
"Propeller Spin": {".spin"},
"Protocol Buffer": {".proto"},
@ -1471,7 +1528,7 @@ var ExtensionsByLanguage = map[string][]string{
"Pure Data": {".pd"},
"PureBasic": {".pb", ".pbi"},
"PureScript": {".purs"},
"Python": {".py", ".bzl", ".cgi", ".fcgi", ".gyp", ".gypi", ".lmi", ".py3", ".pyde", ".pyi", ".pyp", ".pyt", ".pyw", ".rpy", ".spec", ".tac", ".wsgi", ".xpy"},
"Python": {".py", ".cgi", ".fcgi", ".gyp", ".gypi", ".lmi", ".py3", ".pyde", ".pyi", ".pyp", ".pyt", ".pyw", ".rpy", ".smk", ".spec", ".tac", ".wsgi", ".xpy"},
"Python traceback": {".pytb"},
"QML": {".qml", ".qbs"},
"QMake": {".pro", ".pri"},
@ -1487,6 +1544,7 @@ var ExtensionsByLanguage = map[string][]string{
"RUNOFF": {".rnh", ".rno"},
"Racket": {".rkt", ".rktd", ".rktl", ".scrbl"},
"Ragel": {".rl"},
"Raku": {".6pl", ".6pm", ".nqp", ".p6", ".p6l", ".p6m", ".pl", ".pl6", ".pm", ".pm6", ".t"},
"Rascal": {".rsc"},
"Raw token data": {".raw"},
"Reason": {".re", ".rei"},
@ -1498,11 +1556,12 @@ var ExtensionsByLanguage = map[string][]string{
"RenderScript": {".rs", ".rsh"},
"Rich Text Format": {".rtf"},
"Ring": {".ring"},
"Riot": {".riot"},
"RobotFramework": {".robot"},
"Roff": {".roff", ".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3p", ".3pm", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".l", ".man", ".mdoc", ".me", ".ms", ".n", ".nr", ".rno", ".tmac"},
"Roff Manpage": {".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3p", ".3pm", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".man", ".mdoc"},
"Rouge": {".rg"},
"Ruby": {".rb", ".builder", ".eye", ".fcgi", ".gemspec", ".god", ".jbuilder", ".mspec", ".pluginspec", ".podspec", ".rabl", ".rake", ".rbuild", ".rbw", ".rbx", ".ru", ".ruby", ".spec", ".thor", ".watchr"},
"Ruby": {".rb", ".builder", ".eye", ".fcgi", ".gemspec", ".god", ".jbuilder", ".mspec", ".pluginspec", ".podspec", ".rabl", ".rake", ".rbi", ".rbuild", ".rbw", ".rbx", ".ru", ".ruby", ".spec", ".thor", ".watchr"},
"Rust": {".rs", ".rs.in"},
"SAS": {".sas"},
"SCSS": {".scss"},
@ -1514,6 +1573,7 @@ var ExtensionsByLanguage = map[string][]string{
"SRecode Template": {".srt"},
"STON": {".ston"},
"SVG": {".svg"},
"SWIG": {".i"},
"Sage": {".sage", ".sagews"},
"SaltStack": {".sls"},
"Sass": {".sass"},
@ -1529,6 +1589,7 @@ var ExtensionsByLanguage = map[string][]string{
"Slash": {".sl"},
"Slice": {".ice"},
"Slim": {".slim"},
"SmPL": {".cocci"},
"Smali": {".smali"},
"Smalltalk": {".st", ".cs"},
"Smarty": {".tpl"},
@ -1537,6 +1598,7 @@ var ExtensionsByLanguage = map[string][]string{
"Squirrel": {".nut"},
"Stan": {".stan"},
"Standard ML": {".ml", ".fun", ".sig", ".sml"},
"Starlark": {".bzl"},
"Stata": {".do", ".ado", ".doh", ".ihlp", ".mata", ".matah", ".sthlp"},
"Stylus": {".styl"},
"SubRip Text": {".srt"},
@ -1553,9 +1615,10 @@ var ExtensionsByLanguage = map[string][]string{
"TXL": {".txl"},
"Tcl": {".tcl", ".adp", ".tm"},
"Tcsh": {".tcsh", ".csh"},
"TeX": {".tex", ".aux", ".bbx", ".bib", ".cbx", ".cls", ".dtx", ".ins", ".lbx", ".ltx", ".mkii", ".mkiv", ".mkvi", ".sty", ".toc"},
"TeX": {".tex", ".aux", ".bbx", ".cbx", ".cls", ".dtx", ".ins", ".lbx", ".ltx", ".mkii", ".mkiv", ".mkvi", ".sty", ".toc"},
"Tea": {".tea"},
"Terra": {".t"},
"Texinfo": {".texinfo", ".texi", ".txi"},
"Text": {".txt", ".fr", ".nb", ".ncl", ".no"},
"Textile": {".textile"},
"Thrift": {".thrift"},
@ -1565,17 +1628,21 @@ var ExtensionsByLanguage = map[string][]string{
"Type Language": {".tl"},
"TypeScript": {".ts"},
"Unified Parallel C": {".upc"},
"Unity3D Asset": {".anim", ".asset", ".mat", ".meta", ".prefab", ".unity"},
"Unity3D Asset": {".anim", ".asset", ".mask", ".mat", ".meta", ".prefab", ".unity"},
"Unix Assembly": {".s", ".ms"},
"Uno": {".uno"},
"UnrealScript": {".uc"},
"UrWeb": {".ur", ".urs"},
"V": {".v"},
"VBA": {".bas", ".cls", ".frm", ".frx", ".vba"},
"VBScript": {".vbs"},
"VCL": {".vcl"},
"VHDL": {".vhdl", ".vhd", ".vhf", ".vhi", ".vho", ".vhs", ".vht", ".vhw"},
"Vala": {".vala", ".vapi"},
"Verilog": {".v", ".veo"},
"Vim Snippet": {".snip", ".snippet", ".snippets"},
"Vim script": {".vim", ".vba", ".vmb"},
"Visual Basic": {".vb", ".bas", ".cls", ".frm", ".frx", ".vba", ".vbhtml", ".vbs"},
"Visual Basic .NET": {".vb", ".vbhtml"},
"Volt": {".volt"},
"Vue": {".vue"},
"Wavefront Material": {".mtl"},
@ -1591,7 +1658,8 @@ var ExtensionsByLanguage = map[string][]string{
"X PixMap": {".xpm", ".pm"},
"X10": {".x10"},
"XC": {".xc"},
"XML": {".xml", ".adml", ".admx", ".ant", ".axml", ".builds", ".ccproj", ".ccxml", ".clixml", ".cproject", ".cscfg", ".csdef", ".csl", ".csproj", ".ct", ".depproj", ".dita", ".ditamap", ".ditaval", ".dll.config", ".dotsettings", ".filters", ".fsproj", ".fxml", ".glade", ".gml", ".gmx", ".grxml", ".iml", ".ivy", ".jelly", ".jsproj", ".kml", ".launch", ".mdpolicy", ".mjml", ".mm", ".mod", ".mxml", ".natvis", ".ncl", ".ndproj", ".nproj", ".nuspec", ".odd", ".osm", ".pkgproj", ".plist", ".pluginspec", ".proj", ".props", ".ps1xml", ".psc1", ".pt", ".rdf", ".resx", ".rss", ".sch", ".scxml", ".sfproj", ".shproj", ".srdf", ".storyboard", ".sttheme", ".sublime-snippet", ".targets", ".tmcommand", ".tml", ".tmlanguage", ".tmpreferences", ".tmsnippet", ".tmtheme", ".ts", ".tsx", ".ui", ".urdf", ".ux", ".vbproj", ".vcxproj", ".vsixmanifest", ".vssettings", ".vstemplate", ".vxml", ".wixproj", ".workflow", ".wsdl", ".wsf", ".wxi", ".wxl", ".wxs", ".x3d", ".xacro", ".xaml", ".xib", ".xlf", ".xliff", ".xmi", ".xml.dist", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
"XML": {".xml", ".adml", ".admx", ".ant", ".axml", ".builds", ".ccproj", ".ccxml", ".clixml", ".cproject", ".cscfg", ".csdef", ".csl", ".csproj", ".ct", ".depproj", ".dita", ".ditamap", ".ditaval", ".dll.config", ".dotsettings", ".filters", ".fsproj", ".fxml", ".glade", ".gml", ".gmx", ".grxml", ".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", ".resx", ".rss", ".sch", ".scxml", ".sfproj", ".shproj", ".srdf", ".storyboard", ".sublime-snippet", ".targets", ".tml", ".ts", ".tsx", ".ui", ".urdf", ".ux", ".vbproj", ".vcxproj", ".vsixmanifest", ".vssettings", ".vstemplate", ".vxml", ".wixproj", ".workflow", ".wsdl", ".wsf", ".wxi", ".wxl", ".wxs", ".x3d", ".xacro", ".xaml", ".xib", ".xlf", ".xliff", ".xmi", ".xml.dist", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
"XML Property List": {".plist", ".sttheme", ".tmcommand", ".tmlanguage", ".tmpreferences", ".tmsnippet", ".tmtheme"},
"XPages": {".xsp-config", ".xsp.metadata"},
"XProc": {".xpl", ".xproc"},
"XQuery": {".xquery", ".xq", ".xql", ".xqm", ".xqy"},
@ -1599,7 +1667,7 @@ var ExtensionsByLanguage = map[string][]string{
"XSLT": {".xslt", ".xsl"},
"Xojo": {".xojo_code", ".xojo_menu", ".xojo_report", ".xojo_script", ".xojo_toolbar", ".xojo_window"},
"Xtend": {".xtend"},
"YAML": {".yml", ".mir", ".reek", ".rviz", ".sublime-syntax", ".syntax", ".yaml", ".yaml-tmlanguage", ".yml.mysql"},
"YAML": {".yml", ".mir", ".reek", ".rviz", ".sublime-syntax", ".syntax", ".yaml", ".yaml-tmlanguage", ".yaml.sed", ".yml.mysql"},
"YANG": {".yang"},
"YARA": {".yar", ".yara"},
"YASnippet": {".yasnippet"},
@ -1612,9 +1680,11 @@ var ExtensionsByLanguage = map[string][]string{
"Zig": {".zig"},
"Zimpl": {".zimpl", ".zmpl", ".zpl"},
"desktop": {".desktop", ".desktop.in"},
"dircolors": {".dircolors"},
"eC": {".ec", ".eh"},
"edn": {".edn"},
"fish": {".fish"},
"mIRC Script": {".mrc"},
"mcfunction": {".mcfunction"},
"mupad": {".mu"},
"nanorc": {".nanorc"},

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -23,7 +23,10 @@ var LanguagesByFilename = map[string][]string{
".coffeelintignore": {"Ignore List"},
".cproject": {"XML"},
".cshrc": {"Shell"},
".curlrc": {"cURL Config"},
".cvsignore": {"Ignore List"},
".dir_colors": {"dircolors"},
".dircolors": {"dircolors"},
".dockerignore": {"Ignore List"},
".editorconfig": {"EditorConfig"},
".emacs": {"Emacs Lisp"},
@ -43,14 +46,17 @@ var LanguagesByFilename = map[string][]string{
".gvimrc": {"Vim script"},
".htaccess": {"ApacheConf"},
".htmlhintrc": {"JSON"},
".inputrc": {"Readline Config"},
".irbrc": {"Ruby"},
".jscsrc": {"JSON with Comments"},
".jshintrc": {"JSON with Comments"},
".jslintrc": {"JSON with Comments"},
".login": {"Shell"},
".luacheckrc": {"Lua"},
".nanorc": {"nanorc"},
".nodemonignore": {"Ignore List"},
".npmignore": {"Ignore List"},
".npmrc": {"NPM Config"},
".nvimrc": {"Vim script"},
".php": {"PHP"},
".php_cs": {"PHP"},
@ -67,6 +73,7 @@ var LanguagesByFilename = map[string][]string{
".viper": {"Emacs Lisp"},
".vscodeignore": {"Ignore List"},
".watchmanconfig": {"JSON"},
".wgetrc": {"Wget Config"},
".zlogin": {"Shell"},
".zlogout": {"Shell"},
".zprofile": {"Shell"},
@ -77,9 +84,9 @@ var LanguagesByFilename = map[string][]string{
"App.config": {"XML"},
"Appraisals": {"Ruby"},
"BSDmakefile": {"Makefile"},
"BUCK": {"Python"},
"BUILD": {"Python"},
"BUILD.bazel": {"Python"},
"BUCK": {"Starlark"},
"BUILD": {"Starlark"},
"BUILD.bazel": {"Starlark"},
"Berksfile": {"Ruby"},
"Brewfile": {"Ruby"},
"Buildfile": {"Ruby"},
@ -91,6 +98,8 @@ var LanguagesByFilename = map[string][]string{
"Capfile": {"Ruby"},
"Cargo.lock": {"TOML"},
"Cask": {"Emacs Lisp"},
"DEPS": {"Python"},
"DIR_COLORS": {"dircolors"},
"Dangerfile": {"Ruby"},
"Deliverfile": {"Ruby"},
"Dockerfile": {"Dockerfile"},
@ -144,11 +153,14 @@ var LanguagesByFilename = map[string][]string{
"Snapfile": {"Ruby"},
"Thorfile": {"Ruby"},
"Vagrantfile": {"Ruby"},
"WORKSPACE": {"Python"},
"WORKSPACE": {"Starlark"},
"Web.Debug.config": {"XML"},
"Web.Release.config": {"XML"},
"Web.config": {"XML"},
"XCompose": {"XCompose"},
"_curlrc": {"cURL Config"},
"_dir_colors": {"dircolors"},
"_dircolors": {"dircolors"},
"_emacs": {"Emacs Lisp"},
"_vimrc": {"Vim script"},
"abbrev_defs": {"Emacs Lisp"},
@ -173,7 +185,9 @@ var LanguagesByFilename = map[string][]string{
"delete.me": {"Text"},
"descrip.mmk": {"Module Management System"},
"descrip.mms": {"Module Management System"},
"dir_colors": {"dircolors"},
"encodings.dir": {"X Font Directory Index"},
"eqnrc": {"Roff"},
"expr-dist": {"R"},
"firestore.rules": {"Cloud Firestore Security Rules"},
"fonts.alias": {"X Font Directory Index"},
@ -189,6 +203,7 @@ var LanguagesByFilename = map[string][]string{
"gvimrc": {"Vim script"},
"haproxy.cfg": {"HAProxy"},
"httpd.conf": {"ApacheConf"},
"inputrc": {"Readline Config"},
"jsconfig.json": {"JSON with Comments"},
"keep.me": {"Text"},
"language-configuration.json": {"JSON with Comments"},
@ -212,6 +227,9 @@ var LanguagesByFilename = map[string][]string{
"nim.cfg": {"Nim"},
"nvimrc": {"Vim script"},
"owh": {"Tcl"},
"package.mask": {"Text"},
"package.use.mask": {"Text"},
"package.use.stable.mask": {"Text"},
"packages.config": {"XML"},
"pom.xml": {"Maven POM"},
"profile": {"Shell"},
@ -229,10 +247,15 @@ var LanguagesByFilename = map[string][]string{
"sshd_config": {"SSH Config"},
"starfield": {"Tcl"},
"test.me": {"Text"},
"troffrc": {"Roff"},
"troffrc-end": {"Roff"},
"tsconfig.json": {"JSON with Comments"},
"use.mask": {"Text"},
"use.stable.mask": {"Text"},
"vimrc": {"Vim script"},
"wscript": {"Python"},
"xcompose": {"XCompose"},
"yarn.lock": {"YAML"},
"zlogin": {"Shell"},
"zlogout": {"Shell"},
"zprofile": {"Shell"},

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -20,6 +20,7 @@ var LanguagesByInterpreter = map[string][]string{
"coffee": {"CoffeeScript"},
"cperl": {"Perl"},
"crystal": {"Crystal"},
"csh": {"Tcsh"},
"csi": {"Scheme"},
"cvc4": {"SMT"},
"cwl-runner": {"Common Workflow Language"},
@ -36,6 +37,7 @@ var LanguagesByInterpreter = map[string][]string{
"gawk": {"Awk"},
"gerbv": {"Gerber Image"},
"gerbview": {"Gerber Image"},
"gjs": {"JavaScript"},
"gn": {"GN"},
"gnuplot": {"Gnuplot"},
"gosh": {"Scheme"},
@ -57,6 +59,7 @@ var LanguagesByInterpreter = map[string][]string{
"lua": {"Lua", "Terra"},
"macruby": {"Ruby"},
"make": {"Makefile"},
"makeinfo": {"Texinfo"},
"mathsat5": {"SMT"},
"mawk": {"Awk"},
"minised": {"sed"},
@ -77,7 +80,7 @@ var LanguagesByInterpreter = map[string][]string{
"parrot": {"Parrot Assembly", "Parrot Internal Representation"},
"pdksh": {"Shell"},
"perl": {"Perl", "Pod"},
"perl6": {"Perl 6", "Pod 6"},
"perl6": {"Pod 6", "Raku"},
"php": {"PHP"},
"picolisp": {"PicoLisp"},
"pike": {"Pike"},
@ -86,10 +89,13 @@ var LanguagesByInterpreter = map[string][]string{
"python": {"Python"},
"python2": {"Python"},
"python3": {"Python"},
"qjs": {"JavaScript"},
"qmake": {"QMake"},
"r6rs": {"Scheme"},
"racket": {"Racket"},
"rake": {"Ruby"},
"raku": {"Raku"},
"rakudo": {"Raku"},
"rbx": {"Ruby"},
"rc": {"Shell"},
"regina": {"REXX"},
@ -112,6 +118,7 @@ var LanguagesByInterpreter = map[string][]string{
"swipl": {"Prolog"},
"tcc": {"C"},
"tclsh": {"Tcl"},
"tcsh": {"Tcsh"},
"ts-node": {"TypeScript"},
"v8": {"JavaScript"},
"v8-shell": {"JavaScript"},

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -13,6 +13,7 @@ var LanguagesMime = map[string]string{
"Ant Build System": "application/xml",
"Apex": "text/x-java",
"Asymptote": "text/x-kotlin",
"BibTeX": "text/x-stex",
"Brainfuck": "text/x-brainfuck",
"C": "text/x-csrc",
"C#": "text/x-csharp",
@ -50,7 +51,7 @@ var LanguagesMime = map[string]string{
"Easybuild": "text/x-python",
"Ecere Projects": "application/json",
"EditorConfig": "text/x-properties",
"Edje Data Collection": "application/json",
"Edje Data Collection": "text/x-c++src",
"Eiffel": "text/x-eiffel",
"Elm": "text/x-elm",
"Emacs Lisp": "text/x-common-lisp",
@ -146,7 +147,6 @@ var LanguagesMime = map[string]string{
"PLpgSQL": "text/x-sql",
"Pascal": "text/x-pascal",
"Perl": "text/x-perl",
"Perl 6": "text/x-perl",
"Pic": "text/troff",
"Pod": "text/x-perl",
"PowerShell": "application/x-powershell",
@ -161,6 +161,7 @@ var LanguagesMime = map[string]string{
"RHTML": "application/x-erb",
"RMarkdown": "text/x-gfm",
"RPM Spec": "text/x-rpm-spec",
"Raku": "text/x-perl",
"Reason": "text/x-rustsrc",
"Roff": "text/troff",
"Roff Manpage": "text/troff",
@ -174,6 +175,7 @@ var LanguagesMime = map[string]string{
"SQLPL": "text/x-sql",
"SRecode Template": "text/x-common-lisp",
"SVG": "text/xml",
"SWIG": "text/x-c++src",
"Sage": "text/x-python",
"SaltStack": "text/x-yaml",
"Sass": "text/x-sass",
@ -186,6 +188,7 @@ var LanguagesMime = map[string]string{
"Smarty": "text/x-smarty",
"Squirrel": "text/x-c++src",
"Standard ML": "text/x-ocaml",
"Starlark": "text/x-python",
"Svelte": "text/html",
"Swift": "text/x-swift",
"SystemVerilog": "text/x-systemverilog",
@ -203,9 +206,12 @@ var LanguagesMime = map[string]string{
"Unity3D Asset": "text/x-yaml",
"Uno": "text/x-csharp",
"UnrealScript": "text/x-java",
"V": "text/x-go",
"VBA": "text/x-vb",
"VBScript": "text/vbscript",
"VHDL": "text/x-vhdl",
"Verilog": "text/x-verilog",
"Visual Basic": "text/x-vb",
"Visual Basic .NET": "text/x-vb",
"Volt": "text/x-d",
"WebAssembly": "text/x-common-lisp",
"WebIDL": "text/x-webidl",
@ -214,6 +220,7 @@ var LanguagesMime = map[string]string{
"X PixMap": "text/x-csrc",
"XC": "text/x-csrc",
"XML": "text/xml",
"XML Property List": "text/xml",
"XPages": "text/xml",
"XProc": "text/xml",
"XQuery": "application/xquery",

View File

@ -1,10 +1,11 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
var LanguagesType = map[string]int{
"1C Enterprise": 2,
"4D": 2,
"ABAP": 2,
"ABNF": 1,
"AGS Script": 2,
@ -40,6 +41,7 @@ var LanguagesType = map[string]int{
"Ballerina": 2,
"Batchfile": 2,
"Befunge": 2,
"BibTeX": 3,
"Bison": 2,
"BitBake": 2,
"Blade": 3,
@ -77,6 +79,7 @@ var LanguagesType = map[string]int{
"Closure Templates": 3,
"Cloud Firestore Security Rules": 1,
"CoNLL-U": 1,
"CodeQL": 2,
"CoffeeScript": 2,
"ColdFusion": 2,
"ColdFusion CFC": 2,
@ -105,6 +108,7 @@ var LanguagesType = map[string]int{
"DataWeave": 2,
"Dhall": 2,
"Diff": 1,
"DirectX 3D File": 1,
"Dockerfile": 2,
"Dogescript": 2,
"Dylan": 2,
@ -133,6 +137,7 @@ var LanguagesType = map[string]int{
"Factor": 2,
"Fancy": 2,
"Fantom": 2,
"Faust": 2,
"Filebench WML": 2,
"Filterscript": 2,
"Formatted": 1,
@ -141,6 +146,7 @@ var LanguagesType = map[string]int{
"FreeMarker": 2,
"Frege": 2,
"G-code": 2,
"GAML": 2,
"GAMS": 2,
"GAP": 2,
"GCC Machine Description": 2,
@ -262,6 +268,7 @@ var LanguagesType = map[string]int{
"M4Sugar": 2,
"MATLAB": 2,
"MAXScript": 2,
"MLIR": 2,
"MQL4": 2,
"MQL5": 2,
"MTML": 3,
@ -278,6 +285,7 @@ var LanguagesType = map[string]int{
"Mercury": 2,
"Meson": 2,
"Metal": 2,
"Microsoft Developer Studio Project": 1,
"MiniD": 2,
"Mirah": 2,
"Modelica": 2,
@ -288,9 +296,12 @@ var LanguagesType = map[string]int{
"Moocode": 2,
"MoonScript": 2,
"Motorola 68K Assembly": 2,
"Muse": 4,
"Myghty": 2,
"NASL": 2,
"NCL": 2,
"NL": 1,
"NPM Config": 1,
"NSIS": 2,
"Nearley": 2,
"Nemerle": 2,
@ -308,17 +319,22 @@ var LanguagesType = map[string]int{
"NumPy": 2,
"OCaml": 2,
"ObjDump": 1,
"Object Data Instance Notation": 1,
"ObjectScript": 2,
"Objective-C": 2,
"Objective-C++": 2,
"Objective-J": 2,
"Odin": 2,
"Omgrofl": 2,
"Opa": 2,
"Opal": 2,
"Open Policy Agent": 2,
"OpenCL": 2,
"OpenEdge ABL": 2,
"OpenQASM": 2,
"OpenRC runscript": 2,
"OpenSCAD": 2,
"OpenStep Property List": 1,
"OpenType Feature File": 1,
"Org": 4,
"Ox": 2,
@ -338,12 +354,12 @@ var LanguagesType = map[string]int{
"Pawn": 2,
"Pep8": 2,
"Perl": 2,
"Perl 6": 2,
"Pic": 3,
"Pickle": 1,
"PicoLisp": 2,
"PigLatin": 2,
"Pike": 2,
"PlantUML": 1,
"Pod": 4,
"Pod 6": 4,
"PogoScript": 2,
@ -352,7 +368,9 @@ var LanguagesType = map[string]int{
"PostScript": 3,
"PowerBuilder": 2,
"PowerShell": 2,
"Prisma": 1,
"Processing": 2,
"Proguard": 1,
"Prolog": 2,
"Propeller Spin": 2,
"Protocol Buffer": 1,
@ -380,8 +398,10 @@ var LanguagesType = map[string]int{
"RUNOFF": 3,
"Racket": 2,
"Ragel": 2,
"Raku": 2,
"Rascal": 2,
"Raw token data": 1,
"Readline Config": 1,
"Reason": 2,
"Rebol": 2,
"Red": 2,
@ -391,6 +411,7 @@ var LanguagesType = map[string]int{
"RenderScript": 2,
"Rich Text Format": 3,
"Ring": 2,
"Riot": 3,
"RobotFramework": 2,
"Roff": 3,
"Roff Manpage": 3,
@ -408,6 +429,7 @@ var LanguagesType = map[string]int{
"SSH Config": 1,
"STON": 1,
"SVG": 1,
"SWIG": 2,
"Sage": 2,
"SaltStack": 2,
"Sass": 3,
@ -423,6 +445,7 @@ var LanguagesType = map[string]int{
"Slash": 2,
"Slice": 2,
"Slim": 3,
"SmPL": 2,
"Smali": 2,
"Smalltalk": 2,
"Smarty": 2,
@ -432,6 +455,7 @@ var LanguagesType = map[string]int{
"Squirrel": 2,
"Stan": 2,
"Standard ML": 2,
"Starlark": 2,
"Stata": 2,
"Stylus": 3,
"SubRip Text": 1,
@ -451,6 +475,7 @@ var LanguagesType = map[string]int{
"TeX": 3,
"Tea": 3,
"Terra": 2,
"Texinfo": 4,
"Text": 4,
"Textile": 4,
"Thrift": 2,
@ -465,12 +490,16 @@ var LanguagesType = map[string]int{
"Uno": 2,
"UnrealScript": 2,
"UrWeb": 2,
"V": 2,
"VBA": 2,
"VBScript": 2,
"VCL": 2,
"VHDL": 2,
"Vala": 2,
"Verilog": 2,
"Vim Snippet": 3,
"Vim script": 2,
"Visual Basic": 2,
"Visual Basic .NET": 2,
"Volt": 2,
"Vue": 3,
"Wavefront Material": 1,
@ -479,6 +508,7 @@ var LanguagesType = map[string]int{
"WebAssembly": 2,
"WebIDL": 2,
"WebVTT": 1,
"Wget Config": 1,
"Windows Registry Entries": 1,
"Wollok": 2,
"World of Warcraft Addon Data": 1,
@ -489,6 +519,7 @@ var LanguagesType = map[string]int{
"XC": 2,
"XCompose": 1,
"XML": 1,
"XML Property List": 1,
"XPages": 1,
"XProc": 2,
"XQuery": 2,
@ -508,10 +539,13 @@ var LanguagesType = map[string]int{
"Zephir": 2,
"Zig": 2,
"Zimpl": 2,
"cURL Config": 1,
"desktop": 1,
"dircolors": 1,
"eC": 2,
"edn": 1,
"fish": 2,
"mIRC Script": 2,
"mcfunction": 2,
"mupad": 2,
"nanorc": 1,

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -19,8 +19,11 @@ var VendorMatchers = substring.Or(
substring.Regexp(`(^|/)ltsugar.m4`),
substring.Regexp(`(^|/)ltversion.m4`),
substring.Regexp(`(^|/)lt~obsolete.m4`),
substring.Regexp(`dotnet-install\.(ps1|sh)$`),
substring.Regexp(`cpplint.py`),
substring.Regexp(`node_modules/`),
substring.Regexp(`(^|/)\.yarn/releases/`),
substring.Regexp(`(^|/)_esy$`),
substring.Regexp(`bower_components/`),
substring.Regexp(`^rebar$`),
substring.Regexp(`erlang.mk`),

View File

@ -27,12 +27,12 @@ var ContentHeuristics = map[string]*Heuristics{
{{- else if eq .Op "Or" -}}
rule.Or(
{{ template "Languages" .Langs -}}
regexp.MustCompile(`{{ .Pattern }}`),
regexp.MustCompile({{ .Pattern | stringVal }}),
),
{{- else if eq .Op "Not" -}}
rule.Not(
{{ template "Languages" .Langs -}}
regexp.MustCompile(`{{ .Pattern }}`),
regexp.MustCompile({{ .Pattern | stringVal }}),
),
{{- else if eq .Op "Always" -}}
rule.Always(

View File

@ -4,10 +4,12 @@ package generator
import (
"bytes"
"fmt"
"go/format"
"io"
"io/ioutil"
"path/filepath"
"strings"
"text/template"
)
@ -32,12 +34,19 @@ func executeTemplate(w io.Writer, name, path, commit string, fmap template.FuncM
getCommit := func() string {
return commit
}
// stringVal returns escaped string that can be directly placed into go code.
// for value test`s it would return `test`+"`"+`s`
stringVal := func(val string) string {
val = strings.ReplaceAll(val, "`", "`+\"`\"+`")
return fmt.Sprintf("`%s`", val)
}
const headerTmpl = "header.go.tmpl"
headerPath := filepath.Join(filepath.Dir(path), headerTmpl)
h := template.Must(template.New(headerTmpl).Funcs(template.FuncMap{
"getCommit": getCommit,
"stringVal": stringVal,
}).ParseFiles(headerPath))
buf := bytes.NewBuffer(nil)
@ -49,6 +58,7 @@ func executeTemplate(w io.Writer, name, path, commit string, fmap template.FuncM
fmap = make(template.FuncMap)
}
fmap["getCommit"] = getCommit
fmap["stringVal"] = stringVal
t := template.Must(template.New(name).Funcs(fmap).ParseFiles(path))
if err := t.Execute(buf, data); err != nil {

View File

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

View File

@ -163,9 +163,11 @@ func parseYaml(file string) (*Heuristics, error) {
// - lookbehind & lookahead
// - named & numbered capturing group/after text matching
// - backreference
// - possessive quantifier
// For referece on supported syntax see https://github.com/google/re2/wiki/Syntax
func isUnsupportedRegexpSyntax(reg string) bool {
return strings.Contains(reg, `(?<`) || strings.Contains(reg, `(?=`) || strings.Contains(reg, `\1`) ||
return strings.Contains(reg, `(?<`) || strings.Contains(reg, `(?=`) ||
strings.Contains(reg, `\1`) || strings.Contains(reg, `*+`) ||
// See https://github.com/github/linguist/pull/4243#discussion_r246105067
(strings.HasPrefix(reg, multilinePrefix+`/`) && strings.HasSuffix(reg, `/`))
}

View File

@ -106,7 +106,11 @@ func TestTemplateMatcherVars(t *testing.T) {
// render a tmpl
const contentTmpl = "../assets/content.go.tmpl"
tmpl, err := template.ParseFiles(contentTmpl)
tmpl, err := template.New("content.go.tmpl").Funcs(template.FuncMap{
"stringVal": func(val string) string {
return fmt.Sprintf("`%s`", val)
},
}).ParseFiles(contentTmpl)
require.NoError(t, err)
buf := bytes.NewBuffer(nil)

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -9,6 +9,7 @@ import "strings"
// All the keys (alias or not) are written in lower case and the whitespaces has been replaced by underscores.
var LanguageByAliasMap = map[string]string{
"1c_enterprise": "1C Enterprise",
"4d": "4D",
"abap": "ABAP",
"abl": "OpenEdge ABL",
"abnf": "ABNF",
@ -36,6 +37,7 @@ var LanguageByAliasMap = map[string]string{
"altium_designer": "Altium Designer",
"amfm": "Adobe Font Metrics",
"ampl": "AMPL",
"amusewiki": "Muse",
"angelscript": "AngelScript",
"ant_build_system": "Ant Build System",
"antlr": "ANTLR",
@ -76,7 +78,9 @@ var LanguageByAliasMap = map[string]string{
"bat": "Batchfile",
"batch": "Batchfile",
"batchfile": "Batchfile",
"bazel": "Starlark",
"befunge": "Befunge",
"bibtex": "BibTeX",
"bison": "Bison",
"bitbake": "BitBake",
"blade": "Blade",
@ -93,6 +97,7 @@ var LanguageByAliasMap = map[string]string{
"bro": "Zeek",
"bsdmake": "Makefile",
"byond": "DM",
"bzl": "Starlark",
"c": "C",
"c#": "C#",
"c++": "C++",
@ -124,6 +129,8 @@ var LanguageByAliasMap = map[string]string{
"cloud_firestore_security_rules": "Cloud Firestore Security Rules",
"cmake": "CMake",
"cobol": "COBOL",
"coccinelle": "SmPL",
"codeql": "CodeQL",
"coffee": "CoffeeScript",
"coffee-script": "CoffeeScript",
"coffeescript": "CoffeeScript",
@ -157,6 +164,8 @@ var LanguageByAliasMap = map[string]string{
"csv": "CSV",
"cucumber": "Gherkin",
"cuda": "Cuda",
"curl_config": "cURL Config",
"curlrc": "cURL Config",
"cweb": "CWeb",
"cwl": "Common Workflow Language",
"cycript": "Cycript",
@ -172,6 +181,8 @@ var LanguageByAliasMap = map[string]string{
"dhall": "Dhall",
"diff": "Diff",
"digital_command_language": "DIGITAL Command Language",
"dircolors": "dircolors",
"directx_3d_file": "DirectX 3D File",
"django": "HTML+Django",
"dm": "DM",
"dns_zone": "DNS Zone",
@ -205,6 +216,7 @@ var LanguageByAliasMap = map[string]string{
"elm": "Elm",
"emacs": "Emacs Lisp",
"emacs_lisp": "Emacs Lisp",
"emacs_muse": "Muse",
"emberscript": "EmberScript",
"eml": "EML",
"eq": "EQ",
@ -215,6 +227,7 @@ var LanguageByAliasMap = map[string]string{
"factor": "Factor",
"fancy": "Fancy",
"fantom": "Fantom",
"faust": "Faust",
"figfont": "FIGlet Font",
"figlet_font": "FIGlet Font",
"filebench_wml": "Filebench WML",
@ -234,6 +247,7 @@ var LanguageByAliasMap = map[string]string{
"fundamental": "Text",
"g-code": "G-code",
"game_maker_language": "Game Maker Language",
"gaml": "GAML",
"gams": "GAMS",
"gap": "GAP",
"gcc_machine_description": "GCC Machine Description",
@ -315,6 +329,7 @@ var LanguageByAliasMap = map[string]string{
"inform_7": "Inform 7",
"ini": "INI",
"inno_setup": "Inno Setup",
"inputrc": "Readline Config",
"io": "Io",
"ioke": "Ioke",
"ipython_notebook": "Jupyter Notebook",
@ -390,6 +405,7 @@ var LanguageByAliasMap = map[string]string{
"m": "M",
"m4": "M4",
"m4sugar": "M4Sugar",
"m68k": "Motorola 68K Assembly",
"macruby": "Ruby",
"make": "Makefile",
"makefile": "Makefile",
@ -416,8 +432,11 @@ var LanguageByAliasMap = map[string]string{
"meson": "Meson",
"metal": "Metal",
"mf": "Makefile",
"microsoft_developer_studio_project": "Microsoft Developer Studio Project",
"minid": "MiniD",
"mirah": "Mirah",
"mirc_script": "mIRC Script",
"mlir": "MLIR",
"mma": "Mathematica",
"modelica": "Modelica",
"modula-2": "Modula-2",
@ -433,12 +452,15 @@ var LanguageByAliasMap = map[string]string{
"muf": "MUF",
"mumps": "M",
"mupad": "mupad",
"muse": "Muse",
"myghty": "Myghty",
"nanorc": "nanorc",
"nasl": "NASL",
"nasm": "Assembly",
"ncl": "NCL",
"nearley": "Nearley",
"nemerle": "Nemerle",
"neosnippet": "Vim Snippet",
"nesc": "nesC",
"netlinx": "NetLinx",
"netlinx+erb": "NetLinx+ERB",
@ -455,6 +477,8 @@ var LanguageByAliasMap = map[string]string{
"njk": "HTML+Django",
"nl": "NL",
"node": "JavaScript",
"npm_config": "NPM Config",
"npmrc": "NPM Config",
"nroff": "Roff",
"nsis": "NSIS",
"nu": "Nu",
@ -468,6 +492,7 @@ var LanguageByAliasMap = map[string]string{
"objc": "Objective-C",
"objc++": "Objective-C++",
"objdump": "ObjDump",
"object_data_instance_notation": "Object Data Instance Notation",
"objective-c": "Objective-C",
"objective-c++": "Objective-C++",
"objective-j": "Objective-J",
@ -479,17 +504,23 @@ var LanguageByAliasMap = map[string]string{
"objj": "Objective-J",
"ocaml": "OCaml",
"octave": "MATLAB",
"odin": "Odin",
"odin-lang": "Odin",
"odinlang": "Odin",
"omgrofl": "Omgrofl",
"oncrpc": "RPC",
"ooc": "ooc",
"opa": "Opa",
"opal": "Opal",
"open_policy_agent": "Open Policy Agent",
"opencl": "OpenCL",
"openedge": "OpenEdge ABL",
"openedge_abl": "OpenEdge ABL",
"openqasm": "OpenQASM",
"openrc": "OpenRC runscript",
"openrc_runscript": "OpenRC runscript",
"openscad": "OpenSCAD",
"openstep_property_list": "OpenStep Property List",
"opentype_feature_file": "OpenType Feature File",
"org": "Org",
"osascript": "AppleScript",
@ -509,8 +540,8 @@ var LanguageByAliasMap = map[string]string{
"pcbnew": "KiCad Layout",
"pep8": "Pep8",
"perl": "Perl",
"perl6": "Perl 6",
"perl_6": "Perl 6",
"perl-6": "Raku",
"perl6": "Raku",
"php": "PHP",
"pic": "Pic",
"pickle": "Pickle",
@ -518,6 +549,7 @@ var LanguageByAliasMap = map[string]string{
"piglatin": "PigLatin",
"pike": "Pike",
"pir": "Parrot Internal Representation",
"plantuml": "PlantUML",
"plpgsql": "PLpgSQL",
"plsql": "PLSQL",
"pod": "Pod",
@ -534,8 +566,10 @@ var LanguageByAliasMap = map[string]string{
"povray": "POV-Ray SDL",
"powerbuilder": "PowerBuilder",
"powershell": "PowerShell",
"prisma": "Prisma",
"processing": "Processing",
"progress": "OpenEdge ABL",
"proguard": "Proguard",
"prolog": "Prolog",
"propeller_spin": "Propeller Spin",
"protobuf": "Protocol Buffer",
@ -555,6 +589,7 @@ var LanguageByAliasMap = map[string]string{
"python_console": "Python console",
"python_traceback": "Python traceback",
"q": "q",
"ql": "CodeQL",
"qmake": "QMake",
"qml": "QML",
"quake": "Quake",
@ -564,6 +599,7 @@ var LanguageByAliasMap = map[string]string{
"ragel-rb": "Ragel",
"ragel-ruby": "Ragel",
"rake": "Ruby",
"raku": "Raku",
"raml": "RAML",
"rascal": "Rascal",
"raw": "Raw token data",
@ -572,6 +608,8 @@ var LanguageByAliasMap = map[string]string{
"rb": "Ruby",
"rbx": "Ruby",
"rdoc": "RDoc",
"readline": "Readline Config",
"readline_config": "Readline Config",
"realbasic": "REALbasic",
"reason": "Reason",
"rebol": "Rebol",
@ -589,6 +627,7 @@ var LanguageByAliasMap = map[string]string{
"rhtml": "RHTML",
"rich_text_format": "Rich Text Format",
"ring": "Ring",
"riot": "Riot",
"rmarkdown": "RMarkdown",
"robotframework": "RobotFramework",
"roff": "Roff",
@ -631,7 +670,9 @@ var LanguageByAliasMap = map[string]string{
"smalltalk": "Smalltalk",
"smarty": "Smarty",
"sml": "Standard ML",
"smpl": "SmPL",
"smt": "SMT",
"snipmate": "Vim Snippet",
"snippet": "YASnippet",
"solidity": "Solidity",
"sourcemod": "SourcePawn",
@ -650,6 +691,7 @@ var LanguageByAliasMap = map[string]string{
"ssh_config": "SSH Config",
"stan": "Stan",
"standard_ml": "Standard ML",
"starlark": "Starlark",
"stata": "Stata",
"ston": "STON",
"stylus": "Stylus",
@ -659,6 +701,7 @@ var LanguageByAliasMap = map[string]string{
"svelte": "Svelte",
"svg": "SVG",
"swift": "Swift",
"swig": "SWIG",
"systemverilog": "SystemVerilog",
"tcl": "Tcl",
"tcsh": "Tcsh",
@ -666,6 +709,7 @@ var LanguageByAliasMap = map[string]string{
"terra": "Terra",
"terraform": "HCL",
"tex": "TeX",
"texinfo": "Texinfo",
"text": "Text",
"textile": "Textile",
"thrift": "Thrift",
@ -684,6 +728,8 @@ var LanguageByAliasMap = map[string]string{
"type_language": "Type Language",
"typescript": "TypeScript",
"udiff": "Diff",
"ultisnip": "Vim Snippet",
"ultisnips": "Vim Snippet",
"unified_parallel_c": "Unified Parallel C",
"unity3d_asset": "Unity3D Asset",
"unix_assembly": "Unix Assembly",
@ -692,16 +738,26 @@ var LanguageByAliasMap = map[string]string{
"ur": "UrWeb",
"ur/web": "UrWeb",
"urweb": "UrWeb",
"v": "V",
"vala": "Vala",
"vb.net": "Visual Basic",
"vbnet": "Visual Basic",
"vb.net": "Visual Basic .NET",
"vb6": "VBA",
"vb_.net": "Visual Basic .NET",
"vba": "VBA",
"vbnet": "Visual Basic .NET",
"vbscript": "VBScript",
"vcl": "VCL",
"verilog": "Verilog",
"vhdl": "VHDL",
"vim": "Vim script",
"vim_script": "Vim script",
"vim_snippet": "Vim Snippet",
"viml": "Vim script",
"visual_basic": "Visual Basic",
"visual_basic": "Visual Basic .NET",
"visual_basic_.net": "Visual Basic .NET",
"visual_basic_6": "VBA",
"visual_basic_for_applications": "VBA",
"vlang": "V",
"volt": "Volt",
"vue": "Vue",
"wasm": "WebAssembly",
@ -713,6 +769,8 @@ var LanguageByAliasMap = map[string]string{
"webassembly": "WebAssembly",
"webidl": "WebIDL",
"webvtt": "WebVTT",
"wget_config": "Wget Config",
"wgetrc": "Wget Config",
"winbatch": "Batchfile",
"windows_registry_entries": "Windows Registry Entries",
"wisp": "wisp",
@ -732,6 +790,7 @@ var LanguageByAliasMap = map[string]string{
"xml": "XML",
"xml+genshi": "Genshi",
"xml+kid": "Genshi",
"xml_property_list": "XML Property List",
"xojo": "Xojo",
"xpages": "XPages",
"xpm": "X PixMap",

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -71,11 +71,13 @@ var LanguagesColor = map[string]string{
"Factor": "#636746",
"Fancy": "#7b9db4",
"Fantom": "#14253c",
"Faust": "#c37240",
"Forth": "#341708",
"Fortran": "#4d41b1",
"FreeMarker": "#0050b2",
"Frege": "#00cafe",
"G-code": "#D08CF2",
"GAML": "#FFC766",
"GDScript": "#355570",
"Game Maker Language": "#71b417",
"Genie": "#fb855d",
@ -96,6 +98,7 @@ var LanguagesColor = map[string]string{
"HolyC": "#ffefaf",
"Hy": "#7790B2",
"IDL": "#a3522f",
"IGOR Pro": "#0000cc",
"Idris": "#b30000",
"Io": "#a9188d",
"Ioke": "#078193",
@ -121,6 +124,7 @@ var LanguagesColor = map[string]string{
"Lua": "#000080",
"MATLAB": "#e16737",
"MAXScript": "#00a6a6",
"MLIR": "#5EC8DB",
"MQL4": "#62A8D6",
"MQL5": "#4A76B8",
"MTML": "#b7e1f4",
@ -149,8 +153,10 @@ var LanguagesColor = map[string]string{
"Objective-C": "#438eff",
"Objective-C++": "#6866fb",
"Objective-J": "#ff0c5a",
"Odin": "#60AFFE",
"Omgrofl": "#cabbff",
"Opal": "#f7ede0",
"OpenQASM": "#AA70FF",
"Oxygene": "#cdd0e3",
"Oz": "#fab738",
"P4": "#7055b5",
@ -163,7 +169,6 @@ var LanguagesColor = map[string]string{
"Pawn": "#dbb284",
"Pep8": "#C76F5B",
"Perl": "#0298c3",
"Perl 6": "#0000fb",
"PigLatin": "#fcd7de",
"Pike": "#005390",
"PogoScript": "#d80074",
@ -184,11 +189,14 @@ var LanguagesColor = map[string]string{
"RUNOFF": "#665a4e",
"Racket": "#3c5caa",
"Ragel": "#9d5200",
"Raku": "#0000fb",
"Rascal": "#fffaa0",
"Reason": "#ff5847",
"Rebol": "#358a5b",
"Red": "#f50000",
"Ren'Py": "#ff7f7f",
"Ring": "#2D54CB",
"Riot": "#A71E49",
"Roff": "#ecdebe",
"Rouge": "#cc0088",
"Ruby": "#701516",
@ -204,12 +212,14 @@ var LanguagesColor = map[string]string{
"Shen": "#120F14",
"Slash": "#007eff",
"Slice": "#003fa2",
"SmPL": "#c94949",
"Smalltalk": "#596706",
"Solidity": "#AA6746",
"SourcePawn": "#5c7611",
"Squirrel": "#800000",
"Stan": "#b2011d",
"Standard ML": "#dc566d",
"Starlark": "#76d275",
"SuperCollider": "#46390b",
"Swift": "#ffac45",
"SystemVerilog": "#DAE1C2",
@ -220,12 +230,15 @@ var LanguagesColor = map[string]string{
"Turing": "#cf142b",
"TypeScript": "#2b7489",
"UnrealScript": "#a54c4d",
"V": "#5d87bd",
"VBA": "#867db1",
"VBScript": "#15dcdc",
"VCL": "#148AA8",
"VHDL": "#adb2cb",
"Vala": "#fbe5cd",
"Verilog": "#b2b7f8",
"Vim script": "#199f4b",
"Visual Basic": "#945db7",
"Visual Basic .NET": "#945db7",
"Volt": "#1F1F1F",
"Vue": "#2c3e50",
"WebAssembly": "#04133b",
@ -243,6 +256,7 @@ var LanguagesColor = map[string]string{
"Zephir": "#118f9e",
"Zig": "#ec915c",
"eC": "#913960",
"mIRC Script": "#926059",
"mcfunction": "#E22837",
"nesC": "#94B0C7",
"ooc": "#b0b77e",

View File

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

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -591,6 +591,12 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)^(\/\/.+|((import|export)\s+)?(function|int|float|char)\s+((room|repeatedly|on|game)_)?([A-Za-z]+[A-Za-z_0-9]+)\s*[;\(])`),
),
},
".asm": &Heuristics{
rule.Or(
rule.MatchingLanguages("Motorola 68K Assembly"),
regexp.MustCompile(`(?m)(?im)\bmoveq(?:\.l)?\s+#(?:\$-?[0-9a-f]{1,3}|%[0-1]{1,8}|-?[0-9]{1,3}),\s*d[0-7]\b|(?im)^\s*move(?:\.[bwl])?\s+(?:sr|usp),\s*[^\s]+|(?im)^\s*move\.[bwl]\s+.*\b[ad]\d|(?im)^\s*movem\.[bwl]\b|(?im)^\s*move[mp](?:\.[wl])?\b|(?im)^\s*btst\b|(?im)^\s*dbra\b`),
),
},
".asy": &Heuristics{
rule.Or(
rule.MatchingLanguages("LTspice Symbol"),
@ -673,6 +679,16 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)([\/\\].*:\s+.*\s\\$|: \\$|^[ %]:|^[\w\s\/\\.]+\w+\.\w+\s*:\s+[\w\s\/\\.]+\w+\.\w+)`),
),
},
".dsp": &Heuristics{
rule.Or(
rule.MatchingLanguages("Microsoft Developer Studio Project"),
regexp.MustCompile(`(?m)# Microsoft Developer Studio Generated Build File`),
),
rule.Or(
rule.MatchingLanguages("Faust"),
regexp.MustCompile(`(?m)\bprocess\s*[(=]|\b(library|import)\s*\(\s*"|\bdeclare\s+(name|version|author|copyright|license)\s+"`),
),
},
".ecl": &Heuristics{
rule.Or(
rule.MatchingLanguages("ECLiPSe"),
@ -772,6 +788,10 @@ var ContentHeuristics = map[string]*Heuristics{
),
},
".gs": &Heuristics{
rule.Or(
rule.MatchingLanguages("GLSL"),
regexp.MustCompile(`(?m)^#version\s+[0-9]+\b`),
),
rule.Or(
rule.MatchingLanguages("Gosu"),
regexp.MustCompile(`(?m)^uses java\.`),
@ -793,6 +813,16 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)<\?hh`),
),
},
".i": &Heuristics{
rule.Or(
rule.MatchingLanguages("Motorola 68K Assembly"),
regexp.MustCompile(`(?m)(?im)\bmoveq(?:\.l)?\s+#(?:\$-?[0-9a-f]{1,3}|%[0-1]{1,8}|-?[0-9]{1,3}),\s*d[0-7]\b|(?im)^\s*move(?:\.[bwl])?\s+(?:sr|usp),\s*[^\s]+|(?im)^\s*move\.[bwl]\s+.*\b[ad]\d|(?im)^\s*movem\.[bwl]\b|(?im)^\s*move[mp](?:\.[wl])?\b|(?im)^\s*btst\b|(?im)^\s*dbra\b`),
),
rule.Or(
rule.MatchingLanguages("SWIG"),
regexp.MustCompile(`(?m)^[ \t]*%[a-z_]+\b|^%[{}]$`),
),
},
".ice": &Heuristics{
rule.Or(
rule.MatchingLanguages("JSON"),
@ -803,6 +833,10 @@ var ContentHeuristics = map[string]*Heuristics{
),
},
".inc": &Heuristics{
rule.Or(
rule.MatchingLanguages("Motorola 68K Assembly"),
regexp.MustCompile(`(?m)(?im)\bmoveq(?:\.l)?\s+#(?:\$-?[0-9a-f]{1,3}|%[0-1]{1,8}|-?[0-9]{1,3}),\s*d[0-7]\b|(?im)^\s*move(?:\.[bwl])?\s+(?:sr|usp),\s*[^\s]+|(?im)^\s*move\.[bwl]\s+.*\b[ad]\d|(?im)^\s*movem\.[bwl]\b|(?im)^\s*move[mp](?:\.[wl])?\b|(?im)^\s*btst\b|(?im)^\s*dbra\b`),
),
rule.Or(
rule.MatchingLanguages("PHP"),
regexp.MustCompile(`(?m)^<\?(?:php)?`),
@ -931,6 +965,12 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("Roff"),
),
},
".mask": &Heuristics{
rule.Or(
rule.MatchingLanguages("Unity3d Asset"),
regexp.MustCompile(`(?m)tag:unity3d.com`),
),
},
".md": &Heuristics{
rule.Or(
rule.MatchingLanguages("Markdown"),
@ -1047,6 +1087,25 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("NewLisp"),
),
},
".odin": &Heuristics{
rule.Or(
rule.MatchingLanguages("Object Data Instance Notation"),
regexp.MustCompile(`(?m)(?:^|<)\s*[A-Za-z0-9_]+\s*=\s*<`),
),
rule.Or(
rule.MatchingLanguages("Odin"),
regexp.MustCompile(`(?m)package\s+\w+|\b(?:im|ex)port\s*"[\w:./]+"|\w+\s*::\s*(?:proc|struct)\s*\(|^\s*//\s`),
),
},
".p": &Heuristics{
rule.Or(
rule.MatchingLanguages("Gnuplot"),
regexp.MustCompile(`(?m)^s?plot\b|^set\s+(term|terminal|out|output|[xy]tics|[xy]label|[xy]range|style)\b`),
),
rule.Always(
rule.MatchingLanguages("OpenEdge ABL"),
),
},
".php": &Heuristics{
rule.Or(
rule.MatchingLanguages("Hack"),
@ -1067,17 +1126,26 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)\buse\s+(?:strict\b|v?5\.)`),
),
rule.Or(
rule.MatchingLanguages("Perl 6"),
rule.MatchingLanguages("Raku"),
regexp.MustCompile(`(?m)^\s*(?:use\s+v6\b|\bmodule\b|\b(?:my\s+)?class\b)`),
),
},
".plist": &Heuristics{
rule.Or(
rule.MatchingLanguages("XML Property List"),
regexp.MustCompile(`(?m)<!DOCTYPE\s+plist`),
),
rule.Always(
rule.MatchingLanguages("OpenStep Property List"),
),
},
".pm": &Heuristics{
rule.Or(
rule.MatchingLanguages("Perl"),
regexp.MustCompile(`(?m)\buse\s+(?:strict\b|v?5\.)`),
),
rule.Or(
rule.MatchingLanguages("Perl 6"),
rule.MatchingLanguages("Raku"),
regexp.MustCompile(`(?m)^\s*(?:use\s+v6\b|\bmodule\b|\b(?:my\s+)?class\b)`),
),
rule.Or(
@ -1105,6 +1173,10 @@ var ContentHeuristics = map[string]*Heuristics{
),
},
".pro": &Heuristics{
rule.Or(
rule.MatchingLanguages("Proguard"),
regexp.MustCompile(`(?m)^-(include\b.*\.pro$|keep\b|keepclassmembers\b|keepattributes\b)`),
),
rule.Or(
rule.MatchingLanguages("Prolog"),
regexp.MustCompile(`(?m)^[^\[#]+:-`),
@ -1216,6 +1288,12 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)#include|#pragma\s+(rs|version)|__attribute__`),
),
},
".s": &Heuristics{
rule.Or(
rule.MatchingLanguages("Motorola 68K Assembly"),
regexp.MustCompile(`(?m)(?im)\bmoveq(?:\.l)?\s+#(?:\$-?[0-9a-f]{1,3}|%[0-1]{1,8}|-?[0-9]{1,3}),\s*d[0-7]\b|(?im)^\s*move(?:\.[bwl])?\s+(?:sr|usp),\s*[^\s]+|(?im)^\s*move\.[bwl]\s+.*\b[ad]\d|(?im)^\s*movem\.[bwl]\b|(?im)^\s*move[mp](?:\.[wl])?\b|(?im)^\s*btst\b|(?im)^\s*dbra\b`),
),
},
".sc": &Heuristics{
rule.Or(
rule.MatchingLanguages("SuperCollider"),
@ -1267,7 +1345,7 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)\buse\s+(?:strict\b|v?5\.)`),
),
rule.Or(
rule.MatchingLanguages("Perl 6"),
rule.MatchingLanguages("Raku"),
regexp.MustCompile(`(?m)^\s*(?:use\s+v6\b|\bmodule\b|\b(?:my\s+)?class\b)`),
),
rule.Or(
@ -1313,13 +1391,27 @@ var ContentHeuristics = map[string]*Heuristics{
regexp.MustCompile(`(?m)(?i:^\s*<\?xml\s+version)`),
),
},
".v": &Heuristics{
rule.Or(
rule.MatchingLanguages("Coq"),
regexp.MustCompile(`(?m)\(\*.*?\*\)|(?:^|\s)(?:Proof|Qed)\.(?:$|\s)|(?:^|\s)Require[ \t]+Import\s`),
),
rule.Or(
rule.MatchingLanguages("Verilog"),
regexp.MustCompile(`(?m)^[ \t]*module\s+[^\s()]+\s+\#?\(|^[ \t]*`+"`"+`(?:ifdef|timescale)\s|^[ \t]*always[ \t]+@`),
),
rule.Or(
rule.MatchingLanguages("V"),
regexp.MustCompile(`(?m)\$(?:if|else)[ \t]|^[ \t]*fn\s+[^\s()]+\(.*?\).*?\{|^[ \t]*for\s*\{`),
),
},
".vba": &Heuristics{
rule.Or(
rule.MatchingLanguages("Vim script"),
regexp.MustCompile(`(?m)^UseVimball`),
),
rule.Always(
rule.MatchingLanguages("Visual Basic"),
rule.MatchingLanguages("VBA"),
),
},
".w": &Heuristics{
@ -1333,6 +1425,10 @@ var ContentHeuristics = map[string]*Heuristics{
),
},
".x": &Heuristics{
rule.Or(
rule.MatchingLanguages("DirectX 3D File"),
regexp.MustCompile(`(?m)^xof 030(2|3)(?:txt|bin|tzip|bzip)\b`),
),
rule.Or(
rule.MatchingLanguages("RPC"),
regexp.MustCompile(`(?m)\b(program|version)\s+\w+\s*{|\bunion\s+\w+\s+switch\s*\(`),

View File

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

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -17,11 +17,12 @@ var LanguagesByExtension = map[string][]string{
".3qt": {"Roff", "Roff Manpage"},
".3x": {"Roff", "Roff Manpage"},
".4": {"Roff", "Roff Manpage"},
".4dm": {"4D"},
".4th": {"Forth"},
".5": {"Roff", "Roff Manpage"},
".6": {"Roff", "Roff Manpage"},
".6pl": {"Perl 6"},
".6pm": {"Perl 6"},
".6pl": {"Raku"},
".6pm": {"Raku"},
".7": {"Roff", "Roff Manpage"},
".8": {"Roff", "Roff Manpage"},
".8xk": {"TI Program"},
@ -70,7 +71,7 @@ var LanguagesByExtension = map[string][]string{
".asd": {"Common Lisp"},
".ash": {"AGS Script"},
".ashx": {"ASP"},
".asm": {"Assembly"},
".asm": {"Assembly", "Motorola 68K Assembly"},
".asmx": {"ASP"},
".asn": {"ASN.1"},
".asn1": {"ASN.1"},
@ -93,7 +94,7 @@ var LanguagesByExtension = map[string][]string{
".axs.erb": {"NetLinx+ERB"},
".b": {"Brainfuck", "Limbo"},
".bal": {"Ballerina"},
".bas": {"Visual Basic"},
".bas": {"VBA"},
".bash": {"Shell"},
".bat": {"Batchfile"},
".bats": {"Shell"},
@ -103,7 +104,8 @@ var LanguagesByExtension = map[string][]string{
".bdy": {"PLSQL"},
".befunge": {"Befunge"},
".bf": {"Brainfuck", "HyPhy"},
".bib": {"TeX"},
".bib": {"BibTeX"},
".bibtex": {"BibTeX"},
".bison": {"Bison"},
".blade": {"Blade"},
".blade.php": {"Blade"},
@ -118,7 +120,7 @@ var LanguagesByExtension = map[string][]string{
".bsv": {"Bluespec"},
".builder": {"Ruby"},
".builds": {"XML"},
".bzl": {"Python"},
".bzl": {"Starlark"},
".c": {"C"},
".c++": {"C++"},
".c++-objdump": {"Cpp-ObjDump"},
@ -147,6 +149,7 @@ var LanguagesByExtension = map[string][]string{
".chpl": {"Chapel"},
".chs": {"C2hs Haskell"},
".cirru": {"Cirru"},
".cjs": {"JavaScript"},
".cjsx": {"CoffeeScript"},
".ck": {"ChucK"},
".cl": {"Common Lisp", "Cool", "OpenCL"},
@ -160,7 +163,7 @@ var LanguagesByExtension = map[string][]string{
".cljscm": {"Clojure"},
".cljx": {"Clojure"},
".clp": {"CLIPS"},
".cls": {"Apex", "ObjectScript", "OpenEdge ABL", "TeX", "Visual Basic"},
".cls": {"Apex", "ObjectScript", "OpenEdge ABL", "TeX", "VBA"},
".clw": {"Clarion"},
".cmake": {"CMake"},
".cmake.in": {"CMake"},
@ -168,6 +171,7 @@ var LanguagesByExtension = map[string][]string{
".cnc": {"G-code"},
".cob": {"COBOL"},
".cobol": {"COBOL"},
".cocci": {"SmPL"},
".coffee": {"CoffeeScript"},
".com": {"DIGITAL Command Language"},
".command": {"Shell"},
@ -222,6 +226,7 @@ var LanguagesByExtension = map[string][]string{
".dhall": {"Dhall"},
".di": {"D"},
".diff": {"Diff"},
".dircolors": {"dircolors"},
".dita": {"XML"},
".ditamap": {"XML"},
".ditaval": {"XML"},
@ -231,12 +236,14 @@ var LanguagesByExtension = map[string][]string{
".dm": {"DM"},
".do": {"Stata"},
".dockerfile": {"Dockerfile"},
".dof": {"INI"},
".doh": {"Stata"},
".dot": {"Graphviz (DOT)"},
".dotsettings": {"XML"},
".dpatch": {"Darcs Patch"},
".dpr": {"Pascal"},
".druby": {"Mirah"},
".dsp": {"Faust", "Microsoft Developer Studio Project"},
".dtx": {"TeX"},
".duby": {"Mirah"},
".dwl": {"DataWeave"},
@ -269,6 +276,7 @@ var LanguagesByExtension = map[string][]string{
".eml": {"EML"},
".epj": {"Ecere Projects"},
".eps": {"PostScript"},
".epsi": {"PostScript"},
".eq": {"EQ"},
".erb": {"HTML+ERB"},
".erb.deface": {"HTML+ERB"},
@ -304,9 +312,9 @@ var LanguagesByExtension = map[string][]string{
".fr": {"Forth", "Frege", "Text"},
".frag": {"GLSL", "JavaScript"},
".frg": {"GLSL"},
".frm": {"Visual Basic"},
".frm": {"VBA"},
".frt": {"Forth"},
".frx": {"Visual Basic"},
".frx": {"VBA"},
".fs": {"F#", "Filterscript", "Forth", "GLSL"},
".fsh": {"GLSL"},
".fshader": {"GLSL"},
@ -323,6 +331,7 @@ var LanguagesByExtension = map[string][]string{
".fy": {"Fancy"},
".g": {"G-code", "GAP"},
".g4": {"ANTLR"},
".gaml": {"GAML"},
".gap": {"GAP"},
".gawk": {"Awk"},
".gbl": {"Gerber Image"},
@ -347,6 +356,7 @@ var LanguagesByExtension = map[string][]string{
".glade": {"XML"},
".glf": {"Glyph"},
".glsl": {"GLSL"},
".glslf": {"GLSL"},
".glslv": {"GLSL"},
".gltf": {"JSON"},
".gml": {"Game Maker Language", "Gerber Image", "Graph Modeling Language", "XML"},
@ -370,7 +380,7 @@ var LanguagesByExtension = map[string][]string{
".groovy": {"Groovy"},
".grt": {"Groovy"},
".grxml": {"XML"},
".gs": {"Genie", "Gosu", "JavaScript"},
".gs": {"GLSL", "Genie", "Gosu", "JavaScript"},
".gshader": {"GLSL"},
".gsp": {"Groovy Server Pages"},
".gst": {"Gosu"},
@ -386,6 +396,7 @@ var LanguagesByExtension = map[string][]string{
".gypi": {"Python"},
".h": {"C", "C++", "Objective-C"},
".h++": {"C++"},
".hack": {"Hack"},
".haml": {"Haml"},
".haml.deface": {"Haml"},
".handlebars": {"Handlebars"},
@ -396,14 +407,17 @@ var LanguagesByExtension = map[string][]string{
".hc": {"HolyC"},
".hcl": {"HCL"},
".hh": {"C++", "Hack"},
".hhi": {"Hack"},
".hic": {"Clojure"},
".hlean": {"Lean"},
".hlsl": {"HLSL"},
".hlsli": {"HLSL"},
".hpp": {"C++"},
".hqf": {"SQF"},
".hql": {"HiveQL"},
".hrl": {"Erlang"},
".hs": {"Haskell"},
".hs-boot": {"Haskell"},
".hsc": {"Haskell"},
".htm": {"HTML"},
".html": {"HTML"},
@ -414,6 +428,7 @@ var LanguagesByExtension = map[string][]string{
".hxsl": {"Haxe"},
".hxx": {"C++"},
".hy": {"Hy"},
".i": {"Assembly", "Motorola 68K Assembly", "SWIG"},
".i3": {"Modula-3"},
".i7x": {"Inform 7"},
".ice": {"JSON", "Slice"},
@ -427,7 +442,7 @@ var LanguagesByExtension = map[string][]string{
".ik": {"Ioke"},
".ily": {"LilyPond"},
".iml": {"XML"},
".inc": {"Assembly", "C++", "HTML", "PHP", "POV-Ray SDL", "Pascal", "Pawn", "SQL", "SourcePawn"},
".inc": {"Assembly", "C++", "HTML", "Motorola 68K Assembly", "NASL", "PHP", "POV-Ray SDL", "Pascal", "Pawn", "SQL", "SourcePawn"},
".ini": {"INI"},
".inl": {"C++"},
".ino": {"C++"},
@ -440,6 +455,7 @@ var LanguagesByExtension = map[string][]string{
".ipynb": {"Jupyter Notebook"},
".irclog": {"IRC log"},
".iss": {"Inno Setup"},
".iuml": {"PlantUML"},
".ivy": {"XML"},
".j": {"Jasmin", "Objective-J"},
".jade": {"Pug"},
@ -463,6 +479,7 @@ var LanguagesByExtension = map[string][]string{
".json": {"JSON"},
".json-tmlanguage": {"JSON"},
".json5": {"JSON5"},
".jsonc": {"JSON with Comments"},
".jsonl": {"JSON"},
".jsonld": {"JSONLD"},
".jsonnet": {"Jsonnet"},
@ -492,7 +509,6 @@ var LanguagesByExtension = map[string][]string{
".launch": {"XML"},
".lbx": {"TeX"},
".ld": {"Linker Script"},
".ldml": {"Lasso"},
".lds": {"Linker Script"},
".lean": {"Lean"},
".lektorproject": {"INI"},
@ -532,7 +548,7 @@ var LanguagesByExtension = map[string][]string{
".mao": {"Mako"},
".markdown": {"Markdown"},
".marko": {"Marko"},
".mask": {"Mask"},
".mask": {"Mask", "Unity3D Asset"},
".mat": {"Unity3D Asset"},
".mata": {"Stata"},
".matah": {"Stata"},
@ -573,6 +589,7 @@ var LanguagesByExtension = map[string][]string{
".ml": {"OCaml", "Standard ML"},
".ml4": {"OCaml"},
".mli": {"OCaml"},
".mlir": {"MLIR"},
".mll": {"OCaml"},
".mly": {"OCaml"},
".mm": {"Objective-C++", "XML"},
@ -588,6 +605,7 @@ var LanguagesByExtension = map[string][]string{
".mq4": {"MQL4"},
".mq5": {"MQL5"},
".mqh": {"MQL4", "MQL5"},
".mrc": {"mIRC Script"},
".ms": {"MAXScript", "Roff", "Unix Assembly"},
".mspec": {"Ruby"},
".mss": {"CartoCSS"},
@ -598,6 +616,7 @@ var LanguagesByExtension = map[string][]string{
".mud": {"ZIL"},
".muf": {"MUF"},
".mumps": {"M"},
".muse": {"Muse"},
".mustache": {"HTML+Django"},
".mxml": {"XML"},
".mxt": {"Max"},
@ -605,6 +624,7 @@ var LanguagesByExtension = map[string][]string{
".myt": {"Myghty"},
".n": {"Nemerle", "Roff"},
".nanorc": {"nanorc"},
".nasl": {"NASL"},
".nasm": {"Assembly"},
".natvis": {"XML"},
".nawk": {"Awk"},
@ -632,7 +652,7 @@ var LanguagesByExtension = map[string][]string{
".nlogo": {"NetLogo"},
".no": {"Text"},
".nproj": {"XML"},
".nqp": {"Perl 6"},
".nqp": {"Raku"},
".nr": {"Roff"},
".nse": {"Lua"},
".nsh": {"NSIS"},
@ -647,6 +667,7 @@ var LanguagesByExtension = map[string][]string{
".obj": {"Wavefront Object"},
".objdump": {"ObjDump"},
".odd": {"XML"},
".odin": {"Object Data Instance Notation", "Odin"},
".ol": {"Jolie"},
".omgrofl": {"Omgrofl"},
".ooc": {"ooc"},
@ -664,11 +685,11 @@ var LanguagesByExtension = map[string][]string{
".oxo": {"Ox"},
".oxygene": {"Oxygene"},
".oz": {"Oz"},
".p": {"OpenEdge ABL"},
".p": {"Gnuplot", "OpenEdge ABL"},
".p4": {"P4"},
".p6": {"Perl 6"},
".p6l": {"Perl 6"},
".p6m": {"Perl 6"},
".p6": {"Raku"},
".p6l": {"Raku"},
".p6m": {"Raku"},
".p8": {"Lua"},
".pac": {"JavaScript"},
".pan": {"Pan"},
@ -707,18 +728,19 @@ var LanguagesByExtension = map[string][]string{
".pkgproj": {"XML"},
".pkl": {"Pickle"},
".pks": {"PLSQL"},
".pl": {"Perl", "Perl 6", "Prolog"},
".pl6": {"Perl 6"},
".pl": {"Perl", "Prolog", "Raku"},
".pl6": {"Raku"},
".plantuml": {"PlantUML"},
".plb": {"PLSQL"},
".plist": {"XML"},
".plist": {"OpenStep Property List", "XML Property List"},
".plot": {"Gnuplot"},
".pls": {"PLSQL"},
".plsql": {"PLSQL"},
".plt": {"Gnuplot"},
".pluginspec": {"Ruby", "XML"},
".plx": {"Perl"},
".pm": {"Perl", "Perl 6", "X PixMap"},
".pm6": {"Perl 6"},
".pm": {"Perl", "Raku", "X PixMap"},
".pm6": {"Raku"},
".pmod": {"Pike"},
".po": {"Gettext Catalog"},
".pod": {"Pod", "Pod 6"},
@ -727,6 +749,7 @@ var LanguagesByExtension = map[string][]string{
".podspec": {"Ruby"},
".pogo": {"PogoScript"},
".pony": {"Pony"},
".postcss": {"PostCSS"},
".pot": {"Gettext Catalog"},
".pov": {"POV-Ray SDL"},
".pp": {"Pascal", "Puppet"},
@ -736,8 +759,9 @@ var LanguagesByExtension = map[string][]string{
".prefs": {"INI"},
".prg": {"xBase"},
".pri": {"QMake"},
".prisma": {"Prisma"},
".prjpcb": {"Altium Designer"},
".pro": {"IDL", "INI", "Prolog", "QMake"},
".pro": {"IDL", "INI", "Proguard", "Prolog", "QMake"},
".proj": {"XML"},
".prolog": {"Prolog"},
".properties": {"INI", "Java Properties"},
@ -755,6 +779,7 @@ var LanguagesByExtension = map[string][]string{
".pt": {"XML"},
".pub": {"Public Key"},
".pug": {"Pug"},
".puml": {"PlantUML"},
".purs": {"PureScript"},
".pwn": {"Pawn"},
".pxd": {"Cython"},
@ -769,7 +794,10 @@ var LanguagesByExtension = map[string][]string{
".pyw": {"Python"},
".pyx": {"Cython"},
".q": {"HiveQL", "q"},
".qasm": {"OpenQASM"},
".qbs": {"QML"},
".ql": {"CodeQL"},
".qll": {"CodeQL"},
".qml": {"QML"},
".r": {"R", "Rebol"},
".r2": {"Rebol"},
@ -782,6 +810,7 @@ var LanguagesByExtension = map[string][]string{
".rb": {"Ruby"},
".rbbas": {"REALbasic"},
".rbfrm": {"REALbasic"},
".rbi": {"Ruby"},
".rbmnu": {"REALbasic"},
".rbres": {"REALbasic"},
".rbtbar": {"REALbasic"},
@ -802,6 +831,7 @@ var LanguagesByExtension = map[string][]string{
".reg": {"Windows Registry Entries"},
".regex": {"Regular Expression"},
".regexp": {"Regular Expression"},
".rego": {"Open Policy Agent"},
".rei": {"Reason"},
".rest": {"reStructuredText"},
".rest.txt": {"reStructuredText"},
@ -811,6 +841,7 @@ var LanguagesByExtension = map[string][]string{
".rg": {"Rouge"},
".rhtml": {"RHTML"},
".ring": {"Ring"},
".riot": {"Riot"},
".rkt": {"Racket"},
".rktd": {"Racket"},
".rktl": {"Racket"},
@ -819,6 +850,7 @@ var LanguagesByExtension = map[string][]string{
".rnh": {"RUNOFF"},
".rno": {"RUNOFF", "Roff"},
".robot": {"RobotFramework"},
".rockspec": {"Lua"},
".roff": {"Roff"},
".ronn": {"Markdown"},
".rpy": {"Python", "Ren'Py"},
@ -835,7 +867,7 @@ var LanguagesByExtension = map[string][]string{
".ru": {"Ruby"},
".ruby": {"Ruby"},
".rviz": {"YAML"},
".s": {"Unix Assembly"},
".s": {"Motorola 68K Assembly", "Unix Assembly"},
".sage": {"Sage"},
".sagews": {"Sage"},
".sas": {"SAS"},
@ -877,9 +909,13 @@ var LanguagesByExtension = map[string][]string{
".sls": {"SaltStack", "Scheme"},
".sma": {"Pawn"},
".smali": {"Smali"},
".smk": {"Python"},
".sml": {"Standard ML"},
".smt": {"SMT"},
".smt2": {"SMT"},
".snip": {"Vim Snippet"},
".snippet": {"Vim Snippet"},
".snippets": {"Vim Snippet"},
".soy": {"Closure Templates"},
".sp": {"SourcePawn"},
".sparql": {"SPARQL"},
@ -902,7 +938,7 @@ var LanguagesByExtension = map[string][]string{
".sthlp": {"Stata"},
".ston": {"STON"},
".storyboard": {"XML"},
".sttheme": {"XML"},
".sttheme": {"XML Property List"},
".sty": {"TeX"},
".styl": {"Stylus"},
".sublime-build": {"JSON with Comments"},
@ -926,7 +962,7 @@ var LanguagesByExtension = map[string][]string{
".svh": {"SystemVerilog"},
".swift": {"Swift"},
".syntax": {"YAML"},
".t": {"Perl", "Perl 6", "Terra", "Turing"},
".t": {"Perl", "Raku", "Terra", "Turing"},
".tab": {"SQL"},
".tac": {"Python"},
".targets": {"XML"},
@ -937,6 +973,8 @@ var LanguagesByExtension = map[string][]string{
".tesc": {"GLSL"},
".tese": {"GLSL"},
".tex": {"TeX"},
".texi": {"Texinfo"},
".texinfo": {"Texinfo"},
".textile": {"Textile"},
".tf": {"HCL"},
".tfstate": {"JSON"},
@ -949,12 +987,12 @@ var LanguagesByExtension = map[string][]string{
".tla": {"TLA"},
".tm": {"Tcl"},
".tmac": {"Roff"},
".tmcommand": {"XML"},
".tmcommand": {"XML Property List"},
".tml": {"XML"},
".tmlanguage": {"XML"},
".tmpreferences": {"XML"},
".tmsnippet": {"XML"},
".tmtheme": {"XML"},
".tmlanguage": {"XML Property List"},
".tmpreferences": {"XML Property List"},
".tmsnippet": {"XML Property List"},
".tmtheme": {"XML Property List"},
".tmux": {"Shell"},
".toc": {"TeX", "World of Warcraft Addon Data"},
".toml": {"TOML"},
@ -971,6 +1009,7 @@ var LanguagesByExtension = map[string][]string{
".ttl": {"Turtle"},
".tu": {"Turing"},
".twig": {"Twig"},
".txi": {"Texinfo"},
".txl": {"TXL"},
".txt": {"Text"},
".uc": {"UnrealScript"},
@ -984,15 +1023,15 @@ var LanguagesByExtension = map[string][]string{
".urdf": {"XML"},
".urs": {"UrWeb"},
".ux": {"XML"},
".v": {"Coq", "Verilog"},
".v": {"Coq", "V", "Verilog"},
".vala": {"Vala"},
".vapi": {"Vala"},
".vark": {"Gosu"},
".vb": {"Visual Basic"},
".vba": {"Vim script", "Visual Basic"},
".vbhtml": {"Visual Basic"},
".vb": {"Visual Basic .NET"},
".vba": {"VBA", "Vim script"},
".vbhtml": {"Visual Basic .NET"},
".vbproj": {"XML"},
".vbs": {"Visual Basic"},
".vbs": {"VBScript"},
".vcl": {"VCL"},
".vcxproj": {"XML"},
".veo": {"Verilog"},
@ -1046,7 +1085,7 @@ var LanguagesByExtension = map[string][]string{
".wxi": {"XML"},
".wxl": {"XML"},
".wxs": {"XML"},
".x": {"Linker Script", "Logos", "RPC"},
".x": {"DirectX 3D File", "Linker Script", "Logos", "RPC"},
".x10": {"X10"},
".x3d": {"XML"},
".x68": {"Motorola 68K Assembly"},
@ -1097,6 +1136,7 @@ var LanguagesByExtension = map[string][]string{
".yacc": {"Yacc"},
".yaml": {"YAML"},
".yaml-tmlanguage": {"YAML"},
".yaml.sed": {"YAML"},
".yang": {"YANG"},
".yap": {"Prolog"},
".yar": {"YARA"},
@ -1123,6 +1163,7 @@ var LanguagesByExtension = map[string][]string{
var ExtensionsByLanguage = map[string][]string{
"1C Enterprise": {".bsl", ".os"},
"4D": {".4dm"},
"ABAP": {".abap"},
"ABNF": {".abnf"},
"AGS Script": {".asc", ".ash"},
@ -1147,7 +1188,7 @@ var ExtensionsByLanguage = map[string][]string{
"Arc": {".arc"},
"AsciiDoc": {".asciidoc", ".adoc", ".asc"},
"AspectJ": {".aj"},
"Assembly": {".asm", ".a51", ".inc", ".nasm"},
"Assembly": {".asm", ".a51", ".i", ".inc", ".nasm"},
"Asymptote": {".asy"},
"Augeas": {".aug"},
"AutoHotkey": {".ahk", ".ahkl"},
@ -1156,6 +1197,7 @@ var ExtensionsByLanguage = map[string][]string{
"Ballerina": {".bal"},
"Batchfile": {".bat", ".cmd"},
"Befunge": {".befunge"},
"BibTeX": {".bib", ".bibtex"},
"Bison": {".bison"},
"BitBake": {".bb"},
"Blade": {".blade", ".blade.php"},
@ -1192,6 +1234,7 @@ var ExtensionsByLanguage = map[string][]string{
"Clojure": {".clj", ".boot", ".cl2", ".cljc", ".cljs", ".cljs.hl", ".cljscm", ".cljx", ".hic"},
"Closure Templates": {".soy"},
"CoNLL-U": {".conllu", ".conll"},
"CodeQL": {".ql", ".qll"},
"CoffeeScript": {".coffee", "._coffee", ".cake", ".cjsx", ".iced"},
"ColdFusion": {".cfm", ".cfml"},
"ColdFusion CFC": {".cfc"},
@ -1220,6 +1263,7 @@ var ExtensionsByLanguage = map[string][]string{
"DataWeave": {".dwl"},
"Dhall": {".dhall"},
"Diff": {".diff", ".patch"},
"DirectX 3D File": {".x"},
"Dockerfile": {".dockerfile"},
"Dogescript": {".djs"},
"Dylan": {".dylan", ".dyl", ".intr", ".lid"},
@ -1247,6 +1291,7 @@ var ExtensionsByLanguage = map[string][]string{
"Factor": {".factor"},
"Fancy": {".fy", ".fancypack"},
"Fantom": {".fan"},
"Faust": {".dsp"},
"Filebench WML": {".f"},
"Filterscript": {".fs"},
"Formatted": {".for", ".eam.fs"},
@ -1255,12 +1300,13 @@ var ExtensionsByLanguage = map[string][]string{
"FreeMarker": {".ftl"},
"Frege": {".fr"},
"G-code": {".g", ".cnc", ".gco", ".gcode"},
"GAML": {".gaml"},
"GAMS": {".gms"},
"GAP": {".g", ".gap", ".gd", ".gi", ".tst"},
"GCC Machine Description": {".md"},
"GDB": {".gdb", ".gdbinit"},
"GDScript": {".gd"},
"GLSL": {".glsl", ".fp", ".frag", ".frg", ".fs", ".fsh", ".fshader", ".geo", ".geom", ".glslv", ".gshader", ".shader", ".tesc", ".tese", ".vert", ".vrx", ".vsh", ".vshader"},
"GLSL": {".glsl", ".fp", ".frag", ".frg", ".fs", ".fsh", ".fshader", ".geo", ".geom", ".glslf", ".glslv", ".gs", ".gshader", ".shader", ".tesc", ".tese", ".vert", ".vrx", ".vsh", ".vshader"},
"GN": {".gn", ".gni"},
"Game Maker Language": {".gml"},
"Genie": {".gs"},
@ -1273,7 +1319,7 @@ var ExtensionsByLanguage = map[string][]string{
"Git Config": {".gitconfig"},
"Glyph": {".glf"},
"Glyph Bitmap Distribution Format": {".bdf"},
"Gnuplot": {".gp", ".gnu", ".gnuplot", ".plot", ".plt"},
"Gnuplot": {".gp", ".gnu", ".gnuplot", ".p", ".plot", ".plt"},
"Go": {".go"},
"Golo": {".golo"},
"Gosu": {".gs", ".gst", ".gsx", ".vark"},
@ -1297,19 +1343,19 @@ var ExtensionsByLanguage = map[string][]string{
"HTML+Razor": {".cshtml", ".razor"},
"HTTP": {".http"},
"HXML": {".hxml"},
"Hack": {".hh", ".php"},
"Hack": {".hack", ".hh", ".hhi", ".php"},
"Haml": {".haml", ".haml.deface"},
"Handlebars": {".handlebars", ".hbs"},
"Harbour": {".hb"},
"Haskell": {".hs", ".hsc"},
"Haskell": {".hs", ".hs-boot", ".hsc"},
"Haxe": {".hx", ".hxsl"},
"HiveQL": {".q"},
"HiveQL": {".q", ".hql"},
"HolyC": {".hc"},
"Hy": {".hy"},
"HyPhy": {".bf"},
"IDL": {".pro", ".dlm"},
"IGOR Pro": {".ipf"},
"INI": {".ini", ".cfg", ".lektorproject", ".prefs", ".pro", ".properties"},
"INI": {".ini", ".cfg", ".dof", ".lektorproject", ".prefs", ".pro", ".properties"},
"IRC log": {".irclog", ".weechatlog"},
"Idris": {".idr", ".lidr"},
"Ignore List": {".gitignore"},
@ -1321,7 +1367,7 @@ var ExtensionsByLanguage = map[string][]string{
"J": {".ijs"},
"JFlex": {".flex", ".jflex"},
"JSON": {".json", ".avsc", ".geojson", ".gltf", ".har", ".ice", ".json-tmlanguage", ".jsonl", ".mcmeta", ".tfstate", ".tfstate.backup", ".topojson", ".webapp", ".webmanifest", ".yy", ".yyp"},
"JSON with Comments": {".sublime-build", ".sublime-commands", ".sublime-completions", ".sublime-keymap", ".sublime-macro", ".sublime-menu", ".sublime-mousemap", ".sublime-project", ".sublime-settings", ".sublime-theme", ".sublime-workspace", ".sublime_metrics", ".sublime_session"},
"JSON with Comments": {".jsonc", ".sublime-build", ".sublime-commands", ".sublime-completions", ".sublime-keymap", ".sublime-macro", ".sublime-menu", ".sublime-mousemap", ".sublime-project", ".sublime-settings", ".sublime-theme", ".sublime-workspace", ".sublime_metrics", ".sublime_session"},
"JSON5": {".json5"},
"JSONLD": {".jsonld"},
"JSONiq": {".jq"},
@ -1330,7 +1376,7 @@ var ExtensionsByLanguage = map[string][]string{
"Java": {".java"},
"Java Properties": {".properties"},
"Java Server Pages": {".jsp"},
"JavaScript": {".js", "._js", ".bones", ".es", ".es6", ".frag", ".gs", ".jake", ".jsb", ".jscad", ".jsfl", ".jsm", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib"},
"JavaScript": {".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".jsb", ".jscad", ".jsfl", ".jsm", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib"},
"JavaScript+ERB": {".js.erb"},
"Jison": {".jison"},
"Jison Lex": {".jisonlex"},
@ -1350,7 +1396,7 @@ var ExtensionsByLanguage = map[string][]string{
"LSL": {".lsl", ".lslp"},
"LTspice Symbol": {".asy"},
"LabVIEW": {".lvproj"},
"Lasso": {".lasso", ".las", ".lasso8", ".lasso9", ".ldml"},
"Lasso": {".lasso", ".las", ".lasso8", ".lasso9"},
"Latte": {".latte"},
"Lean": {".lean", ".hlean"},
"Less": {".less"},
@ -1368,12 +1414,13 @@ var ExtensionsByLanguage = map[string][]string{
"Logtalk": {".lgt", ".logtalk"},
"LookML": {".lookml", ".model.lkml", ".view.lkml"},
"LoomScript": {".ls"},
"Lua": {".lua", ".fcgi", ".nse", ".p8", ".pd_lua", ".rbxs", ".wlua"},
"Lua": {".lua", ".fcgi", ".nse", ".p8", ".pd_lua", ".rbxs", ".rockspec", ".wlua"},
"M": {".mumps", ".m"},
"M4": {".m4"},
"M4Sugar": {".m4"},
"MATLAB": {".matlab", ".m"},
"MAXScript": {".ms", ".mcr"},
"MLIR": {".mlir"},
"MQL4": {".mq4", ".mqh"},
"MQL5": {".mq5", ".mqh"},
"MTML": {".mtml"},
@ -1388,6 +1435,7 @@ var ExtensionsByLanguage = map[string][]string{
"MediaWiki": {".mediawiki", ".wiki"},
"Mercury": {".m", ".moo"},
"Metal": {".metal"},
"Microsoft Developer Studio Project": {".dsp"},
"MiniD": {".minid"},
"Mirah": {".druby", ".duby", ".mirah"},
"Modelica": {".mo"},
@ -1397,8 +1445,10 @@ var ExtensionsByLanguage = map[string][]string{
"Monkey": {".monkey", ".monkey2"},
"Moocode": {".moo"},
"MoonScript": {".moon"},
"Motorola 68K Assembly": {".x68"},
"Motorola 68K Assembly": {".asm", ".i", ".inc", ".s", ".x68"},
"Muse": {".muse"},
"Myghty": {".myt"},
"NASL": {".nasl", ".inc"},
"NCL": {".ncl"},
"NL": {".nl"},
"NSIS": {".nsi", ".nsh"},
@ -1418,16 +1468,21 @@ var ExtensionsByLanguage = map[string][]string{
"NumPy": {".numpy", ".numpyw", ".numsc"},
"OCaml": {".ml", ".eliom", ".eliomi", ".ml4", ".mli", ".mll", ".mly"},
"ObjDump": {".objdump"},
"Object Data Instance Notation": {".odin"},
"ObjectScript": {".cls"},
"Objective-C": {".m", ".h"},
"Objective-C++": {".mm"},
"Objective-J": {".j", ".sj"},
"Odin": {".odin"},
"Omgrofl": {".omgrofl"},
"Opa": {".opa"},
"Opal": {".opal"},
"Open Policy Agent": {".rego"},
"OpenCL": {".cl", ".opencl"},
"OpenEdge ABL": {".p", ".cls", ".w"},
"OpenQASM": {".qasm"},
"OpenSCAD": {".scad"},
"OpenStep Property List": {".plist"},
"OpenType Feature File": {".fea"},
"Org": {".org"},
"Ox": {".ox", ".oxh", ".oxo"},
@ -1447,21 +1502,23 @@ var ExtensionsByLanguage = map[string][]string{
"Pawn": {".pwn", ".inc", ".sma"},
"Pep8": {".pep"},
"Perl": {".pl", ".al", ".cgi", ".fcgi", ".perl", ".ph", ".plx", ".pm", ".psgi", ".t"},
"Perl 6": {".6pl", ".6pm", ".nqp", ".p6", ".p6l", ".p6m", ".pl", ".pl6", ".pm", ".pm6", ".t"},
"Pic": {".pic", ".chem"},
"Pickle": {".pkl"},
"PicoLisp": {".l"},
"PigLatin": {".pig"},
"Pike": {".pike", ".pmod"},
"PlantUML": {".puml", ".iuml", ".plantuml"},
"Pod": {".pod"},
"Pod 6": {".pod", ".pod6"},
"PogoScript": {".pogo"},
"Pony": {".pony"},
"PostCSS": {".pcss"},
"PostScript": {".ps", ".eps", ".pfa"},
"PostCSS": {".pcss", ".postcss"},
"PostScript": {".ps", ".eps", ".epsi", ".pfa"},
"PowerBuilder": {".pbt", ".sra", ".sru", ".srw"},
"PowerShell": {".ps1", ".psd1", ".psm1"},
"Prisma": {".prisma"},
"Processing": {".pde"},
"Proguard": {".pro"},
"Prolog": {".pl", ".pro", ".prolog", ".yap"},
"Propeller Spin": {".spin"},
"Protocol Buffer": {".proto"},
@ -1471,7 +1528,7 @@ var ExtensionsByLanguage = map[string][]string{
"Pure Data": {".pd"},
"PureBasic": {".pb", ".pbi"},
"PureScript": {".purs"},
"Python": {".py", ".bzl", ".cgi", ".fcgi", ".gyp", ".gypi", ".lmi", ".py3", ".pyde", ".pyi", ".pyp", ".pyt", ".pyw", ".rpy", ".spec", ".tac", ".wsgi", ".xpy"},
"Python": {".py", ".cgi", ".fcgi", ".gyp", ".gypi", ".lmi", ".py3", ".pyde", ".pyi", ".pyp", ".pyt", ".pyw", ".rpy", ".smk", ".spec", ".tac", ".wsgi", ".xpy"},
"Python traceback": {".pytb"},
"QML": {".qml", ".qbs"},
"QMake": {".pro", ".pri"},
@ -1487,6 +1544,7 @@ var ExtensionsByLanguage = map[string][]string{
"RUNOFF": {".rnh", ".rno"},
"Racket": {".rkt", ".rktd", ".rktl", ".scrbl"},
"Ragel": {".rl"},
"Raku": {".6pl", ".6pm", ".nqp", ".p6", ".p6l", ".p6m", ".pl", ".pl6", ".pm", ".pm6", ".t"},
"Rascal": {".rsc"},
"Raw token data": {".raw"},
"Reason": {".re", ".rei"},
@ -1498,11 +1556,12 @@ var ExtensionsByLanguage = map[string][]string{
"RenderScript": {".rs", ".rsh"},
"Rich Text Format": {".rtf"},
"Ring": {".ring"},
"Riot": {".riot"},
"RobotFramework": {".robot"},
"Roff": {".roff", ".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3p", ".3pm", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".l", ".man", ".mdoc", ".me", ".ms", ".n", ".nr", ".rno", ".tmac"},
"Roff Manpage": {".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3p", ".3pm", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".man", ".mdoc"},
"Rouge": {".rg"},
"Ruby": {".rb", ".builder", ".eye", ".fcgi", ".gemspec", ".god", ".jbuilder", ".mspec", ".pluginspec", ".podspec", ".rabl", ".rake", ".rbuild", ".rbw", ".rbx", ".ru", ".ruby", ".spec", ".thor", ".watchr"},
"Ruby": {".rb", ".builder", ".eye", ".fcgi", ".gemspec", ".god", ".jbuilder", ".mspec", ".pluginspec", ".podspec", ".rabl", ".rake", ".rbi", ".rbuild", ".rbw", ".rbx", ".ru", ".ruby", ".spec", ".thor", ".watchr"},
"Rust": {".rs", ".rs.in"},
"SAS": {".sas"},
"SCSS": {".scss"},
@ -1514,6 +1573,7 @@ var ExtensionsByLanguage = map[string][]string{
"SRecode Template": {".srt"},
"STON": {".ston"},
"SVG": {".svg"},
"SWIG": {".i"},
"Sage": {".sage", ".sagews"},
"SaltStack": {".sls"},
"Sass": {".sass"},
@ -1529,6 +1589,7 @@ var ExtensionsByLanguage = map[string][]string{
"Slash": {".sl"},
"Slice": {".ice"},
"Slim": {".slim"},
"SmPL": {".cocci"},
"Smali": {".smali"},
"Smalltalk": {".st", ".cs"},
"Smarty": {".tpl"},
@ -1537,6 +1598,7 @@ var ExtensionsByLanguage = map[string][]string{
"Squirrel": {".nut"},
"Stan": {".stan"},
"Standard ML": {".ml", ".fun", ".sig", ".sml"},
"Starlark": {".bzl"},
"Stata": {".do", ".ado", ".doh", ".ihlp", ".mata", ".matah", ".sthlp"},
"Stylus": {".styl"},
"SubRip Text": {".srt"},
@ -1553,9 +1615,10 @@ var ExtensionsByLanguage = map[string][]string{
"TXL": {".txl"},
"Tcl": {".tcl", ".adp", ".tm"},
"Tcsh": {".tcsh", ".csh"},
"TeX": {".tex", ".aux", ".bbx", ".bib", ".cbx", ".cls", ".dtx", ".ins", ".lbx", ".ltx", ".mkii", ".mkiv", ".mkvi", ".sty", ".toc"},
"TeX": {".tex", ".aux", ".bbx", ".cbx", ".cls", ".dtx", ".ins", ".lbx", ".ltx", ".mkii", ".mkiv", ".mkvi", ".sty", ".toc"},
"Tea": {".tea"},
"Terra": {".t"},
"Texinfo": {".texinfo", ".texi", ".txi"},
"Text": {".txt", ".fr", ".nb", ".ncl", ".no"},
"Textile": {".textile"},
"Thrift": {".thrift"},
@ -1565,17 +1628,21 @@ var ExtensionsByLanguage = map[string][]string{
"Type Language": {".tl"},
"TypeScript": {".ts"},
"Unified Parallel C": {".upc"},
"Unity3D Asset": {".anim", ".asset", ".mat", ".meta", ".prefab", ".unity"},
"Unity3D Asset": {".anim", ".asset", ".mask", ".mat", ".meta", ".prefab", ".unity"},
"Unix Assembly": {".s", ".ms"},
"Uno": {".uno"},
"UnrealScript": {".uc"},
"UrWeb": {".ur", ".urs"},
"V": {".v"},
"VBA": {".bas", ".cls", ".frm", ".frx", ".vba"},
"VBScript": {".vbs"},
"VCL": {".vcl"},
"VHDL": {".vhdl", ".vhd", ".vhf", ".vhi", ".vho", ".vhs", ".vht", ".vhw"},
"Vala": {".vala", ".vapi"},
"Verilog": {".v", ".veo"},
"Vim Snippet": {".snip", ".snippet", ".snippets"},
"Vim script": {".vim", ".vba", ".vmb"},
"Visual Basic": {".vb", ".bas", ".cls", ".frm", ".frx", ".vba", ".vbhtml", ".vbs"},
"Visual Basic .NET": {".vb", ".vbhtml"},
"Volt": {".volt"},
"Vue": {".vue"},
"Wavefront Material": {".mtl"},
@ -1591,7 +1658,8 @@ var ExtensionsByLanguage = map[string][]string{
"X PixMap": {".xpm", ".pm"},
"X10": {".x10"},
"XC": {".xc"},
"XML": {".xml", ".adml", ".admx", ".ant", ".axml", ".builds", ".ccproj", ".ccxml", ".clixml", ".cproject", ".cscfg", ".csdef", ".csl", ".csproj", ".ct", ".depproj", ".dita", ".ditamap", ".ditaval", ".dll.config", ".dotsettings", ".filters", ".fsproj", ".fxml", ".glade", ".gml", ".gmx", ".grxml", ".iml", ".ivy", ".jelly", ".jsproj", ".kml", ".launch", ".mdpolicy", ".mjml", ".mm", ".mod", ".mxml", ".natvis", ".ncl", ".ndproj", ".nproj", ".nuspec", ".odd", ".osm", ".pkgproj", ".plist", ".pluginspec", ".proj", ".props", ".ps1xml", ".psc1", ".pt", ".rdf", ".resx", ".rss", ".sch", ".scxml", ".sfproj", ".shproj", ".srdf", ".storyboard", ".sttheme", ".sublime-snippet", ".targets", ".tmcommand", ".tml", ".tmlanguage", ".tmpreferences", ".tmsnippet", ".tmtheme", ".ts", ".tsx", ".ui", ".urdf", ".ux", ".vbproj", ".vcxproj", ".vsixmanifest", ".vssettings", ".vstemplate", ".vxml", ".wixproj", ".workflow", ".wsdl", ".wsf", ".wxi", ".wxl", ".wxs", ".x3d", ".xacro", ".xaml", ".xib", ".xlf", ".xliff", ".xmi", ".xml.dist", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
"XML": {".xml", ".adml", ".admx", ".ant", ".axml", ".builds", ".ccproj", ".ccxml", ".clixml", ".cproject", ".cscfg", ".csdef", ".csl", ".csproj", ".ct", ".depproj", ".dita", ".ditamap", ".ditaval", ".dll.config", ".dotsettings", ".filters", ".fsproj", ".fxml", ".glade", ".gml", ".gmx", ".grxml", ".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", ".resx", ".rss", ".sch", ".scxml", ".sfproj", ".shproj", ".srdf", ".storyboard", ".sublime-snippet", ".targets", ".tml", ".ts", ".tsx", ".ui", ".urdf", ".ux", ".vbproj", ".vcxproj", ".vsixmanifest", ".vssettings", ".vstemplate", ".vxml", ".wixproj", ".workflow", ".wsdl", ".wsf", ".wxi", ".wxl", ".wxs", ".x3d", ".xacro", ".xaml", ".xib", ".xlf", ".xliff", ".xmi", ".xml.dist", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
"XML Property List": {".plist", ".sttheme", ".tmcommand", ".tmlanguage", ".tmpreferences", ".tmsnippet", ".tmtheme"},
"XPages": {".xsp-config", ".xsp.metadata"},
"XProc": {".xpl", ".xproc"},
"XQuery": {".xquery", ".xq", ".xql", ".xqm", ".xqy"},
@ -1599,7 +1667,7 @@ var ExtensionsByLanguage = map[string][]string{
"XSLT": {".xslt", ".xsl"},
"Xojo": {".xojo_code", ".xojo_menu", ".xojo_report", ".xojo_script", ".xojo_toolbar", ".xojo_window"},
"Xtend": {".xtend"},
"YAML": {".yml", ".mir", ".reek", ".rviz", ".sublime-syntax", ".syntax", ".yaml", ".yaml-tmlanguage", ".yml.mysql"},
"YAML": {".yml", ".mir", ".reek", ".rviz", ".sublime-syntax", ".syntax", ".yaml", ".yaml-tmlanguage", ".yaml.sed", ".yml.mysql"},
"YANG": {".yang"},
"YARA": {".yar", ".yara"},
"YASnippet": {".yasnippet"},
@ -1612,9 +1680,11 @@ var ExtensionsByLanguage = map[string][]string{
"Zig": {".zig"},
"Zimpl": {".zimpl", ".zmpl", ".zpl"},
"desktop": {".desktop", ".desktop.in"},
"dircolors": {".dircolors"},
"eC": {".ec", ".eh"},
"edn": {".edn"},
"fish": {".fish"},
"mIRC Script": {".mrc"},
"mcfunction": {".mcfunction"},
"mupad": {".mu"},
"nanorc": {".nanorc"},

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -23,7 +23,10 @@ var LanguagesByFilename = map[string][]string{
".coffeelintignore": {"Ignore List"},
".cproject": {"XML"},
".cshrc": {"Shell"},
".curlrc": {"cURL Config"},
".cvsignore": {"Ignore List"},
".dir_colors": {"dircolors"},
".dircolors": {"dircolors"},
".dockerignore": {"Ignore List"},
".editorconfig": {"EditorConfig"},
".emacs": {"Emacs Lisp"},
@ -43,14 +46,17 @@ var LanguagesByFilename = map[string][]string{
".gvimrc": {"Vim script"},
".htaccess": {"ApacheConf"},
".htmlhintrc": {"JSON"},
".inputrc": {"Readline Config"},
".irbrc": {"Ruby"},
".jscsrc": {"JSON with Comments"},
".jshintrc": {"JSON with Comments"},
".jslintrc": {"JSON with Comments"},
".login": {"Shell"},
".luacheckrc": {"Lua"},
".nanorc": {"nanorc"},
".nodemonignore": {"Ignore List"},
".npmignore": {"Ignore List"},
".npmrc": {"NPM Config"},
".nvimrc": {"Vim script"},
".php": {"PHP"},
".php_cs": {"PHP"},
@ -67,6 +73,7 @@ var LanguagesByFilename = map[string][]string{
".viper": {"Emacs Lisp"},
".vscodeignore": {"Ignore List"},
".watchmanconfig": {"JSON"},
".wgetrc": {"Wget Config"},
".zlogin": {"Shell"},
".zlogout": {"Shell"},
".zprofile": {"Shell"},
@ -77,9 +84,9 @@ var LanguagesByFilename = map[string][]string{
"App.config": {"XML"},
"Appraisals": {"Ruby"},
"BSDmakefile": {"Makefile"},
"BUCK": {"Python"},
"BUILD": {"Python"},
"BUILD.bazel": {"Python"},
"BUCK": {"Starlark"},
"BUILD": {"Starlark"},
"BUILD.bazel": {"Starlark"},
"Berksfile": {"Ruby"},
"Brewfile": {"Ruby"},
"Buildfile": {"Ruby"},
@ -91,6 +98,8 @@ var LanguagesByFilename = map[string][]string{
"Capfile": {"Ruby"},
"Cargo.lock": {"TOML"},
"Cask": {"Emacs Lisp"},
"DEPS": {"Python"},
"DIR_COLORS": {"dircolors"},
"Dangerfile": {"Ruby"},
"Deliverfile": {"Ruby"},
"Dockerfile": {"Dockerfile"},
@ -144,11 +153,14 @@ var LanguagesByFilename = map[string][]string{
"Snapfile": {"Ruby"},
"Thorfile": {"Ruby"},
"Vagrantfile": {"Ruby"},
"WORKSPACE": {"Python"},
"WORKSPACE": {"Starlark"},
"Web.Debug.config": {"XML"},
"Web.Release.config": {"XML"},
"Web.config": {"XML"},
"XCompose": {"XCompose"},
"_curlrc": {"cURL Config"},
"_dir_colors": {"dircolors"},
"_dircolors": {"dircolors"},
"_emacs": {"Emacs Lisp"},
"_vimrc": {"Vim script"},
"abbrev_defs": {"Emacs Lisp"},
@ -173,7 +185,9 @@ var LanguagesByFilename = map[string][]string{
"delete.me": {"Text"},
"descrip.mmk": {"Module Management System"},
"descrip.mms": {"Module Management System"},
"dir_colors": {"dircolors"},
"encodings.dir": {"X Font Directory Index"},
"eqnrc": {"Roff"},
"expr-dist": {"R"},
"firestore.rules": {"Cloud Firestore Security Rules"},
"fonts.alias": {"X Font Directory Index"},
@ -189,6 +203,7 @@ var LanguagesByFilename = map[string][]string{
"gvimrc": {"Vim script"},
"haproxy.cfg": {"HAProxy"},
"httpd.conf": {"ApacheConf"},
"inputrc": {"Readline Config"},
"jsconfig.json": {"JSON with Comments"},
"keep.me": {"Text"},
"language-configuration.json": {"JSON with Comments"},
@ -212,6 +227,9 @@ var LanguagesByFilename = map[string][]string{
"nim.cfg": {"Nim"},
"nvimrc": {"Vim script"},
"owh": {"Tcl"},
"package.mask": {"Text"},
"package.use.mask": {"Text"},
"package.use.stable.mask": {"Text"},
"packages.config": {"XML"},
"pom.xml": {"Maven POM"},
"profile": {"Shell"},
@ -229,10 +247,15 @@ var LanguagesByFilename = map[string][]string{
"sshd_config": {"SSH Config"},
"starfield": {"Tcl"},
"test.me": {"Text"},
"troffrc": {"Roff"},
"troffrc-end": {"Roff"},
"tsconfig.json": {"JSON with Comments"},
"use.mask": {"Text"},
"use.stable.mask": {"Text"},
"vimrc": {"Vim script"},
"wscript": {"Python"},
"xcompose": {"XCompose"},
"yarn.lock": {"YAML"},
"zlogin": {"Shell"},
"zlogout": {"Shell"},
"zprofile": {"Shell"},

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -20,6 +20,7 @@ var LanguagesByInterpreter = map[string][]string{
"coffee": {"CoffeeScript"},
"cperl": {"Perl"},
"crystal": {"Crystal"},
"csh": {"Tcsh"},
"csi": {"Scheme"},
"cvc4": {"SMT"},
"cwl-runner": {"Common Workflow Language"},
@ -36,6 +37,7 @@ var LanguagesByInterpreter = map[string][]string{
"gawk": {"Awk"},
"gerbv": {"Gerber Image"},
"gerbview": {"Gerber Image"},
"gjs": {"JavaScript"},
"gn": {"GN"},
"gnuplot": {"Gnuplot"},
"gosh": {"Scheme"},
@ -57,6 +59,7 @@ var LanguagesByInterpreter = map[string][]string{
"lua": {"Lua", "Terra"},
"macruby": {"Ruby"},
"make": {"Makefile"},
"makeinfo": {"Texinfo"},
"mathsat5": {"SMT"},
"mawk": {"Awk"},
"minised": {"sed"},
@ -77,7 +80,7 @@ var LanguagesByInterpreter = map[string][]string{
"parrot": {"Parrot Assembly", "Parrot Internal Representation"},
"pdksh": {"Shell"},
"perl": {"Perl", "Pod"},
"perl6": {"Perl 6", "Pod 6"},
"perl6": {"Pod 6", "Raku"},
"php": {"PHP"},
"picolisp": {"PicoLisp"},
"pike": {"Pike"},
@ -86,10 +89,13 @@ var LanguagesByInterpreter = map[string][]string{
"python": {"Python"},
"python2": {"Python"},
"python3": {"Python"},
"qjs": {"JavaScript"},
"qmake": {"QMake"},
"r6rs": {"Scheme"},
"racket": {"Racket"},
"rake": {"Ruby"},
"raku": {"Raku"},
"rakudo": {"Raku"},
"rbx": {"Ruby"},
"rc": {"Shell"},
"regina": {"REXX"},
@ -112,6 +118,7 @@ var LanguagesByInterpreter = map[string][]string{
"swipl": {"Prolog"},
"tcc": {"C"},
"tclsh": {"Tcl"},
"tcsh": {"Tcsh"},
"ts-node": {"TypeScript"},
"v8": {"JavaScript"},
"v8-shell": {"JavaScript"},

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -13,6 +13,7 @@ var LanguagesMime = map[string]string{
"Ant Build System": "application/xml",
"Apex": "text/x-java",
"Asymptote": "text/x-kotlin",
"BibTeX": "text/x-stex",
"Brainfuck": "text/x-brainfuck",
"C": "text/x-csrc",
"C#": "text/x-csharp",
@ -50,7 +51,7 @@ var LanguagesMime = map[string]string{
"Easybuild": "text/x-python",
"Ecere Projects": "application/json",
"EditorConfig": "text/x-properties",
"Edje Data Collection": "application/json",
"Edje Data Collection": "text/x-c++src",
"Eiffel": "text/x-eiffel",
"Elm": "text/x-elm",
"Emacs Lisp": "text/x-common-lisp",
@ -146,7 +147,6 @@ var LanguagesMime = map[string]string{
"PLpgSQL": "text/x-sql",
"Pascal": "text/x-pascal",
"Perl": "text/x-perl",
"Perl 6": "text/x-perl",
"Pic": "text/troff",
"Pod": "text/x-perl",
"PowerShell": "application/x-powershell",
@ -161,6 +161,7 @@ var LanguagesMime = map[string]string{
"RHTML": "application/x-erb",
"RMarkdown": "text/x-gfm",
"RPM Spec": "text/x-rpm-spec",
"Raku": "text/x-perl",
"Reason": "text/x-rustsrc",
"Roff": "text/troff",
"Roff Manpage": "text/troff",
@ -174,6 +175,7 @@ var LanguagesMime = map[string]string{
"SQLPL": "text/x-sql",
"SRecode Template": "text/x-common-lisp",
"SVG": "text/xml",
"SWIG": "text/x-c++src",
"Sage": "text/x-python",
"SaltStack": "text/x-yaml",
"Sass": "text/x-sass",
@ -186,6 +188,7 @@ var LanguagesMime = map[string]string{
"Smarty": "text/x-smarty",
"Squirrel": "text/x-c++src",
"Standard ML": "text/x-ocaml",
"Starlark": "text/x-python",
"Svelte": "text/html",
"Swift": "text/x-swift",
"SystemVerilog": "text/x-systemverilog",
@ -203,9 +206,12 @@ var LanguagesMime = map[string]string{
"Unity3D Asset": "text/x-yaml",
"Uno": "text/x-csharp",
"UnrealScript": "text/x-java",
"V": "text/x-go",
"VBA": "text/x-vb",
"VBScript": "text/vbscript",
"VHDL": "text/x-vhdl",
"Verilog": "text/x-verilog",
"Visual Basic": "text/x-vb",
"Visual Basic .NET": "text/x-vb",
"Volt": "text/x-d",
"WebAssembly": "text/x-common-lisp",
"WebIDL": "text/x-webidl",
@ -214,6 +220,7 @@ var LanguagesMime = map[string]string{
"X PixMap": "text/x-csrc",
"XC": "text/x-csrc",
"XML": "text/xml",
"XML Property List": "text/xml",
"XPages": "text/xml",
"XProc": "text/xml",
"XQuery": "application/xquery",

View File

@ -1,10 +1,11 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
var LanguagesType = map[string]int{
"1C Enterprise": 2,
"4D": 2,
"ABAP": 2,
"ABNF": 1,
"AGS Script": 2,
@ -40,6 +41,7 @@ var LanguagesType = map[string]int{
"Ballerina": 2,
"Batchfile": 2,
"Befunge": 2,
"BibTeX": 3,
"Bison": 2,
"BitBake": 2,
"Blade": 3,
@ -77,6 +79,7 @@ var LanguagesType = map[string]int{
"Closure Templates": 3,
"Cloud Firestore Security Rules": 1,
"CoNLL-U": 1,
"CodeQL": 2,
"CoffeeScript": 2,
"ColdFusion": 2,
"ColdFusion CFC": 2,
@ -105,6 +108,7 @@ var LanguagesType = map[string]int{
"DataWeave": 2,
"Dhall": 2,
"Diff": 1,
"DirectX 3D File": 1,
"Dockerfile": 2,
"Dogescript": 2,
"Dylan": 2,
@ -133,6 +137,7 @@ var LanguagesType = map[string]int{
"Factor": 2,
"Fancy": 2,
"Fantom": 2,
"Faust": 2,
"Filebench WML": 2,
"Filterscript": 2,
"Formatted": 1,
@ -141,6 +146,7 @@ var LanguagesType = map[string]int{
"FreeMarker": 2,
"Frege": 2,
"G-code": 2,
"GAML": 2,
"GAMS": 2,
"GAP": 2,
"GCC Machine Description": 2,
@ -262,6 +268,7 @@ var LanguagesType = map[string]int{
"M4Sugar": 2,
"MATLAB": 2,
"MAXScript": 2,
"MLIR": 2,
"MQL4": 2,
"MQL5": 2,
"MTML": 3,
@ -278,6 +285,7 @@ var LanguagesType = map[string]int{
"Mercury": 2,
"Meson": 2,
"Metal": 2,
"Microsoft Developer Studio Project": 1,
"MiniD": 2,
"Mirah": 2,
"Modelica": 2,
@ -288,9 +296,12 @@ var LanguagesType = map[string]int{
"Moocode": 2,
"MoonScript": 2,
"Motorola 68K Assembly": 2,
"Muse": 4,
"Myghty": 2,
"NASL": 2,
"NCL": 2,
"NL": 1,
"NPM Config": 1,
"NSIS": 2,
"Nearley": 2,
"Nemerle": 2,
@ -308,17 +319,22 @@ var LanguagesType = map[string]int{
"NumPy": 2,
"OCaml": 2,
"ObjDump": 1,
"Object Data Instance Notation": 1,
"ObjectScript": 2,
"Objective-C": 2,
"Objective-C++": 2,
"Objective-J": 2,
"Odin": 2,
"Omgrofl": 2,
"Opa": 2,
"Opal": 2,
"Open Policy Agent": 2,
"OpenCL": 2,
"OpenEdge ABL": 2,
"OpenQASM": 2,
"OpenRC runscript": 2,
"OpenSCAD": 2,
"OpenStep Property List": 1,
"OpenType Feature File": 1,
"Org": 4,
"Ox": 2,
@ -338,12 +354,12 @@ var LanguagesType = map[string]int{
"Pawn": 2,
"Pep8": 2,
"Perl": 2,
"Perl 6": 2,
"Pic": 3,
"Pickle": 1,
"PicoLisp": 2,
"PigLatin": 2,
"Pike": 2,
"PlantUML": 1,
"Pod": 4,
"Pod 6": 4,
"PogoScript": 2,
@ -352,7 +368,9 @@ var LanguagesType = map[string]int{
"PostScript": 3,
"PowerBuilder": 2,
"PowerShell": 2,
"Prisma": 1,
"Processing": 2,
"Proguard": 1,
"Prolog": 2,
"Propeller Spin": 2,
"Protocol Buffer": 1,
@ -380,8 +398,10 @@ var LanguagesType = map[string]int{
"RUNOFF": 3,
"Racket": 2,
"Ragel": 2,
"Raku": 2,
"Rascal": 2,
"Raw token data": 1,
"Readline Config": 1,
"Reason": 2,
"Rebol": 2,
"Red": 2,
@ -391,6 +411,7 @@ var LanguagesType = map[string]int{
"RenderScript": 2,
"Rich Text Format": 3,
"Ring": 2,
"Riot": 3,
"RobotFramework": 2,
"Roff": 3,
"Roff Manpage": 3,
@ -408,6 +429,7 @@ var LanguagesType = map[string]int{
"SSH Config": 1,
"STON": 1,
"SVG": 1,
"SWIG": 2,
"Sage": 2,
"SaltStack": 2,
"Sass": 3,
@ -423,6 +445,7 @@ var LanguagesType = map[string]int{
"Slash": 2,
"Slice": 2,
"Slim": 3,
"SmPL": 2,
"Smali": 2,
"Smalltalk": 2,
"Smarty": 2,
@ -432,6 +455,7 @@ var LanguagesType = map[string]int{
"Squirrel": 2,
"Stan": 2,
"Standard ML": 2,
"Starlark": 2,
"Stata": 2,
"Stylus": 3,
"SubRip Text": 1,
@ -451,6 +475,7 @@ var LanguagesType = map[string]int{
"TeX": 3,
"Tea": 3,
"Terra": 2,
"Texinfo": 4,
"Text": 4,
"Textile": 4,
"Thrift": 2,
@ -465,12 +490,16 @@ var LanguagesType = map[string]int{
"Uno": 2,
"UnrealScript": 2,
"UrWeb": 2,
"V": 2,
"VBA": 2,
"VBScript": 2,
"VCL": 2,
"VHDL": 2,
"Vala": 2,
"Verilog": 2,
"Vim Snippet": 3,
"Vim script": 2,
"Visual Basic": 2,
"Visual Basic .NET": 2,
"Volt": 2,
"Vue": 3,
"Wavefront Material": 1,
@ -479,6 +508,7 @@ var LanguagesType = map[string]int{
"WebAssembly": 2,
"WebIDL": 2,
"WebVTT": 1,
"Wget Config": 1,
"Windows Registry Entries": 1,
"Wollok": 2,
"World of Warcraft Addon Data": 1,
@ -489,6 +519,7 @@ var LanguagesType = map[string]int{
"XC": 2,
"XCompose": 1,
"XML": 1,
"XML Property List": 1,
"XPages": 1,
"XProc": 2,
"XQuery": 2,
@ -508,10 +539,13 @@ var LanguagesType = map[string]int{
"Zephir": 2,
"Zig": 2,
"Zimpl": 2,
"cURL Config": 1,
"desktop": 1,
"dircolors": 1,
"eC": 2,
"edn": 1,
"fish": 2,
"mIRC Script": 2,
"mcfunction": 2,
"mupad": 2,
"nanorc": 1,

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
// Extracted from github/linguist commit: 40992ba7f86889f80dfed3ba95e11e1082200bad
package data
@ -19,8 +19,11 @@ var VendorMatchers = substring.Or(
substring.Regexp(`(^|/)ltsugar.m4`),
substring.Regexp(`(^|/)ltversion.m4`),
substring.Regexp(`(^|/)lt~obsolete.m4`),
substring.Regexp(`dotnet-install\.(ps1|sh)$`),
substring.Regexp(`cpplint.py`),
substring.Regexp(`node_modules/`),
substring.Regexp(`(^|/)\.yarn/releases/`),
substring.Regexp(`(^|/)_esy$`),
substring.Regexp(`bower_components/`),
substring.Regexp(`^rebar$`),
substring.Regexp(`erlang.mk`),