Merge pull request #169 from go-enry/feature/sync-linguist-bf853f1c

Update Linguist to v7.26.0
This commit is contained in:
Alex 2023-09-22 15:10:58 +02:00 committed by GitHub
commit 6d9d5e9184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 77228 additions and 57532 deletions

View File

@ -156,10 +156,12 @@ Generated Rust bindings using a C static library are available at https://github
## Divergences from Linguist
The `enry` library is based on the data from `github/linguist` version **v7.23.0**.
The `enry` library is based on the data from `github/linguist` version **v7.26.0**.
Parsing [linguist/samples](https://github.com/github/linguist/tree/master/samples) the following `enry` results are different from the Linguist:
- [Heuristic for ".plist" extension](https://github.com/github-linguist/linguist/blob/b5432ebc7e78f25415b98d48c2fbacddbf8df317/lib/linguist/heuristics.yml#L524) in 'XML Property List', due to unsupported backreference in RE2 regexp engine.
- [Heuristics for ".txt" extension](https://github.com/github/linguist/blob/8083cb5a89cee2d99f5a988f165994d0243f0d1e/lib/linguist/heuristics.yml#L521) in Vim Help File could not be parsed, due to unsupported negative lookahead in RE2 regexp engine.
- [Heuristics for ".sol" extension](https://github.com/github/linguist/blob/8083cb5a89cee2d99f5a988f165994d0243f0d1e/lib/linguist/heuristics.yml#L464) in Solidity could not be parsed, due to unsupported negative lookahead in RE2 regexp engine.

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -17,6 +17,7 @@ var LanguageByAliasMap = map[string]string{
"abnf": "ABNF",
"abuild": "Alpine Abuild",
"acfm": "Adobe Font Metrics",
"ackrc": "Option List",
"aconf": "ApacheConf",
"actionscript": "ActionScript",
"actionscript3": "ActionScript",
@ -152,10 +153,12 @@ var LanguageByAliasMap = map[string]string{
"chpl": "Chapel",
"chuck": "ChucK",
"cil": "CIL",
"circom": "Circom",
"cirru": "Cirru",
"clarion": "Clarion",
"clarity": "Clarity",
"classic_asp": "Classic ASP",
"classic_visual_basic": "Visual Basic 6.0",
"clean": "Clean",
"click": "Click",
"clipper": "xBase",
@ -210,9 +213,12 @@ var LanguageByAliasMap = map[string]string{
"cweb": "CWeb",
"cwl": "Common Workflow Language",
"cycript": "Cycript",
"cypher": "Cypher",
"cython": "Cython",
"d": "D",
"d-objdump": "D-ObjDump",
"d2": "D2",
"d2lang": "D2",
"dafny": "Dafny",
"darcs_patch": "Darcs Patch",
"dart": "Dart",
@ -235,6 +241,7 @@ var LanguageByAliasMap = map[string]string{
"dogescript": "Dogescript",
"dosbatch": "Batchfile",
"dosini": "INI",
"dotenv": "Dotenv",
"dpatch": "Darcs Patch",
"dtrace": "DTrace",
"dtrace-script": "DTrace",
@ -250,6 +257,8 @@ var LanguageByAliasMap = map[string]string{
"ecere_projects": "Ecere Projects",
"ecl": "ECL",
"eclipse": "ECLiPSe",
"ecmarkdown": "Ecmarkup",
"ecmarkup": "Ecmarkup",
"ecr": "HTML+ECR",
"editor-config": "EditorConfig",
"editorconfig": "EditorConfig",
@ -263,6 +272,7 @@ var LanguageByAliasMap = map[string]string{
"elixir": "Elixir",
"elm": "Elm",
"elvish": "Elvish",
"elvish_transcript": "Elvish Transcript",
"emacs": "Emacs Lisp",
"emacs_lisp": "Emacs Lisp",
"emacs_muse": "Muse",
@ -345,10 +355,16 @@ var LanguageByAliasMap = map[string]string{
"go": "Go",
"go.mod": "Go Module",
"go.sum": "Go Checksums",
"go.work": "Go Workspace",
"go.work.sum": "Go Checksums",
"go_checksums": "Go Checksums",
"go_mod": "Go Module",
"go_module": "Go Module",
"go_sum": "Go Checksums",
"go_work": "Go Workspace",
"go_work_sum": "Go Checksums",
"go_workspace": "Go Workspace",
"godot_resource": "Godot Resource",
"golang": "Go",
"golo": "Golo",
"gosu": "Gosu",
@ -382,6 +398,7 @@ var LanguageByAliasMap = map[string]string{
"hocon": "HOCON",
"holyc": "HolyC",
"hoon": "hoon",
"hosts_file": "Hosts File",
"html": "HTML",
"html+django": "Jinja",
"html+ecr": "HTML+ECR",
@ -409,10 +426,12 @@ var LanguageByAliasMap = map[string]string{
"ijm": "ImageJ Macro",
"ile_rpg": "RPGLE",
"imagej_macro": "ImageJ Macro",
"imba": "Imba",
"inc": "PHP",
"inform7": "Inform 7",
"inform_7": "Inform 7",
"ini": "INI",
"ink": "Ink",
"inno_setup": "Inno Setup",
"inputrc": "Readline Config",
"io": "Io",
@ -433,6 +452,7 @@ var LanguageByAliasMap = map[string]string{
"java_server_pages": "Java Server Pages",
"javascript": "JavaScript",
"javascript+erb": "JavaScript+ERB",
"jcl": "JCL",
"jest_snapshot": "Jest Snapshot",
"jetbrains_mps": "JetBrains MPS",
"jflex": "JFlex",
@ -454,14 +474,18 @@ var LanguageByAliasMap = map[string]string{
"jsp": "Java Server Pages",
"julia": "Julia",
"jupyter_notebook": "Jupyter Notebook",
"just": "Just",
"justfile": "Just",
"kaitai_struct": "Kaitai Struct",
"kak": "KakouneScript",
"kakounescript": "KakouneScript",
"kakscript": "KakouneScript",
"kerboscript": "KerboScript",
"keyvalues": "Valve Data Format",
"kicad_layout": "KiCad Layout",
"kicad_legacy_layout": "KiCad Legacy Layout",
"kicad_schematic": "KiCad Schematic",
"kickstart": "Kickstart",
"kit": "Kit",
"kotlin": "Kotlin",
"krl": "KRL",
@ -533,9 +557,13 @@ var LanguageByAliasMap = map[string]string{
"maxscript": "MAXScript",
"mbox": "E-mail",
"mcfunction": "mcfunction",
"md": "Markdown",
"mdoc": "Roff",
"mdx": "MDX",
"mediawiki": "Wikitext",
"mercury": "Mercury",
"mermaid": "Mermaid",
"mermaid_example": "Mermaid",
"meson": "Meson",
"metal": "Metal",
"mf": "Makefile",
@ -601,11 +629,20 @@ var LanguageByAliasMap = map[string]string{
"nroff": "Roff",
"nsis": "NSIS",
"nu": "Nu",
"nu-script": "Nushell",
"numpy": "NumPy",
"nunjucks": "Nunjucks",
"nush": "Nu",
"nushell": "Nushell",
"nushell-script": "Nushell",
"nvim": "Vim Script",
"nwscript": "NWScript",
"oasv2": "OpenAPI Specification v2",
"oasv2-json": "OASv2-json",
"oasv2-yaml": "OASv2-yaml",
"oasv3": "OpenAPI Specification v3",
"oasv3-json": "OASv3-json",
"oasv3-yaml": "OASv3-yaml",
"obj-c": "Objective-C",
"obj-c++": "Objective-C++",
"obj-j": "Objective-J",
@ -633,6 +670,8 @@ var LanguageByAliasMap = map[string]string{
"opa": "Opa",
"opal": "Opal",
"open_policy_agent": "Open Policy Agent",
"openapi_specification_v2": "OpenAPI Specification v2",
"openapi_specification_v3": "OpenAPI Specification v3",
"opencl": "OpenCL",
"openedge": "OpenEdge ABL",
"openedge_abl": "OpenEdge ABL",
@ -642,12 +681,15 @@ var LanguageByAliasMap = map[string]string{
"openscad": "OpenSCAD",
"openstep_property_list": "OpenStep Property List",
"opentype_feature_file": "OpenType Feature File",
"option_list": "Option List",
"opts": "Option List",
"org": "Org",
"osascript": "AppleScript",
"ox": "Ox",
"oxygene": "Oxygene",
"oz": "Oz",
"p4": "P4",
"pact": "Pact",
"pan": "Pan",
"pandoc": "Markdown",
"papyrus": "Papyrus",
@ -658,6 +700,7 @@ var LanguageByAliasMap = map[string]string{
"pasm": "Parrot Assembly",
"pawn": "Pawn",
"pcbnew": "KiCad Layout",
"pddl": "PDDL",
"peg.js": "PEG.js",
"pep8": "Pep8",
"perl": "Perl",
@ -677,6 +720,7 @@ var LanguageByAliasMap = map[string]string{
"pod": "Pod",
"pod_6": "Pod 6",
"pogoscript": "PogoScript",
"polar": "Polar",
"pony": "Pony",
"portugol": "Portugol",
"posh": "PowerShell",
@ -697,6 +741,7 @@ var LanguageByAliasMap = map[string]string{
"prolog": "Prolog",
"promela": "Promela",
"propeller_spin": "Propeller Spin",
"proto": "Protocol Buffer",
"protobuf": "Protocol Buffer",
"protobuf_text_format": "Protocol Buffer Text Format",
"protocol_buffer": "Protocol Buffer",
@ -710,6 +755,7 @@ var LanguageByAliasMap = map[string]string{
"purescript": "PureScript",
"pwsh": "PowerShell",
"pycon": "Python console",
"pyret": "Pyret",
"pyrex": "Cython",
"python": "Python",
"python3": "Python",
@ -736,6 +782,7 @@ var LanguageByAliasMap = map[string]string{
"raw_token_data": "Raw token data",
"razor": "HTML+Razor",
"rb": "Ruby",
"rbs": "RBS",
"rbx": "Ruby",
"rdoc": "RDoc",
"readline": "Readline Config",
@ -793,14 +840,17 @@ var LanguageByAliasMap = map[string]string{
"sass": "Sass",
"scala": "Scala",
"scaml": "Scaml",
"scenic": "Scenic",
"scheme": "Scheme",
"scilab": "Scilab",
"scss": "SCSS",
"sdc": "Tcl",
"sed": "sed",
"self": "Self",
"selinux_kernel_policy_language": "SELinux Policy",
"selinux_policy": "SELinux Policy",
"sepolicy": "SELinux Policy",
"sfv": "Simple File Verification",
"sh": "Shell",
"shaderlab": "ShaderLab",
"shell": "Shell",
@ -810,6 +860,7 @@ var LanguageByAliasMap = map[string]string{
"shellsession": "ShellSession",
"shen": "Shen",
"sieve": "Sieve",
"simple_file_verification": "Simple File Verification",
"singularity": "Singularity",
"slash": "Slash",
"slice": "Slice",
@ -817,9 +868,12 @@ var LanguageByAliasMap = map[string]string{
"smali": "Smali",
"smalltalk": "Smalltalk",
"smarty": "Smarty",
"smithy": "Smithy",
"sml": "Standard ML",
"smpl": "SmPL",
"smt": "SMT",
"snakefile": "Snakemake",
"snakemake": "Snakemake",
"snipmate": "Vim Snippet",
"snippet": "YASnippet",
"solidity": "Solidity",
@ -856,6 +910,7 @@ var LanguageByAliasMap = map[string]string{
"supercollider": "SuperCollider",
"svelte": "Svelte",
"svg": "SVG",
"sway": "Sway",
"swift": "Swift",
"swig": "SWIG",
"systemverilog": "SystemVerilog",
@ -874,6 +929,7 @@ var LanguageByAliasMap = map[string]string{
"thrift": "Thrift",
"ti_program": "TI Program",
"tl": "Type Language",
"tl-verilog": "TL-Verilog",
"tla": "TLA",
"tm-properties": "TextMate Properties",
"toml": "TOML",
@ -905,8 +961,9 @@ var LanguageByAliasMap = map[string]string{
"vala": "Vala",
"valve_data_format": "Valve Data Format",
"vb.net": "Visual Basic .NET",
"vb6": "VBA",
"vb6": "Visual Basic 6.0",
"vb_.net": "Visual Basic .NET",
"vb_6": "Visual Basic 6.0",
"vba": "VBA",
"vbnet": "Visual Basic .NET",
"vbscript": "VBScript",
@ -924,7 +981,9 @@ var LanguageByAliasMap = map[string]string{
"viml": "Vim Script",
"visual_basic": "Visual Basic .NET",
"visual_basic_.net": "Visual Basic .NET",
"visual_basic_6": "VBA",
"visual_basic_6": "Visual Basic 6.0",
"visual_basic_6.0": "Visual Basic 6.0",
"visual_basic_classic": "Visual Basic 6.0",
"visual_basic_for_applications": "VBA",
"vlang": "V",
"volt": "Volt",
@ -936,13 +995,15 @@ var LanguageByAliasMap = map[string]string{
"wast": "WebAssembly",
"wavefront_material": "Wavefront Material",
"wavefront_object": "Wavefront Object",
"wdl": "wdl",
"wdl": "WDL",
"web_ontology_language": "Web Ontology Language",
"webassembly": "WebAssembly",
"webassembly_interface_type": "WebAssembly Interface Type",
"webidl": "WebIDL",
"webvtt": "WebVTT",
"wget_config": "Wget Config",
"wgetrc": "Wget Config",
"wgsl": "WGSL",
"whiley": "Whiley",
"wiki": "Wikitext",
"wikitext": "Wikitext",
@ -950,12 +1011,14 @@ var LanguageByAliasMap = map[string]string{
"winbatch": "Batchfile",
"windows_registry_entries": "Windows Registry Entries",
"wisp": "wisp",
"wit": "WebAssembly Interface Type",
"witcher_script": "Witcher Script",
"wl": "Mathematica",
"wolfram": "Mathematica",
"wolfram_lang": "Mathematica",
"wolfram_language": "Mathematica",
"wollok": "Wollok",
"workflow_description_language": "WDL",
"world_of_warcraft_addon_data": "World of Warcraft Addon Data",
"wren": "Wren",
"wrenlang": "Wren",
@ -968,6 +1031,7 @@ var LanguageByAliasMap = map[string]string{
"xbm": "X BitMap",
"xc": "XC",
"xcompose": "XCompose",
"xdc": "Tcl",
"xdr": "RPC",
"xhtml": "HTML",
"xml": "XML",

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -84,6 +84,7 @@ var LanguagesColor = map[string]string{
"Ceylon": "#dfa535",
"Chapel": "#8dc63f",
"ChucK": "#3f8000",
"Circom": "#707575",
"Cirru": "#ccccff",
"Clarion": "#db901e",
"Clarity": "#5546ff",
@ -107,8 +108,10 @@ var LanguagesColor = map[string]string{
"Csound Score": "#1a1a1a",
"Cuda": "#3A4E3A",
"Curry": "#531242",
"Cypher": "#34c0eb",
"Cython": "#fedf5b",
"D": "#ba595e",
"D2": "#526ee8",
"DM": "#447265",
"Dafny": "#FFEC25",
"Darcs Patch": "#8eff23",
@ -120,6 +123,7 @@ var LanguagesColor = map[string]string{
"DirectX 3D File": "#aace60",
"Dockerfile": "#384d54",
"Dogescript": "#cca760",
"Dotenv": "#e5d559",
"Dylan": "#6c616e",
"E": "#ccce35",
"ECL": "#8a1267",
@ -129,11 +133,13 @@ var LanguagesColor = map[string]string{
"Earthly": "#2af0ff",
"Easybuild": "#069406",
"Ecere Projects": "#913960",
"Ecmarkup": "#eb8131",
"EditorConfig": "#fff1f2",
"Eiffel": "#4d6977",
"Elixir": "#6e4a7e",
"Elm": "#60B5CC",
"Elvish": "#55BB55",
"Elvish Transcript": "#55BB55",
"Emacs Lisp": "#c065db",
"EmberScript": "#FFF4F3",
"Erlang": "#B83998",
@ -152,7 +158,7 @@ var LanguagesColor = map[string]string{
"Forth": "#341708",
"Fortran": "#4d41b1",
"Fortran Free Form": "#4d41b1",
"FreeBasic": "#867db1",
"FreeBasic": "#141AC9",
"FreeMarker": "#0050b2",
"Frege": "#00cafe",
"Futhark": "#5f021f",
@ -185,6 +191,8 @@ var LanguagesColor = map[string]string{
"Go": "#00ADD8",
"Go Checksums": "#00ADD8",
"Go Module": "#00ADD8",
"Go Workspace": "#00ADD8",
"Godot Resource": "#355570",
"Golo": "#88562A",
"Gosu": "#82937f",
"Grace": "#615f8b",
@ -195,6 +203,7 @@ var LanguagesColor = map[string]string{
"Groovy": "#4298b8",
"Groovy Server Pages": "#4298b8",
"HAProxy": "#106da9",
"HCL": "#844FBA",
"HLSL": "#aace60",
"HOCON": "#9ff8ee",
"HTML": "#e34c26",
@ -213,6 +222,7 @@ var LanguagesColor = map[string]string{
"Haxe": "#df7900",
"HiveQL": "#dce200",
"HolyC": "#ffefaf",
"Hosts File": "#308888",
"Hy": "#7790B2",
"IDL": "#a3522f",
"IGOR Pro": "#0000cc",
@ -220,6 +230,7 @@ var LanguagesColor = map[string]string{
"Idris": "#b30000",
"Ignore List": "#000000",
"ImageJ Macro": "#99AAFF",
"Imba": "#16cec6",
"Inno Setup": "#264b99",
"Io": "#a9188d",
"Ioke": "#078193",
@ -227,6 +238,7 @@ var LanguagesColor = map[string]string{
"Isabelle ROOT": "#FEFE00",
"J": "#9EEDFF",
"JAR Manifest": "#b07219",
"JCL": "#d90e09",
"JFlex": "#DBCA00",
"JSON": "#292929",
"JSON with Comments": "#292929",
@ -249,9 +261,11 @@ var LanguagesColor = map[string]string{
"Jsonnet": "#0064bd",
"Julia": "#a270ba",
"Jupyter Notebook": "#DA5B0B",
"Just": "#384d54",
"KRL": "#28430A",
"Kaitai Struct": "#773b37",
"KakouneScript": "#6f8042",
"KerboScript": "#41adf0",
"KiCad Layout": "#2f4aab",
"KiCad Legacy Layout": "#2f4aab",
"KiCad Schematic": "#2f4aab",
@ -278,6 +292,7 @@ var LanguagesColor = map[string]string{
"Lua": "#000080",
"MATLAB": "#e16737",
"MAXScript": "#00a6a6",
"MDX": "#fcb32c",
"MLIR": "#5EC8DB",
"MQL4": "#62A8D6",
"MQL5": "#4A76B8",
@ -291,6 +306,7 @@ var LanguagesColor = map[string]string{
"Mathematica": "#dd1100",
"Max": "#c4a79c",
"Mercury": "#ff2b2b",
"Mermaid": "#ff3670",
"Meson": "#007800",
"Metal": "#8f14e9",
"MiniYAML": "#ff1111",
@ -323,7 +339,12 @@ var LanguagesColor = map[string]string{
"Nu": "#c9df40",
"NumPy": "#9C8AF9",
"Nunjucks": "#3d8137",
"OCaml": "#3be133",
"Nushell": "#4E9906",
"OASv2-json": "#85ea2d",
"OASv2-yaml": "#85ea2d",
"OASv3-json": "#85ea2d",
"OASv3-yaml": "#85ea2d",
"OCaml": "#ef7a08",
"ObjectScript": "#424893",
"Objective-C": "#438eff",
"Objective-C++": "#6866fb",
@ -332,19 +353,24 @@ var LanguagesColor = map[string]string{
"Omgrofl": "#cabbff",
"Opal": "#f7ede0",
"Open Policy Agent": "#7d9199",
"OpenAPI Specification v2": "#85ea2d",
"OpenAPI Specification v3": "#85ea2d",
"OpenCL": "#ed2e2d",
"OpenEdge ABL": "#5ce600",
"OpenQASM": "#AA70FF",
"OpenSCAD": "#e5cd45",
"Option List": "#476732",
"Org": "#77aa99",
"Oxygene": "#cdd0e3",
"Oz": "#fab738",
"P4": "#7055b5",
"PDDL": "#0d00ff",
"PEG.js": "#234d6b",
"PHP": "#4F5D95",
"PLSQL": "#dad8d8",
"PLpgSQL": "#336790",
"POV-Ray SDL": "#6bac65",
"Pact": "#F7A8B8",
"Pan": "#cc0000",
"Papyrus": "#6600cc",
"Parrot": "#f3ca0a",
@ -355,7 +381,9 @@ var LanguagesColor = map[string]string{
"PicoLisp": "#6067af",
"PigLatin": "#fcd7de",
"Pike": "#005390",
"PlantUML": "#fbbd16",
"PogoScript": "#d80074",
"Polar": "#ae81ff",
"Portugol": "#f8bd00",
"PostCSS": "#dc3a0c",
"PostScript": "#da291c",
@ -371,6 +399,7 @@ var LanguagesColor = map[string]string{
"Puppet": "#302B6D",
"PureBasic": "#5a6986",
"PureScript": "#1D222D",
"Pyret": "#ee1e10",
"Python": "#3572A5",
"Python console": "#3572A5",
"Python traceback": "#3572A5",
@ -380,6 +409,7 @@ var LanguagesColor = map[string]string{
"Quake": "#882233",
"R": "#198CE7",
"RAML": "#77d9fb",
"RBS": "#701516",
"RDoc": "#701516",
"REXX": "#d90e09",
"RMarkdown": "#198ce7",
@ -419,6 +449,7 @@ var LanguagesColor = map[string]string{
"Sass": "#a53b70",
"Scala": "#c22d40",
"Scaml": "#bd181a",
"Scenic": "#fdc700",
"Scheme": "#1e4aec",
"Scilab": "#ca0f21",
"Self": "#0579aa",
@ -426,6 +457,7 @@ var LanguagesColor = map[string]string{
"Shell": "#89e051",
"ShellCheck Config": "#cecfcb",
"Shen": "#120F14",
"Simple File Verification": "#C9BFED",
"Singularity": "#64E6AD",
"Slash": "#007eff",
"Slice": "#003fa2",
@ -433,6 +465,8 @@ var LanguagesColor = map[string]string{
"SmPL": "#c94949",
"Smalltalk": "#596706",
"Smarty": "#f0c040",
"Smithy": "#c44536",
"Snakemake": "#419179",
"Solidity": "#AA6746",
"SourcePawn": "#f69e1d",
"Squirrel": "#800000",
@ -446,9 +480,11 @@ var LanguagesColor = map[string]string{
"SugarSS": "#2fcc9f",
"SuperCollider": "#46390b",
"Svelte": "#ff3e00",
"Sway": "#dea584",
"Swift": "#F05138",
"SystemVerilog": "#DAE1C2",
"TI Program": "#A0AA87",
"TL-Verilog": "#C40023",
"TLA": "#4b0079",
"TOML": "#9c4221",
"TSQL": "#e38c00",
@ -483,11 +519,15 @@ var LanguagesColor = map[string]string{
"Vim Script": "#199f4b",
"Vim Snippet": "#199f4b",
"Visual Basic .NET": "#945db7",
"Visual Basic 6.0": "#2c6353",
"Volt": "#1F1F1F",
"Vue": "#41b883",
"Vyper": "#2980b9",
"WDL": "#42f1f4",
"WGSL": "#1a5e9a",
"Web Ontology Language": "#5b70bd",
"WebAssembly": "#04133b",
"WebAssembly Interface Type": "#6250e7",
"Whiley": "#d5c397",
"Wikitext": "#fc5757",
"Windows Registry Entries": "#52d5ff",
@ -529,7 +569,6 @@ var LanguagesColor = map[string]string{
"q": "#0040cd",
"reStructuredText": "#141414",
"sed": "#64b970",
"wdl": "#42f1f4",
"wisp": "#7582D1",
"xBase": "#403a40",
}

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

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -581,17 +581,23 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("AL"),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`\b(?i:(CODEUNIT|PAGE|PAGEEXTENSION|PAGECUSTOMIZATION|DOTNET|ENUM|ENUMEXTENSION|VALUE|QUERY|REPORT|TABLE|TABLEEXTENSION|XMLPORT|PROFILE|CONTROLADDIN))\b`),
regex.MustCompileMultiline(`\b(?i:(CODEUNIT|PAGE|PAGEEXTENSION|PAGECUSTOMIZATION|DOTNET|ENUM|ENUMEXTENSION|VALUE|QUERY|REPORT|TABLE|TABLEEXTENSION|XMLPORT|PROFILE|CONTROLADDIN|REPORTEXTENSION|INTERFACE|PERMISSIONSET|PERMISSIONSETEXTENSION|ENTITLEMENT))\b`),
),
),
rule.Always(
rule.MatchingLanguages("Perl"),
),
},
".app": &Heuristics{
rule.Or(
rule.MatchingLanguages("Erlang"),
regex.MustCompileMultiline(`^\{\s*(?:application|'application')\s*,\s*(?:[a-z]+[\w@]*|'[^']+')\s*,\s*\[(?:.|[\r\n])*\]\s*\}\.[ \t]*$`),
),
},
".as": &Heuristics{
rule.Or(
rule.MatchingLanguages("ActionScript"),
regex.MustCompileRuby(`^\s*(?:package(?:\s+[\w.]+)?\s+(?:{|$)|import\s+[\w.*]+\s*;|(?=.*?(?:intrinsic|extends))(intrinsic\s+)?class\s+[\w<>.]+(?:\s+extends\s+[\w<>.]+)?|(?:(?:public|protected|private|static)\s+)*(?:(?:var|const|local)\s+\w+\s*:\s*[\w<>.]+(?:\s*=.*)?\s*;|function\s+\w+\s*\((?:\s*\w+\s*:\s*[\w<>.]+\s*(,\s*\w+\s*:\s*[\w<>.]+\s*)*)?\)))`),
regex.MustCompileRuby(`^\s*(?:package(?:\s+[\w.]+)?\s+(?:\{|$)|import\s+[\w.*]+\s*;|(?=.*?(?:intrinsic|extends))(intrinsic\s+)?class\s+[\w<>.]+(?:\s+extends\s+[\w<>.]+)?|(?:(?:public|protected|private|static)\s+)*(?:(?:var|const|local)\s+\w+\s*:\s*[\w<>.]+(?:\s*=.*)?\s*;|function\s+\w+\s*\((?:\s*\w+\s*:\s*[\w<>.]+\s*(,\s*\w+\s*:\s*[\w<>.]+\s*)*)?\)))`),
),
},
".asc": &Heuristics{
@ -601,7 +607,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("AsciiDoc"),
regex.MustCompileMultiline(`^[=-]+(\s|\n)|{{[A-Za-z]`),
regex.MustCompileMultiline(`^[=-]+(\s|\n)|\{\{[A-Za-z]`),
),
rule.Or(
rule.MatchingLanguages("AGS Script"),
@ -626,11 +632,26 @@ var ContentHeuristics = map[string]*Heuristics{
".bas": &Heuristics{
rule.Or(
rule.MatchingLanguages("FreeBasic"),
regex.MustCompileMultiline(`^[ \t]*#(?:define|endif|endmacro|ifn?def|if|include|lang|macro)\s`),
regex.MustCompileMultiline(`^[ \t]*#(?i)(?:define|endif|endmacro|ifn?def|include|lang|macro)(?:$|\s)`),
),
rule.Or(
rule.MatchingLanguages("BASIC"),
regex.MustCompileMultiline(`^\s*\d+`),
regex.MustCompileMultiline(`\A\s*\d`),
),
rule.And(
rule.MatchingLanguages("VBA"),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^[ ]*Attribute VB_Name = `),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`\b(?:VBA|[vV]ba)(?:\b|[0-9A-Z_])|^[ ]*(?:Public|Private)? Declare PtrSafe (?:Sub|Function)\b|^[ ]*#If Win64\b|^[ ]*(?:Dim|Const) [0-9a-zA-Z_]*[ ]*As Long(?:Ptr|Long)\b|^[ ]*Option (?:Private Module|Compare Database)\b|(?: |\()(?:Access|Excel|Outlook|PowerPoint|Visio|Word|VBIDE)\.\w|\b(?:(?:Active)?VBProjects?|VBComponents?|Application\.(?:VBE|ScreenUpdating))\b|\b(?:ThisDrawing|AcadObject|Active(?:Explorer|Inspector|Window\.Presentation|Presentation|Document)|Selection\.(?:Find|Paragraphs))\b|\b(?:(?:This|Active)?Workbooks?|Worksheets?|Active(?:Sheet|Chart|Cell)|WorksheetFunction)\b|\b(?:Range\(".*|Cells\([0-9a-zA-Z_]*, (?:[0-9a-zA-Z_]*|"[a-zA-Z]{1,3}"))\)`),
),
),
rule.Or(
rule.MatchingLanguages("Visual Basic 6.0"),
regex.MustCompileMultiline(`^[ ]*Attribute VB_Name = `),
),
},
".bb": &Heuristics{
@ -664,7 +685,7 @@ var ContentHeuristics = map[string]*Heuristics{
".bi": &Heuristics{
rule.Or(
rule.MatchingLanguages("FreeBasic"),
regex.MustCompileMultiline(`^[ \t]*#(?:define|endif|endmacro|ifn?def|if|include|lang|macro)\s`),
regex.MustCompileMultiline(`^[ \t]*#(?i)(?:define|endif|endmacro|ifn?def|if|include|lang|macro)(?:$|\s)`),
),
},
".bs": &Heuristics{
@ -704,9 +725,24 @@ var ContentHeuristics = map[string]*Heuristics{
),
},
".cls": &Heuristics{
rule.And(
rule.MatchingLanguages("Visual Basic 6.0"),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^[ ]*VERSION [0-9]\.[0-9] CLASS`),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^\s*BEGIN(?:\r?\n|\r)\s*MultiUse\s*=.*(?:\r?\n|\r)\s*Persistable\s*=`),
),
),
rule.Or(
rule.MatchingLanguages("VBA"),
regex.MustCompileMultiline(`^[ ]*VERSION [0-9]\.[0-9] CLASS`),
),
rule.Or(
rule.MatchingLanguages("TeX"),
regex.MustCompileMultiline(`^\s*\\(?:NeedsTeXFormat|ProvidesClass){`),
regex.MustCompileMultiline(`^\s*\\(?:NeedsTeXFormat|ProvidesClass)\{`),
),
rule.Or(
rule.MatchingLanguages("ObjectScript"),
@ -726,7 +762,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("C#"),
regex.MustCompileMultiline(`^\s*(using\s+[A-Z][\s\w.]+;|namespace\s*[\w\.]+\s*({|;)|\/\/)`),
regex.MustCompileMultiline(`^\s*(using\s+[A-Z][\s\w.]+;|namespace\s*[\w\.]+\s*(\{|;)|\/\/)`),
),
},
".csc": &Heuristics{
@ -738,7 +774,7 @@ var ContentHeuristics = map[string]*Heuristics{
".csl": &Heuristics{
rule.Or(
rule.MatchingLanguages("XML"),
regex.MustCompileMultiline(`(?i:^\s*(\<\?xml|xmlns))`),
regex.MustCompileMultiline(`(?i:^\s*(<\?xml|xmlns))`),
),
rule.Or(
rule.MatchingLanguages("Kusto"),
@ -748,11 +784,11 @@ var ContentHeuristics = map[string]*Heuristics{
".d": &Heuristics{
rule.Or(
rule.MatchingLanguages("D"),
regex.MustCompileMultiline(`^module\s+[\w.]*\s*;|import\s+[\w\s,.:]*;|\w+\s+\w+\s*\(.*\)(?:\(.*\))?\s*{[^}]*}|unittest\s*(?:\(.*\))?\s*{[^}]*}`),
regex.MustCompileMultiline(`^module\s+[\w.]*\s*;|import\s+[\w\s,.:]*;|\w+\s+\w+\s*\(.*\)(?:\(.*\))?\s*\{[^}]*\}|unittest\s*(?:\(.*\))?\s*\{[^}]*\}`),
),
rule.Or(
rule.MatchingLanguages("DTrace"),
regex.MustCompileMultiline(`^(\w+:\w*:\w*:\w*|BEGIN|END|provider\s+|(tick|profile)-\w+\s+{[^}]*}|#pragma\s+D\s+(option|attributes|depends_on)\s|#pragma\s+ident\s)`),
regex.MustCompileMultiline(`^(\w+:\w*:\w*:\w*|BEGIN|END|provider\s+|(tick|profile)-\w+\s+\{[^}]*\}|#pragma\s+D\s+(option|attributes|depends_on)\s|#pragma\s+ident\s)`),
),
rule.Or(
rule.MatchingLanguages("Makefile"),
@ -772,7 +808,7 @@ var ContentHeuristics = map[string]*Heuristics{
".e": &Heuristics{
rule.Or(
rule.MatchingLanguages("E"),
regex.MustCompileMultiline(`^\s*(def|var)\s+(.+):=|^\s*(def|to)\s+(\w+)(\(.+\))?\s+{|^\s*(when)\s+(\(.+\))\s+->\s+{`),
regex.MustCompileMultiline(`^\s*(def|var)\s+(.+):=|^\s*(def|to)\s+(\w+)(\(.+\))?\s+\{|^\s*(when)\s+(\(.+\))\s+->\s+\{`),
),
rule.Or(
rule.MatchingLanguages("Eiffel"),
@ -800,7 +836,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("JavaScript"),
regex.MustCompileRuby(`(?m:\/\/|("|')use strict\1|export\s+default\s|\/\*.*?\*\/)`),
regex.MustCompileRuby(`\/\/|("|')use strict\1|export\s+default\s|\/\*(?:.|[\r\n])*?\*\/`),
),
},
".ex": &Heuristics{
@ -850,6 +886,30 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("Text"),
),
},
".frm": &Heuristics{
rule.And(
rule.MatchingLanguages("VBA"),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^[ ]*VERSION [0-9]\.[0-9]{2}`),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^\s*Begin\s+\{[0-9A-Z\-]*\}\s?`),
),
),
rule.And(
rule.MatchingLanguages("Visual Basic 6.0"),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^[ ]*VERSION [0-9]\.[0-9]{2}`),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^\s*Begin\s+VB\.Form\s+`),
),
),
},
".fs": &Heuristics{
rule.Or(
rule.MatchingLanguages("Forth"),
@ -871,7 +931,7 @@ var ContentHeuristics = map[string]*Heuristics{
".ftl": &Heuristics{
rule.Or(
rule.MatchingLanguages("FreeMarker"),
regex.MustCompileRuby(`^(?:<|[a-zA-Z-][a-zA-Z0-9_-]+[ \t]+\w)|\${\w+[^\n]*?}|^[ \t]*(?:<#--.*?-->|<#([a-z]+)(?=\s|>)[^>]*>.*?</#\1>|\[#--.*?--\]|\[#([a-z]+)(?=\s|\])[^\]]*\].*?\[#\2\])`),
regex.MustCompileRuby(`^(?:<|[a-zA-Z-][a-zA-Z0-9_-]+[ \t]+\w)|\$\{\w+[^\n]*?\}|^[ \t]*(?:<#--.*?-->|<#([a-z]+)(?=\s|>)[^>]*>.*?</#\1>|\[#--.*?--\]|\[#([a-z]+)(?=\s|\])[^\]]*\].*?\[#\2\])`),
),
rule.Or(
rule.MatchingLanguages("Fluent"),
@ -901,7 +961,7 @@ var ContentHeuristics = map[string]*Heuristics{
".gml": &Heuristics{
rule.Or(
rule.MatchingLanguages("XML"),
regex.MustCompileMultiline(`(?i:^\s*(\<\?xml|xmlns))`),
regex.MustCompileMultiline(`(?i:^\s*(<\?xml|xmlns))`),
),
rule.Or(
rule.MatchingLanguages("Graph Modeling Language"),
@ -960,6 +1020,15 @@ var ContentHeuristics = map[string]*Heuristics{
regex.MustCompileMultiline(`<\?hh`),
),
},
".html": &Heuristics{
rule.Or(
rule.MatchingLanguages("Ecmarkup"),
regex.MustCompileMultiline(`<emu-(?:alg|annex|biblio|clause|eqn|example|figure|gann|gmod|gprose|grammar|intro|not-ref|note|nt|prodref|production|rhs|table|t|xref)(?:$|\s|>)`),
),
rule.Always(
rule.MatchingLanguages("HTML"),
),
},
".i": &Heuristics{
rule.Or(
rule.MatchingLanguages("Motorola 68K Assembly"),
@ -990,11 +1059,11 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("SourcePawn"),
regex.MustCompileMultiline(`^public\s+(?:SharedPlugin(?:\s+|:)__pl_\w+\s*=(?:\s*{)?|(?:void\s+)?__pl_\w+_SetNTVOptional\(\)(?:\s*{)?)|^methodmap\s+\w+\s+<\s+\w+|^\s*MarkNativeAsOptional\s*\(`),
regex.MustCompileMultiline(`^public\s+(?:SharedPlugin(?:\s+|:)__pl_\w+\s*=(?:\s*\{)?|(?:void\s+)?__pl_\w+_SetNTVOptional\(\)(?:\s*\{)?)|^methodmap\s+\w+\s+<\s+\w+|^\s*MarkNativeAsOptional\s*\(`),
),
rule.Or(
rule.MatchingLanguages("NASL"),
regex.MustCompileRuby(`^\s*include\s*\(\s*(?:"|')[\\/\w\-\.:\s]+\.(?:nasl|inc)\s*(?:"|')\s*\)\s*;|^\s*(?:global|local)_var\s+(?:\w+(?:\s*=\s*[\w\-"']+)?\s*)(?:,\s*\w+(?:\s*=\s*[\w\-"']+)?\s*)*+\s*;|^\s*namespace\s+\w+\s*{|^\s*object\s+\w+\s*(?:extends\s+\w+(?:::\w+)?)?\s*{|^\s*(?:public\s+|private\s+|\s*)function\s+\w+\s*\([\w\s,]*\)\s*{`),
regex.MustCompileRuby(`^\s*include\s*\(\s*(?:"|')[\\/\w\-\.:\s]+\.(?:nasl|inc)\s*(?:"|')\s*\)\s*;|^\s*(?:global|local)_var\s+(?:\w+(?:\s*=\s*[\w\-"']+)?\s*)(?:,\s*\w+(?:\s*=\s*[\w\-"']+)?\s*)*+\s*;|^\s*namespace\s+\w+\s*\{|^\s*object\s+\w+\s*(?:extends\s+\w+(?:::\w+)?)?\s*\{|^\s*(?:public\s+|private\s+|\s*)function\s+\w+\s*\([\w\s,]*\)\s*\{`),
),
rule.Or(
rule.MatchingLanguages("POV-Ray SDL"),
@ -1002,7 +1071,20 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Pascal"),
regex.MustCompileMultiline(`(?i:^\s*{\$(?:mode|ifdef|undef|define)[ ]+[a-z0-9_]+})|^\s*end[.;]\s*$`),
regex.MustCompileMultiline(`(?i:^\s*\{\$(?:mode|ifdef|undef|define)[ ]+[a-z0-9_]+\})|^\s*end[.;]\s*$`),
),
},
".json": &Heuristics{
rule.Or(
rule.MatchingLanguages("OASv2-json"),
regex.MustCompileMultiline(`"swagger":\s?"2.[0-9.]+"`),
),
rule.Or(
rule.MatchingLanguages("OASv3-json"),
regex.MustCompileMultiline(`"openapi":\s?"3.[0-9.]+"`),
),
rule.Always(
rule.MatchingLanguages("JSON"),
),
},
".l": &Heuristics{
@ -1036,7 +1118,7 @@ var ContentHeuristics = map[string]*Heuristics{
".ls": &Heuristics{
rule.Or(
rule.MatchingLanguages("LoomScript"),
regex.MustCompileMultiline(`^\s*package\s*[\w\.\/\*\s]*\s*{`),
regex.MustCompileMultiline(`^\s*package\s*[\w\.\/\*\s]*\s*\{`),
),
rule.Always(
rule.MatchingLanguages("LiveScript"),
@ -1086,7 +1168,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Limbo"),
regex.MustCompileMultiline(`^\w+\s*:\s*module\s*{`),
regex.MustCompileMultiline(`^\w+\s*:\s*module\s*\{`),
),
},
".m4": &Heuristics{
@ -1269,6 +1351,15 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("NewLisp"),
),
},
".nu": &Heuristics{
rule.Or(
rule.MatchingLanguages("Nushell"),
regex.MustCompileMultiline(`^\s*(import|export|module|def|let|let-env) `),
),
rule.Always(
rule.MatchingLanguages("Nu"),
),
},
".odin": &Heuristics{
rule.Or(
rule.MatchingLanguages("Object Data Instance Notation"),
@ -1303,9 +1394,16 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("Prolog"),
regex.MustCompileMultiline(`^[^#]*:-`),
),
rule.Or(
rule.And(
rule.MatchingLanguages("Perl"),
regex.MustCompileMultiline(`\buse\s+(?:strict\b|v?5\.)`),
rule.Not(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^\s*use\s+v6\b`),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`\buse\s+(?:strict\b|v?5\b)|^\s*use\s+(?:constant|overload)\b|^\s*(?:\*|(?:our\s*)?@)EXPORT\s*=|^\s*package\s+[^\W\d]\w*(?:::\w+)*\s*(?:[;{]|\sv?\d)|[\s$][^\W\d]\w*(?::\w+)*->[a-zA-Z_\[({]`),
),
),
rule.Or(
rule.MatchingLanguages("Raku"),
@ -1315,16 +1413,29 @@ var ContentHeuristics = map[string]*Heuristics{
".plist": &Heuristics{
rule.Or(
rule.MatchingLanguages("XML Property List"),
regex.MustCompileMultiline(`<!DOCTYPE\s+plist`),
regex.MustCompileRuby(`^\s*(?:<\?xml\s|<!DOCTYPE\s+plist|<plist(?:\s+version\s*=\s*(["'])\d+(?:\.\d+)?\1)?\s*>\s*$)`),
),
rule.Always(
rule.MatchingLanguages("OpenStep Property List"),
),
},
".pm": &Heuristics{
".plt": &Heuristics{
rule.Or(
rule.MatchingLanguages("Prolog"),
regex.MustCompileMultiline(`^\s*:-`),
),
},
".pm": &Heuristics{
rule.And(
rule.MatchingLanguages("Perl"),
regex.MustCompileMultiline(`\buse\s+(?:strict\b|v?5\.)`),
rule.Not(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^\s*use\s+v6\b`),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`\buse\s+(?:strict\b|v?5\b)|^\s*use\s+(?:constant|overload)\b|^\s*(?:\*|(?:our\s*)?@)EXPORT\s*=|^\s*package\s+[^\W\d]\w*(?:::\w+)*\s*(?:[;{]|\sv?\d)|[\s$][^\W\d]\w*(?::\w+)*->[a-zA-Z_\[({]`),
),
),
rule.Or(
rule.MatchingLanguages("Raku"),
@ -1418,7 +1529,7 @@ var ContentHeuristics = map[string]*Heuristics{
".q": &Heuristics{
rule.Or(
rule.MatchingLanguages("q"),
regex.MustCompileMultiline(`((?i:[A-Z.][\w.]*:{)|(^|\n)\\(cd?|d|l|p|ts?) )`),
regex.MustCompileMultiline(`((?i:[A-Z.][\w.]*:\{)|(^|\n)\\(cd?|d|l|p|ts?) )`),
),
rule.Or(
rule.MatchingLanguages("HiveQL"),
@ -1448,7 +1559,7 @@ var ContentHeuristics = map[string]*Heuristics{
".re": &Heuristics{
rule.Or(
rule.MatchingLanguages("Reason"),
regex.MustCompileMultiline(`^\s*module\s+type\s|^\s*(?:include|open)\s+\w+\s*;\s*$|^\s*let\s+(?:module\s\w+\s*=\s*{|\w+:\s+.*=.*;\s*$)`),
regex.MustCompileMultiline(`^\s*module\s+type\s|^\s*(?:include|open)\s+\w+\s*;\s*$|^\s*let\s+(?:module\s\w+\s*=\s*\{|\w+:\s+.*=.*;\s*$)`),
),
rule.Or(
rule.MatchingLanguages("C++"),
@ -1474,7 +1585,7 @@ var ContentHeuristics = map[string]*Heuristics{
".rpy": &Heuristics{
rule.Or(
rule.MatchingLanguages("Python"),
regex.MustCompileMultiline(`(?m:^(import|from|class|def)\s)`),
regex.MustCompileMultiline(`^(import|from|class|def)\s`),
),
rule.Always(
rule.MatchingLanguages("Ren'Py"),
@ -1564,7 +1675,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Smalltalk"),
regex.MustCompileMultiline(`\A\s*[\[{(^"'\w#]|[a-zA-Z_]\w*\s*:=\s*[a-zA-Z_]\w*|class\s*>>\s*[a-zA-Z_]\w*|^[a-zA-Z_]\w*\s+[a-zA-Z_]\w*:|^Class\s*{|if(?:True|False):\s*\[`),
regex.MustCompileMultiline(`\A\s*[\[{(^"'\w#]|[a-zA-Z_]\w*\s*:=\s*[a-zA-Z_]\w*|class\s*>>\s*[a-zA-Z_]\w*|^[a-zA-Z_]\w*\s+[a-zA-Z_]\w*:|^Class\s*\{|if(?:True|False):\s*\[`),
),
},
".star": &Heuristics{
@ -1579,13 +1690,30 @@ var ContentHeuristics = map[string]*Heuristics{
".stl": &Heuristics{
rule.Or(
rule.MatchingLanguages("STL"),
regex.MustCompileRuby(`\A\s*solid(?=$|\s)(?m:.*?)\Rendsolid(?:$|\s)`),
regex.MustCompileRuby(`\A\s*solid(?=$|\s)(?:.|[\r\n])*?^endsolid(?:$|\s)`),
),
},
".sw": &Heuristics{
rule.Or(
rule.MatchingLanguages("Sway"),
regex.MustCompileMultiline(`^\s*(?:(?:abi|dep|fn|impl|mod|pub|trait)\s|#\[)`),
),
rule.Or(
rule.MatchingLanguages("XML"),
regex.MustCompileMultiline(`^\s*<\?xml\s+version`),
),
},
".t": &Heuristics{
rule.Or(
rule.And(
rule.MatchingLanguages("Perl"),
regex.MustCompileMultiline(`\buse\s+(?:strict\b|v?5\.)`),
rule.Not(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^\s*use\s+v6\b`),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`\buse\s+(?:strict\b|v?5\b)|^\s*use\s+(?:constant|overload)\b|^\s*(?:\*|(?:our\s*)?@)EXPORT\s*=|^\s*package\s+[^\W\d]\w*(?:::\w+)*\s*(?:[;{]|\sv?\d)|[\s$][^\W\d]\w*(?::\w+)*->[a-zA-Z_\[({]`),
),
),
rule.Or(
rule.MatchingLanguages("Raku"),
@ -1602,6 +1730,12 @@ var ContentHeuristics = map[string]*Heuristics{
regex.MustCompileMultiline(`<%[@!=\s]?\s*(taglib|tag|include|attribute|variable)\s`),
),
},
".tlv": &Heuristics{
rule.Or(
rule.MatchingLanguages("TL-Verilog"),
regex.MustCompileMultiline(`^\\.{0,10}TLV_version`),
),
},
".toc": &Heuristics{
rule.Or(
rule.MatchingLanguages("World of Warcraft Addon Data"),
@ -1674,7 +1808,7 @@ var ContentHeuristics = map[string]*Heuristics{
".url": &Heuristics{
rule.Or(
rule.MatchingLanguages("INI"),
regex.MustCompileRuby(`^\[InternetShortcut\]\R(?>[^\s\[][^\n]*\R)*URL=`),
regex.MustCompileRuby(`^\[InternetShortcut\](?:\r?\n|\r)(?>[^\s\[][^\n]*(?:\r?\n|\r))*URL=`),
),
},
".v": &Heuristics{
@ -1717,7 +1851,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("RPC"),
regex.MustCompileMultiline(`\b(program|version)\s+\w+\s*{|\bunion\s+\w+\s+switch\s*\(`),
regex.MustCompileMultiline(`\b(program|version)\s+\w+\s*\{|\bunion\s+\w+\s+switch\s*\(`),
),
rule.Or(
rule.MatchingLanguages("Logos"),
@ -1733,6 +1867,31 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("MiniYAML"),
regex.MustCompileMultiline(`^\t+.*?[^\s:].*?:`),
),
rule.Or(
rule.MatchingLanguages("OASv2-yaml"),
regex.MustCompileMultiline(`swagger:\s?'?"?2.[0-9.]+'?"?`),
),
rule.Or(
rule.MatchingLanguages("OASv3-yaml"),
regex.MustCompileMultiline(`openapi:\s?'?"?3.[0-9.]+'?"?`),
),
rule.Always(
rule.MatchingLanguages("YAML"),
),
},
".yml": &Heuristics{
rule.Or(
rule.MatchingLanguages("MiniYAML"),
regex.MustCompileMultiline(`^\t+.*?[^\s:].*?:`),
),
rule.Or(
rule.MatchingLanguages("OASv2-yaml"),
regex.MustCompileMultiline(`swagger:\s?'?"?2.[0-9.]+'?"?`),
),
rule.Or(
rule.MatchingLanguages("OASv3-yaml"),
regex.MustCompileMultiline(`openapi:\s?'?"?3.[0-9.]+'?"?`),
),
rule.Always(
rule.MatchingLanguages("YAML"),
),

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -67,10 +67,12 @@ var LanguagesByExtension = map[string][]string{
".apacheconf": {"ApacheConf"},
".apib": {"API Blueprint"},
".apl": {"APL"},
".app": {"Erlang"},
".app.src": {"Erlang"},
".applescript": {"AppleScript"},
".arc": {"Arc"},
".arpa": {"DNS Zone"},
".arr": {"Pyret"},
".as": {"ActionScript", "AngelScript"},
".asax": {"ASP.NET"},
".asc": {"AGS Script", "AsciiDoc", "Public Key"},
@ -107,7 +109,7 @@ var LanguagesByExtension = map[string][]string{
".axs.erb": {"NetLinx+ERB"},
".b": {"Brainfuck", "Limbo"},
".bal": {"Ballerina"},
".bas": {"BASIC", "FreeBasic", "VBA"},
".bas": {"BASIC", "FreeBasic", "VBA", "Visual Basic 6.0"},
".bash": {"Shell"},
".bat": {"Batchfile"},
".bats": {"Shell"},
@ -170,6 +172,7 @@ var LanguagesByExtension = map[string][]string{
".chpl": {"Chapel"},
".chs": {"C2hs Haskell"},
".cil": {"CIL"},
".circom": {"Circom"},
".cirru": {"Cirru"},
".cjs": {"JavaScript"},
".cjsx": {"CoffeeScript"},
@ -186,13 +189,14 @@ var LanguagesByExtension = map[string][]string{
".cljscm": {"Clojure"},
".cljx": {"Clojure"},
".clp": {"CLIPS"},
".cls": {"Apex", "ObjectScript", "OpenEdge ABL", "TeX", "VBA"},
".cls": {"Apex", "ObjectScript", "OpenEdge ABL", "TeX", "VBA", "Visual Basic 6.0"},
".clw": {"Clarion"},
".cmake": {"CMake"},
".cmake.in": {"CMake"},
".cmd": {"Batchfile"},
".cmp": {"Gerber Image"},
".cnc": {"G-code"},
".cnf": {"INI"},
".cob": {"COBOL"},
".cobol": {"COBOL"},
".cocci": {"SmPL"},
@ -207,6 +211,7 @@ var LanguagesByExtension = map[string][]string{
".cp": {"C++", "Component Pascal"},
".cpp": {"C++"},
".cpp-objdump": {"Cpp-ObjDump"},
".cppm": {"C++"},
".cppobjdump": {"Cpp-ObjDump"},
".cproject": {"XML"},
".cps": {"Component Pascal"},
@ -229,6 +234,7 @@ var LanguagesByExtension = map[string][]string{
".csv": {"CSV"},
".csx": {"C#"},
".ct": {"XML"},
".ctl": {"Visual Basic 6.0"},
".ctp": {"PHP"},
".cts": {"TypeScript"},
".cu": {"Cuda"},
@ -240,8 +246,11 @@ var LanguagesByExtension = map[string][]string{
".cxx": {"C++"},
".cxx-objdump": {"Cpp-ObjDump"},
".cy": {"Cycript"},
".cyp": {"Cypher"},
".cypher": {"Cypher"},
".d": {"D", "DTrace", "Makefile"},
".d-objdump": {"D-ObjDump"},
".d2": {"D2"},
".dae": {"COLLADA"},
".darcspatch": {"Darcs Patch"},
".dart": {"Dart"},
@ -278,6 +287,7 @@ var LanguagesByExtension = map[string][]string{
".dsc": {"Debian Package Control File", "DenizenScript"},
".dsl": {"ASL"},
".dsp": {"Faust", "Microsoft Developer Studio Project"},
".dsr": {"Visual Basic 6.0"},
".dtx": {"TeX"},
".duby": {"Mirah"},
".dwl": {"DataWeave"},
@ -296,6 +306,7 @@ var LanguagesByExtension = map[string][]string{
".ecr": {"HTML+ECR"},
".ect": {"EJS"},
".edc": {"Edje Data Collection"},
".editorconfig": {"EditorConfig"},
".edn": {"edn"},
".eex": {"HTML+EEX"},
".eh": {"eC"},
@ -311,7 +322,7 @@ var LanguagesByExtension = map[string][]string{
".emacs.desktop": {"Emacs Lisp"},
".emberscript": {"EmberScript"},
".eml": {"E-mail"},
".env": {"Shell"},
".env": {"Dotenv"},
".epj": {"Ecere Projects"},
".eps": {"PostScript"},
".epsi": {"PostScript"},
@ -351,9 +362,8 @@ var LanguagesByExtension = map[string][]string{
".fr": {"Forth", "Frege", "Text"},
".frag": {"GLSL", "JavaScript"},
".frg": {"GLSL"},
".frm": {"VBA"},
".frm": {"VBA", "Visual Basic 6.0"},
".frt": {"Forth"},
".frx": {"VBA"},
".fs": {"F#", "Filterscript", "Forth", "GLSL"},
".fsh": {"GLSL"},
".fshader": {"GLSL"},
@ -385,6 +395,8 @@ var LanguagesByExtension = map[string][]string{
".gd": {"GAP", "GDScript"},
".gdb": {"GDB"},
".gdbinit": {"GDB"},
".gdnlib": {"Godot Resource"},
".gdns": {"Godot Resource"},
".ged": {"GEDCOM"},
".gemspec": {"Ruby"},
".geo": {"GLSL"},
@ -470,7 +482,7 @@ var LanguagesByExtension = map[string][]string{
".hsc": {"Haskell"},
".hta": {"HTML"},
".htm": {"HTML"},
".html": {"HTML"},
".html": {"Ecmarkup", "HTML"},
".html.heex": {"HTML+EEX"},
".html.hl": {"HTML"},
".html.leex": {"HTML+EEX"},
@ -495,9 +507,11 @@ var LanguagesByExtension = map[string][]string{
".ijs": {"J"},
".ik": {"Ioke"},
".ily": {"LilyPond"},
".imba": {"Imba"},
".iml": {"XML"},
".inc": {"Assembly", "C++", "HTML", "Motorola 68K Assembly", "NASL", "PHP", "POV-Ray SDL", "Pascal", "Pawn", "SQL", "SourcePawn"},
".ini": {"INI"},
".ink": {"Ink"},
".inl": {"C++"},
".ino": {"C++"},
".ins": {"TeX"},
@ -522,6 +536,7 @@ var LanguagesByExtension = map[string][]string{
".java": {"Java"},
".javascript": {"JavaScript"},
".jbuilder": {"Ruby"},
".jcl": {"JCL"},
".jelly": {"XML"},
".jflex": {"JFlex"},
".jinja": {"Jinja"},
@ -535,9 +550,10 @@ var LanguagesByExtension = map[string][]string{
".jsb": {"JavaScript"},
".jscad": {"JavaScript"},
".jsfl": {"JavaScript"},
".jsh": {"Java"},
".jslib": {"JavaScript"},
".jsm": {"JavaScript"},
".json": {"JSON"},
".json": {"JSON", "OASv2-json", "OASv3-json"},
".json-tmlanguage": {"JSON"},
".json5": {"JSON5"},
".jsonc": {"JSON with Comments"},
@ -561,6 +577,7 @@ var LanguagesByExtension = map[string][]string{
".kojo": {"Scala"},
".kql": {"Kusto"},
".krl": {"KRL"},
".ks": {"KerboScript", "Kickstart"},
".ksh": {"Shell"},
".ksy": {"Kaitai Struct"},
".kt": {"Kotlin"},
@ -595,6 +612,7 @@ var LanguagesByExtension = map[string][]string{
".lisp": {"Common Lisp", "NewLisp"},
".litcoffee": {"Literate CoffeeScript"},
".livemd": {"Markdown"},
".lkml": {"LookML"},
".ll": {"LLVM"},
".lmi": {"Python"},
".logtalk": {"Logtalk"},
@ -647,9 +665,10 @@ var LanguagesByExtension = map[string][]string{
".mdown": {"Markdown"},
".mdpolicy": {"XML"},
".mdwn": {"Markdown"},
".mdx": {"Markdown"},
".mdx": {"MDX"},
".me": {"Roff"},
".mediawiki": {"Wikitext"},
".mermaid": {"Mermaid"},
".meta": {"Unity3D Asset"},
".metal": {"Metal"},
".mg": {"Modula-3"},
@ -675,11 +694,11 @@ var LanguagesByExtension = map[string][]string{
".mll": {"OCaml"},
".mly": {"OCaml"},
".mm": {"Objective-C++", "XML"},
".mmd": {"Mermaid"},
".mmk": {"Module Management System"},
".mms": {"Module Management System"},
".mo": {"Modelica", "Motoko"},
".mod": {"AMPL", "Linux Kernel Module", "Modula-2", "XML"},
".model.lkml": {"LookML"},
".monkey": {"Monkey"},
".monkey2": {"Monkey"},
".moo": {"Mercury", "Moocode"},
@ -749,7 +768,7 @@ var LanguagesByExtension = map[string][]string{
".nsh": {"NSIS"},
".nsi": {"NSIS"},
".nss": {"NWScript"},
".nu": {"Nu"},
".nu": {"Nu", "Nushell"},
".numpy": {"NumPy"},
".numpyw": {"NumPy"},
".numsc": {"NumPy"},
@ -784,6 +803,7 @@ var LanguagesByExtension = map[string][]string{
".p6m": {"Raku"},
".p8": {"Lua"},
".pac": {"JavaScript"},
".pact": {"Pact"},
".pan": {"Pan"},
".parrot": {"Parrot"},
".pas": {"Pascal"},
@ -800,6 +820,7 @@ var LanguagesByExtension = map[string][]string{
".pcss": {"PostCSS"},
".pd": {"Pure Data"},
".pd_lua": {"Lua"},
".pddl": {"PDDL"},
".pde": {"Processing"},
".pegjs": {"PEG.js"},
".pep": {"Pep8"},
@ -831,7 +852,7 @@ var LanguagesByExtension = map[string][]string{
".plot": {"Gnuplot"},
".pls": {"PLSQL"},
".plsql": {"PLSQL"},
".plt": {"Gnuplot"},
".plt": {"Gnuplot", "Prolog"},
".pluginspec": {"Ruby", "XML"},
".plx": {"Perl"},
".pm": {"Perl", "Raku", "X PixMap"},
@ -844,6 +865,7 @@ var LanguagesByExtension = map[string][]string{
".podsl": {"Common Lisp"},
".podspec": {"Ruby"},
".pogo": {"PogoScript"},
".polar": {"Polar"},
".pony": {"Pony"},
".por": {"Portugol"},
".postcss": {"PostCSS"},
@ -916,6 +938,7 @@ var LanguagesByExtension = map[string][]string{
".rbi": {"Ruby"},
".rbmnu": {"REALbasic"},
".rbres": {"REALbasic"},
".rbs": {"RBS"},
".rbtbar": {"REALbasic"},
".rbuild": {"Ruby"},
".rbuistate": {"REALbasic"},
@ -988,6 +1011,7 @@ var LanguagesByExtension = map[string][]string{
".scaml": {"Scaml"},
".scd": {"Markdown", "SuperCollider"},
".sce": {"Scilab"},
".scenic": {"Scenic"},
".sch": {"Eagle", "KiCad Schematic", "Scheme", "XML"},
".schdoc": {"Altium Designer"},
".sci": {"Scilab"},
@ -997,12 +1021,14 @@ var LanguagesByExtension = map[string][]string{
".scrbl": {"Racket"},
".scss": {"SCSS"},
".scxml": {"XML"},
".sdc": {"Tcl"},
".sed": {"sed"},
".self": {"Self"},
".service": {"desktop"},
".sexp": {"Common Lisp"},
".sfd": {"Spline Font Database"},
".sfproj": {"XML"},
".sfv": {"Simple File Verification"},
".sh": {"Shell"},
".sh-session": {"ShellSession"},
".sh.in": {"Shell"},
@ -1028,10 +1054,12 @@ var LanguagesByExtension = map[string][]string{
".sls": {"SaltStack", "Scheme"},
".sma": {"Pawn"},
".smali": {"Smali"},
".smk": {"Python"},
".smithy": {"Smithy"},
".smk": {"Snakemake"},
".sml": {"Standard ML"},
".smt": {"SMT"},
".smt2": {"SMT"},
".snakefile": {"Snakemake"},
".snap": {"Jest Snapshot"},
".snip": {"Vim Snippet"},
".snippet": {"Vim Snippet"},
@ -1085,6 +1113,7 @@ var LanguagesByExtension = map[string][]string{
".svelte": {"Svelte"},
".svg": {"SVG"},
".svh": {"SystemVerilog"},
".sw": {"Sway", "XML"},
".swift": {"Swift"},
".syntax": {"YAML"},
".t": {"Perl", "Raku", "Terra", "Turing"},
@ -1115,6 +1144,7 @@ var LanguagesByExtension = map[string][]string{
".thy": {"Isabelle"},
".tl": {"Type Language"},
".tla": {"TLA"},
".tlv": {"TL-Verilog"},
".tm": {"Tcl"},
".tmac": {"Roff"},
".tmcommand": {"XML Property List"},
@ -1132,8 +1162,11 @@ var LanguagesByExtension = map[string][]string{
".tpl": {"Smarty"},
".tpp": {"C++"},
".tps": {"PLSQL"},
".tres": {"Godot Resource"},
".trg": {"PLSQL"},
".trigger": {"Apex", "Shell"},
".ts": {"TypeScript", "XML"},
".tscn": {"Godot Resource"},
".tst": {"GAP", "Scilab"},
".tsv": {"TSV"},
".tsx": {"TSX", "XML"},
@ -1143,6 +1176,7 @@ var LanguagesByExtension = map[string][]string{
".txi": {"Texinfo"},
".txl": {"TXL"},
".txt": {"Adblock Filter List", "Text", "Vim Help File"},
".txx": {"C++"},
".uc": {"UnrealScript"},
".udf": {"SQL"},
".udo": {"Csound"},
@ -1179,7 +1213,6 @@ var LanguagesByExtension = map[string][]string{
".vhs": {"VHDL"},
".vht": {"VHDL"},
".vhw": {"VHDL"},
".view.lkml": {"LookML"},
".vim": {"Vim Script"},
".vimrc": {"Vim Script"},
".viw": {"SQL"},
@ -1201,15 +1234,17 @@ var LanguagesByExtension = map[string][]string{
".wast": {"WebAssembly"},
".wat": {"WebAssembly"},
".watchr": {"Ruby"},
".wdl": {"wdl"},
".wdl": {"WDL"},
".webapp": {"JSON"},
".webidl": {"WebIDL"},
".webmanifest": {"JSON"},
".weechatlog": {"IRC log"},
".wgsl": {"WGSL"},
".whiley": {"Whiley"},
".wiki": {"Wikitext"},
".wikitext": {"Wikitext"},
".wisp": {"wisp"},
".wit": {"WebAssembly Interface Type"},
".wixproj": {"XML"},
".wl": {"Mathematica"},
".wlk": {"Wollok"},
@ -1233,6 +1268,7 @@ var LanguagesByExtension = map[string][]string{
".xaml": {"XML"},
".xbm": {"X BitMap"},
".xc": {"XC"},
".xdc": {"Tcl"},
".xht": {"HTML"},
".xhtml": {"HTML"},
".xi": {"Logos"},
@ -1276,7 +1312,7 @@ var LanguagesByExtension = map[string][]string{
".xzap": {"ZAP"},
".y": {"Yacc"},
".yacc": {"Yacc"},
".yaml": {"MiniYAML", "YAML"},
".yaml": {"MiniYAML", "OASv2-yaml", "OASv3-yaml", "YAML"},
".yaml-tmlanguage": {"YAML"},
".yaml.sed": {"YAML"},
".yang": {"YANG"},
@ -1284,7 +1320,7 @@ var LanguagesByExtension = map[string][]string{
".yar": {"YARA"},
".yara": {"YARA"},
".yasnippet": {"YASnippet"},
".yml": {"YAML"},
".yml": {"MiniYAML", "OASv2-yaml", "OASv3-yaml", "YAML"},
".yml.mysql": {"YAML"},
".yrl": {"Erlang"},
".yul": {"Yul"},
@ -1333,7 +1369,7 @@ var ExtensionsByLanguage = map[string][]string{
"AngelScript": {".as", ".angelscript"},
"Antlers": {".antlers.html", ".antlers.php", ".antlers.xml"},
"ApacheConf": {".apacheconf", ".vhost"},
"Apex": {".cls"},
"Apex": {".cls", ".trigger"},
"Apollo Guidance Computer": {".agc"},
"AppleScript": {".applescript", ".scpt"},
"Arc": {".arc"},
@ -1369,7 +1405,7 @@ var ExtensionsByLanguage = map[string][]string{
"Brightscript": {".brs"},
"C": {".c", ".cats", ".h", ".idc"},
"C#": {".cs", ".cake", ".csx", ".linq"},
"C++": {".cpp", ".c++", ".cc", ".cp", ".cxx", ".h", ".h++", ".hh", ".hpp", ".hxx", ".inc", ".inl", ".ino", ".ipp", ".ixx", ".re", ".tcc", ".tpp"},
"C++": {".cpp", ".c++", ".cc", ".cp", ".cppm", ".cxx", ".h", ".h++", ".hh", ".hpp", ".hxx", ".inc", ".inl", ".ino", ".ipp", ".ixx", ".re", ".tcc", ".tpp", ".txx"},
"C-ObjDump": {".c-objdump"},
"C2hs Haskell": {".chs"},
"CAP CDS": {".cds"},
@ -1394,6 +1430,7 @@ var ExtensionsByLanguage = map[string][]string{
"Charity": {".ch"},
"Checksums": {".crc32", ".md2", ".md4", ".md5", ".sha1", ".sha2", ".sha224", ".sha256", ".sha256sum", ".sha3", ".sha384", ".sha512"},
"ChucK": {".ck"},
"Circom": {".circom"},
"Cirru": {".cirru"},
"Clarion": {".clw"},
"Clarity": {".clar"},
@ -1422,9 +1459,11 @@ var ExtensionsByLanguage = map[string][]string{
"Cue Sheet": {".cue"},
"Curry": {".curry"},
"Cycript": {".cy"},
"Cypher": {".cyp", ".cypher"},
"Cython": {".pyx", ".pxd", ".pxi"},
"D": {".d", ".di"},
"D-ObjDump": {".d-objdump"},
"D2": {".d2"},
"DIGITAL Command Language": {".com"},
"DM": {".dm"},
"DNS Zone": {".zone", ".arpa"},
@ -1440,6 +1479,7 @@ var ExtensionsByLanguage = map[string][]string{
"DirectX 3D File": {".x"},
"Dockerfile": {".dockerfile"},
"Dogescript": {".djs"},
"Dotenv": {".env"},
"Dylan": {".dylan", ".dyl", ".intr", ".lid"},
"E": {".e"},
"E-mail": {".eml", ".mbox"},
@ -1451,6 +1491,8 @@ var ExtensionsByLanguage = map[string][]string{
"Eagle": {".sch", ".brd"},
"Easybuild": {".eb"},
"Ecere Projects": {".epj"},
"Ecmarkup": {".html"},
"EditorConfig": {".editorconfig"},
"Edje Data Collection": {".edc"},
"Eiffel": {".e"},
"Elixir": {".ex", ".exs"},
@ -1458,7 +1500,7 @@ var ExtensionsByLanguage = map[string][]string{
"Elvish": {".elv"},
"Emacs Lisp": {".el", ".emacs", ".emacs.desktop"},
"EmberScript": {".em", ".emberscript"},
"Erlang": {".erl", ".app.src", ".es", ".escript", ".hrl", ".xrl", ".yrl"},
"Erlang": {".erl", ".app", ".app.src", ".es", ".escript", ".hrl", ".xrl", ".yrl"},
"Euphoria": {".e", ".ex"},
"F#": {".fs", ".fsi", ".fsx"},
"F*": {".fst", ".fsti"},
@ -1508,6 +1550,7 @@ var ExtensionsByLanguage = map[string][]string{
"Glyph Bitmap Distribution Format": {".bdf"},
"Gnuplot": {".gp", ".gnu", ".gnuplot", ".p", ".plot", ".plt"},
"Go": {".go"},
"Godot Resource": {".gdnlib", ".gdns", ".tres", ".tscn"},
"Golo": {".golo"},
"Gosu": {".gs", ".gst", ".gsx", ".vark"},
"Grace": {".grace"},
@ -1542,17 +1585,20 @@ var ExtensionsByLanguage = map[string][]string{
"HyPhy": {".bf"},
"IDL": {".pro", ".dlm"},
"IGOR Pro": {".ipf"},
"INI": {".ini", ".cfg", ".dof", ".lektorproject", ".prefs", ".pro", ".properties", ".url"},
"INI": {".ini", ".cfg", ".cnf", ".dof", ".lektorproject", ".prefs", ".pro", ".properties", ".url"},
"IRC log": {".irclog", ".weechatlog"},
"Idris": {".idr", ".lidr"},
"Ignore List": {".gitignore"},
"ImageJ Macro": {".ijm"},
"Imba": {".imba"},
"Inform 7": {".ni", ".i7x"},
"Ink": {".ink"},
"Inno Setup": {".iss", ".isl"},
"Io": {".io"},
"Ioke": {".ik"},
"Isabelle": {".thy"},
"J": {".ijs"},
"JCL": {".jcl"},
"JFlex": {".flex", ".jflex"},
"JSON": {".json", ".4dform", ".4dproject", ".avsc", ".geojson", ".gltf", ".har", ".ice", ".json-tmlanguage", ".jsonl", ".mcmeta", ".tfstate", ".tfstate.backup", ".topojson", ".webapp", ".webmanifest", ".yy", ".yyp"},
"JSON with Comments": {".jsonc", ".code-snippets", ".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"},
@ -1561,7 +1607,7 @@ var ExtensionsByLanguage = map[string][]string{
"JSONiq": {".jq"},
"Janet": {".janet"},
"Jasmin": {".j"},
"Java": {".java", ".jav"},
"Java": {".java", ".jav", ".jsh"},
"Java Properties": {".properties"},
"Java Server Pages": {".jsp", ".tag"},
"JavaScript": {".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".jsx", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib"},
@ -1578,9 +1624,11 @@ var ExtensionsByLanguage = map[string][]string{
"KRL": {".krl"},
"Kaitai Struct": {".ksy"},
"KakouneScript": {".kak"},
"KerboScript": {".ks"},
"KiCad Layout": {".kicad_pcb", ".kicad_mod", ".kicad_wks"},
"KiCad Legacy Layout": {".brd"},
"KiCad Schematic": {".kicad_sch", ".sch"},
"Kickstart": {".ks"},
"Kit": {".kit"},
"Kotlin": {".kt", ".ktm", ".kts"},
"Kusto": {".csl", ".kql"},
@ -1608,7 +1656,7 @@ var ExtensionsByLanguage = map[string][]string{
"LiveScript": {".ls", "._ls"},
"Logos": {".xm", ".x", ".xi"},
"Logtalk": {".lgt", ".logtalk"},
"LookML": {".lookml", ".model.lkml", ".view.lkml"},
"LookML": {".lkml", ".lookml"},
"LoomScript": {".ls"},
"Lua": {".lua", ".fcgi", ".nse", ".p8", ".pd_lua", ".rbxs", ".rockspec", ".wlua"},
"M": {".mumps", ".m"},
@ -1616,6 +1664,7 @@ var ExtensionsByLanguage = map[string][]string{
"M4Sugar": {".m4"},
"MATLAB": {".matlab", ".m"},
"MAXScript": {".ms", ".mcr"},
"MDX": {".mdx"},
"MLIR": {".mlir"},
"MQL4": {".mq4", ".mqh"},
"MQL5": {".mq5", ".mqh"},
@ -1624,17 +1673,18 @@ var ExtensionsByLanguage = map[string][]string{
"Macaulay2": {".m2"},
"Makefile": {".mak", ".d", ".make", ".makefile", ".mk", ".mkfile"},
"Mako": {".mako", ".mao"},
"Markdown": {".md", ".livemd", ".markdown", ".mdown", ".mdwn", ".mdx", ".mkd", ".mkdn", ".mkdown", ".ronn", ".scd", ".workbook"},
"Markdown": {".md", ".livemd", ".markdown", ".mdown", ".mdwn", ".mkd", ".mkdn", ".mkdown", ".ronn", ".scd", ".workbook"},
"Marko": {".marko"},
"Mask": {".mask"},
"Mathematica": {".mathematica", ".cdf", ".m", ".ma", ".mt", ".nb", ".nbp", ".wl", ".wlt"},
"Max": {".maxpat", ".maxhelp", ".maxproj", ".mxt", ".pat"},
"Mercury": {".m", ".moo"},
"Mermaid": {".mmd", ".mermaid"},
"Metal": {".metal"},
"Microsoft Developer Studio Project": {".dsp"},
"Microsoft Visual Studio Solution": {".sln"},
"MiniD": {".minid"},
"MiniYAML": {".yaml"},
"MiniYAML": {".yaml", ".yml"},
"Mint": {".mint"},
"Mirah": {".druby", ".duby", ".mirah"},
"Modelica": {".mo"},
@ -1673,6 +1723,11 @@ var ExtensionsByLanguage = map[string][]string{
"Nu": {".nu"},
"NumPy": {".numpy", ".numpyw", ".numsc"},
"Nunjucks": {".njk"},
"Nushell": {".nu"},
"OASv2-json": {".json"},
"OASv2-yaml": {".yaml", ".yml"},
"OASv3-json": {".json"},
"OASv3-yaml": {".yaml", ".yml"},
"OCaml": {".ml", ".eliom", ".eliomi", ".ml4", ".mli", ".mll", ".mly"},
"ObjDump": {".objdump"},
"Object Data Instance Notation": {".odin"},
@ -1696,11 +1751,13 @@ var ExtensionsByLanguage = map[string][]string{
"Oxygene": {".oxygene"},
"Oz": {".oz"},
"P4": {".p4"},
"PDDL": {".pddl"},
"PEG.js": {".pegjs"},
"PHP": {".php", ".aw", ".ctp", ".fcgi", ".inc", ".php3", ".php4", ".php5", ".phps", ".phpt"},
"PLSQL": {".pls", ".bdy", ".ddl", ".fnc", ".pck", ".pkb", ".pks", ".plb", ".plsql", ".prc", ".spc", ".sql", ".tpb", ".tps", ".trg", ".vw"},
"PLpgSQL": {".pgsql", ".sql"},
"POV-Ray SDL": {".pov", ".inc"},
"Pact": {".pact"},
"Pan": {".pan"},
"Papyrus": {".psc"},
"Parrot": {".parrot"},
@ -1719,6 +1776,7 @@ var ExtensionsByLanguage = map[string][]string{
"Pod": {".pod"},
"Pod 6": {".pod", ".pod6"},
"PogoScript": {".pogo"},
"Polar": {".polar"},
"Pony": {".pony"},
"Portugol": {".por"},
"PostCSS": {".pcss", ".postcss"},
@ -1728,7 +1786,7 @@ var ExtensionsByLanguage = map[string][]string{
"Prisma": {".prisma"},
"Processing": {".pde"},
"Proguard": {".pro"},
"Prolog": {".pl", ".pro", ".prolog", ".yap"},
"Prolog": {".pl", ".plt", ".pro", ".prolog", ".yap"},
"Promela": {".pml"},
"Propeller Spin": {".spin"},
"Protocol Buffer": {".proto"},
@ -1739,7 +1797,8 @@ var ExtensionsByLanguage = map[string][]string{
"Pure Data": {".pd"},
"PureBasic": {".pb", ".pbi"},
"PureScript": {".purs"},
"Python": {".py", ".cgi", ".fcgi", ".gyp", ".gypi", ".lmi", ".py3", ".pyde", ".pyi", ".pyp", ".pyt", ".pyw", ".rpy", ".smk", ".spec", ".tac", ".wsgi", ".xpy"},
"Pyret": {".arr"},
"Python": {".py", ".cgi", ".fcgi", ".gyp", ".gypi", ".lmi", ".py3", ".pyde", ".pyi", ".pyp", ".pyt", ".pyw", ".rpy", ".spec", ".tac", ".wsgi", ".xpy"},
"Python traceback": {".pytb"},
"Q#": {".qs"},
"QML": {".qml", ".qbs"},
@ -1747,6 +1806,7 @@ var ExtensionsByLanguage = map[string][]string{
"Qt Script": {".qs"},
"R": {".r", ".rd", ".rsx"},
"RAML": {".raml"},
"RBS": {".rbs"},
"RDoc": {".rdoc"},
"REALbasic": {".rbbas", ".rbfrm", ".rbmnu", ".rbres", ".rbtbar", ".rbuistate"},
"REXX": {".rexx", ".pprx", ".rex"},
@ -1798,14 +1858,16 @@ var ExtensionsByLanguage = map[string][]string{
"Sass": {".sass"},
"Scala": {".scala", ".kojo", ".sbt", ".sc"},
"Scaml": {".scaml"},
"Scenic": {".scenic"},
"Scheme": {".scm", ".sch", ".sld", ".sls", ".sps", ".ss"},
"Scilab": {".sci", ".sce", ".tst"},
"Self": {".self"},
"ShaderLab": {".shader"},
"Shell": {".sh", ".bash", ".bats", ".cgi", ".command", ".env", ".fcgi", ".ksh", ".sh.in", ".tmux", ".tool", ".zsh", ".zsh-theme"},
"Shell": {".sh", ".bash", ".bats", ".cgi", ".command", ".fcgi", ".ksh", ".sh.in", ".tmux", ".tool", ".trigger", ".zsh", ".zsh-theme"},
"ShellSession": {".sh-session"},
"Shen": {".shen"},
"Sieve": {".sieve"},
"Simple File Verification": {".sfv"},
"Slash": {".sl"},
"Slice": {".ice"},
"Slim": {".slim"},
@ -1813,6 +1875,8 @@ var ExtensionsByLanguage = map[string][]string{
"Smali": {".smali"},
"Smalltalk": {".st", ".cs"},
"Smarty": {".tpl"},
"Smithy": {".smithy"},
"Snakemake": {".smk", ".snakefile"},
"Solidity": {".sol"},
"SourcePawn": {".sp", ".inc"},
"Spline Font Database": {".sfd"},
@ -1827,9 +1891,11 @@ var ExtensionsByLanguage = map[string][]string{
"SugarSS": {".sss"},
"SuperCollider": {".sc", ".scd"},
"Svelte": {".svelte"},
"Sway": {".sw"},
"Swift": {".swift"},
"SystemVerilog": {".sv", ".svh", ".vh"},
"TI Program": {".8xp", ".8xk", ".8xk.txt", ".8xp.txt"},
"TL-Verilog": {".tlv"},
"TLA": {".tla"},
"TOML": {".toml"},
"TSQL": {".sql"},
@ -1837,7 +1903,7 @@ var ExtensionsByLanguage = map[string][]string{
"TSX": {".tsx"},
"TXL": {".txl"},
"Talon": {".talon"},
"Tcl": {".tcl", ".adp", ".tcl.in", ".tm"},
"Tcl": {".tcl", ".adp", ".sdc", ".tcl.in", ".tm", ".xdc"},
"Tcsh": {".tcsh", ".csh"},
"TeX": {".tex", ".aux", ".bbx", ".cbx", ".cls", ".dtx", ".ins", ".lbx", ".ltx", ".mkii", ".mkiv", ".mkvi", ".sty", ".toc"},
"Tea": {".tea"},
@ -1858,7 +1924,7 @@ var ExtensionsByLanguage = map[string][]string{
"UnrealScript": {".uc"},
"UrWeb": {".ur", ".urs"},
"V": {".v"},
"VBA": {".bas", ".cls", ".frm", ".frx", ".vba"},
"VBA": {".bas", ".cls", ".frm", ".vba"},
"VBScript": {".vbs"},
"VCL": {".vcl"},
"VHDL": {".vhdl", ".vhd", ".vhf", ".vhi", ".vho", ".vhs", ".vht", ".vhw"},
@ -1870,13 +1936,17 @@ var ExtensionsByLanguage = map[string][]string{
"Vim Script": {".vim", ".vba", ".vimrc", ".vmb"},
"Vim Snippet": {".snip", ".snippet", ".snippets"},
"Visual Basic .NET": {".vb", ".vbhtml"},
"Visual Basic 6.0": {".bas", ".cls", ".ctl", ".dsr", ".frm"},
"Volt": {".volt"},
"Vue": {".vue"},
"Vyper": {".vy"},
"WDL": {".wdl"},
"WGSL": {".wgsl"},
"Wavefront Material": {".mtl"},
"Wavefront Object": {".obj"},
"Web Ontology Language": {".owl"},
"WebAssembly": {".wast", ".wat"},
"WebAssembly Interface Type": {".wit"},
"WebIDL": {".webidl"},
"WebVTT": {".vtt"},
"Whiley": {".whiley"},
@ -1891,7 +1961,7 @@ var ExtensionsByLanguage = map[string][]string{
"X PixMap": {".xpm", ".pm"},
"X10": {".x10"},
"XC": {".xc"},
"XML": {".xml", ".adml", ".admx", ".ant", ".axaml", ".axml", ".builds", ".ccproj", ".ccxml", ".clixml", ".cproject", ".cscfg", ".csdef", ".csl", ".csproj", ".ct", ".depproj", ".dita", ".ditamap", ".ditaval", ".dll.config", ".dotsettings", ".filters", ".fsproj", ".fxml", ".glade", ".gml", ".gmx", ".grxml", ".gst", ".hzp", ".iml", ".ivy", ".jelly", ".jsproj", ".kml", ".launch", ".mdpolicy", ".mjml", ".mm", ".mod", ".mxml", ".natvis", ".ncl", ".ndproj", ".nproj", ".nuspec", ".odd", ".osm", ".pkgproj", ".pluginspec", ".proj", ".props", ".ps1xml", ".psc1", ".pt", ".qhelp", ".rdf", ".res", ".resx", ".rs", ".rss", ".sch", ".scxml", ".sfproj", ".shproj", ".srdf", ".storyboard", ".sublime-snippet", ".targets", ".tml", ".ts", ".tsx", ".ui", ".urdf", ".ux", ".vbproj", ".vcxproj", ".vsixmanifest", ".vssettings", ".vstemplate", ".vxml", ".wixproj", ".workflow", ".wsdl", ".wsf", ".wxi", ".wxl", ".wxs", ".x3d", ".xacro", ".xaml", ".xib", ".xlf", ".xliff", ".xmi", ".xml.dist", ".xmp", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
"XML": {".xml", ".adml", ".admx", ".ant", ".axaml", ".axml", ".builds", ".ccproj", ".ccxml", ".clixml", ".cproject", ".cscfg", ".csdef", ".csl", ".csproj", ".ct", ".depproj", ".dita", ".ditamap", ".ditaval", ".dll.config", ".dotsettings", ".filters", ".fsproj", ".fxml", ".glade", ".gml", ".gmx", ".grxml", ".gst", ".hzp", ".iml", ".ivy", ".jelly", ".jsproj", ".kml", ".launch", ".mdpolicy", ".mjml", ".mm", ".mod", ".mxml", ".natvis", ".ncl", ".ndproj", ".nproj", ".nuspec", ".odd", ".osm", ".pkgproj", ".pluginspec", ".proj", ".props", ".ps1xml", ".psc1", ".pt", ".qhelp", ".rdf", ".res", ".resx", ".rs", ".rss", ".sch", ".scxml", ".sfproj", ".shproj", ".srdf", ".storyboard", ".sublime-snippet", ".sw", ".targets", ".tml", ".ts", ".tsx", ".ui", ".urdf", ".ux", ".vbproj", ".vcxproj", ".vsixmanifest", ".vssettings", ".vstemplate", ".vxml", ".wixproj", ".workflow", ".wsdl", ".wsf", ".wxi", ".wxl", ".wxs", ".x3d", ".xacro", ".xaml", ".xib", ".xlf", ".xliff", ".xmi", ".xml.dist", ".xmp", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
"XML Property List": {".plist", ".sttheme", ".tmcommand", ".tmlanguage", ".tmpreferences", ".tmsnippet", ".tmtheme"},
"XPages": {".xsp-config", ".xsp.metadata"},
"XProc": {".xpl", ".xproc"},
@ -1931,7 +2001,6 @@ var ExtensionsByLanguage = map[string][]string{
"q": {".q"},
"reStructuredText": {".rst", ".rest", ".rest.txt", ".rst.txt"},
"sed": {".sed"},
"wdl": {".wdl"},
"wisp": {".wisp"},
"xBase": {".prg", ".ch", ".prw"},
}

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -7,12 +7,15 @@ var LanguagesByFilename = map[string][]string{
".Rprofile": {"R"},
".XCompose": {"XCompose"},
".abbrev_defs": {"Emacs Lisp"},
".ackrc": {"Option List"},
".all-contributorsrc": {"JSON"},
".arcconfig": {"JSON"},
".atomignore": {"Ignore List"},
".auto-changelog": {"JSON"},
".babelignore": {"Ignore List"},
".babelrc": {"JSON with Comments"},
".bash_aliases": {"Shell"},
".bash_functions": {"Shell"},
".bash_history": {"Shell"},
".bash_logout": {"Shell"},
".bash_profile": {"Shell"},
@ -37,8 +40,18 @@ var LanguagesByFilename = map[string][]string{
".eleventyignore": {"Ignore List"},
".emacs": {"Emacs Lisp"},
".emacs.desktop": {"Emacs Lisp"},
".env": {"Shell"},
".env.example": {"Shell"},
".env": {"Dotenv"},
".env.ci": {"Dotenv"},
".env.dev": {"Dotenv"},
".env.development": {"Dotenv"},
".env.development.local": {"Dotenv"},
".env.example": {"Dotenv"},
".env.local": {"Dotenv"},
".env.prod": {"Dotenv"},
".env.production": {"Dotenv"},
".env.staging": {"Dotenv"},
".env.test": {"Dotenv"},
".env.testing": {"Dotenv"},
".eslintignore": {"Ignore List"},
".eslintrc.json": {"JSON with Comments"},
".exrc": {"Vim Script"},
@ -65,6 +78,7 @@ var LanguagesByFilename = map[string][]string{
".jshintrc": {"JSON with Comments"},
".jslintrc": {"JSON with Comments"},
".kshrc": {"Shell"},
".latexmkrc": {"Perl"},
".login": {"Shell"},
".luacheckrc": {"Lua"},
".markdownlintignore": {"Ignore List"},
@ -82,10 +96,13 @@ var LanguagesByFilename = map[string][]string{
".project": {"XML"},
".pryrc": {"Ruby"},
".pylintrc": {"INI"},
".scalafix.conf": {"HOCON"},
".scalafmt.conf": {"HOCON"},
".shellcheckrc": {"ShellCheck Config"},
".simplecov": {"Ruby"},
".spacemacs": {"Emacs Lisp"},
".stylelintignore": {"Ignore List"},
".swcrc": {"JSON with Comments"},
".tern-config": {"JSON"},
".tern-project": {"JSON"},
".tm_properties": {"TextMate Properties"},
@ -140,17 +157,21 @@ var LanguagesByFilename = map[string][]string{
"Gemfile.lock": {"Gemfile.lock"},
"Gopkg.lock": {"TOML"},
"Guardfile": {"Ruby"},
"HOSTS": {"Hosts File", "INI"},
"INSTALL": {"Text"},
"INSTALL.mysql": {"Text"},
"JUSTFILE": {"Just"},
"Jakefile": {"JavaScript"},
"Jarfile": {"Ruby"},
"Jenkinsfile": {"Groovy"},
"Justfile": {"Just"},
"Kbuild": {"Makefile"},
"LICENSE": {"Text"},
"LICENSE.mysql": {"Text"},
"Lexer.x": {"Lex"},
"MANIFEST.MF": {"JAR Manifest"},
"MD5SUMS": {"Checksums"},
"MODULE.bazel": {"Starlark"},
"Makefile": {"Makefile"},
"Makefile.PL": {"Perl"},
"Makefile.am": {"Makefile"},
@ -188,13 +209,14 @@ var LanguagesByFilename = map[string][]string{
"Settings.StyleCop": {"XML"},
"Singularity": {"Singularity"},
"Slakefile": {"LiveScript"},
"Snakefile": {"Python"},
"Snakefile": {"Snakemake"},
"Snapfile": {"Ruby"},
"Steepfile": {"Ruby"},
"Thorfile": {"Ruby"},
"Tiltfile": {"Starlark"},
"Vagrantfile": {"Ruby"},
"WORKSPACE": {"Starlark"},
"WORKSPACE.bazel": {"Starlark"},
"Web.Debug.config": {"XML"},
"Web.Release.config": {"XML"},
"Web.config": {"XML"},
@ -207,6 +229,7 @@ var LanguagesByFilename = map[string][]string{
"_vimrc": {"Vim Script"},
"abbrev_defs": {"Emacs Lisp"},
"ack": {"Perl"},
"ackrc": {"Option List"},
"ant.xml": {"Ant Build System"},
"apache2.conf": {"ApacheConf"},
"api-extractor.json": {"JSON with Comments"},
@ -238,6 +261,7 @@ var LanguagesByFilename = map[string][]string{
"expr-dist": {"R"},
"file_contexts": {"SELinux Policy"},
"firestore.rules": {"Cloud Firestore Security Rules"},
"flake.lock": {"JSON"},
"fonts.alias": {"X Font Directory Index"},
"fonts.dir": {"X Font Directory Index"},
"fonts.scale": {"X Font Directory Index"},
@ -248,19 +272,24 @@ var LanguagesByFilename = map[string][]string{
"glide.lock": {"YAML"},
"go.mod": {"Go Module"},
"go.sum": {"Go Checksums"},
"go.work": {"Go Workspace"},
"go.work.sum": {"Go Checksums"},
"gradlew": {"Shell"},
"gvimrc": {"Vim Script"},
"haproxy.cfg": {"HAProxy"},
"hosts": {"Hosts File", "INI"},
"httpd.conf": {"ApacheConf"},
"initial_sids": {"SELinux Policy"},
"inputrc": {"Readline Config"},
"installscript.qs": {"Qt Script"},
"jsconfig.json": {"JSON with Comments"},
"justfile": {"Just"},
"kakrc": {"KakouneScript"},
"keep.me": {"Text"},
"kshrc": {"Shell"},
"language-configuration.json": {"JSON with Comments"},
"language-subtag-registry.txt": {"Record Jar"},
"latexmkrc": {"Perl"},
"ld.script": {"Linker Script"},
"lexer.x": {"Lex"},
"login": {"Shell"},
@ -277,6 +306,7 @@ var LanguagesByFilename = map[string][]string{
"mkfile": {"Makefile"},
"mmn": {"Roff"},
"mmt": {"Roff"},
"mocha.opts": {"Option List"},
"nanorc": {"nanorc"},
"nextflow.config": {"Nextflow"},
"nginx.conf": {"Nginx"},
@ -287,10 +317,12 @@ var LanguagesByFilename = map[string][]string{
"package.use.mask": {"Text"},
"package.use.stable.mask": {"Text"},
"packages.config": {"XML"},
"pdm.lock": {"TOML"},
"poetry.lock": {"TOML"},
"pom.xml": {"Maven POM"},
"port_contexts": {"SELinux Policy"},
"profile": {"Shell"},
"project.godot": {"Godot Resource"},
"pylintrc": {"INI"},
"read.me": {"Text"},
"readme.1st": {"Text"},
@ -316,6 +348,7 @@ var LanguagesByFilename = map[string][]string{
"use.mask": {"Text"},
"use.stable.mask": {"Text"},
"vimrc": {"Vim Script"},
"vlcrc": {"INI"},
"wscript": {"Python"},
"xcompose": {"XCompose"},
"yarn.lock": {"YAML"},

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -14,7 +14,9 @@ var LanguagesGroup = map[string]string{
"ECLiPSe": "prolog",
"Easybuild": "Python",
"Ecere Projects": "JavaScript",
"Ecmarkup": "HTML",
"EditorConfig": "INI",
"Elvish Transcript": "Elvish",
"Filterscript": "RenderScript",
"Fortran": "Fortran",
"Fortran Free Form": "Fortran",
@ -46,6 +48,10 @@ var LanguagesGroup = map[string]string{
"Motorola 68K Assembly": "Assembly",
"NPM Config": "INI",
"NumPy": "Python",
"OASv2-json": "OpenAPI Specification v2",
"OASv2-yaml": "OpenAPI Specification v2",
"OASv3-json": "OpenAPI Specification v3",
"OASv3-yaml": "OpenAPI Specification v3",
"OpenCL": "C",
"OpenRC runscript": "Shell",
"Parrot Assembly": "Parrot",
@ -54,11 +60,14 @@ var LanguagesGroup = map[string]string{
"PostCSS": "CSS",
"Python console": "Python",
"Python traceback": "Python",
"RBS": "Ruby",
"Readline Config": "INI",
"ReasonLIGO": "LigoLANG",
"Roff Manpage": "Roff",
"SSH Config": "INI",
"STON": "Smalltalk",
"Simple File Verification": "Checksums",
"Snakemake": "Python",
"TSX": "TypeScript",
"Tcsh": "Shell",
"Unified Parallel C": "C",

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -96,6 +96,7 @@ var IDByLanguage = map[string]int{
"Charity": 56,
"Checksums": 372063053,
"ChucK": 57,
"Circom": 1042332086,
"Cirru": 58,
"Clarion": 59,
"Clarity": 91493841,
@ -125,9 +126,11 @@ var IDByLanguage = map[string]int{
"Cue Sheet": 942714150,
"Curry": 439829048,
"Cycript": 78,
"Cypher": 850806976,
"Cython": 79,
"D": 80,
"D-ObjDump": 81,
"D2": 37531557,
"DIGITAL Command Language": 82,
"DM": 83,
"DNS Zone": 84,
@ -143,6 +146,7 @@ var IDByLanguage = map[string]int{
"DirectX 3D File": 201049282,
"Dockerfile": 89,
"Dogescript": 90,
"Dotenv": 111148035,
"Dylan": 91,
"E": 92,
"E-mail": 529653389,
@ -155,12 +159,14 @@ var IDByLanguage = map[string]int{
"Earthly": 963512632,
"Easybuild": 342840477,
"Ecere Projects": 98,
"Ecmarkup": 844766630,
"EditorConfig": 96139566,
"Edje Data Collection": 342840478,
"Eiffel": 99,
"Elixir": 100,
"Elm": 101,
"Elvish": 570996448,
"Elvish Transcript": 452025714,
"Emacs Lisp": 102,
"EmberScript": 103,
"Erlang": 104,
@ -218,6 +224,8 @@ var IDByLanguage = map[string]int{
"Go": 132,
"Go Checksums": 1054391671,
"Go Module": 947461016,
"Go Workspace": 934546256,
"Godot Resource": 738107771,
"Golo": 133,
"Gosu": 134,
"Grace": 135,
@ -248,6 +256,7 @@ var IDByLanguage = map[string]int{
"Haxe": 158,
"HiveQL": 931814087,
"HolyC": 928121743,
"Hosts File": 231021894,
"Hy": 159,
"HyPhy": 160,
"IDL": 161,
@ -257,7 +266,9 @@ var IDByLanguage = map[string]int{
"Idris": 165,
"Ignore List": 74444240,
"ImageJ Macro": 575143428,
"Imba": 1057618448,
"Inform 7": 166,
"Ink": 838252715,
"Inno Setup": 167,
"Io": 168,
"Ioke": 169,
@ -265,6 +276,7 @@ var IDByLanguage = map[string]int{
"Isabelle ROOT": 171,
"J": 172,
"JAR Manifest": 447261135,
"JCL": 316620079,
"JFlex": 173,
"JSON": 174,
"JSON with Comments": 423,
@ -287,12 +299,15 @@ var IDByLanguage = map[string]int{
"Jsonnet": 664885656,
"Julia": 184,
"Jupyter Notebook": 185,
"Just": 128447695,
"KRL": 186,
"Kaitai Struct": 818804755,
"KakouneScript": 603336474,
"KerboScript": 59716426,
"KiCad Layout": 187,
"KiCad Legacy Layout": 140848857,
"KiCad Schematic": 622447435,
"Kickstart": 692635484,
"Kit": 188,
"Kotlin": 189,
"Kusto": 225697190,
@ -328,6 +343,7 @@ var IDByLanguage = map[string]int{
"M4Sugar": 216,
"MATLAB": 225,
"MAXScript": 217,
"MDX": 512838272,
"MLIR": 448253929,
"MQL4": 426,
"MQL5": 427,
@ -343,6 +359,7 @@ var IDByLanguage = map[string]int{
"Maven POM": 226,
"Max": 227,
"Mercury": 229,
"Mermaid": 385992043,
"Meson": 799141244,
"Metal": 230,
"Microsoft Developer Studio Project": 800983837,
@ -388,6 +405,11 @@ var IDByLanguage = map[string]int{
"Nu": 253,
"NumPy": 254,
"Nunjucks": 461856962,
"Nushell": 446573572,
"OASv2-json": 834374816,
"OASv2-yaml": 105187618,
"OASv3-json": 980062566,
"OASv3-yaml": 51239111,
"OCaml": 255,
"ObjDump": 256,
"Object Data Instance Notation": 985227236,
@ -400,6 +422,8 @@ var IDByLanguage = map[string]int{
"Opa": 261,
"Opal": 262,
"Open Policy Agent": 840483232,
"OpenAPI Specification v2": 848295328,
"OpenAPI Specification v3": 557959099,
"OpenCL": 263,
"OpenEdge ABL": 264,
"OpenQASM": 153739399,
@ -407,16 +431,19 @@ var IDByLanguage = map[string]int{
"OpenSCAD": 266,
"OpenStep Property List": 598917541,
"OpenType Feature File": 374317347,
"Option List": 723589315,
"Org": 267,
"Ox": 268,
"Oxygene": 269,
"Oz": 270,
"P4": 348895984,
"PDDL": 736235603,
"PEG.js": 81442128,
"PHP": 272,
"PLSQL": 273,
"PLpgSQL": 274,
"POV-Ray SDL": 275,
"Pact": 756774415,
"Pan": 276,
"Papyrus": 277,
"Parrot": 278,
@ -435,6 +462,7 @@ var IDByLanguage = map[string]int{
"Pod": 288,
"Pod 6": 155357471,
"PogoScript": 289,
"Polar": 839112914,
"Pony": 290,
"Portugol": 832391833,
"PostCSS": 262764437,
@ -456,6 +484,7 @@ var IDByLanguage = map[string]int{
"Pure Data": 300,
"PureBasic": 301,
"PureScript": 302,
"Pyret": 252961827,
"Python": 303,
"Python console": 428,
"Python traceback": 304,
@ -466,6 +495,7 @@ var IDByLanguage = map[string]int{
"Quake": 375265331,
"R": 307,
"RAML": 308,
"RBS": 899227493,
"RDoc": 309,
"REALbasic": 310,
"REXX": 311,
@ -521,6 +551,7 @@ var IDByLanguage = map[string]int{
"Sass": 340,
"Scala": 341,
"Scaml": 342,
"Scenic": 619814037,
"Scheme": 343,
"Scilab": 344,
"Self": 345,
@ -530,6 +561,7 @@ var IDByLanguage = map[string]int{
"ShellSession": 347,
"Shen": 348,
"Sieve": 208976687,
"Simple File Verification": 735623761,
"Singularity": 987024632,
"Slash": 349,
"Slice": 894641667,
@ -538,6 +570,8 @@ var IDByLanguage = map[string]int{
"Smali": 351,
"Smalltalk": 352,
"Smarty": 353,
"Smithy": 1027892786,
"Snakemake": 151241392,
"Solidity": 237469032,
"Soong": 222900098,
"SourcePawn": 354,
@ -553,9 +587,11 @@ var IDByLanguage = map[string]int{
"SugarSS": 826404698,
"SuperCollider": 361,
"Svelte": 928734530,
"Sway": 271471144,
"Swift": 362,
"SystemVerilog": 363,
"TI Program": 422,
"TL-Verilog": 118656070,
"TLA": 364,
"TOML": 365,
"TSQL": 918334941,
@ -597,13 +633,17 @@ var IDByLanguage = map[string]int{
"Vim Script": 388,
"Vim Snippet": 81265970,
"Visual Basic .NET": 389,
"Visual Basic 6.0": 679594952,
"Volt": 390,
"Vue": 391,
"Vyper": 1055641948,
"WDL": 374521672,
"WGSL": 836605993,
"Wavefront Material": 392,
"Wavefront Object": 393,
"Web Ontology Language": 394,
"WebAssembly": 956556503,
"WebAssembly Interface Type": 134534086,
"WebIDL": 395,
"WebVTT": 658679714,
"Wget Config": 668457123,
@ -663,7 +703,6 @@ var IDByLanguage = map[string]int{
"reStructuredText": 419,
"robots.txt": 674736065,
"sed": 847830017,
"wdl": 374521672,
"wisp": 420,
"xBase": 421,
}

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -82,6 +82,7 @@ var LanguagesByInterpreter = map[string][]string{
"nextflow": {"Nextflow"},
"node": {"JavaScript"},
"nodejs": {"JavaScript"},
"nu": {"Nushell"},
"nush": {"Nu"},
"ocaml": {"OCaml", "ReScript"},
"ocamlrun": {"OCaml"},
@ -98,6 +99,9 @@ var LanguagesByInterpreter = map[string][]string{
"pike": {"Pike"},
"pil": {"PicoLisp"},
"pwsh": {"PowerShell"},
"py": {"Python"},
"pypy": {"Python"},
"pypy3": {"Python"},
"python": {"Python"},
"python2": {"Python"},
"python3": {"Python"},
@ -118,8 +122,10 @@ var LanguagesByInterpreter = map[string][]string{
"runghc": {"Haskell"},
"runhaskell": {"Haskell"},
"runhugs": {"Haskell"},
"rust-script": {"Rust"},
"sbcl": {"Common Lisp"},
"scala": {"Scala"},
"scenic": {"Scenic"},
"scheme": {"Scheme"},
"sclang": {"SuperCollider"},
"scsynth": {"SuperCollider"},

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -56,6 +56,7 @@ var LanguagesMime = map[string]string{
"Eagle": "text/xml",
"Easybuild": "text/x-python",
"Ecere Projects": "application/json",
"Ecmarkup": "text/html",
"EditorConfig": "text/x-properties",
"Edje Data Collection": "text/x-c++src",
"Eiffel": "text/x-eiffel",
@ -133,6 +134,7 @@ var LanguagesMime = map[string]string{
"Lua": "text/x-lua",
"M": "text/x-mumps",
"MATLAB": "text/x-octave",
"MDX": "text/x-gfm",
"MTML": "text/html",
"MUF": "text/x-forth",
"Makefile": "text/x-cmake",
@ -154,11 +156,17 @@ var LanguagesMime = map[string]string{
"Nginx": "text/x-nginx-conf",
"Nu": "text/x-scheme",
"NumPy": "text/x-python",
"Nushell": "text/x-sh",
"OASv2-json": "application/json",
"OASv2-yaml": "text/x-yaml",
"OASv3-json": "application/json",
"OASv3-yaml": "text/x-yaml",
"OCaml": "text/x-ocaml",
"Objective-C": "text/x-objectivec",
"Objective-C++": "text/x-objectivec",
"OpenCL": "text/x-csrc",
"OpenRC runscript": "text/x-sh",
"Option List": "text/x-sh",
"Oz": "text/x-oz",
"PEG.js": "text/javascript",
"PHP": "application/x-httpd-php",
@ -178,6 +186,7 @@ var LanguagesMime = map[string]string{
"Qt Script": "text/javascript",
"R": "text/x-rsrc",
"RAML": "text/x-yaml",
"RBS": "text/x-ruby",
"RMarkdown": "text/x-gfm",
"RPM Spec": "text/x-rpm-spec",
"Raku": "text/x-perl",
@ -207,14 +216,18 @@ var LanguagesMime = map[string]string{
"ShellCheck Config": "text/x-properties",
"ShellSession": "text/x-sh",
"Sieve": "application/sieve",
"Simple File Verification": "text/x-properties",
"Slim": "text/x-slim",
"Smalltalk": "text/x-stsrc",
"Smarty": "text/x-smarty",
"Smithy": "text/x-csrc",
"Snakemake": "text/x-python",
"Squirrel": "text/x-c++src",
"Standard ML": "text/x-ocaml",
"Starlark": "text/x-python",
"StringTemplate": "text/html",
"Svelte": "text/html",
"Sway": "text/x-rustsrc",
"Swift": "text/x-swift",
"SystemVerilog": "text/x-systemverilog",
"TOML": "text/x-toml",
@ -239,8 +252,10 @@ var LanguagesMime = map[string]string{
"Velocity Template Language": "text/velocity",
"Verilog": "text/x-verilog",
"Visual Basic .NET": "text/x-vb",
"Visual Basic 6.0": "text/x-vb",
"Volt": "text/x-d",
"WebAssembly": "text/x-common-lisp",
"WebAssembly Interface Type": "text/x-webidl",
"WebIDL": "text/x-webidl",
"Win32 Message File": "text/x-properties",
"Windows Registry Entries": "text/x-properties",

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -138,6 +138,7 @@ var LanguagesType = map[string]int{
"Charity": 2,
"Checksums": 1,
"ChucK": 2,
"Circom": 2,
"Cirru": 2,
"Clarion": 2,
"Clarity": 2,
@ -167,9 +168,11 @@ var LanguagesType = map[string]int{
"Cue Sheet": 1,
"Curry": 2,
"Cycript": 2,
"Cypher": 2,
"Cython": 2,
"D": 2,
"D-ObjDump": 1,
"D2": 3,
"DIGITAL Command Language": 2,
"DM": 2,
"DNS Zone": 1,
@ -185,6 +188,7 @@ var LanguagesType = map[string]int{
"DirectX 3D File": 1,
"Dockerfile": 2,
"Dogescript": 2,
"Dotenv": 1,
"Dylan": 2,
"E": 2,
"E-mail": 1,
@ -197,12 +201,14 @@ var LanguagesType = map[string]int{
"Earthly": 2,
"Easybuild": 1,
"Ecere Projects": 1,
"Ecmarkup": 3,
"EditorConfig": 1,
"Edje Data Collection": 1,
"Eiffel": 2,
"Elixir": 2,
"Elm": 2,
"Elvish": 2,
"Elvish Transcript": 2,
"Emacs Lisp": 2,
"EmberScript": 2,
"Erlang": 2,
@ -260,6 +266,8 @@ var LanguagesType = map[string]int{
"Go": 2,
"Go Checksums": 1,
"Go Module": 1,
"Go Workspace": 1,
"Godot Resource": 1,
"Golo": 2,
"Gosu": 2,
"Grace": 2,
@ -290,6 +298,7 @@ var LanguagesType = map[string]int{
"Haxe": 2,
"HiveQL": 2,
"HolyC": 2,
"Hosts File": 1,
"Hy": 2,
"HyPhy": 2,
"IDL": 2,
@ -299,7 +308,9 @@ var LanguagesType = map[string]int{
"Idris": 2,
"Ignore List": 1,
"ImageJ Macro": 2,
"Imba": 2,
"Inform 7": 2,
"Ink": 2,
"Inno Setup": 2,
"Io": 2,
"Ioke": 2,
@ -307,6 +318,7 @@ var LanguagesType = map[string]int{
"Isabelle ROOT": 2,
"J": 2,
"JAR Manifest": 1,
"JCL": 2,
"JFlex": 2,
"JSON": 1,
"JSON with Comments": 1,
@ -329,12 +341,15 @@ var LanguagesType = map[string]int{
"Jsonnet": 2,
"Julia": 2,
"Jupyter Notebook": 3,
"Just": 2,
"KRL": 2,
"Kaitai Struct": 2,
"KakouneScript": 2,
"KerboScript": 2,
"KiCad Layout": 1,
"KiCad Legacy Layout": 1,
"KiCad Schematic": 1,
"Kickstart": 1,
"Kit": 3,
"Kotlin": 2,
"Kusto": 1,
@ -370,6 +385,7 @@ var LanguagesType = map[string]int{
"M4Sugar": 2,
"MATLAB": 2,
"MAXScript": 2,
"MDX": 3,
"MLIR": 2,
"MQL4": 2,
"MQL5": 2,
@ -385,6 +401,7 @@ var LanguagesType = map[string]int{
"Maven POM": 1,
"Max": 2,
"Mercury": 2,
"Mermaid": 3,
"Meson": 2,
"Metal": 2,
"Microsoft Developer Studio Project": 1,
@ -430,6 +447,11 @@ var LanguagesType = map[string]int{
"Nu": 2,
"NumPy": 2,
"Nunjucks": 3,
"Nushell": 2,
"OASv2-json": 1,
"OASv2-yaml": 1,
"OASv3-json": 1,
"OASv3-yaml": 1,
"OCaml": 2,
"ObjDump": 1,
"Object Data Instance Notation": 1,
@ -442,6 +464,8 @@ var LanguagesType = map[string]int{
"Opa": 2,
"Opal": 2,
"Open Policy Agent": 2,
"OpenAPI Specification v2": 1,
"OpenAPI Specification v3": 1,
"OpenCL": 2,
"OpenEdge ABL": 2,
"OpenQASM": 2,
@ -449,16 +473,19 @@ var LanguagesType = map[string]int{
"OpenSCAD": 2,
"OpenStep Property List": 1,
"OpenType Feature File": 1,
"Option List": 1,
"Org": 4,
"Ox": 2,
"Oxygene": 2,
"Oz": 2,
"P4": 2,
"PDDL": 2,
"PEG.js": 2,
"PHP": 2,
"PLSQL": 2,
"PLpgSQL": 2,
"POV-Ray SDL": 2,
"Pact": 2,
"Pan": 2,
"Papyrus": 2,
"Parrot": 2,
@ -477,6 +504,7 @@ var LanguagesType = map[string]int{
"Pod": 4,
"Pod 6": 4,
"PogoScript": 2,
"Polar": 2,
"Pony": 2,
"Portugol": 2,
"PostCSS": 3,
@ -498,6 +526,7 @@ var LanguagesType = map[string]int{
"Pure Data": 1,
"PureBasic": 2,
"PureScript": 2,
"Pyret": 2,
"Python": 2,
"Python console": 2,
"Python traceback": 1,
@ -508,6 +537,7 @@ var LanguagesType = map[string]int{
"Quake": 2,
"R": 2,
"RAML": 3,
"RBS": 1,
"RDoc": 4,
"REALbasic": 2,
"REXX": 2,
@ -563,6 +593,7 @@ var LanguagesType = map[string]int{
"Sass": 3,
"Scala": 2,
"Scaml": 3,
"Scenic": 2,
"Scheme": 2,
"Scilab": 2,
"Self": 2,
@ -572,6 +603,7 @@ var LanguagesType = map[string]int{
"ShellSession": 2,
"Shen": 2,
"Sieve": 2,
"Simple File Verification": 1,
"Singularity": 2,
"Slash": 2,
"Slice": 2,
@ -580,6 +612,8 @@ var LanguagesType = map[string]int{
"Smali": 2,
"Smalltalk": 2,
"Smarty": 2,
"Smithy": 2,
"Snakemake": 2,
"Solidity": 2,
"Soong": 1,
"SourcePawn": 2,
@ -595,9 +629,11 @@ var LanguagesType = map[string]int{
"SugarSS": 3,
"SuperCollider": 2,
"Svelte": 3,
"Sway": 2,
"Swift": 2,
"SystemVerilog": 2,
"TI Program": 2,
"TL-Verilog": 2,
"TLA": 2,
"TOML": 1,
"TSQL": 2,
@ -639,13 +675,17 @@ var LanguagesType = map[string]int{
"Vim Script": 2,
"Vim Snippet": 3,
"Visual Basic .NET": 2,
"Visual Basic 6.0": 2,
"Volt": 2,
"Vue": 3,
"Vyper": 2,
"WDL": 2,
"WGSL": 2,
"Wavefront Material": 1,
"Wavefront Object": 1,
"Web Ontology Language": 1,
"WebAssembly": 2,
"WebAssembly Interface Type": 1,
"WebIDL": 2,
"WebVTT": 1,
"Wget Config": 1,
@ -705,7 +745,6 @@ var LanguagesType = map[string]int{
"reStructuredText": 4,
"robots.txt": 1,
"sed": 2,
"wdl": 2,
"wisp": 2,
"xBase": 2,
}

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -36,7 +36,7 @@ var VendorMatchers = []regex.EnryRegexp{
regex.MustCompile(`(^|/)\.indent\.pro`),
regex.MustCompile(`(\.|-)min\.(js|css)$`),
regex.MustCompile(`([^\s]*)import\.(css|less|scss|styl)$`),
regex.MustCompileRuby(`(^|/)bootstrap([^/.]*)(?=\.).*\.(js|css|less|scss|styl)$`),
regex.MustCompile(`(^|/)bootstrap([^/.]*)(\..*)?\.(js|css|less|scss|styl)$`),
regex.MustCompile(`(^|/)custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$`),
regex.MustCompile(`(^|/)font-?awesome\.(css|less|scss|styl)$`),
regex.MustCompile(`(^|/)font-?awesome/.*\.(css|less|scss|styl)$`),
@ -159,7 +159,6 @@ var VendorMatchers = []regex.EnryRegexp{
regex.MustCompile(`(^|/)foundation(\..*)?\.js$`),
regex.MustCompile(`(^|/)Vagrantfile$`),
regex.MustCompile(`(^|/)\.[Dd][Ss]_[Ss]tore$`),
regex.MustCompile(`(^|/)vignettes/`),
regex.MustCompile(`(^|/)inst/extdata/`),
regex.MustCompile(`(^|/)octicons\.css`),
regex.MustCompile(`(^|/)sprockets-octicons\.scss`),
@ -172,7 +171,9 @@ var VendorMatchers = []regex.EnryRegexp{
regex.MustCompile(`(^|/)Jenkinsfile$`),
regex.MustCompile(`(^|/)\.gitpod\.Dockerfile$`),
regex.MustCompile(`(^|/)\.github/`),
regex.MustCompile(`(^|/)\.obsidian/`),
regex.MustCompile(`(^|/)\.teamcity/`),
}
// FastVendorMatcher is equivalent to matching any of the VendorMatchers.
var FastVendorMatcher = regex.MustCompileRuby(`(?:^(?:(?:[Dd]ependencies/)|(?:debian/)|(?:deps/)|(?:rebar$)))|(?:(?:^|/)(?:(?:BuddyBuildSDK\.framework/)|(?:Carthage/)|(?:Chart\.js$)|(?:Control\.FullScreen\.css)|(?:Control\.FullScreen\.js)|(?:Crashlytics\.framework/)|(?:Fabric\.framework/)|(?:Godeps/_workspace/)|(?:Jenkinsfile$)|(?:Leaflet\.Coordinates-\d+\.\d+\.\d+\.src\.js$)|(?:MathJax/)|(?:MochiKit\.js$)|(?:RealmSwift\.framework)|(?:Realm\.framework)|(?:Sparkle/)|(?:Vagrantfile$)|(?:[Bb]ourbon/.*\.(css|less|scss|styl)$)|(?:[Cc]ode[Mm]irror/(\d+\.\d+/)?(lib|mode|theme|addon|keymap|demo))|(?:[Ee]xtern(als?)?/)|(?:[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$)|(?:[Pp]ackages\/.+\.\d+\/)|(?:[Ss]pecs?/fixtures/)|(?:[Tt]ests?/fixtures/)|(?:[Vv]+endor/)|(?:\.[Dd][Ss]_[Ss]tore$)|(?:\.gitattributes$)|(?:\.github/)|(?:\.gitignore$)|(?:\.gitmodules$)|(?:\.gitpod\.Dockerfile$)|(?:\.google_apis/)|(?:\.indent\.pro)|(?:\.mvn/wrapper/)|(?:\.osx$)|(?:\.sublime-project)|(?:\.sublime-workspace)|(?:\.vscode/)|(?:\.yarn/plugins/)|(?:\.yarn/releases/)|(?:\.yarn/sdks/)|(?:\.yarn/unplugged/)|(?:\.yarn/versions/)|(?:_esy$)|(?:ace-builds/)|(?:aclocal\.m4)|(?:activator$)|(?:activator\.bat$)|(?:admin_media/)|(?:angular([^.]*)\.js$)|(?:animate\.(css|less|scss|styl)$)|(?:bootbox\.js)|(?:bootstrap([^/.]*)(?=\.).*\.(js|css|less|scss|styl)$)|(?:bootstrap-datepicker/)|(?:bower_components/)|(?:bulma\.(css|sass|scss)$)|(?:cache/)|(?:ckeditor\.js$)|(?:config\.guess$)|(?:config\.sub$)|(?:configure$)|(?:controls\.js$)|(?:cordova([^.]*)\.js$)|(?:cordova\-\d\.\d(\.\d)?\.js$)|(?:cpplint\.py)|(?:custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$)|(?:dist/)|(?:docs?/_?(build|themes?|templates?|static)/)|(?:dojo\.js$)|(?:dotnet-install\.(ps1|sh)$)|(?:dragdrop\.js$)|(?:effects\.js$)|(?:env/)|(?:erlang\.mk)|(?:extjs/.*?\.html$)|(?:extjs/.*?\.js$)|(?:extjs/.*?\.properties$)|(?:extjs/.*?\.txt$)|(?:extjs/.*?\.xml$)|(?:extjs/\.sencha/)|(?:extjs/builds/)|(?:extjs/cmd/)|(?:extjs/docs/)|(?:extjs/examples/)|(?:extjs/locale/)|(?:extjs/packages/)|(?:extjs/plugins/)|(?:extjs/resources/)|(?:extjs/src/)|(?:extjs/welcome/)|(?:fabfile\.py$)|(?:flow-typed/.*\.js$)|(?:font-?awesome/.*\.(css|less|scss|styl)$)|(?:font-?awesome\.(css|less|scss|styl)$)|(?:fontello(.*?)\.css$)|(?:foundation(\..*)?\.js$)|(?:foundation\.(css|less|scss|styl)$)|(?:fuelux\.js)|(?:gradle/wrapper/)|(?:gradlew$)|(?:gradlew\.bat$)|(?:html5shiv\.js$)|(?:inst/extdata/)|(?:jquery([^.]*)\.js$)|(?:jquery([^.]*)\.unobtrusive\-ajax\.js$)|(?:jquery([^.]*)\.validate(\.unobtrusive)?\.js$)|(?:jquery\-\d\.\d+(\.\d+)?\.js$)|(?:jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?\.(js|css)$)|(?:jquery\.(ui|effects)\.([^.]*)\.(js|css)$)|(?:jquery\.dataTables\.js)|(?:jquery\.fancybox\.(js|css))|(?:jquery\.fileupload(-\w+)?\.js$)|(?:jquery\.fn\.gantt\.js)|(?:knockout-(\d+\.){3}(debug\.)?js$)|(?:leaflet\.draw-src\.js)|(?:leaflet\.draw\.css)|(?:leaflet\.spin\.js)|(?:libtool\.m4)|(?:ltoptions\.m4)|(?:ltsugar\.m4)|(?:ltversion\.m4)|(?:lt~obsolete\.m4)|(?:materialize\.(css|less|scss|styl|js)$)|(?:modernizr\-\d\.\d+(\.\d+)?\.js$)|(?:modernizr\.custom\.\d+\.js$)|(?:mootools([^.]*)\d+\.\d+.\d+([^.]*)\.js$)|(?:mvnw$)|(?:mvnw\.cmd$)|(?:node_modules/)|(?:normalize\.(css|less|scss|styl)$)|(?:octicons\.css)|(?:pdf\.worker\.js)|(?:proguard-rules\.pro$)|(?:proguard\.pro$)|(?:prototype(.*)\.js$)|(?:puphpet/)|(?:react(-[^.]*)?\.js$)|(?:run\.n$)|(?:select2/.*\.(css|scss|js)$)|(?:shBrush([^.]*)\.js$)|(?:shCore\.js$)|(?:shLegacy\.js$)|(?:skeleton\.(css|less|scss|styl)$)|(?:slick\.\w+.js$)|(?:sprockets-octicons\.scss)|(?:testdata/)|(?:tiny_mce([^.]*)\.js$)|(?:tiny_mce/(langs|plugins|themes|utils))|(?:vendors?/)|(?:vignettes/)|(?:waf$)|(?:wicket-leaflet\.js)|(?:yahoo-([^.]*)\.js$)|(?:yui([^.]*)\.js$)))|(?:(.*?)\.d\.ts$)|(?:(3rd|[Tt]hird)[-_]?[Pp]arty/)|(?:([^\s]*)import\.(css|less|scss|styl)$)|(?:(\.|-)min\.(js|css)$)|(?:(^|\/)d3(\.v\d+)?([^.]*)\.js$)|(?:-vsdoc\.js$)|(?:\.imageset/)|(?:\.intellisense\.js$)|(?:\.xctemplate/)`)
var FastVendorMatcher = regex.MustCompile(`(?:^(?:(?:[Dd]ependencies/)|(?:debian/)|(?:deps/)|(?:rebar$)))|(?:(?:^|/)(?:(?:BuddyBuildSDK\.framework/)|(?:Carthage/)|(?:Chart\.js$)|(?:Control\.FullScreen\.css)|(?:Control\.FullScreen\.js)|(?:Crashlytics\.framework/)|(?:Fabric\.framework/)|(?:Godeps/_workspace/)|(?:Jenkinsfile$)|(?:Leaflet\.Coordinates-\d+\.\d+\.\d+\.src\.js$)|(?:MathJax/)|(?:MochiKit\.js$)|(?:RealmSwift\.framework)|(?:Realm\.framework)|(?:Sparkle/)|(?:Vagrantfile$)|(?:[Bb]ourbon/.*\.(css|less|scss|styl)$)|(?:[Cc]ode[Mm]irror/(\d+\.\d+/)?(lib|mode|theme|addon|keymap|demo))|(?:[Ee]xtern(als?)?/)|(?:[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$)|(?:[Pp]ackages\/.+\.\d+\/)|(?:[Ss]pecs?/fixtures/)|(?:[Tt]ests?/fixtures/)|(?:[Vv]+endor/)|(?:\.[Dd][Ss]_[Ss]tore$)|(?:\.gitattributes$)|(?:\.github/)|(?:\.gitignore$)|(?:\.gitmodules$)|(?:\.gitpod\.Dockerfile$)|(?:\.google_apis/)|(?:\.indent\.pro)|(?:\.mvn/wrapper/)|(?:\.obsidian/)|(?:\.osx$)|(?:\.sublime-project)|(?:\.sublime-workspace)|(?:\.teamcity/)|(?:\.vscode/)|(?:\.yarn/plugins/)|(?:\.yarn/releases/)|(?:\.yarn/sdks/)|(?:\.yarn/unplugged/)|(?:\.yarn/versions/)|(?:_esy$)|(?:ace-builds/)|(?:aclocal\.m4)|(?:activator$)|(?:activator\.bat$)|(?:admin_media/)|(?:angular([^.]*)\.js$)|(?:animate\.(css|less|scss|styl)$)|(?:bootbox\.js)|(?:bootstrap([^/.]*)(\..*)?\.(js|css|less|scss|styl)$)|(?:bootstrap-datepicker/)|(?:bower_components/)|(?:bulma\.(css|sass|scss)$)|(?:cache/)|(?:ckeditor\.js$)|(?:config\.guess$)|(?:config\.sub$)|(?:configure$)|(?:controls\.js$)|(?:cordova([^.]*)\.js$)|(?:cordova\-\d\.\d(\.\d)?\.js$)|(?:cpplint\.py)|(?:custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$)|(?:dist/)|(?:docs?/_?(build|themes?|templates?|static)/)|(?:dojo\.js$)|(?:dotnet-install\.(ps1|sh)$)|(?:dragdrop\.js$)|(?:effects\.js$)|(?:env/)|(?:erlang\.mk)|(?:extjs/.*?\.html$)|(?:extjs/.*?\.js$)|(?:extjs/.*?\.properties$)|(?:extjs/.*?\.txt$)|(?:extjs/.*?\.xml$)|(?:extjs/\.sencha/)|(?:extjs/builds/)|(?:extjs/cmd/)|(?:extjs/docs/)|(?:extjs/examples/)|(?:extjs/locale/)|(?:extjs/packages/)|(?:extjs/plugins/)|(?:extjs/resources/)|(?:extjs/src/)|(?:extjs/welcome/)|(?:fabfile\.py$)|(?:flow-typed/.*\.js$)|(?:font-?awesome/.*\.(css|less|scss|styl)$)|(?:font-?awesome\.(css|less|scss|styl)$)|(?:fontello(.*?)\.css$)|(?:foundation(\..*)?\.js$)|(?:foundation\.(css|less|scss|styl)$)|(?:fuelux\.js)|(?:gradle/wrapper/)|(?:gradlew$)|(?:gradlew\.bat$)|(?:html5shiv\.js$)|(?:inst/extdata/)|(?:jquery([^.]*)\.js$)|(?:jquery([^.]*)\.unobtrusive\-ajax\.js$)|(?:jquery([^.]*)\.validate(\.unobtrusive)?\.js$)|(?:jquery\-\d\.\d+(\.\d+)?\.js$)|(?:jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?\.(js|css)$)|(?:jquery\.(ui|effects)\.([^.]*)\.(js|css)$)|(?:jquery\.dataTables\.js)|(?:jquery\.fancybox\.(js|css))|(?:jquery\.fileupload(-\w+)?\.js$)|(?:jquery\.fn\.gantt\.js)|(?:knockout-(\d+\.){3}(debug\.)?js$)|(?:leaflet\.draw-src\.js)|(?:leaflet\.draw\.css)|(?:leaflet\.spin\.js)|(?:libtool\.m4)|(?:ltoptions\.m4)|(?:ltsugar\.m4)|(?:ltversion\.m4)|(?:lt~obsolete\.m4)|(?:materialize\.(css|less|scss|styl|js)$)|(?:modernizr\-\d\.\d+(\.\d+)?\.js$)|(?:modernizr\.custom\.\d+\.js$)|(?:mootools([^.]*)\d+\.\d+.\d+([^.]*)\.js$)|(?:mvnw$)|(?:mvnw\.cmd$)|(?:node_modules/)|(?:normalize\.(css|less|scss|styl)$)|(?:octicons\.css)|(?:pdf\.worker\.js)|(?:proguard-rules\.pro$)|(?:proguard\.pro$)|(?:prototype(.*)\.js$)|(?:puphpet/)|(?:react(-[^.]*)?\.js$)|(?:run\.n$)|(?:select2/.*\.(css|scss|js)$)|(?:shBrush([^.]*)\.js$)|(?:shCore\.js$)|(?:shLegacy\.js$)|(?:skeleton\.(css|less|scss|styl)$)|(?:slick\.\w+.js$)|(?:sprockets-octicons\.scss)|(?:testdata/)|(?:tiny_mce([^.]*)\.js$)|(?:tiny_mce/(langs|plugins|themes|utils))|(?:vendors?/)|(?:waf$)|(?:wicket-leaflet\.js)|(?:yahoo-([^.]*)\.js$)|(?:yui([^.]*)\.js$)))|(?:(.*?)\.d\.ts$)|(?:(3rd|[Tt]hird)[-_]?[Pp]arty/)|(?:([^\s]*)import\.(css|less|scss|styl)$)|(?:(\.|-)min\.(js|css)$)|(?:(^|\/)d3(\.v\d+)?([^.]*)\.js$)|(?:-vsdoc\.js$)|(?:\.imageset/)|(?:\.intellisense\.js$)|(?:\.xctemplate/)`)

View File

@ -6,6 +6,7 @@ import (
"io/ioutil"
"os"
"path/filepath"
"sort"
"strings"
"text/template"
@ -91,7 +92,10 @@ func buildFilenameLanguageMap(languages map[string]*languageInfo) map[string][]s
func executeFilenamesTemplate(out io.Writer, languagesByFilename map[string][]string, tmplPath, tmplName, commit string) error {
fmap := template.FuncMap{
"formatStringSlice": func(slice []string) string { return `"` + strings.Join(slice, `","`) + `"` },
"formatStringSlice": func(slice []string) string {
sort.Strings(slice)
return `"` + strings.Join(slice, `","`) + `"`
},
}
return executeTemplate(out, tmplName, tmplPath, commit, fmap, languagesByFilename)
}

View File

@ -21,7 +21,7 @@ import (
var (
linguistClonedEnvVar = "ENRY_TEST_REPO"
linguistURL = "https://github.com/github/linguist.git"
commit = "bf853f1c663903e3ee35935189760191f1c45e1c"
commit = "b5432ebc7e78f25415b98d48c2fbacddbf8df317"
samplesDir = "samples"
languagesFile = filepath.Join("lib", "linguist", "languages.yml")

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -17,6 +17,7 @@ var LanguageByAliasMap = map[string]string{
"abnf": "ABNF",
"abuild": "Alpine Abuild",
"acfm": "Adobe Font Metrics",
"ackrc": "Option List",
"aconf": "ApacheConf",
"actionscript": "ActionScript",
"actionscript3": "ActionScript",
@ -152,10 +153,12 @@ var LanguageByAliasMap = map[string]string{
"chpl": "Chapel",
"chuck": "ChucK",
"cil": "CIL",
"circom": "Circom",
"cirru": "Cirru",
"clarion": "Clarion",
"clarity": "Clarity",
"classic_asp": "Classic ASP",
"classic_visual_basic": "Visual Basic 6.0",
"clean": "Clean",
"click": "Click",
"clipper": "xBase",
@ -210,9 +213,12 @@ var LanguageByAliasMap = map[string]string{
"cweb": "CWeb",
"cwl": "Common Workflow Language",
"cycript": "Cycript",
"cypher": "Cypher",
"cython": "Cython",
"d": "D",
"d-objdump": "D-ObjDump",
"d2": "D2",
"d2lang": "D2",
"dafny": "Dafny",
"darcs_patch": "Darcs Patch",
"dart": "Dart",
@ -235,6 +241,7 @@ var LanguageByAliasMap = map[string]string{
"dogescript": "Dogescript",
"dosbatch": "Batchfile",
"dosini": "INI",
"dotenv": "Dotenv",
"dpatch": "Darcs Patch",
"dtrace": "DTrace",
"dtrace-script": "DTrace",
@ -250,6 +257,8 @@ var LanguageByAliasMap = map[string]string{
"ecere_projects": "Ecere Projects",
"ecl": "ECL",
"eclipse": "ECLiPSe",
"ecmarkdown": "Ecmarkup",
"ecmarkup": "Ecmarkup",
"ecr": "HTML+ECR",
"editor-config": "EditorConfig",
"editorconfig": "EditorConfig",
@ -263,6 +272,7 @@ var LanguageByAliasMap = map[string]string{
"elixir": "Elixir",
"elm": "Elm",
"elvish": "Elvish",
"elvish_transcript": "Elvish Transcript",
"emacs": "Emacs Lisp",
"emacs_lisp": "Emacs Lisp",
"emacs_muse": "Muse",
@ -345,10 +355,16 @@ var LanguageByAliasMap = map[string]string{
"go": "Go",
"go.mod": "Go Module",
"go.sum": "Go Checksums",
"go.work": "Go Workspace",
"go.work.sum": "Go Checksums",
"go_checksums": "Go Checksums",
"go_mod": "Go Module",
"go_module": "Go Module",
"go_sum": "Go Checksums",
"go_work": "Go Workspace",
"go_work_sum": "Go Checksums",
"go_workspace": "Go Workspace",
"godot_resource": "Godot Resource",
"golang": "Go",
"golo": "Golo",
"gosu": "Gosu",
@ -382,6 +398,7 @@ var LanguageByAliasMap = map[string]string{
"hocon": "HOCON",
"holyc": "HolyC",
"hoon": "hoon",
"hosts_file": "Hosts File",
"html": "HTML",
"html+django": "Jinja",
"html+ecr": "HTML+ECR",
@ -409,10 +426,12 @@ var LanguageByAliasMap = map[string]string{
"ijm": "ImageJ Macro",
"ile_rpg": "RPGLE",
"imagej_macro": "ImageJ Macro",
"imba": "Imba",
"inc": "PHP",
"inform7": "Inform 7",
"inform_7": "Inform 7",
"ini": "INI",
"ink": "Ink",
"inno_setup": "Inno Setup",
"inputrc": "Readline Config",
"io": "Io",
@ -433,6 +452,7 @@ var LanguageByAliasMap = map[string]string{
"java_server_pages": "Java Server Pages",
"javascript": "JavaScript",
"javascript+erb": "JavaScript+ERB",
"jcl": "JCL",
"jest_snapshot": "Jest Snapshot",
"jetbrains_mps": "JetBrains MPS",
"jflex": "JFlex",
@ -454,14 +474,18 @@ var LanguageByAliasMap = map[string]string{
"jsp": "Java Server Pages",
"julia": "Julia",
"jupyter_notebook": "Jupyter Notebook",
"just": "Just",
"justfile": "Just",
"kaitai_struct": "Kaitai Struct",
"kak": "KakouneScript",
"kakounescript": "KakouneScript",
"kakscript": "KakouneScript",
"kerboscript": "KerboScript",
"keyvalues": "Valve Data Format",
"kicad_layout": "KiCad Layout",
"kicad_legacy_layout": "KiCad Legacy Layout",
"kicad_schematic": "KiCad Schematic",
"kickstart": "Kickstart",
"kit": "Kit",
"kotlin": "Kotlin",
"krl": "KRL",
@ -533,9 +557,13 @@ var LanguageByAliasMap = map[string]string{
"maxscript": "MAXScript",
"mbox": "E-mail",
"mcfunction": "mcfunction",
"md": "Markdown",
"mdoc": "Roff",
"mdx": "MDX",
"mediawiki": "Wikitext",
"mercury": "Mercury",
"mermaid": "Mermaid",
"mermaid_example": "Mermaid",
"meson": "Meson",
"metal": "Metal",
"mf": "Makefile",
@ -601,11 +629,20 @@ var LanguageByAliasMap = map[string]string{
"nroff": "Roff",
"nsis": "NSIS",
"nu": "Nu",
"nu-script": "Nushell",
"numpy": "NumPy",
"nunjucks": "Nunjucks",
"nush": "Nu",
"nushell": "Nushell",
"nushell-script": "Nushell",
"nvim": "Vim Script",
"nwscript": "NWScript",
"oasv2": "OpenAPI Specification v2",
"oasv2-json": "OASv2-json",
"oasv2-yaml": "OASv2-yaml",
"oasv3": "OpenAPI Specification v3",
"oasv3-json": "OASv3-json",
"oasv3-yaml": "OASv3-yaml",
"obj-c": "Objective-C",
"obj-c++": "Objective-C++",
"obj-j": "Objective-J",
@ -633,6 +670,8 @@ var LanguageByAliasMap = map[string]string{
"opa": "Opa",
"opal": "Opal",
"open_policy_agent": "Open Policy Agent",
"openapi_specification_v2": "OpenAPI Specification v2",
"openapi_specification_v3": "OpenAPI Specification v3",
"opencl": "OpenCL",
"openedge": "OpenEdge ABL",
"openedge_abl": "OpenEdge ABL",
@ -642,12 +681,15 @@ var LanguageByAliasMap = map[string]string{
"openscad": "OpenSCAD",
"openstep_property_list": "OpenStep Property List",
"opentype_feature_file": "OpenType Feature File",
"option_list": "Option List",
"opts": "Option List",
"org": "Org",
"osascript": "AppleScript",
"ox": "Ox",
"oxygene": "Oxygene",
"oz": "Oz",
"p4": "P4",
"pact": "Pact",
"pan": "Pan",
"pandoc": "Markdown",
"papyrus": "Papyrus",
@ -658,6 +700,7 @@ var LanguageByAliasMap = map[string]string{
"pasm": "Parrot Assembly",
"pawn": "Pawn",
"pcbnew": "KiCad Layout",
"pddl": "PDDL",
"peg.js": "PEG.js",
"pep8": "Pep8",
"perl": "Perl",
@ -677,6 +720,7 @@ var LanguageByAliasMap = map[string]string{
"pod": "Pod",
"pod_6": "Pod 6",
"pogoscript": "PogoScript",
"polar": "Polar",
"pony": "Pony",
"portugol": "Portugol",
"posh": "PowerShell",
@ -697,6 +741,7 @@ var LanguageByAliasMap = map[string]string{
"prolog": "Prolog",
"promela": "Promela",
"propeller_spin": "Propeller Spin",
"proto": "Protocol Buffer",
"protobuf": "Protocol Buffer",
"protobuf_text_format": "Protocol Buffer Text Format",
"protocol_buffer": "Protocol Buffer",
@ -710,6 +755,7 @@ var LanguageByAliasMap = map[string]string{
"purescript": "PureScript",
"pwsh": "PowerShell",
"pycon": "Python console",
"pyret": "Pyret",
"pyrex": "Cython",
"python": "Python",
"python3": "Python",
@ -736,6 +782,7 @@ var LanguageByAliasMap = map[string]string{
"raw_token_data": "Raw token data",
"razor": "HTML+Razor",
"rb": "Ruby",
"rbs": "RBS",
"rbx": "Ruby",
"rdoc": "RDoc",
"readline": "Readline Config",
@ -793,14 +840,17 @@ var LanguageByAliasMap = map[string]string{
"sass": "Sass",
"scala": "Scala",
"scaml": "Scaml",
"scenic": "Scenic",
"scheme": "Scheme",
"scilab": "Scilab",
"scss": "SCSS",
"sdc": "Tcl",
"sed": "sed",
"self": "Self",
"selinux_kernel_policy_language": "SELinux Policy",
"selinux_policy": "SELinux Policy",
"sepolicy": "SELinux Policy",
"sfv": "Simple File Verification",
"sh": "Shell",
"shaderlab": "ShaderLab",
"shell": "Shell",
@ -810,6 +860,7 @@ var LanguageByAliasMap = map[string]string{
"shellsession": "ShellSession",
"shen": "Shen",
"sieve": "Sieve",
"simple_file_verification": "Simple File Verification",
"singularity": "Singularity",
"slash": "Slash",
"slice": "Slice",
@ -817,9 +868,12 @@ var LanguageByAliasMap = map[string]string{
"smali": "Smali",
"smalltalk": "Smalltalk",
"smarty": "Smarty",
"smithy": "Smithy",
"sml": "Standard ML",
"smpl": "SmPL",
"smt": "SMT",
"snakefile": "Snakemake",
"snakemake": "Snakemake",
"snipmate": "Vim Snippet",
"snippet": "YASnippet",
"solidity": "Solidity",
@ -856,6 +910,7 @@ var LanguageByAliasMap = map[string]string{
"supercollider": "SuperCollider",
"svelte": "Svelte",
"svg": "SVG",
"sway": "Sway",
"swift": "Swift",
"swig": "SWIG",
"systemverilog": "SystemVerilog",
@ -874,6 +929,7 @@ var LanguageByAliasMap = map[string]string{
"thrift": "Thrift",
"ti_program": "TI Program",
"tl": "Type Language",
"tl-verilog": "TL-Verilog",
"tla": "TLA",
"tm-properties": "TextMate Properties",
"toml": "TOML",
@ -905,8 +961,9 @@ var LanguageByAliasMap = map[string]string{
"vala": "Vala",
"valve_data_format": "Valve Data Format",
"vb.net": "Visual Basic .NET",
"vb6": "VBA",
"vb6": "Visual Basic 6.0",
"vb_.net": "Visual Basic .NET",
"vb_6": "Visual Basic 6.0",
"vba": "VBA",
"vbnet": "Visual Basic .NET",
"vbscript": "VBScript",
@ -924,7 +981,9 @@ var LanguageByAliasMap = map[string]string{
"viml": "Vim Script",
"visual_basic": "Visual Basic .NET",
"visual_basic_.net": "Visual Basic .NET",
"visual_basic_6": "VBA",
"visual_basic_6": "Visual Basic 6.0",
"visual_basic_6.0": "Visual Basic 6.0",
"visual_basic_classic": "Visual Basic 6.0",
"visual_basic_for_applications": "VBA",
"vlang": "V",
"volt": "Volt",
@ -936,13 +995,15 @@ var LanguageByAliasMap = map[string]string{
"wast": "WebAssembly",
"wavefront_material": "Wavefront Material",
"wavefront_object": "Wavefront Object",
"wdl": "wdl",
"wdl": "WDL",
"web_ontology_language": "Web Ontology Language",
"webassembly": "WebAssembly",
"webassembly_interface_type": "WebAssembly Interface Type",
"webidl": "WebIDL",
"webvtt": "WebVTT",
"wget_config": "Wget Config",
"wgetrc": "Wget Config",
"wgsl": "WGSL",
"whiley": "Whiley",
"wiki": "Wikitext",
"wikitext": "Wikitext",
@ -950,12 +1011,14 @@ var LanguageByAliasMap = map[string]string{
"winbatch": "Batchfile",
"windows_registry_entries": "Windows Registry Entries",
"wisp": "wisp",
"wit": "WebAssembly Interface Type",
"witcher_script": "Witcher Script",
"wl": "Mathematica",
"wolfram": "Mathematica",
"wolfram_lang": "Mathematica",
"wolfram_language": "Mathematica",
"wollok": "Wollok",
"workflow_description_language": "WDL",
"world_of_warcraft_addon_data": "World of Warcraft Addon Data",
"wren": "Wren",
"wrenlang": "Wren",
@ -968,6 +1031,7 @@ var LanguageByAliasMap = map[string]string{
"xbm": "X BitMap",
"xc": "XC",
"xcompose": "XCompose",
"xdc": "Tcl",
"xdr": "RPC",
"xhtml": "HTML",
"xml": "XML",

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -84,6 +84,7 @@ var LanguagesColor = map[string]string{
"Ceylon": "#dfa535",
"Chapel": "#8dc63f",
"ChucK": "#3f8000",
"Circom": "#707575",
"Cirru": "#ccccff",
"Clarion": "#db901e",
"Clarity": "#5546ff",
@ -107,8 +108,10 @@ var LanguagesColor = map[string]string{
"Csound Score": "#1a1a1a",
"Cuda": "#3A4E3A",
"Curry": "#531242",
"Cypher": "#34c0eb",
"Cython": "#fedf5b",
"D": "#ba595e",
"D2": "#526ee8",
"DM": "#447265",
"Dafny": "#FFEC25",
"Darcs Patch": "#8eff23",
@ -120,6 +123,7 @@ var LanguagesColor = map[string]string{
"DirectX 3D File": "#aace60",
"Dockerfile": "#384d54",
"Dogescript": "#cca760",
"Dotenv": "#e5d559",
"Dylan": "#6c616e",
"E": "#ccce35",
"ECL": "#8a1267",
@ -129,11 +133,13 @@ var LanguagesColor = map[string]string{
"Earthly": "#2af0ff",
"Easybuild": "#069406",
"Ecere Projects": "#913960",
"Ecmarkup": "#eb8131",
"EditorConfig": "#fff1f2",
"Eiffel": "#4d6977",
"Elixir": "#6e4a7e",
"Elm": "#60B5CC",
"Elvish": "#55BB55",
"Elvish Transcript": "#55BB55",
"Emacs Lisp": "#c065db",
"EmberScript": "#FFF4F3",
"Erlang": "#B83998",
@ -152,7 +158,7 @@ var LanguagesColor = map[string]string{
"Forth": "#341708",
"Fortran": "#4d41b1",
"Fortran Free Form": "#4d41b1",
"FreeBasic": "#867db1",
"FreeBasic": "#141AC9",
"FreeMarker": "#0050b2",
"Frege": "#00cafe",
"Futhark": "#5f021f",
@ -185,6 +191,8 @@ var LanguagesColor = map[string]string{
"Go": "#00ADD8",
"Go Checksums": "#00ADD8",
"Go Module": "#00ADD8",
"Go Workspace": "#00ADD8",
"Godot Resource": "#355570",
"Golo": "#88562A",
"Gosu": "#82937f",
"Grace": "#615f8b",
@ -195,6 +203,7 @@ var LanguagesColor = map[string]string{
"Groovy": "#4298b8",
"Groovy Server Pages": "#4298b8",
"HAProxy": "#106da9",
"HCL": "#844FBA",
"HLSL": "#aace60",
"HOCON": "#9ff8ee",
"HTML": "#e34c26",
@ -213,6 +222,7 @@ var LanguagesColor = map[string]string{
"Haxe": "#df7900",
"HiveQL": "#dce200",
"HolyC": "#ffefaf",
"Hosts File": "#308888",
"Hy": "#7790B2",
"IDL": "#a3522f",
"IGOR Pro": "#0000cc",
@ -220,6 +230,7 @@ var LanguagesColor = map[string]string{
"Idris": "#b30000",
"Ignore List": "#000000",
"ImageJ Macro": "#99AAFF",
"Imba": "#16cec6",
"Inno Setup": "#264b99",
"Io": "#a9188d",
"Ioke": "#078193",
@ -227,6 +238,7 @@ var LanguagesColor = map[string]string{
"Isabelle ROOT": "#FEFE00",
"J": "#9EEDFF",
"JAR Manifest": "#b07219",
"JCL": "#d90e09",
"JFlex": "#DBCA00",
"JSON": "#292929",
"JSON with Comments": "#292929",
@ -249,9 +261,11 @@ var LanguagesColor = map[string]string{
"Jsonnet": "#0064bd",
"Julia": "#a270ba",
"Jupyter Notebook": "#DA5B0B",
"Just": "#384d54",
"KRL": "#28430A",
"Kaitai Struct": "#773b37",
"KakouneScript": "#6f8042",
"KerboScript": "#41adf0",
"KiCad Layout": "#2f4aab",
"KiCad Legacy Layout": "#2f4aab",
"KiCad Schematic": "#2f4aab",
@ -278,6 +292,7 @@ var LanguagesColor = map[string]string{
"Lua": "#000080",
"MATLAB": "#e16737",
"MAXScript": "#00a6a6",
"MDX": "#fcb32c",
"MLIR": "#5EC8DB",
"MQL4": "#62A8D6",
"MQL5": "#4A76B8",
@ -291,6 +306,7 @@ var LanguagesColor = map[string]string{
"Mathematica": "#dd1100",
"Max": "#c4a79c",
"Mercury": "#ff2b2b",
"Mermaid": "#ff3670",
"Meson": "#007800",
"Metal": "#8f14e9",
"MiniYAML": "#ff1111",
@ -323,7 +339,12 @@ var LanguagesColor = map[string]string{
"Nu": "#c9df40",
"NumPy": "#9C8AF9",
"Nunjucks": "#3d8137",
"OCaml": "#3be133",
"Nushell": "#4E9906",
"OASv2-json": "#85ea2d",
"OASv2-yaml": "#85ea2d",
"OASv3-json": "#85ea2d",
"OASv3-yaml": "#85ea2d",
"OCaml": "#ef7a08",
"ObjectScript": "#424893",
"Objective-C": "#438eff",
"Objective-C++": "#6866fb",
@ -332,19 +353,24 @@ var LanguagesColor = map[string]string{
"Omgrofl": "#cabbff",
"Opal": "#f7ede0",
"Open Policy Agent": "#7d9199",
"OpenAPI Specification v2": "#85ea2d",
"OpenAPI Specification v3": "#85ea2d",
"OpenCL": "#ed2e2d",
"OpenEdge ABL": "#5ce600",
"OpenQASM": "#AA70FF",
"OpenSCAD": "#e5cd45",
"Option List": "#476732",
"Org": "#77aa99",
"Oxygene": "#cdd0e3",
"Oz": "#fab738",
"P4": "#7055b5",
"PDDL": "#0d00ff",
"PEG.js": "#234d6b",
"PHP": "#4F5D95",
"PLSQL": "#dad8d8",
"PLpgSQL": "#336790",
"POV-Ray SDL": "#6bac65",
"Pact": "#F7A8B8",
"Pan": "#cc0000",
"Papyrus": "#6600cc",
"Parrot": "#f3ca0a",
@ -355,7 +381,9 @@ var LanguagesColor = map[string]string{
"PicoLisp": "#6067af",
"PigLatin": "#fcd7de",
"Pike": "#005390",
"PlantUML": "#fbbd16",
"PogoScript": "#d80074",
"Polar": "#ae81ff",
"Portugol": "#f8bd00",
"PostCSS": "#dc3a0c",
"PostScript": "#da291c",
@ -371,6 +399,7 @@ var LanguagesColor = map[string]string{
"Puppet": "#302B6D",
"PureBasic": "#5a6986",
"PureScript": "#1D222D",
"Pyret": "#ee1e10",
"Python": "#3572A5",
"Python console": "#3572A5",
"Python traceback": "#3572A5",
@ -380,6 +409,7 @@ var LanguagesColor = map[string]string{
"Quake": "#882233",
"R": "#198CE7",
"RAML": "#77d9fb",
"RBS": "#701516",
"RDoc": "#701516",
"REXX": "#d90e09",
"RMarkdown": "#198ce7",
@ -419,6 +449,7 @@ var LanguagesColor = map[string]string{
"Sass": "#a53b70",
"Scala": "#c22d40",
"Scaml": "#bd181a",
"Scenic": "#fdc700",
"Scheme": "#1e4aec",
"Scilab": "#ca0f21",
"Self": "#0579aa",
@ -426,6 +457,7 @@ var LanguagesColor = map[string]string{
"Shell": "#89e051",
"ShellCheck Config": "#cecfcb",
"Shen": "#120F14",
"Simple File Verification": "#C9BFED",
"Singularity": "#64E6AD",
"Slash": "#007eff",
"Slice": "#003fa2",
@ -433,6 +465,8 @@ var LanguagesColor = map[string]string{
"SmPL": "#c94949",
"Smalltalk": "#596706",
"Smarty": "#f0c040",
"Smithy": "#c44536",
"Snakemake": "#419179",
"Solidity": "#AA6746",
"SourcePawn": "#f69e1d",
"Squirrel": "#800000",
@ -446,9 +480,11 @@ var LanguagesColor = map[string]string{
"SugarSS": "#2fcc9f",
"SuperCollider": "#46390b",
"Svelte": "#ff3e00",
"Sway": "#dea584",
"Swift": "#F05138",
"SystemVerilog": "#DAE1C2",
"TI Program": "#A0AA87",
"TL-Verilog": "#C40023",
"TLA": "#4b0079",
"TOML": "#9c4221",
"TSQL": "#e38c00",
@ -483,11 +519,15 @@ var LanguagesColor = map[string]string{
"Vim Script": "#199f4b",
"Vim Snippet": "#199f4b",
"Visual Basic .NET": "#945db7",
"Visual Basic 6.0": "#2c6353",
"Volt": "#1F1F1F",
"Vue": "#41b883",
"Vyper": "#2980b9",
"WDL": "#42f1f4",
"WGSL": "#1a5e9a",
"Web Ontology Language": "#5b70bd",
"WebAssembly": "#04133b",
"WebAssembly Interface Type": "#6250e7",
"Whiley": "#d5c397",
"Wikitext": "#fc5757",
"Windows Registry Entries": "#52d5ff",
@ -529,7 +569,6 @@ var LanguagesColor = map[string]string{
"q": "#0040cd",
"reStructuredText": "#141414",
"sed": "#64b970",
"wdl": "#42f1f4",
"wisp": "#7582D1",
"xBase": "#403a40",
}

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

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -581,17 +581,23 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("AL"),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`\b(?i:(CODEUNIT|PAGE|PAGEEXTENSION|PAGECUSTOMIZATION|DOTNET|ENUM|ENUMEXTENSION|VALUE|QUERY|REPORT|TABLE|TABLEEXTENSION|XMLPORT|PROFILE|CONTROLADDIN))\b`),
regex.MustCompileMultiline(`\b(?i:(CODEUNIT|PAGE|PAGEEXTENSION|PAGECUSTOMIZATION|DOTNET|ENUM|ENUMEXTENSION|VALUE|QUERY|REPORT|TABLE|TABLEEXTENSION|XMLPORT|PROFILE|CONTROLADDIN|REPORTEXTENSION|INTERFACE|PERMISSIONSET|PERMISSIONSETEXTENSION|ENTITLEMENT))\b`),
),
),
rule.Always(
rule.MatchingLanguages("Perl"),
),
},
".app": &Heuristics{
rule.Or(
rule.MatchingLanguages("Erlang"),
regex.MustCompileMultiline(`^\{\s*(?:application|'application')\s*,\s*(?:[a-z]+[\w@]*|'[^']+')\s*,\s*\[(?:.|[\r\n])*\]\s*\}\.[ \t]*$`),
),
},
".as": &Heuristics{
rule.Or(
rule.MatchingLanguages("ActionScript"),
regex.MustCompileRuby(`^\s*(?:package(?:\s+[\w.]+)?\s+(?:{|$)|import\s+[\w.*]+\s*;|(?=.*?(?:intrinsic|extends))(intrinsic\s+)?class\s+[\w<>.]+(?:\s+extends\s+[\w<>.]+)?|(?:(?:public|protected|private|static)\s+)*(?:(?:var|const|local)\s+\w+\s*:\s*[\w<>.]+(?:\s*=.*)?\s*;|function\s+\w+\s*\((?:\s*\w+\s*:\s*[\w<>.]+\s*(,\s*\w+\s*:\s*[\w<>.]+\s*)*)?\)))`),
regex.MustCompileRuby(`^\s*(?:package(?:\s+[\w.]+)?\s+(?:\{|$)|import\s+[\w.*]+\s*;|(?=.*?(?:intrinsic|extends))(intrinsic\s+)?class\s+[\w<>.]+(?:\s+extends\s+[\w<>.]+)?|(?:(?:public|protected|private|static)\s+)*(?:(?:var|const|local)\s+\w+\s*:\s*[\w<>.]+(?:\s*=.*)?\s*;|function\s+\w+\s*\((?:\s*\w+\s*:\s*[\w<>.]+\s*(,\s*\w+\s*:\s*[\w<>.]+\s*)*)?\)))`),
),
},
".asc": &Heuristics{
@ -601,7 +607,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("AsciiDoc"),
regex.MustCompileMultiline(`^[=-]+(\s|\n)|{{[A-Za-z]`),
regex.MustCompileMultiline(`^[=-]+(\s|\n)|\{\{[A-Za-z]`),
),
rule.Or(
rule.MatchingLanguages("AGS Script"),
@ -626,11 +632,26 @@ var ContentHeuristics = map[string]*Heuristics{
".bas": &Heuristics{
rule.Or(
rule.MatchingLanguages("FreeBasic"),
regex.MustCompileMultiline(`^[ \t]*#(?:define|endif|endmacro|ifn?def|if|include|lang|macro)\s`),
regex.MustCompileMultiline(`^[ \t]*#(?i)(?:define|endif|endmacro|ifn?def|include|lang|macro)(?:$|\s)`),
),
rule.Or(
rule.MatchingLanguages("BASIC"),
regex.MustCompileMultiline(`^\s*\d+`),
regex.MustCompileMultiline(`\A\s*\d`),
),
rule.And(
rule.MatchingLanguages("VBA"),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^[ ]*Attribute VB_Name = `),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`\b(?:VBA|[vV]ba)(?:\b|[0-9A-Z_])|^[ ]*(?:Public|Private)? Declare PtrSafe (?:Sub|Function)\b|^[ ]*#If Win64\b|^[ ]*(?:Dim|Const) [0-9a-zA-Z_]*[ ]*As Long(?:Ptr|Long)\b|^[ ]*Option (?:Private Module|Compare Database)\b|(?: |\()(?:Access|Excel|Outlook|PowerPoint|Visio|Word|VBIDE)\.\w|\b(?:(?:Active)?VBProjects?|VBComponents?|Application\.(?:VBE|ScreenUpdating))\b|\b(?:ThisDrawing|AcadObject|Active(?:Explorer|Inspector|Window\.Presentation|Presentation|Document)|Selection\.(?:Find|Paragraphs))\b|\b(?:(?:This|Active)?Workbooks?|Worksheets?|Active(?:Sheet|Chart|Cell)|WorksheetFunction)\b|\b(?:Range\(".*|Cells\([0-9a-zA-Z_]*, (?:[0-9a-zA-Z_]*|"[a-zA-Z]{1,3}"))\)`),
),
),
rule.Or(
rule.MatchingLanguages("Visual Basic 6.0"),
regex.MustCompileMultiline(`^[ ]*Attribute VB_Name = `),
),
},
".bb": &Heuristics{
@ -664,7 +685,7 @@ var ContentHeuristics = map[string]*Heuristics{
".bi": &Heuristics{
rule.Or(
rule.MatchingLanguages("FreeBasic"),
regex.MustCompileMultiline(`^[ \t]*#(?:define|endif|endmacro|ifn?def|if|include|lang|macro)\s`),
regex.MustCompileMultiline(`^[ \t]*#(?i)(?:define|endif|endmacro|ifn?def|if|include|lang|macro)(?:$|\s)`),
),
},
".bs": &Heuristics{
@ -704,9 +725,24 @@ var ContentHeuristics = map[string]*Heuristics{
),
},
".cls": &Heuristics{
rule.And(
rule.MatchingLanguages("Visual Basic 6.0"),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^[ ]*VERSION [0-9]\.[0-9] CLASS`),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^\s*BEGIN(?:\r?\n|\r)\s*MultiUse\s*=.*(?:\r?\n|\r)\s*Persistable\s*=`),
),
),
rule.Or(
rule.MatchingLanguages("VBA"),
regex.MustCompileMultiline(`^[ ]*VERSION [0-9]\.[0-9] CLASS`),
),
rule.Or(
rule.MatchingLanguages("TeX"),
regex.MustCompileMultiline(`^\s*\\(?:NeedsTeXFormat|ProvidesClass){`),
regex.MustCompileMultiline(`^\s*\\(?:NeedsTeXFormat|ProvidesClass)\{`),
),
rule.Or(
rule.MatchingLanguages("ObjectScript"),
@ -726,7 +762,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("C#"),
regex.MustCompileMultiline(`^\s*(using\s+[A-Z][\s\w.]+;|namespace\s*[\w\.]+\s*({|;)|\/\/)`),
regex.MustCompileMultiline(`^\s*(using\s+[A-Z][\s\w.]+;|namespace\s*[\w\.]+\s*(\{|;)|\/\/)`),
),
},
".csc": &Heuristics{
@ -738,7 +774,7 @@ var ContentHeuristics = map[string]*Heuristics{
".csl": &Heuristics{
rule.Or(
rule.MatchingLanguages("XML"),
regex.MustCompileMultiline(`(?i:^\s*(\<\?xml|xmlns))`),
regex.MustCompileMultiline(`(?i:^\s*(<\?xml|xmlns))`),
),
rule.Or(
rule.MatchingLanguages("Kusto"),
@ -748,11 +784,11 @@ var ContentHeuristics = map[string]*Heuristics{
".d": &Heuristics{
rule.Or(
rule.MatchingLanguages("D"),
regex.MustCompileMultiline(`^module\s+[\w.]*\s*;|import\s+[\w\s,.:]*;|\w+\s+\w+\s*\(.*\)(?:\(.*\))?\s*{[^}]*}|unittest\s*(?:\(.*\))?\s*{[^}]*}`),
regex.MustCompileMultiline(`^module\s+[\w.]*\s*;|import\s+[\w\s,.:]*;|\w+\s+\w+\s*\(.*\)(?:\(.*\))?\s*\{[^}]*\}|unittest\s*(?:\(.*\))?\s*\{[^}]*\}`),
),
rule.Or(
rule.MatchingLanguages("DTrace"),
regex.MustCompileMultiline(`^(\w+:\w*:\w*:\w*|BEGIN|END|provider\s+|(tick|profile)-\w+\s+{[^}]*}|#pragma\s+D\s+(option|attributes|depends_on)\s|#pragma\s+ident\s)`),
regex.MustCompileMultiline(`^(\w+:\w*:\w*:\w*|BEGIN|END|provider\s+|(tick|profile)-\w+\s+\{[^}]*\}|#pragma\s+D\s+(option|attributes|depends_on)\s|#pragma\s+ident\s)`),
),
rule.Or(
rule.MatchingLanguages("Makefile"),
@ -772,7 +808,7 @@ var ContentHeuristics = map[string]*Heuristics{
".e": &Heuristics{
rule.Or(
rule.MatchingLanguages("E"),
regex.MustCompileMultiline(`^\s*(def|var)\s+(.+):=|^\s*(def|to)\s+(\w+)(\(.+\))?\s+{|^\s*(when)\s+(\(.+\))\s+->\s+{`),
regex.MustCompileMultiline(`^\s*(def|var)\s+(.+):=|^\s*(def|to)\s+(\w+)(\(.+\))?\s+\{|^\s*(when)\s+(\(.+\))\s+->\s+\{`),
),
rule.Or(
rule.MatchingLanguages("Eiffel"),
@ -800,7 +836,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("JavaScript"),
regex.MustCompileRuby(`(?m:\/\/|("|')use strict\1|export\s+default\s|\/\*.*?\*\/)`),
regex.MustCompileRuby(`\/\/|("|')use strict\1|export\s+default\s|\/\*(?:.|[\r\n])*?\*\/`),
),
},
".ex": &Heuristics{
@ -850,6 +886,30 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("Text"),
),
},
".frm": &Heuristics{
rule.And(
rule.MatchingLanguages("VBA"),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^[ ]*VERSION [0-9]\.[0-9]{2}`),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^\s*Begin\s+\{[0-9A-Z\-]*\}\s?`),
),
),
rule.And(
rule.MatchingLanguages("Visual Basic 6.0"),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^[ ]*VERSION [0-9]\.[0-9]{2}`),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^\s*Begin\s+VB\.Form\s+`),
),
),
},
".fs": &Heuristics{
rule.Or(
rule.MatchingLanguages("Forth"),
@ -871,7 +931,7 @@ var ContentHeuristics = map[string]*Heuristics{
".ftl": &Heuristics{
rule.Or(
rule.MatchingLanguages("FreeMarker"),
regex.MustCompileRuby(`^(?:<|[a-zA-Z-][a-zA-Z0-9_-]+[ \t]+\w)|\${\w+[^\n]*?}|^[ \t]*(?:<#--.*?-->|<#([a-z]+)(?=\s|>)[^>]*>.*?</#\1>|\[#--.*?--\]|\[#([a-z]+)(?=\s|\])[^\]]*\].*?\[#\2\])`),
regex.MustCompileRuby(`^(?:<|[a-zA-Z-][a-zA-Z0-9_-]+[ \t]+\w)|\$\{\w+[^\n]*?\}|^[ \t]*(?:<#--.*?-->|<#([a-z]+)(?=\s|>)[^>]*>.*?</#\1>|\[#--.*?--\]|\[#([a-z]+)(?=\s|\])[^\]]*\].*?\[#\2\])`),
),
rule.Or(
rule.MatchingLanguages("Fluent"),
@ -901,7 +961,7 @@ var ContentHeuristics = map[string]*Heuristics{
".gml": &Heuristics{
rule.Or(
rule.MatchingLanguages("XML"),
regex.MustCompileMultiline(`(?i:^\s*(\<\?xml|xmlns))`),
regex.MustCompileMultiline(`(?i:^\s*(<\?xml|xmlns))`),
),
rule.Or(
rule.MatchingLanguages("Graph Modeling Language"),
@ -960,6 +1020,15 @@ var ContentHeuristics = map[string]*Heuristics{
regex.MustCompileMultiline(`<\?hh`),
),
},
".html": &Heuristics{
rule.Or(
rule.MatchingLanguages("Ecmarkup"),
regex.MustCompileMultiline(`<emu-(?:alg|annex|biblio|clause|eqn|example|figure|gann|gmod|gprose|grammar|intro|not-ref|note|nt|prodref|production|rhs|table|t|xref)(?:$|\s|>)`),
),
rule.Always(
rule.MatchingLanguages("HTML"),
),
},
".i": &Heuristics{
rule.Or(
rule.MatchingLanguages("Motorola 68K Assembly"),
@ -990,11 +1059,11 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("SourcePawn"),
regex.MustCompileMultiline(`^public\s+(?:SharedPlugin(?:\s+|:)__pl_\w+\s*=(?:\s*{)?|(?:void\s+)?__pl_\w+_SetNTVOptional\(\)(?:\s*{)?)|^methodmap\s+\w+\s+<\s+\w+|^\s*MarkNativeAsOptional\s*\(`),
regex.MustCompileMultiline(`^public\s+(?:SharedPlugin(?:\s+|:)__pl_\w+\s*=(?:\s*\{)?|(?:void\s+)?__pl_\w+_SetNTVOptional\(\)(?:\s*\{)?)|^methodmap\s+\w+\s+<\s+\w+|^\s*MarkNativeAsOptional\s*\(`),
),
rule.Or(
rule.MatchingLanguages("NASL"),
regex.MustCompileRuby(`^\s*include\s*\(\s*(?:"|')[\\/\w\-\.:\s]+\.(?:nasl|inc)\s*(?:"|')\s*\)\s*;|^\s*(?:global|local)_var\s+(?:\w+(?:\s*=\s*[\w\-"']+)?\s*)(?:,\s*\w+(?:\s*=\s*[\w\-"']+)?\s*)*+\s*;|^\s*namespace\s+\w+\s*{|^\s*object\s+\w+\s*(?:extends\s+\w+(?:::\w+)?)?\s*{|^\s*(?:public\s+|private\s+|\s*)function\s+\w+\s*\([\w\s,]*\)\s*{`),
regex.MustCompileRuby(`^\s*include\s*\(\s*(?:"|')[\\/\w\-\.:\s]+\.(?:nasl|inc)\s*(?:"|')\s*\)\s*;|^\s*(?:global|local)_var\s+(?:\w+(?:\s*=\s*[\w\-"']+)?\s*)(?:,\s*\w+(?:\s*=\s*[\w\-"']+)?\s*)*+\s*;|^\s*namespace\s+\w+\s*\{|^\s*object\s+\w+\s*(?:extends\s+\w+(?:::\w+)?)?\s*\{|^\s*(?:public\s+|private\s+|\s*)function\s+\w+\s*\([\w\s,]*\)\s*\{`),
),
rule.Or(
rule.MatchingLanguages("POV-Ray SDL"),
@ -1002,7 +1071,20 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Pascal"),
regex.MustCompileMultiline(`(?i:^\s*{\$(?:mode|ifdef|undef|define)[ ]+[a-z0-9_]+})|^\s*end[.;]\s*$`),
regex.MustCompileMultiline(`(?i:^\s*\{\$(?:mode|ifdef|undef|define)[ ]+[a-z0-9_]+\})|^\s*end[.;]\s*$`),
),
},
".json": &Heuristics{
rule.Or(
rule.MatchingLanguages("OASv2-json"),
regex.MustCompileMultiline(`"swagger":\s?"2.[0-9.]+"`),
),
rule.Or(
rule.MatchingLanguages("OASv3-json"),
regex.MustCompileMultiline(`"openapi":\s?"3.[0-9.]+"`),
),
rule.Always(
rule.MatchingLanguages("JSON"),
),
},
".l": &Heuristics{
@ -1036,7 +1118,7 @@ var ContentHeuristics = map[string]*Heuristics{
".ls": &Heuristics{
rule.Or(
rule.MatchingLanguages("LoomScript"),
regex.MustCompileMultiline(`^\s*package\s*[\w\.\/\*\s]*\s*{`),
regex.MustCompileMultiline(`^\s*package\s*[\w\.\/\*\s]*\s*\{`),
),
rule.Always(
rule.MatchingLanguages("LiveScript"),
@ -1086,7 +1168,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Limbo"),
regex.MustCompileMultiline(`^\w+\s*:\s*module\s*{`),
regex.MustCompileMultiline(`^\w+\s*:\s*module\s*\{`),
),
},
".m4": &Heuristics{
@ -1269,6 +1351,15 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("NewLisp"),
),
},
".nu": &Heuristics{
rule.Or(
rule.MatchingLanguages("Nushell"),
regex.MustCompileMultiline(`^\s*(import|export|module|def|let|let-env) `),
),
rule.Always(
rule.MatchingLanguages("Nu"),
),
},
".odin": &Heuristics{
rule.Or(
rule.MatchingLanguages("Object Data Instance Notation"),
@ -1303,9 +1394,16 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("Prolog"),
regex.MustCompileMultiline(`^[^#]*:-`),
),
rule.Or(
rule.And(
rule.MatchingLanguages("Perl"),
regex.MustCompileMultiline(`\buse\s+(?:strict\b|v?5\.)`),
rule.Not(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^\s*use\s+v6\b`),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`\buse\s+(?:strict\b|v?5\b)|^\s*use\s+(?:constant|overload)\b|^\s*(?:\*|(?:our\s*)?@)EXPORT\s*=|^\s*package\s+[^\W\d]\w*(?:::\w+)*\s*(?:[;{]|\sv?\d)|[\s$][^\W\d]\w*(?::\w+)*->[a-zA-Z_\[({]`),
),
),
rule.Or(
rule.MatchingLanguages("Raku"),
@ -1315,16 +1413,29 @@ var ContentHeuristics = map[string]*Heuristics{
".plist": &Heuristics{
rule.Or(
rule.MatchingLanguages("XML Property List"),
regex.MustCompileMultiline(`<!DOCTYPE\s+plist`),
regex.MustCompileRuby(`^\s*(?:<\?xml\s|<!DOCTYPE\s+plist|<plist(?:\s+version\s*=\s*(["'])\d+(?:\.\d+)?\1)?\s*>\s*$)`),
),
rule.Always(
rule.MatchingLanguages("OpenStep Property List"),
),
},
".pm": &Heuristics{
".plt": &Heuristics{
rule.Or(
rule.MatchingLanguages("Prolog"),
regex.MustCompileMultiline(`^\s*:-`),
),
},
".pm": &Heuristics{
rule.And(
rule.MatchingLanguages("Perl"),
regex.MustCompileMultiline(`\buse\s+(?:strict\b|v?5\.)`),
rule.Not(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^\s*use\s+v6\b`),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`\buse\s+(?:strict\b|v?5\b)|^\s*use\s+(?:constant|overload)\b|^\s*(?:\*|(?:our\s*)?@)EXPORT\s*=|^\s*package\s+[^\W\d]\w*(?:::\w+)*\s*(?:[;{]|\sv?\d)|[\s$][^\W\d]\w*(?::\w+)*->[a-zA-Z_\[({]`),
),
),
rule.Or(
rule.MatchingLanguages("Raku"),
@ -1418,7 +1529,7 @@ var ContentHeuristics = map[string]*Heuristics{
".q": &Heuristics{
rule.Or(
rule.MatchingLanguages("q"),
regex.MustCompileMultiline(`((?i:[A-Z.][\w.]*:{)|(^|\n)\\(cd?|d|l|p|ts?) )`),
regex.MustCompileMultiline(`((?i:[A-Z.][\w.]*:\{)|(^|\n)\\(cd?|d|l|p|ts?) )`),
),
rule.Or(
rule.MatchingLanguages("HiveQL"),
@ -1448,7 +1559,7 @@ var ContentHeuristics = map[string]*Heuristics{
".re": &Heuristics{
rule.Or(
rule.MatchingLanguages("Reason"),
regex.MustCompileMultiline(`^\s*module\s+type\s|^\s*(?:include|open)\s+\w+\s*;\s*$|^\s*let\s+(?:module\s\w+\s*=\s*{|\w+:\s+.*=.*;\s*$)`),
regex.MustCompileMultiline(`^\s*module\s+type\s|^\s*(?:include|open)\s+\w+\s*;\s*$|^\s*let\s+(?:module\s\w+\s*=\s*\{|\w+:\s+.*=.*;\s*$)`),
),
rule.Or(
rule.MatchingLanguages("C++"),
@ -1474,7 +1585,7 @@ var ContentHeuristics = map[string]*Heuristics{
".rpy": &Heuristics{
rule.Or(
rule.MatchingLanguages("Python"),
regex.MustCompileMultiline(`(?m:^(import|from|class|def)\s)`),
regex.MustCompileMultiline(`^(import|from|class|def)\s`),
),
rule.Always(
rule.MatchingLanguages("Ren'Py"),
@ -1564,7 +1675,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Smalltalk"),
regex.MustCompileMultiline(`\A\s*[\[{(^"'\w#]|[a-zA-Z_]\w*\s*:=\s*[a-zA-Z_]\w*|class\s*>>\s*[a-zA-Z_]\w*|^[a-zA-Z_]\w*\s+[a-zA-Z_]\w*:|^Class\s*{|if(?:True|False):\s*\[`),
regex.MustCompileMultiline(`\A\s*[\[{(^"'\w#]|[a-zA-Z_]\w*\s*:=\s*[a-zA-Z_]\w*|class\s*>>\s*[a-zA-Z_]\w*|^[a-zA-Z_]\w*\s+[a-zA-Z_]\w*:|^Class\s*\{|if(?:True|False):\s*\[`),
),
},
".star": &Heuristics{
@ -1579,13 +1690,30 @@ var ContentHeuristics = map[string]*Heuristics{
".stl": &Heuristics{
rule.Or(
rule.MatchingLanguages("STL"),
regex.MustCompileRuby(`\A\s*solid(?=$|\s)(?m:.*?)\Rendsolid(?:$|\s)`),
regex.MustCompileRuby(`\A\s*solid(?=$|\s)(?:.|[\r\n])*?^endsolid(?:$|\s)`),
),
},
".sw": &Heuristics{
rule.Or(
rule.MatchingLanguages("Sway"),
regex.MustCompileMultiline(`^\s*(?:(?:abi|dep|fn|impl|mod|pub|trait)\s|#\[)`),
),
rule.Or(
rule.MatchingLanguages("XML"),
regex.MustCompileMultiline(`^\s*<\?xml\s+version`),
),
},
".t": &Heuristics{
rule.Or(
rule.And(
rule.MatchingLanguages("Perl"),
regex.MustCompileMultiline(`\buse\s+(?:strict\b|v?5\.)`),
rule.Not(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`^\s*use\s+v6\b`),
),
rule.Or(
rule.MatchingLanguages(""),
regex.MustCompileMultiline(`\buse\s+(?:strict\b|v?5\b)|^\s*use\s+(?:constant|overload)\b|^\s*(?:\*|(?:our\s*)?@)EXPORT\s*=|^\s*package\s+[^\W\d]\w*(?:::\w+)*\s*(?:[;{]|\sv?\d)|[\s$][^\W\d]\w*(?::\w+)*->[a-zA-Z_\[({]`),
),
),
rule.Or(
rule.MatchingLanguages("Raku"),
@ -1602,6 +1730,12 @@ var ContentHeuristics = map[string]*Heuristics{
regex.MustCompileMultiline(`<%[@!=\s]?\s*(taglib|tag|include|attribute|variable)\s`),
),
},
".tlv": &Heuristics{
rule.Or(
rule.MatchingLanguages("TL-Verilog"),
regex.MustCompileMultiline(`^\\.{0,10}TLV_version`),
),
},
".toc": &Heuristics{
rule.Or(
rule.MatchingLanguages("World of Warcraft Addon Data"),
@ -1674,7 +1808,7 @@ var ContentHeuristics = map[string]*Heuristics{
".url": &Heuristics{
rule.Or(
rule.MatchingLanguages("INI"),
regex.MustCompileRuby(`^\[InternetShortcut\]\R(?>[^\s\[][^\n]*\R)*URL=`),
regex.MustCompileRuby(`^\[InternetShortcut\](?:\r?\n|\r)(?>[^\s\[][^\n]*(?:\r?\n|\r))*URL=`),
),
},
".v": &Heuristics{
@ -1717,7 +1851,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("RPC"),
regex.MustCompileMultiline(`\b(program|version)\s+\w+\s*{|\bunion\s+\w+\s+switch\s*\(`),
regex.MustCompileMultiline(`\b(program|version)\s+\w+\s*\{|\bunion\s+\w+\s+switch\s*\(`),
),
rule.Or(
rule.MatchingLanguages("Logos"),
@ -1733,6 +1867,31 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("MiniYAML"),
regex.MustCompileMultiline(`^\t+.*?[^\s:].*?:`),
),
rule.Or(
rule.MatchingLanguages("OASv2-yaml"),
regex.MustCompileMultiline(`swagger:\s?'?"?2.[0-9.]+'?"?`),
),
rule.Or(
rule.MatchingLanguages("OASv3-yaml"),
regex.MustCompileMultiline(`openapi:\s?'?"?3.[0-9.]+'?"?`),
),
rule.Always(
rule.MatchingLanguages("YAML"),
),
},
".yml": &Heuristics{
rule.Or(
rule.MatchingLanguages("MiniYAML"),
regex.MustCompileMultiline(`^\t+.*?[^\s:].*?:`),
),
rule.Or(
rule.MatchingLanguages("OASv2-yaml"),
regex.MustCompileMultiline(`swagger:\s?'?"?2.[0-9.]+'?"?`),
),
rule.Or(
rule.MatchingLanguages("OASv3-yaml"),
regex.MustCompileMultiline(`openapi:\s?'?"?3.[0-9.]+'?"?`),
),
rule.Always(
rule.MatchingLanguages("YAML"),
),

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -67,10 +67,12 @@ var LanguagesByExtension = map[string][]string{
".apacheconf": {"ApacheConf"},
".apib": {"API Blueprint"},
".apl": {"APL"},
".app": {"Erlang"},
".app.src": {"Erlang"},
".applescript": {"AppleScript"},
".arc": {"Arc"},
".arpa": {"DNS Zone"},
".arr": {"Pyret"},
".as": {"ActionScript", "AngelScript"},
".asax": {"ASP.NET"},
".asc": {"AGS Script", "AsciiDoc", "Public Key"},
@ -107,7 +109,7 @@ var LanguagesByExtension = map[string][]string{
".axs.erb": {"NetLinx+ERB"},
".b": {"Brainfuck", "Limbo"},
".bal": {"Ballerina"},
".bas": {"BASIC", "FreeBasic", "VBA"},
".bas": {"BASIC", "FreeBasic", "VBA", "Visual Basic 6.0"},
".bash": {"Shell"},
".bat": {"Batchfile"},
".bats": {"Shell"},
@ -170,6 +172,7 @@ var LanguagesByExtension = map[string][]string{
".chpl": {"Chapel"},
".chs": {"C2hs Haskell"},
".cil": {"CIL"},
".circom": {"Circom"},
".cirru": {"Cirru"},
".cjs": {"JavaScript"},
".cjsx": {"CoffeeScript"},
@ -186,13 +189,14 @@ var LanguagesByExtension = map[string][]string{
".cljscm": {"Clojure"},
".cljx": {"Clojure"},
".clp": {"CLIPS"},
".cls": {"Apex", "ObjectScript", "OpenEdge ABL", "TeX", "VBA"},
".cls": {"Apex", "ObjectScript", "OpenEdge ABL", "TeX", "VBA", "Visual Basic 6.0"},
".clw": {"Clarion"},
".cmake": {"CMake"},
".cmake.in": {"CMake"},
".cmd": {"Batchfile"},
".cmp": {"Gerber Image"},
".cnc": {"G-code"},
".cnf": {"INI"},
".cob": {"COBOL"},
".cobol": {"COBOL"},
".cocci": {"SmPL"},
@ -207,6 +211,7 @@ var LanguagesByExtension = map[string][]string{
".cp": {"C++", "Component Pascal"},
".cpp": {"C++"},
".cpp-objdump": {"Cpp-ObjDump"},
".cppm": {"C++"},
".cppobjdump": {"Cpp-ObjDump"},
".cproject": {"XML"},
".cps": {"Component Pascal"},
@ -229,6 +234,7 @@ var LanguagesByExtension = map[string][]string{
".csv": {"CSV"},
".csx": {"C#"},
".ct": {"XML"},
".ctl": {"Visual Basic 6.0"},
".ctp": {"PHP"},
".cts": {"TypeScript"},
".cu": {"Cuda"},
@ -240,8 +246,11 @@ var LanguagesByExtension = map[string][]string{
".cxx": {"C++"},
".cxx-objdump": {"Cpp-ObjDump"},
".cy": {"Cycript"},
".cyp": {"Cypher"},
".cypher": {"Cypher"},
".d": {"D", "DTrace", "Makefile"},
".d-objdump": {"D-ObjDump"},
".d2": {"D2"},
".dae": {"COLLADA"},
".darcspatch": {"Darcs Patch"},
".dart": {"Dart"},
@ -278,6 +287,7 @@ var LanguagesByExtension = map[string][]string{
".dsc": {"Debian Package Control File", "DenizenScript"},
".dsl": {"ASL"},
".dsp": {"Faust", "Microsoft Developer Studio Project"},
".dsr": {"Visual Basic 6.0"},
".dtx": {"TeX"},
".duby": {"Mirah"},
".dwl": {"DataWeave"},
@ -296,6 +306,7 @@ var LanguagesByExtension = map[string][]string{
".ecr": {"HTML+ECR"},
".ect": {"EJS"},
".edc": {"Edje Data Collection"},
".editorconfig": {"EditorConfig"},
".edn": {"edn"},
".eex": {"HTML+EEX"},
".eh": {"eC"},
@ -311,7 +322,7 @@ var LanguagesByExtension = map[string][]string{
".emacs.desktop": {"Emacs Lisp"},
".emberscript": {"EmberScript"},
".eml": {"E-mail"},
".env": {"Shell"},
".env": {"Dotenv"},
".epj": {"Ecere Projects"},
".eps": {"PostScript"},
".epsi": {"PostScript"},
@ -351,9 +362,8 @@ var LanguagesByExtension = map[string][]string{
".fr": {"Forth", "Frege", "Text"},
".frag": {"GLSL", "JavaScript"},
".frg": {"GLSL"},
".frm": {"VBA"},
".frm": {"VBA", "Visual Basic 6.0"},
".frt": {"Forth"},
".frx": {"VBA"},
".fs": {"F#", "Filterscript", "Forth", "GLSL"},
".fsh": {"GLSL"},
".fshader": {"GLSL"},
@ -385,6 +395,8 @@ var LanguagesByExtension = map[string][]string{
".gd": {"GAP", "GDScript"},
".gdb": {"GDB"},
".gdbinit": {"GDB"},
".gdnlib": {"Godot Resource"},
".gdns": {"Godot Resource"},
".ged": {"GEDCOM"},
".gemspec": {"Ruby"},
".geo": {"GLSL"},
@ -470,7 +482,7 @@ var LanguagesByExtension = map[string][]string{
".hsc": {"Haskell"},
".hta": {"HTML"},
".htm": {"HTML"},
".html": {"HTML"},
".html": {"Ecmarkup", "HTML"},
".html.heex": {"HTML+EEX"},
".html.hl": {"HTML"},
".html.leex": {"HTML+EEX"},
@ -495,9 +507,11 @@ var LanguagesByExtension = map[string][]string{
".ijs": {"J"},
".ik": {"Ioke"},
".ily": {"LilyPond"},
".imba": {"Imba"},
".iml": {"XML"},
".inc": {"Assembly", "C++", "HTML", "Motorola 68K Assembly", "NASL", "PHP", "POV-Ray SDL", "Pascal", "Pawn", "SQL", "SourcePawn"},
".ini": {"INI"},
".ink": {"Ink"},
".inl": {"C++"},
".ino": {"C++"},
".ins": {"TeX"},
@ -522,6 +536,7 @@ var LanguagesByExtension = map[string][]string{
".java": {"Java"},
".javascript": {"JavaScript"},
".jbuilder": {"Ruby"},
".jcl": {"JCL"},
".jelly": {"XML"},
".jflex": {"JFlex"},
".jinja": {"Jinja"},
@ -535,9 +550,10 @@ var LanguagesByExtension = map[string][]string{
".jsb": {"JavaScript"},
".jscad": {"JavaScript"},
".jsfl": {"JavaScript"},
".jsh": {"Java"},
".jslib": {"JavaScript"},
".jsm": {"JavaScript"},
".json": {"JSON"},
".json": {"JSON", "OASv2-json", "OASv3-json"},
".json-tmlanguage": {"JSON"},
".json5": {"JSON5"},
".jsonc": {"JSON with Comments"},
@ -561,6 +577,7 @@ var LanguagesByExtension = map[string][]string{
".kojo": {"Scala"},
".kql": {"Kusto"},
".krl": {"KRL"},
".ks": {"KerboScript", "Kickstart"},
".ksh": {"Shell"},
".ksy": {"Kaitai Struct"},
".kt": {"Kotlin"},
@ -595,6 +612,7 @@ var LanguagesByExtension = map[string][]string{
".lisp": {"Common Lisp", "NewLisp"},
".litcoffee": {"Literate CoffeeScript"},
".livemd": {"Markdown"},
".lkml": {"LookML"},
".ll": {"LLVM"},
".lmi": {"Python"},
".logtalk": {"Logtalk"},
@ -647,9 +665,10 @@ var LanguagesByExtension = map[string][]string{
".mdown": {"Markdown"},
".mdpolicy": {"XML"},
".mdwn": {"Markdown"},
".mdx": {"Markdown"},
".mdx": {"MDX"},
".me": {"Roff"},
".mediawiki": {"Wikitext"},
".mermaid": {"Mermaid"},
".meta": {"Unity3D Asset"},
".metal": {"Metal"},
".mg": {"Modula-3"},
@ -675,11 +694,11 @@ var LanguagesByExtension = map[string][]string{
".mll": {"OCaml"},
".mly": {"OCaml"},
".mm": {"Objective-C++", "XML"},
".mmd": {"Mermaid"},
".mmk": {"Module Management System"},
".mms": {"Module Management System"},
".mo": {"Modelica", "Motoko"},
".mod": {"AMPL", "Linux Kernel Module", "Modula-2", "XML"},
".model.lkml": {"LookML"},
".monkey": {"Monkey"},
".monkey2": {"Monkey"},
".moo": {"Mercury", "Moocode"},
@ -749,7 +768,7 @@ var LanguagesByExtension = map[string][]string{
".nsh": {"NSIS"},
".nsi": {"NSIS"},
".nss": {"NWScript"},
".nu": {"Nu"},
".nu": {"Nu", "Nushell"},
".numpy": {"NumPy"},
".numpyw": {"NumPy"},
".numsc": {"NumPy"},
@ -784,6 +803,7 @@ var LanguagesByExtension = map[string][]string{
".p6m": {"Raku"},
".p8": {"Lua"},
".pac": {"JavaScript"},
".pact": {"Pact"},
".pan": {"Pan"},
".parrot": {"Parrot"},
".pas": {"Pascal"},
@ -800,6 +820,7 @@ var LanguagesByExtension = map[string][]string{
".pcss": {"PostCSS"},
".pd": {"Pure Data"},
".pd_lua": {"Lua"},
".pddl": {"PDDL"},
".pde": {"Processing"},
".pegjs": {"PEG.js"},
".pep": {"Pep8"},
@ -831,7 +852,7 @@ var LanguagesByExtension = map[string][]string{
".plot": {"Gnuplot"},
".pls": {"PLSQL"},
".plsql": {"PLSQL"},
".plt": {"Gnuplot"},
".plt": {"Gnuplot", "Prolog"},
".pluginspec": {"Ruby", "XML"},
".plx": {"Perl"},
".pm": {"Perl", "Raku", "X PixMap"},
@ -844,6 +865,7 @@ var LanguagesByExtension = map[string][]string{
".podsl": {"Common Lisp"},
".podspec": {"Ruby"},
".pogo": {"PogoScript"},
".polar": {"Polar"},
".pony": {"Pony"},
".por": {"Portugol"},
".postcss": {"PostCSS"},
@ -916,6 +938,7 @@ var LanguagesByExtension = map[string][]string{
".rbi": {"Ruby"},
".rbmnu": {"REALbasic"},
".rbres": {"REALbasic"},
".rbs": {"RBS"},
".rbtbar": {"REALbasic"},
".rbuild": {"Ruby"},
".rbuistate": {"REALbasic"},
@ -988,6 +1011,7 @@ var LanguagesByExtension = map[string][]string{
".scaml": {"Scaml"},
".scd": {"Markdown", "SuperCollider"},
".sce": {"Scilab"},
".scenic": {"Scenic"},
".sch": {"Eagle", "KiCad Schematic", "Scheme", "XML"},
".schdoc": {"Altium Designer"},
".sci": {"Scilab"},
@ -997,12 +1021,14 @@ var LanguagesByExtension = map[string][]string{
".scrbl": {"Racket"},
".scss": {"SCSS"},
".scxml": {"XML"},
".sdc": {"Tcl"},
".sed": {"sed"},
".self": {"Self"},
".service": {"desktop"},
".sexp": {"Common Lisp"},
".sfd": {"Spline Font Database"},
".sfproj": {"XML"},
".sfv": {"Simple File Verification"},
".sh": {"Shell"},
".sh-session": {"ShellSession"},
".sh.in": {"Shell"},
@ -1028,10 +1054,12 @@ var LanguagesByExtension = map[string][]string{
".sls": {"SaltStack", "Scheme"},
".sma": {"Pawn"},
".smali": {"Smali"},
".smk": {"Python"},
".smithy": {"Smithy"},
".smk": {"Snakemake"},
".sml": {"Standard ML"},
".smt": {"SMT"},
".smt2": {"SMT"},
".snakefile": {"Snakemake"},
".snap": {"Jest Snapshot"},
".snip": {"Vim Snippet"},
".snippet": {"Vim Snippet"},
@ -1085,6 +1113,7 @@ var LanguagesByExtension = map[string][]string{
".svelte": {"Svelte"},
".svg": {"SVG"},
".svh": {"SystemVerilog"},
".sw": {"Sway", "XML"},
".swift": {"Swift"},
".syntax": {"YAML"},
".t": {"Perl", "Raku", "Terra", "Turing"},
@ -1115,6 +1144,7 @@ var LanguagesByExtension = map[string][]string{
".thy": {"Isabelle"},
".tl": {"Type Language"},
".tla": {"TLA"},
".tlv": {"TL-Verilog"},
".tm": {"Tcl"},
".tmac": {"Roff"},
".tmcommand": {"XML Property List"},
@ -1132,8 +1162,11 @@ var LanguagesByExtension = map[string][]string{
".tpl": {"Smarty"},
".tpp": {"C++"},
".tps": {"PLSQL"},
".tres": {"Godot Resource"},
".trg": {"PLSQL"},
".trigger": {"Apex", "Shell"},
".ts": {"TypeScript", "XML"},
".tscn": {"Godot Resource"},
".tst": {"GAP", "Scilab"},
".tsv": {"TSV"},
".tsx": {"TSX", "XML"},
@ -1143,6 +1176,7 @@ var LanguagesByExtension = map[string][]string{
".txi": {"Texinfo"},
".txl": {"TXL"},
".txt": {"Adblock Filter List", "Text", "Vim Help File"},
".txx": {"C++"},
".uc": {"UnrealScript"},
".udf": {"SQL"},
".udo": {"Csound"},
@ -1179,7 +1213,6 @@ var LanguagesByExtension = map[string][]string{
".vhs": {"VHDL"},
".vht": {"VHDL"},
".vhw": {"VHDL"},
".view.lkml": {"LookML"},
".vim": {"Vim Script"},
".vimrc": {"Vim Script"},
".viw": {"SQL"},
@ -1201,15 +1234,17 @@ var LanguagesByExtension = map[string][]string{
".wast": {"WebAssembly"},
".wat": {"WebAssembly"},
".watchr": {"Ruby"},
".wdl": {"wdl"},
".wdl": {"WDL"},
".webapp": {"JSON"},
".webidl": {"WebIDL"},
".webmanifest": {"JSON"},
".weechatlog": {"IRC log"},
".wgsl": {"WGSL"},
".whiley": {"Whiley"},
".wiki": {"Wikitext"},
".wikitext": {"Wikitext"},
".wisp": {"wisp"},
".wit": {"WebAssembly Interface Type"},
".wixproj": {"XML"},
".wl": {"Mathematica"},
".wlk": {"Wollok"},
@ -1233,6 +1268,7 @@ var LanguagesByExtension = map[string][]string{
".xaml": {"XML"},
".xbm": {"X BitMap"},
".xc": {"XC"},
".xdc": {"Tcl"},
".xht": {"HTML"},
".xhtml": {"HTML"},
".xi": {"Logos"},
@ -1276,7 +1312,7 @@ var LanguagesByExtension = map[string][]string{
".xzap": {"ZAP"},
".y": {"Yacc"},
".yacc": {"Yacc"},
".yaml": {"MiniYAML", "YAML"},
".yaml": {"MiniYAML", "OASv2-yaml", "OASv3-yaml", "YAML"},
".yaml-tmlanguage": {"YAML"},
".yaml.sed": {"YAML"},
".yang": {"YANG"},
@ -1284,7 +1320,7 @@ var LanguagesByExtension = map[string][]string{
".yar": {"YARA"},
".yara": {"YARA"},
".yasnippet": {"YASnippet"},
".yml": {"YAML"},
".yml": {"MiniYAML", "OASv2-yaml", "OASv3-yaml", "YAML"},
".yml.mysql": {"YAML"},
".yrl": {"Erlang"},
".yul": {"Yul"},
@ -1333,7 +1369,7 @@ var ExtensionsByLanguage = map[string][]string{
"AngelScript": {".as", ".angelscript"},
"Antlers": {".antlers.html", ".antlers.php", ".antlers.xml"},
"ApacheConf": {".apacheconf", ".vhost"},
"Apex": {".cls"},
"Apex": {".cls", ".trigger"},
"Apollo Guidance Computer": {".agc"},
"AppleScript": {".applescript", ".scpt"},
"Arc": {".arc"},
@ -1369,7 +1405,7 @@ var ExtensionsByLanguage = map[string][]string{
"Brightscript": {".brs"},
"C": {".c", ".cats", ".h", ".idc"},
"C#": {".cs", ".cake", ".csx", ".linq"},
"C++": {".cpp", ".c++", ".cc", ".cp", ".cxx", ".h", ".h++", ".hh", ".hpp", ".hxx", ".inc", ".inl", ".ino", ".ipp", ".ixx", ".re", ".tcc", ".tpp"},
"C++": {".cpp", ".c++", ".cc", ".cp", ".cppm", ".cxx", ".h", ".h++", ".hh", ".hpp", ".hxx", ".inc", ".inl", ".ino", ".ipp", ".ixx", ".re", ".tcc", ".tpp", ".txx"},
"C-ObjDump": {".c-objdump"},
"C2hs Haskell": {".chs"},
"CAP CDS": {".cds"},
@ -1394,6 +1430,7 @@ var ExtensionsByLanguage = map[string][]string{
"Charity": {".ch"},
"Checksums": {".crc32", ".md2", ".md4", ".md5", ".sha1", ".sha2", ".sha224", ".sha256", ".sha256sum", ".sha3", ".sha384", ".sha512"},
"ChucK": {".ck"},
"Circom": {".circom"},
"Cirru": {".cirru"},
"Clarion": {".clw"},
"Clarity": {".clar"},
@ -1422,9 +1459,11 @@ var ExtensionsByLanguage = map[string][]string{
"Cue Sheet": {".cue"},
"Curry": {".curry"},
"Cycript": {".cy"},
"Cypher": {".cyp", ".cypher"},
"Cython": {".pyx", ".pxd", ".pxi"},
"D": {".d", ".di"},
"D-ObjDump": {".d-objdump"},
"D2": {".d2"},
"DIGITAL Command Language": {".com"},
"DM": {".dm"},
"DNS Zone": {".zone", ".arpa"},
@ -1440,6 +1479,7 @@ var ExtensionsByLanguage = map[string][]string{
"DirectX 3D File": {".x"},
"Dockerfile": {".dockerfile"},
"Dogescript": {".djs"},
"Dotenv": {".env"},
"Dylan": {".dylan", ".dyl", ".intr", ".lid"},
"E": {".e"},
"E-mail": {".eml", ".mbox"},
@ -1451,6 +1491,8 @@ var ExtensionsByLanguage = map[string][]string{
"Eagle": {".sch", ".brd"},
"Easybuild": {".eb"},
"Ecere Projects": {".epj"},
"Ecmarkup": {".html"},
"EditorConfig": {".editorconfig"},
"Edje Data Collection": {".edc"},
"Eiffel": {".e"},
"Elixir": {".ex", ".exs"},
@ -1458,7 +1500,7 @@ var ExtensionsByLanguage = map[string][]string{
"Elvish": {".elv"},
"Emacs Lisp": {".el", ".emacs", ".emacs.desktop"},
"EmberScript": {".em", ".emberscript"},
"Erlang": {".erl", ".app.src", ".es", ".escript", ".hrl", ".xrl", ".yrl"},
"Erlang": {".erl", ".app", ".app.src", ".es", ".escript", ".hrl", ".xrl", ".yrl"},
"Euphoria": {".e", ".ex"},
"F#": {".fs", ".fsi", ".fsx"},
"F*": {".fst", ".fsti"},
@ -1508,6 +1550,7 @@ var ExtensionsByLanguage = map[string][]string{
"Glyph Bitmap Distribution Format": {".bdf"},
"Gnuplot": {".gp", ".gnu", ".gnuplot", ".p", ".plot", ".plt"},
"Go": {".go"},
"Godot Resource": {".gdnlib", ".gdns", ".tres", ".tscn"},
"Golo": {".golo"},
"Gosu": {".gs", ".gst", ".gsx", ".vark"},
"Grace": {".grace"},
@ -1542,17 +1585,20 @@ var ExtensionsByLanguage = map[string][]string{
"HyPhy": {".bf"},
"IDL": {".pro", ".dlm"},
"IGOR Pro": {".ipf"},
"INI": {".ini", ".cfg", ".dof", ".lektorproject", ".prefs", ".pro", ".properties", ".url"},
"INI": {".ini", ".cfg", ".cnf", ".dof", ".lektorproject", ".prefs", ".pro", ".properties", ".url"},
"IRC log": {".irclog", ".weechatlog"},
"Idris": {".idr", ".lidr"},
"Ignore List": {".gitignore"},
"ImageJ Macro": {".ijm"},
"Imba": {".imba"},
"Inform 7": {".ni", ".i7x"},
"Ink": {".ink"},
"Inno Setup": {".iss", ".isl"},
"Io": {".io"},
"Ioke": {".ik"},
"Isabelle": {".thy"},
"J": {".ijs"},
"JCL": {".jcl"},
"JFlex": {".flex", ".jflex"},
"JSON": {".json", ".4dform", ".4dproject", ".avsc", ".geojson", ".gltf", ".har", ".ice", ".json-tmlanguage", ".jsonl", ".mcmeta", ".tfstate", ".tfstate.backup", ".topojson", ".webapp", ".webmanifest", ".yy", ".yyp"},
"JSON with Comments": {".jsonc", ".code-snippets", ".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"},
@ -1561,7 +1607,7 @@ var ExtensionsByLanguage = map[string][]string{
"JSONiq": {".jq"},
"Janet": {".janet"},
"Jasmin": {".j"},
"Java": {".java", ".jav"},
"Java": {".java", ".jav", ".jsh"},
"Java Properties": {".properties"},
"Java Server Pages": {".jsp", ".tag"},
"JavaScript": {".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".jsx", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib"},
@ -1578,9 +1624,11 @@ var ExtensionsByLanguage = map[string][]string{
"KRL": {".krl"},
"Kaitai Struct": {".ksy"},
"KakouneScript": {".kak"},
"KerboScript": {".ks"},
"KiCad Layout": {".kicad_pcb", ".kicad_mod", ".kicad_wks"},
"KiCad Legacy Layout": {".brd"},
"KiCad Schematic": {".kicad_sch", ".sch"},
"Kickstart": {".ks"},
"Kit": {".kit"},
"Kotlin": {".kt", ".ktm", ".kts"},
"Kusto": {".csl", ".kql"},
@ -1608,7 +1656,7 @@ var ExtensionsByLanguage = map[string][]string{
"LiveScript": {".ls", "._ls"},
"Logos": {".xm", ".x", ".xi"},
"Logtalk": {".lgt", ".logtalk"},
"LookML": {".lookml", ".model.lkml", ".view.lkml"},
"LookML": {".lkml", ".lookml"},
"LoomScript": {".ls"},
"Lua": {".lua", ".fcgi", ".nse", ".p8", ".pd_lua", ".rbxs", ".rockspec", ".wlua"},
"M": {".mumps", ".m"},
@ -1616,6 +1664,7 @@ var ExtensionsByLanguage = map[string][]string{
"M4Sugar": {".m4"},
"MATLAB": {".matlab", ".m"},
"MAXScript": {".ms", ".mcr"},
"MDX": {".mdx"},
"MLIR": {".mlir"},
"MQL4": {".mq4", ".mqh"},
"MQL5": {".mq5", ".mqh"},
@ -1624,17 +1673,18 @@ var ExtensionsByLanguage = map[string][]string{
"Macaulay2": {".m2"},
"Makefile": {".mak", ".d", ".make", ".makefile", ".mk", ".mkfile"},
"Mako": {".mako", ".mao"},
"Markdown": {".md", ".livemd", ".markdown", ".mdown", ".mdwn", ".mdx", ".mkd", ".mkdn", ".mkdown", ".ronn", ".scd", ".workbook"},
"Markdown": {".md", ".livemd", ".markdown", ".mdown", ".mdwn", ".mkd", ".mkdn", ".mkdown", ".ronn", ".scd", ".workbook"},
"Marko": {".marko"},
"Mask": {".mask"},
"Mathematica": {".mathematica", ".cdf", ".m", ".ma", ".mt", ".nb", ".nbp", ".wl", ".wlt"},
"Max": {".maxpat", ".maxhelp", ".maxproj", ".mxt", ".pat"},
"Mercury": {".m", ".moo"},
"Mermaid": {".mmd", ".mermaid"},
"Metal": {".metal"},
"Microsoft Developer Studio Project": {".dsp"},
"Microsoft Visual Studio Solution": {".sln"},
"MiniD": {".minid"},
"MiniYAML": {".yaml"},
"MiniYAML": {".yaml", ".yml"},
"Mint": {".mint"},
"Mirah": {".druby", ".duby", ".mirah"},
"Modelica": {".mo"},
@ -1673,6 +1723,11 @@ var ExtensionsByLanguage = map[string][]string{
"Nu": {".nu"},
"NumPy": {".numpy", ".numpyw", ".numsc"},
"Nunjucks": {".njk"},
"Nushell": {".nu"},
"OASv2-json": {".json"},
"OASv2-yaml": {".yaml", ".yml"},
"OASv3-json": {".json"},
"OASv3-yaml": {".yaml", ".yml"},
"OCaml": {".ml", ".eliom", ".eliomi", ".ml4", ".mli", ".mll", ".mly"},
"ObjDump": {".objdump"},
"Object Data Instance Notation": {".odin"},
@ -1696,11 +1751,13 @@ var ExtensionsByLanguage = map[string][]string{
"Oxygene": {".oxygene"},
"Oz": {".oz"},
"P4": {".p4"},
"PDDL": {".pddl"},
"PEG.js": {".pegjs"},
"PHP": {".php", ".aw", ".ctp", ".fcgi", ".inc", ".php3", ".php4", ".php5", ".phps", ".phpt"},
"PLSQL": {".pls", ".bdy", ".ddl", ".fnc", ".pck", ".pkb", ".pks", ".plb", ".plsql", ".prc", ".spc", ".sql", ".tpb", ".tps", ".trg", ".vw"},
"PLpgSQL": {".pgsql", ".sql"},
"POV-Ray SDL": {".pov", ".inc"},
"Pact": {".pact"},
"Pan": {".pan"},
"Papyrus": {".psc"},
"Parrot": {".parrot"},
@ -1719,6 +1776,7 @@ var ExtensionsByLanguage = map[string][]string{
"Pod": {".pod"},
"Pod 6": {".pod", ".pod6"},
"PogoScript": {".pogo"},
"Polar": {".polar"},
"Pony": {".pony"},
"Portugol": {".por"},
"PostCSS": {".pcss", ".postcss"},
@ -1728,7 +1786,7 @@ var ExtensionsByLanguage = map[string][]string{
"Prisma": {".prisma"},
"Processing": {".pde"},
"Proguard": {".pro"},
"Prolog": {".pl", ".pro", ".prolog", ".yap"},
"Prolog": {".pl", ".plt", ".pro", ".prolog", ".yap"},
"Promela": {".pml"},
"Propeller Spin": {".spin"},
"Protocol Buffer": {".proto"},
@ -1739,7 +1797,8 @@ var ExtensionsByLanguage = map[string][]string{
"Pure Data": {".pd"},
"PureBasic": {".pb", ".pbi"},
"PureScript": {".purs"},
"Python": {".py", ".cgi", ".fcgi", ".gyp", ".gypi", ".lmi", ".py3", ".pyde", ".pyi", ".pyp", ".pyt", ".pyw", ".rpy", ".smk", ".spec", ".tac", ".wsgi", ".xpy"},
"Pyret": {".arr"},
"Python": {".py", ".cgi", ".fcgi", ".gyp", ".gypi", ".lmi", ".py3", ".pyde", ".pyi", ".pyp", ".pyt", ".pyw", ".rpy", ".spec", ".tac", ".wsgi", ".xpy"},
"Python traceback": {".pytb"},
"Q#": {".qs"},
"QML": {".qml", ".qbs"},
@ -1747,6 +1806,7 @@ var ExtensionsByLanguage = map[string][]string{
"Qt Script": {".qs"},
"R": {".r", ".rd", ".rsx"},
"RAML": {".raml"},
"RBS": {".rbs"},
"RDoc": {".rdoc"},
"REALbasic": {".rbbas", ".rbfrm", ".rbmnu", ".rbres", ".rbtbar", ".rbuistate"},
"REXX": {".rexx", ".pprx", ".rex"},
@ -1798,14 +1858,16 @@ var ExtensionsByLanguage = map[string][]string{
"Sass": {".sass"},
"Scala": {".scala", ".kojo", ".sbt", ".sc"},
"Scaml": {".scaml"},
"Scenic": {".scenic"},
"Scheme": {".scm", ".sch", ".sld", ".sls", ".sps", ".ss"},
"Scilab": {".sci", ".sce", ".tst"},
"Self": {".self"},
"ShaderLab": {".shader"},
"Shell": {".sh", ".bash", ".bats", ".cgi", ".command", ".env", ".fcgi", ".ksh", ".sh.in", ".tmux", ".tool", ".zsh", ".zsh-theme"},
"Shell": {".sh", ".bash", ".bats", ".cgi", ".command", ".fcgi", ".ksh", ".sh.in", ".tmux", ".tool", ".trigger", ".zsh", ".zsh-theme"},
"ShellSession": {".sh-session"},
"Shen": {".shen"},
"Sieve": {".sieve"},
"Simple File Verification": {".sfv"},
"Slash": {".sl"},
"Slice": {".ice"},
"Slim": {".slim"},
@ -1813,6 +1875,8 @@ var ExtensionsByLanguage = map[string][]string{
"Smali": {".smali"},
"Smalltalk": {".st", ".cs"},
"Smarty": {".tpl"},
"Smithy": {".smithy"},
"Snakemake": {".smk", ".snakefile"},
"Solidity": {".sol"},
"SourcePawn": {".sp", ".inc"},
"Spline Font Database": {".sfd"},
@ -1827,9 +1891,11 @@ var ExtensionsByLanguage = map[string][]string{
"SugarSS": {".sss"},
"SuperCollider": {".sc", ".scd"},
"Svelte": {".svelte"},
"Sway": {".sw"},
"Swift": {".swift"},
"SystemVerilog": {".sv", ".svh", ".vh"},
"TI Program": {".8xp", ".8xk", ".8xk.txt", ".8xp.txt"},
"TL-Verilog": {".tlv"},
"TLA": {".tla"},
"TOML": {".toml"},
"TSQL": {".sql"},
@ -1837,7 +1903,7 @@ var ExtensionsByLanguage = map[string][]string{
"TSX": {".tsx"},
"TXL": {".txl"},
"Talon": {".talon"},
"Tcl": {".tcl", ".adp", ".tcl.in", ".tm"},
"Tcl": {".tcl", ".adp", ".sdc", ".tcl.in", ".tm", ".xdc"},
"Tcsh": {".tcsh", ".csh"},
"TeX": {".tex", ".aux", ".bbx", ".cbx", ".cls", ".dtx", ".ins", ".lbx", ".ltx", ".mkii", ".mkiv", ".mkvi", ".sty", ".toc"},
"Tea": {".tea"},
@ -1858,7 +1924,7 @@ var ExtensionsByLanguage = map[string][]string{
"UnrealScript": {".uc"},
"UrWeb": {".ur", ".urs"},
"V": {".v"},
"VBA": {".bas", ".cls", ".frm", ".frx", ".vba"},
"VBA": {".bas", ".cls", ".frm", ".vba"},
"VBScript": {".vbs"},
"VCL": {".vcl"},
"VHDL": {".vhdl", ".vhd", ".vhf", ".vhi", ".vho", ".vhs", ".vht", ".vhw"},
@ -1870,13 +1936,17 @@ var ExtensionsByLanguage = map[string][]string{
"Vim Script": {".vim", ".vba", ".vimrc", ".vmb"},
"Vim Snippet": {".snip", ".snippet", ".snippets"},
"Visual Basic .NET": {".vb", ".vbhtml"},
"Visual Basic 6.0": {".bas", ".cls", ".ctl", ".dsr", ".frm"},
"Volt": {".volt"},
"Vue": {".vue"},
"Vyper": {".vy"},
"WDL": {".wdl"},
"WGSL": {".wgsl"},
"Wavefront Material": {".mtl"},
"Wavefront Object": {".obj"},
"Web Ontology Language": {".owl"},
"WebAssembly": {".wast", ".wat"},
"WebAssembly Interface Type": {".wit"},
"WebIDL": {".webidl"},
"WebVTT": {".vtt"},
"Whiley": {".whiley"},
@ -1891,7 +1961,7 @@ var ExtensionsByLanguage = map[string][]string{
"X PixMap": {".xpm", ".pm"},
"X10": {".x10"},
"XC": {".xc"},
"XML": {".xml", ".adml", ".admx", ".ant", ".axaml", ".axml", ".builds", ".ccproj", ".ccxml", ".clixml", ".cproject", ".cscfg", ".csdef", ".csl", ".csproj", ".ct", ".depproj", ".dita", ".ditamap", ".ditaval", ".dll.config", ".dotsettings", ".filters", ".fsproj", ".fxml", ".glade", ".gml", ".gmx", ".grxml", ".gst", ".hzp", ".iml", ".ivy", ".jelly", ".jsproj", ".kml", ".launch", ".mdpolicy", ".mjml", ".mm", ".mod", ".mxml", ".natvis", ".ncl", ".ndproj", ".nproj", ".nuspec", ".odd", ".osm", ".pkgproj", ".pluginspec", ".proj", ".props", ".ps1xml", ".psc1", ".pt", ".qhelp", ".rdf", ".res", ".resx", ".rs", ".rss", ".sch", ".scxml", ".sfproj", ".shproj", ".srdf", ".storyboard", ".sublime-snippet", ".targets", ".tml", ".ts", ".tsx", ".ui", ".urdf", ".ux", ".vbproj", ".vcxproj", ".vsixmanifest", ".vssettings", ".vstemplate", ".vxml", ".wixproj", ".workflow", ".wsdl", ".wsf", ".wxi", ".wxl", ".wxs", ".x3d", ".xacro", ".xaml", ".xib", ".xlf", ".xliff", ".xmi", ".xml.dist", ".xmp", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
"XML": {".xml", ".adml", ".admx", ".ant", ".axaml", ".axml", ".builds", ".ccproj", ".ccxml", ".clixml", ".cproject", ".cscfg", ".csdef", ".csl", ".csproj", ".ct", ".depproj", ".dita", ".ditamap", ".ditaval", ".dll.config", ".dotsettings", ".filters", ".fsproj", ".fxml", ".glade", ".gml", ".gmx", ".grxml", ".gst", ".hzp", ".iml", ".ivy", ".jelly", ".jsproj", ".kml", ".launch", ".mdpolicy", ".mjml", ".mm", ".mod", ".mxml", ".natvis", ".ncl", ".ndproj", ".nproj", ".nuspec", ".odd", ".osm", ".pkgproj", ".pluginspec", ".proj", ".props", ".ps1xml", ".psc1", ".pt", ".qhelp", ".rdf", ".res", ".resx", ".rs", ".rss", ".sch", ".scxml", ".sfproj", ".shproj", ".srdf", ".storyboard", ".sublime-snippet", ".sw", ".targets", ".tml", ".ts", ".tsx", ".ui", ".urdf", ".ux", ".vbproj", ".vcxproj", ".vsixmanifest", ".vssettings", ".vstemplate", ".vxml", ".wixproj", ".workflow", ".wsdl", ".wsf", ".wxi", ".wxl", ".wxs", ".x3d", ".xacro", ".xaml", ".xib", ".xlf", ".xliff", ".xmi", ".xml.dist", ".xmp", ".xproj", ".xsd", ".xspec", ".xul", ".zcml"},
"XML Property List": {".plist", ".sttheme", ".tmcommand", ".tmlanguage", ".tmpreferences", ".tmsnippet", ".tmtheme"},
"XPages": {".xsp-config", ".xsp.metadata"},
"XProc": {".xpl", ".xproc"},
@ -1931,7 +2001,6 @@ var ExtensionsByLanguage = map[string][]string{
"q": {".q"},
"reStructuredText": {".rst", ".rest", ".rest.txt", ".rst.txt"},
"sed": {".sed"},
"wdl": {".wdl"},
"wisp": {".wisp"},
"xBase": {".prg", ".ch", ".prw"},
}

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -7,12 +7,15 @@ var LanguagesByFilename = map[string][]string{
".Rprofile": {"R"},
".XCompose": {"XCompose"},
".abbrev_defs": {"Emacs Lisp"},
".ackrc": {"Option List"},
".all-contributorsrc": {"JSON"},
".arcconfig": {"JSON"},
".atomignore": {"Ignore List"},
".auto-changelog": {"JSON"},
".babelignore": {"Ignore List"},
".babelrc": {"JSON with Comments"},
".bash_aliases": {"Shell"},
".bash_functions": {"Shell"},
".bash_history": {"Shell"},
".bash_logout": {"Shell"},
".bash_profile": {"Shell"},
@ -37,8 +40,18 @@ var LanguagesByFilename = map[string][]string{
".eleventyignore": {"Ignore List"},
".emacs": {"Emacs Lisp"},
".emacs.desktop": {"Emacs Lisp"},
".env": {"Shell"},
".env.example": {"Shell"},
".env": {"Dotenv"},
".env.ci": {"Dotenv"},
".env.dev": {"Dotenv"},
".env.development": {"Dotenv"},
".env.development.local": {"Dotenv"},
".env.example": {"Dotenv"},
".env.local": {"Dotenv"},
".env.prod": {"Dotenv"},
".env.production": {"Dotenv"},
".env.staging": {"Dotenv"},
".env.test": {"Dotenv"},
".env.testing": {"Dotenv"},
".eslintignore": {"Ignore List"},
".eslintrc.json": {"JSON with Comments"},
".exrc": {"Vim Script"},
@ -65,6 +78,7 @@ var LanguagesByFilename = map[string][]string{
".jshintrc": {"JSON with Comments"},
".jslintrc": {"JSON with Comments"},
".kshrc": {"Shell"},
".latexmkrc": {"Perl"},
".login": {"Shell"},
".luacheckrc": {"Lua"},
".markdownlintignore": {"Ignore List"},
@ -82,10 +96,13 @@ var LanguagesByFilename = map[string][]string{
".project": {"XML"},
".pryrc": {"Ruby"},
".pylintrc": {"INI"},
".scalafix.conf": {"HOCON"},
".scalafmt.conf": {"HOCON"},
".shellcheckrc": {"ShellCheck Config"},
".simplecov": {"Ruby"},
".spacemacs": {"Emacs Lisp"},
".stylelintignore": {"Ignore List"},
".swcrc": {"JSON with Comments"},
".tern-config": {"JSON"},
".tern-project": {"JSON"},
".tm_properties": {"TextMate Properties"},
@ -140,17 +157,21 @@ var LanguagesByFilename = map[string][]string{
"Gemfile.lock": {"Gemfile.lock"},
"Gopkg.lock": {"TOML"},
"Guardfile": {"Ruby"},
"HOSTS": {"Hosts File", "INI"},
"INSTALL": {"Text"},
"INSTALL.mysql": {"Text"},
"JUSTFILE": {"Just"},
"Jakefile": {"JavaScript"},
"Jarfile": {"Ruby"},
"Jenkinsfile": {"Groovy"},
"Justfile": {"Just"},
"Kbuild": {"Makefile"},
"LICENSE": {"Text"},
"LICENSE.mysql": {"Text"},
"Lexer.x": {"Lex"},
"MANIFEST.MF": {"JAR Manifest"},
"MD5SUMS": {"Checksums"},
"MODULE.bazel": {"Starlark"},
"Makefile": {"Makefile"},
"Makefile.PL": {"Perl"},
"Makefile.am": {"Makefile"},
@ -188,13 +209,14 @@ var LanguagesByFilename = map[string][]string{
"Settings.StyleCop": {"XML"},
"Singularity": {"Singularity"},
"Slakefile": {"LiveScript"},
"Snakefile": {"Python"},
"Snakefile": {"Snakemake"},
"Snapfile": {"Ruby"},
"Steepfile": {"Ruby"},
"Thorfile": {"Ruby"},
"Tiltfile": {"Starlark"},
"Vagrantfile": {"Ruby"},
"WORKSPACE": {"Starlark"},
"WORKSPACE.bazel": {"Starlark"},
"Web.Debug.config": {"XML"},
"Web.Release.config": {"XML"},
"Web.config": {"XML"},
@ -207,6 +229,7 @@ var LanguagesByFilename = map[string][]string{
"_vimrc": {"Vim Script"},
"abbrev_defs": {"Emacs Lisp"},
"ack": {"Perl"},
"ackrc": {"Option List"},
"ant.xml": {"Ant Build System"},
"apache2.conf": {"ApacheConf"},
"api-extractor.json": {"JSON with Comments"},
@ -238,6 +261,7 @@ var LanguagesByFilename = map[string][]string{
"expr-dist": {"R"},
"file_contexts": {"SELinux Policy"},
"firestore.rules": {"Cloud Firestore Security Rules"},
"flake.lock": {"JSON"},
"fonts.alias": {"X Font Directory Index"},
"fonts.dir": {"X Font Directory Index"},
"fonts.scale": {"X Font Directory Index"},
@ -248,19 +272,24 @@ var LanguagesByFilename = map[string][]string{
"glide.lock": {"YAML"},
"go.mod": {"Go Module"},
"go.sum": {"Go Checksums"},
"go.work": {"Go Workspace"},
"go.work.sum": {"Go Checksums"},
"gradlew": {"Shell"},
"gvimrc": {"Vim Script"},
"haproxy.cfg": {"HAProxy"},
"hosts": {"Hosts File", "INI"},
"httpd.conf": {"ApacheConf"},
"initial_sids": {"SELinux Policy"},
"inputrc": {"Readline Config"},
"installscript.qs": {"Qt Script"},
"jsconfig.json": {"JSON with Comments"},
"justfile": {"Just"},
"kakrc": {"KakouneScript"},
"keep.me": {"Text"},
"kshrc": {"Shell"},
"language-configuration.json": {"JSON with Comments"},
"language-subtag-registry.txt": {"Record Jar"},
"latexmkrc": {"Perl"},
"ld.script": {"Linker Script"},
"lexer.x": {"Lex"},
"login": {"Shell"},
@ -277,6 +306,7 @@ var LanguagesByFilename = map[string][]string{
"mkfile": {"Makefile"},
"mmn": {"Roff"},
"mmt": {"Roff"},
"mocha.opts": {"Option List"},
"nanorc": {"nanorc"},
"nextflow.config": {"Nextflow"},
"nginx.conf": {"Nginx"},
@ -287,10 +317,12 @@ var LanguagesByFilename = map[string][]string{
"package.use.mask": {"Text"},
"package.use.stable.mask": {"Text"},
"packages.config": {"XML"},
"pdm.lock": {"TOML"},
"poetry.lock": {"TOML"},
"pom.xml": {"Maven POM"},
"port_contexts": {"SELinux Policy"},
"profile": {"Shell"},
"project.godot": {"Godot Resource"},
"pylintrc": {"INI"},
"read.me": {"Text"},
"readme.1st": {"Text"},
@ -316,6 +348,7 @@ var LanguagesByFilename = map[string][]string{
"use.mask": {"Text"},
"use.stable.mask": {"Text"},
"vimrc": {"Vim Script"},
"vlcrc": {"INI"},
"wscript": {"Python"},
"xcompose": {"XCompose"},
"yarn.lock": {"YAML"},

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -14,7 +14,9 @@ var LanguagesGroup = map[string]string{
"ECLiPSe": "prolog",
"Easybuild": "Python",
"Ecere Projects": "JavaScript",
"Ecmarkup": "HTML",
"EditorConfig": "INI",
"Elvish Transcript": "Elvish",
"Filterscript": "RenderScript",
"Fortran": "Fortran",
"Fortran Free Form": "Fortran",
@ -46,6 +48,10 @@ var LanguagesGroup = map[string]string{
"Motorola 68K Assembly": "Assembly",
"NPM Config": "INI",
"NumPy": "Python",
"OASv2-json": "OpenAPI Specification v2",
"OASv2-yaml": "OpenAPI Specification v2",
"OASv3-json": "OpenAPI Specification v3",
"OASv3-yaml": "OpenAPI Specification v3",
"OpenCL": "C",
"OpenRC runscript": "Shell",
"Parrot Assembly": "Parrot",
@ -54,11 +60,14 @@ var LanguagesGroup = map[string]string{
"PostCSS": "CSS",
"Python console": "Python",
"Python traceback": "Python",
"RBS": "Ruby",
"Readline Config": "INI",
"ReasonLIGO": "LigoLANG",
"Roff Manpage": "Roff",
"SSH Config": "INI",
"STON": "Smalltalk",
"Simple File Verification": "Checksums",
"Snakemake": "Python",
"TSX": "TypeScript",
"Tcsh": "Shell",
"Unified Parallel C": "C",

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -82,6 +82,7 @@ var LanguagesByInterpreter = map[string][]string{
"nextflow": {"Nextflow"},
"node": {"JavaScript"},
"nodejs": {"JavaScript"},
"nu": {"Nushell"},
"nush": {"Nu"},
"ocaml": {"OCaml", "ReScript"},
"ocamlrun": {"OCaml"},
@ -98,6 +99,9 @@ var LanguagesByInterpreter = map[string][]string{
"pike": {"Pike"},
"pil": {"PicoLisp"},
"pwsh": {"PowerShell"},
"py": {"Python"},
"pypy": {"Python"},
"pypy3": {"Python"},
"python": {"Python"},
"python2": {"Python"},
"python3": {"Python"},
@ -118,8 +122,10 @@ var LanguagesByInterpreter = map[string][]string{
"runghc": {"Haskell"},
"runhaskell": {"Haskell"},
"runhugs": {"Haskell"},
"rust-script": {"Rust"},
"sbcl": {"Common Lisp"},
"scala": {"Scala"},
"scenic": {"Scenic"},
"scheme": {"Scheme"},
"sclang": {"SuperCollider"},
"scsynth": {"SuperCollider"},

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -56,6 +56,7 @@ var LanguagesMime = map[string]string{
"Eagle": "text/xml",
"Easybuild": "text/x-python",
"Ecere Projects": "application/json",
"Ecmarkup": "text/html",
"EditorConfig": "text/x-properties",
"Edje Data Collection": "text/x-c++src",
"Eiffel": "text/x-eiffel",
@ -133,6 +134,7 @@ var LanguagesMime = map[string]string{
"Lua": "text/x-lua",
"M": "text/x-mumps",
"MATLAB": "text/x-octave",
"MDX": "text/x-gfm",
"MTML": "text/html",
"MUF": "text/x-forth",
"Makefile": "text/x-cmake",
@ -154,11 +156,17 @@ var LanguagesMime = map[string]string{
"Nginx": "text/x-nginx-conf",
"Nu": "text/x-scheme",
"NumPy": "text/x-python",
"Nushell": "text/x-sh",
"OASv2-json": "application/json",
"OASv2-yaml": "text/x-yaml",
"OASv3-json": "application/json",
"OASv3-yaml": "text/x-yaml",
"OCaml": "text/x-ocaml",
"Objective-C": "text/x-objectivec",
"Objective-C++": "text/x-objectivec",
"OpenCL": "text/x-csrc",
"OpenRC runscript": "text/x-sh",
"Option List": "text/x-sh",
"Oz": "text/x-oz",
"PEG.js": "text/javascript",
"PHP": "application/x-httpd-php",
@ -178,6 +186,7 @@ var LanguagesMime = map[string]string{
"Qt Script": "text/javascript",
"R": "text/x-rsrc",
"RAML": "text/x-yaml",
"RBS": "text/x-ruby",
"RMarkdown": "text/x-gfm",
"RPM Spec": "text/x-rpm-spec",
"Raku": "text/x-perl",
@ -207,14 +216,18 @@ var LanguagesMime = map[string]string{
"ShellCheck Config": "text/x-properties",
"ShellSession": "text/x-sh",
"Sieve": "application/sieve",
"Simple File Verification": "text/x-properties",
"Slim": "text/x-slim",
"Smalltalk": "text/x-stsrc",
"Smarty": "text/x-smarty",
"Smithy": "text/x-csrc",
"Snakemake": "text/x-python",
"Squirrel": "text/x-c++src",
"Standard ML": "text/x-ocaml",
"Starlark": "text/x-python",
"StringTemplate": "text/html",
"Svelte": "text/html",
"Sway": "text/x-rustsrc",
"Swift": "text/x-swift",
"SystemVerilog": "text/x-systemverilog",
"TOML": "text/x-toml",
@ -239,8 +252,10 @@ var LanguagesMime = map[string]string{
"Velocity Template Language": "text/velocity",
"Verilog": "text/x-verilog",
"Visual Basic .NET": "text/x-vb",
"Visual Basic 6.0": "text/x-vb",
"Volt": "text/x-d",
"WebAssembly": "text/x-common-lisp",
"WebAssembly Interface Type": "text/x-webidl",
"WebIDL": "text/x-webidl",
"Win32 Message File": "text/x-properties",
"Windows Registry Entries": "text/x-properties",

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -138,6 +138,7 @@ var LanguagesType = map[string]int{
"Charity": 2,
"Checksums": 1,
"ChucK": 2,
"Circom": 2,
"Cirru": 2,
"Clarion": 2,
"Clarity": 2,
@ -167,9 +168,11 @@ var LanguagesType = map[string]int{
"Cue Sheet": 1,
"Curry": 2,
"Cycript": 2,
"Cypher": 2,
"Cython": 2,
"D": 2,
"D-ObjDump": 1,
"D2": 3,
"DIGITAL Command Language": 2,
"DM": 2,
"DNS Zone": 1,
@ -185,6 +188,7 @@ var LanguagesType = map[string]int{
"DirectX 3D File": 1,
"Dockerfile": 2,
"Dogescript": 2,
"Dotenv": 1,
"Dylan": 2,
"E": 2,
"E-mail": 1,
@ -197,12 +201,14 @@ var LanguagesType = map[string]int{
"Earthly": 2,
"Easybuild": 1,
"Ecere Projects": 1,
"Ecmarkup": 3,
"EditorConfig": 1,
"Edje Data Collection": 1,
"Eiffel": 2,
"Elixir": 2,
"Elm": 2,
"Elvish": 2,
"Elvish Transcript": 2,
"Emacs Lisp": 2,
"EmberScript": 2,
"Erlang": 2,
@ -260,6 +266,8 @@ var LanguagesType = map[string]int{
"Go": 2,
"Go Checksums": 1,
"Go Module": 1,
"Go Workspace": 1,
"Godot Resource": 1,
"Golo": 2,
"Gosu": 2,
"Grace": 2,
@ -290,6 +298,7 @@ var LanguagesType = map[string]int{
"Haxe": 2,
"HiveQL": 2,
"HolyC": 2,
"Hosts File": 1,
"Hy": 2,
"HyPhy": 2,
"IDL": 2,
@ -299,7 +308,9 @@ var LanguagesType = map[string]int{
"Idris": 2,
"Ignore List": 1,
"ImageJ Macro": 2,
"Imba": 2,
"Inform 7": 2,
"Ink": 2,
"Inno Setup": 2,
"Io": 2,
"Ioke": 2,
@ -307,6 +318,7 @@ var LanguagesType = map[string]int{
"Isabelle ROOT": 2,
"J": 2,
"JAR Manifest": 1,
"JCL": 2,
"JFlex": 2,
"JSON": 1,
"JSON with Comments": 1,
@ -329,12 +341,15 @@ var LanguagesType = map[string]int{
"Jsonnet": 2,
"Julia": 2,
"Jupyter Notebook": 3,
"Just": 2,
"KRL": 2,
"Kaitai Struct": 2,
"KakouneScript": 2,
"KerboScript": 2,
"KiCad Layout": 1,
"KiCad Legacy Layout": 1,
"KiCad Schematic": 1,
"Kickstart": 1,
"Kit": 3,
"Kotlin": 2,
"Kusto": 1,
@ -370,6 +385,7 @@ var LanguagesType = map[string]int{
"M4Sugar": 2,
"MATLAB": 2,
"MAXScript": 2,
"MDX": 3,
"MLIR": 2,
"MQL4": 2,
"MQL5": 2,
@ -385,6 +401,7 @@ var LanguagesType = map[string]int{
"Maven POM": 1,
"Max": 2,
"Mercury": 2,
"Mermaid": 3,
"Meson": 2,
"Metal": 2,
"Microsoft Developer Studio Project": 1,
@ -430,6 +447,11 @@ var LanguagesType = map[string]int{
"Nu": 2,
"NumPy": 2,
"Nunjucks": 3,
"Nushell": 2,
"OASv2-json": 1,
"OASv2-yaml": 1,
"OASv3-json": 1,
"OASv3-yaml": 1,
"OCaml": 2,
"ObjDump": 1,
"Object Data Instance Notation": 1,
@ -442,6 +464,8 @@ var LanguagesType = map[string]int{
"Opa": 2,
"Opal": 2,
"Open Policy Agent": 2,
"OpenAPI Specification v2": 1,
"OpenAPI Specification v3": 1,
"OpenCL": 2,
"OpenEdge ABL": 2,
"OpenQASM": 2,
@ -449,16 +473,19 @@ var LanguagesType = map[string]int{
"OpenSCAD": 2,
"OpenStep Property List": 1,
"OpenType Feature File": 1,
"Option List": 1,
"Org": 4,
"Ox": 2,
"Oxygene": 2,
"Oz": 2,
"P4": 2,
"PDDL": 2,
"PEG.js": 2,
"PHP": 2,
"PLSQL": 2,
"PLpgSQL": 2,
"POV-Ray SDL": 2,
"Pact": 2,
"Pan": 2,
"Papyrus": 2,
"Parrot": 2,
@ -477,6 +504,7 @@ var LanguagesType = map[string]int{
"Pod": 4,
"Pod 6": 4,
"PogoScript": 2,
"Polar": 2,
"Pony": 2,
"Portugol": 2,
"PostCSS": 3,
@ -498,6 +526,7 @@ var LanguagesType = map[string]int{
"Pure Data": 1,
"PureBasic": 2,
"PureScript": 2,
"Pyret": 2,
"Python": 2,
"Python console": 2,
"Python traceback": 1,
@ -508,6 +537,7 @@ var LanguagesType = map[string]int{
"Quake": 2,
"R": 2,
"RAML": 3,
"RBS": 1,
"RDoc": 4,
"REALbasic": 2,
"REXX": 2,
@ -563,6 +593,7 @@ var LanguagesType = map[string]int{
"Sass": 3,
"Scala": 2,
"Scaml": 3,
"Scenic": 2,
"Scheme": 2,
"Scilab": 2,
"Self": 2,
@ -572,6 +603,7 @@ var LanguagesType = map[string]int{
"ShellSession": 2,
"Shen": 2,
"Sieve": 2,
"Simple File Verification": 1,
"Singularity": 2,
"Slash": 2,
"Slice": 2,
@ -580,6 +612,8 @@ var LanguagesType = map[string]int{
"Smali": 2,
"Smalltalk": 2,
"Smarty": 2,
"Smithy": 2,
"Snakemake": 2,
"Solidity": 2,
"Soong": 1,
"SourcePawn": 2,
@ -595,9 +629,11 @@ var LanguagesType = map[string]int{
"SugarSS": 3,
"SuperCollider": 2,
"Svelte": 3,
"Sway": 2,
"Swift": 2,
"SystemVerilog": 2,
"TI Program": 2,
"TL-Verilog": 2,
"TLA": 2,
"TOML": 1,
"TSQL": 2,
@ -639,13 +675,17 @@ var LanguagesType = map[string]int{
"Vim Script": 2,
"Vim Snippet": 3,
"Visual Basic .NET": 2,
"Visual Basic 6.0": 2,
"Volt": 2,
"Vue": 3,
"Vyper": 2,
"WDL": 2,
"WGSL": 2,
"Wavefront Material": 1,
"Wavefront Object": 1,
"Web Ontology Language": 1,
"WebAssembly": 2,
"WebAssembly Interface Type": 1,
"WebIDL": 2,
"WebVTT": 1,
"Wget Config": 1,
@ -705,7 +745,6 @@ var LanguagesType = map[string]int{
"reStructuredText": 4,
"robots.txt": 1,
"sed": 2,
"wdl": 2,
"wisp": 2,
"xBase": 2,
}

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: bf853f1c663903e3ee35935189760191f1c45e1c
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
package data
@ -36,7 +36,7 @@ var VendorMatchers = []regex.EnryRegexp{
regex.MustCompile(`(^|/)\.indent\.pro`),
regex.MustCompile(`(\.|-)min\.(js|css)$`),
regex.MustCompile(`([^\s]*)import\.(css|less|scss|styl)$`),
regex.MustCompileRuby(`(^|/)bootstrap([^/.]*)(?=\.).*\.(js|css|less|scss|styl)$`),
regex.MustCompile(`(^|/)bootstrap([^/.]*)(\..*)?\.(js|css|less|scss|styl)$`),
regex.MustCompile(`(^|/)custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$`),
regex.MustCompile(`(^|/)font-?awesome\.(css|less|scss|styl)$`),
regex.MustCompile(`(^|/)font-?awesome/.*\.(css|less|scss|styl)$`),
@ -159,7 +159,6 @@ var VendorMatchers = []regex.EnryRegexp{
regex.MustCompile(`(^|/)foundation(\..*)?\.js$`),
regex.MustCompile(`(^|/)Vagrantfile$`),
regex.MustCompile(`(^|/)\.[Dd][Ss]_[Ss]tore$`),
regex.MustCompile(`(^|/)vignettes/`),
regex.MustCompile(`(^|/)inst/extdata/`),
regex.MustCompile(`(^|/)octicons\.css`),
regex.MustCompile(`(^|/)sprockets-octicons\.scss`),
@ -172,7 +171,9 @@ var VendorMatchers = []regex.EnryRegexp{
regex.MustCompile(`(^|/)Jenkinsfile$`),
regex.MustCompile(`(^|/)\.gitpod\.Dockerfile$`),
regex.MustCompile(`(^|/)\.github/`),
regex.MustCompile(`(^|/)\.obsidian/`),
regex.MustCompile(`(^|/)\.teamcity/`),
}
// FastVendorMatcher is equivalent to matching any of the VendorMatchers.
var FastVendorMatcher = regex.MustCompileRuby(`(?:^(?:(?:[Dd]ependencies/)|(?:debian/)|(?:deps/)|(?:rebar$)))|(?:(?:^|/)(?:(?:BuddyBuildSDK\.framework/)|(?:Carthage/)|(?:Chart\.js$)|(?:Control\.FullScreen\.css)|(?:Control\.FullScreen\.js)|(?:Crashlytics\.framework/)|(?:Fabric\.framework/)|(?:Godeps/_workspace/)|(?:Jenkinsfile$)|(?:Leaflet\.Coordinates-\d+\.\d+\.\d+\.src\.js$)|(?:MathJax/)|(?:MochiKit\.js$)|(?:RealmSwift\.framework)|(?:Realm\.framework)|(?:Sparkle/)|(?:Vagrantfile$)|(?:[Bb]ourbon/.*\.(css|less|scss|styl)$)|(?:[Cc]ode[Mm]irror/(\d+\.\d+/)?(lib|mode|theme|addon|keymap|demo))|(?:[Ee]xtern(als?)?/)|(?:[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$)|(?:[Pp]ackages\/.+\.\d+\/)|(?:[Ss]pecs?/fixtures/)|(?:[Tt]ests?/fixtures/)|(?:[Vv]+endor/)|(?:\.[Dd][Ss]_[Ss]tore$)|(?:\.gitattributes$)|(?:\.github/)|(?:\.gitignore$)|(?:\.gitmodules$)|(?:\.gitpod\.Dockerfile$)|(?:\.google_apis/)|(?:\.indent\.pro)|(?:\.mvn/wrapper/)|(?:\.osx$)|(?:\.sublime-project)|(?:\.sublime-workspace)|(?:\.vscode/)|(?:\.yarn/plugins/)|(?:\.yarn/releases/)|(?:\.yarn/sdks/)|(?:\.yarn/unplugged/)|(?:\.yarn/versions/)|(?:_esy$)|(?:ace-builds/)|(?:aclocal\.m4)|(?:activator$)|(?:activator\.bat$)|(?:admin_media/)|(?:angular([^.]*)\.js$)|(?:animate\.(css|less|scss|styl)$)|(?:bootbox\.js)|(?:bootstrap([^/.]*)(?=\.).*\.(js|css|less|scss|styl)$)|(?:bootstrap-datepicker/)|(?:bower_components/)|(?:bulma\.(css|sass|scss)$)|(?:cache/)|(?:ckeditor\.js$)|(?:config\.guess$)|(?:config\.sub$)|(?:configure$)|(?:controls\.js$)|(?:cordova([^.]*)\.js$)|(?:cordova\-\d\.\d(\.\d)?\.js$)|(?:cpplint\.py)|(?:custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$)|(?:dist/)|(?:docs?/_?(build|themes?|templates?|static)/)|(?:dojo\.js$)|(?:dotnet-install\.(ps1|sh)$)|(?:dragdrop\.js$)|(?:effects\.js$)|(?:env/)|(?:erlang\.mk)|(?:extjs/.*?\.html$)|(?:extjs/.*?\.js$)|(?:extjs/.*?\.properties$)|(?:extjs/.*?\.txt$)|(?:extjs/.*?\.xml$)|(?:extjs/\.sencha/)|(?:extjs/builds/)|(?:extjs/cmd/)|(?:extjs/docs/)|(?:extjs/examples/)|(?:extjs/locale/)|(?:extjs/packages/)|(?:extjs/plugins/)|(?:extjs/resources/)|(?:extjs/src/)|(?:extjs/welcome/)|(?:fabfile\.py$)|(?:flow-typed/.*\.js$)|(?:font-?awesome/.*\.(css|less|scss|styl)$)|(?:font-?awesome\.(css|less|scss|styl)$)|(?:fontello(.*?)\.css$)|(?:foundation(\..*)?\.js$)|(?:foundation\.(css|less|scss|styl)$)|(?:fuelux\.js)|(?:gradle/wrapper/)|(?:gradlew$)|(?:gradlew\.bat$)|(?:html5shiv\.js$)|(?:inst/extdata/)|(?:jquery([^.]*)\.js$)|(?:jquery([^.]*)\.unobtrusive\-ajax\.js$)|(?:jquery([^.]*)\.validate(\.unobtrusive)?\.js$)|(?:jquery\-\d\.\d+(\.\d+)?\.js$)|(?:jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?\.(js|css)$)|(?:jquery\.(ui|effects)\.([^.]*)\.(js|css)$)|(?:jquery\.dataTables\.js)|(?:jquery\.fancybox\.(js|css))|(?:jquery\.fileupload(-\w+)?\.js$)|(?:jquery\.fn\.gantt\.js)|(?:knockout-(\d+\.){3}(debug\.)?js$)|(?:leaflet\.draw-src\.js)|(?:leaflet\.draw\.css)|(?:leaflet\.spin\.js)|(?:libtool\.m4)|(?:ltoptions\.m4)|(?:ltsugar\.m4)|(?:ltversion\.m4)|(?:lt~obsolete\.m4)|(?:materialize\.(css|less|scss|styl|js)$)|(?:modernizr\-\d\.\d+(\.\d+)?\.js$)|(?:modernizr\.custom\.\d+\.js$)|(?:mootools([^.]*)\d+\.\d+.\d+([^.]*)\.js$)|(?:mvnw$)|(?:mvnw\.cmd$)|(?:node_modules/)|(?:normalize\.(css|less|scss|styl)$)|(?:octicons\.css)|(?:pdf\.worker\.js)|(?:proguard-rules\.pro$)|(?:proguard\.pro$)|(?:prototype(.*)\.js$)|(?:puphpet/)|(?:react(-[^.]*)?\.js$)|(?:run\.n$)|(?:select2/.*\.(css|scss|js)$)|(?:shBrush([^.]*)\.js$)|(?:shCore\.js$)|(?:shLegacy\.js$)|(?:skeleton\.(css|less|scss|styl)$)|(?:slick\.\w+.js$)|(?:sprockets-octicons\.scss)|(?:testdata/)|(?:tiny_mce([^.]*)\.js$)|(?:tiny_mce/(langs|plugins|themes|utils))|(?:vendors?/)|(?:vignettes/)|(?:waf$)|(?:wicket-leaflet\.js)|(?:yahoo-([^.]*)\.js$)|(?:yui([^.]*)\.js$)))|(?:(.*?)\.d\.ts$)|(?:(3rd|[Tt]hird)[-_]?[Pp]arty/)|(?:([^\s]*)import\.(css|less|scss|styl)$)|(?:(\.|-)min\.(js|css)$)|(?:(^|\/)d3(\.v\d+)?([^.]*)\.js$)|(?:-vsdoc\.js$)|(?:\.imageset/)|(?:\.intellisense\.js$)|(?:\.xctemplate/)`)
var FastVendorMatcher = regex.MustCompile(`(?:^(?:(?:[Dd]ependencies/)|(?:debian/)|(?:deps/)|(?:rebar$)))|(?:(?:^|/)(?:(?:BuddyBuildSDK\.framework/)|(?:Carthage/)|(?:Chart\.js$)|(?:Control\.FullScreen\.css)|(?:Control\.FullScreen\.js)|(?:Crashlytics\.framework/)|(?:Fabric\.framework/)|(?:Godeps/_workspace/)|(?:Jenkinsfile$)|(?:Leaflet\.Coordinates-\d+\.\d+\.\d+\.src\.js$)|(?:MathJax/)|(?:MochiKit\.js$)|(?:RealmSwift\.framework)|(?:Realm\.framework)|(?:Sparkle/)|(?:Vagrantfile$)|(?:[Bb]ourbon/.*\.(css|less|scss|styl)$)|(?:[Cc]ode[Mm]irror/(\d+\.\d+/)?(lib|mode|theme|addon|keymap|demo))|(?:[Ee]xtern(als?)?/)|(?:[Mm]icrosoft([Mm]vc)?([Aa]jax|[Vv]alidation)(\.debug)?\.js$)|(?:[Pp]ackages\/.+\.\d+\/)|(?:[Ss]pecs?/fixtures/)|(?:[Tt]ests?/fixtures/)|(?:[Vv]+endor/)|(?:\.[Dd][Ss]_[Ss]tore$)|(?:\.gitattributes$)|(?:\.github/)|(?:\.gitignore$)|(?:\.gitmodules$)|(?:\.gitpod\.Dockerfile$)|(?:\.google_apis/)|(?:\.indent\.pro)|(?:\.mvn/wrapper/)|(?:\.obsidian/)|(?:\.osx$)|(?:\.sublime-project)|(?:\.sublime-workspace)|(?:\.teamcity/)|(?:\.vscode/)|(?:\.yarn/plugins/)|(?:\.yarn/releases/)|(?:\.yarn/sdks/)|(?:\.yarn/unplugged/)|(?:\.yarn/versions/)|(?:_esy$)|(?:ace-builds/)|(?:aclocal\.m4)|(?:activator$)|(?:activator\.bat$)|(?:admin_media/)|(?:angular([^.]*)\.js$)|(?:animate\.(css|less|scss|styl)$)|(?:bootbox\.js)|(?:bootstrap([^/.]*)(\..*)?\.(js|css|less|scss|styl)$)|(?:bootstrap-datepicker/)|(?:bower_components/)|(?:bulma\.(css|sass|scss)$)|(?:cache/)|(?:ckeditor\.js$)|(?:config\.guess$)|(?:config\.sub$)|(?:configure$)|(?:controls\.js$)|(?:cordova([^.]*)\.js$)|(?:cordova\-\d\.\d(\.\d)?\.js$)|(?:cpplint\.py)|(?:custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$)|(?:dist/)|(?:docs?/_?(build|themes?|templates?|static)/)|(?:dojo\.js$)|(?:dotnet-install\.(ps1|sh)$)|(?:dragdrop\.js$)|(?:effects\.js$)|(?:env/)|(?:erlang\.mk)|(?:extjs/.*?\.html$)|(?:extjs/.*?\.js$)|(?:extjs/.*?\.properties$)|(?:extjs/.*?\.txt$)|(?:extjs/.*?\.xml$)|(?:extjs/\.sencha/)|(?:extjs/builds/)|(?:extjs/cmd/)|(?:extjs/docs/)|(?:extjs/examples/)|(?:extjs/locale/)|(?:extjs/packages/)|(?:extjs/plugins/)|(?:extjs/resources/)|(?:extjs/src/)|(?:extjs/welcome/)|(?:fabfile\.py$)|(?:flow-typed/.*\.js$)|(?:font-?awesome/.*\.(css|less|scss|styl)$)|(?:font-?awesome\.(css|less|scss|styl)$)|(?:fontello(.*?)\.css$)|(?:foundation(\..*)?\.js$)|(?:foundation\.(css|less|scss|styl)$)|(?:fuelux\.js)|(?:gradle/wrapper/)|(?:gradlew$)|(?:gradlew\.bat$)|(?:html5shiv\.js$)|(?:inst/extdata/)|(?:jquery([^.]*)\.js$)|(?:jquery([^.]*)\.unobtrusive\-ajax\.js$)|(?:jquery([^.]*)\.validate(\.unobtrusive)?\.js$)|(?:jquery\-\d\.\d+(\.\d+)?\.js$)|(?:jquery\-ui(\-\d\.\d+(\.\d+)?)?(\.\w+)?\.(js|css)$)|(?:jquery\.(ui|effects)\.([^.]*)\.(js|css)$)|(?:jquery\.dataTables\.js)|(?:jquery\.fancybox\.(js|css))|(?:jquery\.fileupload(-\w+)?\.js$)|(?:jquery\.fn\.gantt\.js)|(?:knockout-(\d+\.){3}(debug\.)?js$)|(?:leaflet\.draw-src\.js)|(?:leaflet\.draw\.css)|(?:leaflet\.spin\.js)|(?:libtool\.m4)|(?:ltoptions\.m4)|(?:ltsugar\.m4)|(?:ltversion\.m4)|(?:lt~obsolete\.m4)|(?:materialize\.(css|less|scss|styl|js)$)|(?:modernizr\-\d\.\d+(\.\d+)?\.js$)|(?:modernizr\.custom\.\d+\.js$)|(?:mootools([^.]*)\d+\.\d+.\d+([^.]*)\.js$)|(?:mvnw$)|(?:mvnw\.cmd$)|(?:node_modules/)|(?:normalize\.(css|less|scss|styl)$)|(?:octicons\.css)|(?:pdf\.worker\.js)|(?:proguard-rules\.pro$)|(?:proguard\.pro$)|(?:prototype(.*)\.js$)|(?:puphpet/)|(?:react(-[^.]*)?\.js$)|(?:run\.n$)|(?:select2/.*\.(css|scss|js)$)|(?:shBrush([^.]*)\.js$)|(?:shCore\.js$)|(?:shLegacy\.js$)|(?:skeleton\.(css|less|scss|styl)$)|(?:slick\.\w+.js$)|(?:sprockets-octicons\.scss)|(?:testdata/)|(?:tiny_mce([^.]*)\.js$)|(?:tiny_mce/(langs|plugins|themes|utils))|(?:vendors?/)|(?:waf$)|(?:wicket-leaflet\.js)|(?:yahoo-([^.]*)\.js$)|(?:yui([^.]*)\.js$)))|(?:(.*?)\.d\.ts$)|(?:(3rd|[Tt]hird)[-_]?[Pp]arty/)|(?:([^\s]*)import\.(css|less|scss|styl)$)|(?:(\.|-)min\.(js|css)$)|(?:(^|\/)d3(\.v\d+)?([^.]*)\.js$)|(?:-vsdoc\.js$)|(?:\.imageset/)|(?:\.intellisense\.js$)|(?:\.xctemplate/)`)

View File

@ -17,13 +17,13 @@ func MaybeCloneLinguist(envVar, url, commit string) (string, bool, error) {
if !isLinguistCloned {
linguistTmpDir, err = ioutil.TempDir("", "linguist-")
if err != nil {
return "", false, err
panic(err)
}
isCleanupNeeded = true
cmd := exec.Command("git", "clone", "--depth", "150", url, linguistTmpDir)
if err := cmd.Run(); err != nil {
panic(fmt.Errorf("%s: %w", cmd.String(), err))
panicOn(cmd.String(), err)
}
}
@ -38,11 +38,15 @@ func MaybeCloneLinguist(envVar, url, commit string) (string, bool, error) {
cmd := exec.Command("git", "checkout", commit)
if err := cmd.Run(); err != nil {
panic(fmt.Errorf("%s: %w", cmd.String(), err))
panicOn(cmd.String(), err)
}
if err = os.Chdir(cwd); err != nil {
panic(fmt.Errorf("%s: %w", cmd.String(), err))
panicOn(cmd.String(), err)
}
return linguistTmpDir, isCleanupNeeded, nil
}
func panicOn(cmd string, err error) {
panic(fmt.Errorf("%q returned %w", cmd, err))
}

View File

@ -25,8 +25,7 @@ func Test_EnryOnLinguistCorpus(t *testing.T) {
func (s *linguistCorpusSuite) TestLinguistSamples() {
const filenamesDir = "filenames"
var cornerCases = map[string]bool{
"drop_stuff.sql": false, // not the case in v7.23, https://github.com/src-d/enry/issues/194
"textobj-rubyblock.vba": true, // unsupported negative lookahead RE syntax (https://github.com/github/linguist/blob/8083cb5a89cee2d99f5a988f165994d0243f0d1e/lib/linguist/heuristics.yml#L521)
"textobj-rubyblock.vba": true, // unsupported negative lookahead RE syntax (https://github.com/github/linguist/blob/8083cb5a89cee2d99f5a988f165994d0243f0d1e/lib/linguist/heuristics.yml#L521)
// .es and .ice fail heuristics parsing, but do not fail any tests
// 'Adblock Filter List' hack https://github.com/github/linguist/blob/bf853f1c663903e3ee35935189760191f1c45e1c/lib/linguist/heuristics.yml#L680-L702
"Imperial Units Remover.txt": true,
@ -34,6 +33,12 @@ func (s *linguistCorpusSuite) TestLinguistSamples() {
"anti-facebook.txt": true,
"fake-news.txt": true,
"test_rules.txt": true,
// backreference in .plist heuristics for "XML Property List" language https://github.com/go-enry/go-enry/pull/169#discussion_r1319889500
// upsteam fix comming in https://github.com/go-enry/go-enry/pull/169#issuecomment-1708840755
"ff-man.plist": true,
"info.min.plist": true,
"info.plist": true,
"man.plist": true,
}
var total, failed, ok, other int
@ -65,13 +70,13 @@ func (s *linguistCorpusSuite) TestLinguistSamples() {
errMsg := fmt.Sprintf("file: %q\texpected: %q\tgot: %q\n", path, expected, got)
if _, ok := cornerCases[filename]; ok {
s.T().Logf(fmt.Sprintf("\t\t[corner case] %s", errMsg))
s.T().Logf(fmt.Sprintf("\t[corner case] %s", errMsg))
} else {
s.Equal(expected, got, errMsg)
}
return nil
})
s.T().Logf("\t\ttotal files: %d, ok: %d, failed: %d, other: %d\n", total, ok, failed, other)
s.T().Logf("\ttotal files: %d, ok: %d, failed: %d, other: %d\n", total, ok, failed, other)
}
// Second part of the test_blob.rb#test_language

View File

@ -98,5 +98,5 @@ def test_get_languages():
def test_get_language_extensions():
assert get_language_extensions("Python") == [".py", ".cgi", ".fcgi", ".gyp", ".gypi", ".lmi", ".py3", ".pyde",
".pyi", ".pyp", ".pyt", ".pyw", ".rpy", ".smk", ".spec", ".tac",
".pyi", ".pyp", ".pyt", ".pyw", ".rpy", ".spec", ".tac",
".wsgi", ".xpy"]

View File

@ -12,15 +12,16 @@ import (
const binSniffLen = 8000
var configurationLanguages = map[string]struct{}{
"XML": {},
"JSON": {},
"TOML": {},
"YAML": {},
"INI": {},
"SQL": {},
"XML": {},
"JSON": {},
"TOML": {},
"YAML": {},
"MiniYAML": {},
"INI": {},
"SQL": {},
}
// IsConfiguration tells if filename is in one of the configuration languages.
// IsConfiguration tells if a give file is in one of the configuration languages.
func IsConfiguration(path string) bool {
language, _ := GetLanguageByExtension(path)
_, is := configurationLanguages[language]

View File

@ -139,6 +139,7 @@ func TestIsConfiguration(t *testing.T) {
{name: "TestIsConfiguration_1", path: "foo", expected: false},
{name: "TestIsConfiguration_2", path: "foo.ini", expected: true},
{name: "TestIsConfiguration_3", path: "/test/path/foo.json", expected: true},
{name: "TestIsConfiguration_YAML", path: "configuration.yml", expected: true},
}
for _, test := range tests {