Merge pull request #173 from go-enry/feature/sync-linguist-b5432ebc

Update Linguist to v7.27.0
This commit is contained in:
Alex 2023-09-27 11:48:43 +02:00 committed by GitHub
commit 40f2a1e5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 18791 additions and 15634 deletions

View File

@ -156,7 +156,7 @@ Generated Rust bindings using a C static library are available at https://github
## Divergences from Linguist
The `enry` library is based on the data from `github/linguist` version **v7.26.0**.
The `enry` library is based on the data from `github/linguist` version **v7.27.0**.
Parsing [linguist/samples](https://github.com/github/linguist/tree/master/samples) the following `enry` results are different from the Linguist:

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -100,6 +100,7 @@ var LanguageByAliasMap = map[string]string{
"beef": "Beef",
"befunge": "Befunge",
"berry": "Berry",
"bh": "Bluespec BH",
"bibtex": "BibTeX",
"bicep": "Bicep",
"bikeshed": "Bikeshed",
@ -111,6 +112,9 @@ var LanguageByAliasMap = map[string]string{
"blitzmax": "BlitzMax",
"blitzplus": "BlitzBasic",
"bluespec": "Bluespec",
"bluespec_bh": "Bluespec BH",
"bluespec_bsv": "Bluespec",
"bluespec_classic": "Bluespec BH",
"bmax": "BlitzMax",
"boo": "Boo",
"boogie": "Boogie",
@ -121,6 +125,7 @@ var LanguageByAliasMap = map[string]string{
"bro": "Zeek",
"browserslist": "Browserslist",
"bsdmake": "Makefile",
"bsv": "Bluespec",
"byond": "DM",
"bzl": "Starlark",
"c": "C",
@ -370,6 +375,7 @@ var LanguageByAliasMap = map[string]string{
"gosu": "Gosu",
"grace": "Grace",
"gradle": "Gradle",
"gradle_kotlin_dsl": "Gradle Kotlin DSL",
"grammatical_framework": "Grammatical Framework",
"graph_modeling_language": "Graph Modeling Language",
"graphql": "GraphQL",
@ -398,6 +404,7 @@ var LanguageByAliasMap = map[string]string{
"hocon": "HOCON",
"holyc": "HolyC",
"hoon": "hoon",
"hosts": "Hosts File",
"hosts_file": "Hosts File",
"html": "HTML",
"html+django": "Jinja",
@ -711,6 +718,7 @@ var LanguageByAliasMap = map[string]string{
"pickle": "Pickle",
"picolisp": "PicoLisp",
"piglatin": "PigLatin",
"pikchr": "Pic",
"pike": "Pike",
"pir": "Parrot Internal Representation",
"plain_text": "Text",
@ -806,6 +814,7 @@ var LanguageByAliasMap = map[string]string{
"rescript": "ReScript",
"restructuredtext": "reStructuredText",
"rexx": "REXX",
"rez": "Rez",
"rhtml": "HTML+ERB",
"rich_text_format": "Rich Text Format",
"ring": "Ring",
@ -911,6 +920,7 @@ var LanguageByAliasMap = map[string]string{
"svelte": "Svelte",
"svg": "SVG",
"sway": "Sway",
"sweave": "Sweave",
"swift": "Swift",
"swig": "SWIG",
"systemverilog": "SystemVerilog",
@ -943,8 +953,10 @@ var LanguageByAliasMap = map[string]string{
"turtle": "Turtle",
"twig": "Twig",
"txl": "TXL",
"typ": "Typst",
"type_language": "Type Language",
"typescript": "TypeScript",
"typst": "Typst",
"udiff": "Diff",
"ultisnip": "Vim Snippet",
"ultisnips": "Vim Snippet",

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -58,6 +58,7 @@ var LanguagesColor = map[string]string{
"BlitzBasic": "#00FFAE",
"BlitzMax": "#cd6400",
"Bluespec": "#12223c",
"Bluespec BH": "#12223c",
"Boo": "#d4bec1",
"Boogie": "#c80fa0",
"Brainfuck": "#2F2530",
@ -197,6 +198,7 @@ var LanguagesColor = map[string]string{
"Gosu": "#82937f",
"Grace": "#615f8b",
"Gradle": "#02303a",
"Gradle Kotlin DSL": "#02303a",
"Grammatical Framework": "#ff0000",
"GraphQL": "#e10098",
"Graphviz (DOT)": "#2596be",
@ -427,6 +429,7 @@ var LanguagesColor = map[string]string{
"Red": "#f50000",
"Regular Expression": "#009a00",
"Ren'Py": "#ff7f7f",
"Rez": "#FFDAB3",
"Ring": "#2D54CB",
"Riot": "#A71E49",
"RobotFramework": "#00c0b5",
@ -481,6 +484,7 @@ var LanguagesColor = map[string]string{
"SuperCollider": "#46390b",
"Svelte": "#ff3e00",
"Sway": "#dea584",
"Sweave": "#198ce7",
"Swift": "#F05138",
"SystemVerilog": "#DAE1C2",
"TI Program": "#A0AA87",
@ -501,6 +505,7 @@ var LanguagesColor = map[string]string{
"Turing": "#cf142b",
"Twig": "#c1d026",
"TypeScript": "#3178c6",
"Typst": "#239dad",
"Unified Parallel C": "#4e3617",
"Unity3D Asset": "#222c37",
"Uno": "#9933cc",

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

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -607,7 +607,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("AsciiDoc"),
regex.MustCompileMultiline(`^[=-]+(\s|\n)|\{\{[A-Za-z]`),
regex.MustCompileMultiline(`^[=-]+\s|\{\{[A-Za-z]`),
),
rule.Or(
rule.MatchingLanguages("AGS Script"),
@ -697,6 +697,10 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("BrighterScript"),
regex.MustCompileRuby(`(?i:^\s*(?=^sub\s)(?:sub\s*\w+\(.*?\))|(?::\s*sub\(.*?\))$)|(?i:^\s*(end\ssub)$)|(?i:^\s*(?=^function\s)(?:function\s*\w+\(.*?\)\s*as\s*\w*)|(?::\s*function\(.*?\)\s*as\s*\w*)$)|(?i:^\s*(end\sfunction)$)`),
),
rule.Or(
rule.MatchingLanguages("Bluespec BH"),
regex.MustCompileMultiline(`^package\s+[A-Za-z_][A-Za-z0-9_']*(?:\s*\(|\s+where)`),
),
},
".builds": &Heuristics{
rule.Or(
@ -752,7 +756,7 @@ var ContentHeuristics = map[string]*Heuristics{
".cmp": &Heuristics{
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*\r?\n`),
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*(?:\r?\n|\r)`),
),
},
".cs": &Heuristics{
@ -931,7 +935,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+[^\r\n]*?\}|^[ \t]*(?:<#--.*?-->|<#([a-z]+)(?=\s|>)[^>]*>.*?</#\1>|\[#--.*?--\]|\[#([a-z]+)(?=\s|\])[^\]]*\].*?\[#\2\])`),
),
rule.Or(
rule.MatchingLanguages("Fluent"),
@ -945,7 +949,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("G-code"),
regex.MustCompileMultiline(`^[MG][0-9]+\n`),
regex.MustCompileMultiline(`^[MG][0-9]+(?:\r?\n|\r)`),
),
},
".gd": &Heuristics{
@ -1224,7 +1228,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("M4"),
regex.MustCompileMultiline(`^dnl|^divert\((?:-?\d+)?\)|^\w+\(`+"`"+`[^\n]*?'[),]`),
regex.MustCompileMultiline(`^dnl|^divert\((?:-?\d+)?\)|^\w+\(`+"`"+`[^\r\n]*?'[),]`),
),
rule.Or(
rule.MatchingLanguages("Monkey C"),
@ -1335,7 +1339,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*\r?\n`),
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*(?:\r?\n|\r)`),
),
rule.Or(
rule.MatchingLanguages("Text"),
@ -1449,7 +1453,7 @@ var ContentHeuristics = map[string]*Heuristics{
".pod": &Heuristics{
rule.Or(
rule.MatchingLanguages("Pod 6"),
regex.MustCompileMultiline(`^[\s&&[^\n]]*=(comment|begin pod|begin para|item\d+)`),
regex.MustCompileMultiline(`^[\s&&[^\r\n]]*=(comment|begin pod|begin para|item\d+)`),
),
rule.Always(
rule.MatchingLanguages("Pod"),
@ -1529,7 +1533,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.]*:\{)|^\\(cd?|d|l|p|ts?) )`),
),
rule.Or(
rule.MatchingLanguages("HiveQL"),
@ -1551,6 +1555,10 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("Rebol"),
regex.MustCompileMultiline(`(?i:\bRebol\b)`),
),
rule.Or(
rule.MatchingLanguages("Rez"),
regex.MustCompileMultiline(`(#include\s+["<](Types\.r|Carbon\/Carbon\.r)[">])|((resource|data|type)\s+'[A-Za-z0-9]{4}'\s+((\(.*\)\s+){0,1}){)`),
),
rule.Or(
rule.MatchingLanguages("R"),
regex.MustCompileMultiline(`<-|^\s*#`),
@ -1638,7 +1646,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*\r?\n`),
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*(?:\r?\n|\r)`),
),
},
".sql": &Heuristics{
@ -1690,7 +1698,7 @@ var ContentHeuristics = map[string]*Heuristics{
".stl": &Heuristics{
rule.Or(
rule.MatchingLanguages("STL"),
regex.MustCompileRuby(`\A\s*solid(?=$|\s)(?:.|[\r\n])*?^endsolid(?:$|\s)`),
regex.MustCompileMultiline(`\A\s*solid(?:$|\s)[\s\S]*^endsolid(?:$|\s)`),
),
},
".sw": &Heuristics{
@ -1805,10 +1813,19 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("Text"),
),
},
".typ": &Heuristics{
rule.Or(
rule.MatchingLanguages("Typst"),
regex.MustCompileMultiline(`^#(import|show|let|set)`),
),
rule.Always(
rule.MatchingLanguages("XML"),
),
},
".url": &Heuristics{
rule.Or(
rule.MatchingLanguages("INI"),
regex.MustCompileRuby(`^\[InternetShortcut\](?:\r?\n|\r)(?>[^\s\[][^\n]*(?:\r?\n|\r))*URL=`),
regex.MustCompileRuby(`^\[InternetShortcut\](?:\r?\n|\r)(?>[^\s\[][^\r\n]*(?:\r?\n|\r))*URL=`),
),
},
".v": &Heuristics{

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -135,7 +135,7 @@ var LanguagesByExtension = map[string][]string{
".brd": {"Eagle", "KiCad Legacy Layout"},
".bro": {"Zeek"},
".brs": {"Brightscript"},
".bs": {"Bikeshed", "BrighterScript"},
".bs": {"Bikeshed", "Bluespec BH", "BrighterScript"},
".bsl": {"1C Enterprise"},
".bsv": {"Bluespec"},
".builder": {"Ruby"},
@ -201,6 +201,7 @@ var LanguagesByExtension = map[string][]string{
".cobol": {"COBOL"},
".cocci": {"SmPL"},
".code-snippets": {"JSON with Comments"},
".code-workspace": {"JSON with Comments"},
".coffee": {"CoffeeScript"},
".coffee.md": {"Literate CoffeeScript"},
".com": {"DIGITAL Command Language"},
@ -432,6 +433,7 @@ var LanguagesByExtension = map[string][]string{
".gql": {"GraphQL"},
".grace": {"Grace"},
".gradle": {"Gradle"},
".gradle.kts": {"Gradle Kotlin DSL"},
".graphql": {"GraphQL"},
".graphqls": {"GraphQL"},
".groovy": {"Groovy"},
@ -922,7 +924,7 @@ var LanguagesByExtension = map[string][]string{
".qmd": {"RMarkdown"},
".qml": {"QML"},
".qs": {"Q#", "Qt Script"},
".r": {"R", "Rebol"},
".r": {"R", "Rebol", "Rez"},
".r2": {"Rebol"},
".r3": {"Rebol"},
".rabl": {"Ruby"},
@ -979,6 +981,7 @@ var LanguagesByExtension = map[string][]string{
".rmiss": {"GLSL"},
".rnh": {"RUNOFF"},
".rno": {"RUNOFF", "Roff"},
".rnw": {"Sweave"},
".robot": {"RobotFramework"},
".rockspec": {"Lua"},
".roff": {"Roff"},
@ -1177,6 +1180,7 @@ var LanguagesByExtension = map[string][]string{
".txl": {"TXL"},
".txt": {"Adblock Filter List", "Text", "Vim Help File"},
".txx": {"C++"},
".typ": {"Typst", "XML"},
".uc": {"UnrealScript"},
".udf": {"SQL"},
".udo": {"Csound"},
@ -1219,6 +1223,7 @@ var LanguagesByExtension = map[string][]string{
".vmb": {"Vim Script"},
".volt": {"Volt"},
".vrx": {"GLSL"},
".vs": {"GLSL"},
".vsh": {"GLSL"},
".vshader": {"GLSL"},
".vsixmanifest": {"XML"},
@ -1398,6 +1403,7 @@ var ExtensionsByLanguage = map[string][]string{
"BlitzBasic": {".bb", ".decls"},
"BlitzMax": {".bmx"},
"Bluespec": {".bsv"},
"Bluespec BH": {".bs"},
"Boo": {".boo"},
"Boogie": {".bpl"},
"Brainfuck": {".b", ".bf"},
@ -1530,7 +1536,7 @@ var ExtensionsByLanguage = map[string][]string{
"GDB": {".gdb", ".gdbinit"},
"GDScript": {".gd"},
"GEDCOM": {".ged"},
"GLSL": {".glsl", ".fp", ".frag", ".frg", ".fs", ".fsh", ".fshader", ".geo", ".geom", ".glslf", ".glslv", ".gs", ".gshader", ".rchit", ".rmiss", ".shader", ".tesc", ".tese", ".vert", ".vrx", ".vsh", ".vshader"},
"GLSL": {".glsl", ".fp", ".frag", ".frg", ".fs", ".fsh", ".fshader", ".geo", ".geom", ".glslf", ".glslv", ".gs", ".gshader", ".rchit", ".rmiss", ".shader", ".tesc", ".tese", ".vert", ".vrx", ".vs", ".vsh", ".vshader"},
"GN": {".gn", ".gni"},
"GSC": {".gsc", ".csc", ".gsh"},
"Game Maker Language": {".gml"},
@ -1555,6 +1561,7 @@ var ExtensionsByLanguage = map[string][]string{
"Gosu": {".gs", ".gst", ".gsx", ".vark"},
"Grace": {".grace"},
"Gradle": {".gradle"},
"Gradle Kotlin DSL": {".gradle.kts"},
"Grammatical Framework": {".gf"},
"Graph Modeling Language": {".gml"},
"GraphQL": {".graphql", ".gql", ".graphqls"},
@ -1601,7 +1608,7 @@ var ExtensionsByLanguage = map[string][]string{
"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"},
"JSON with Comments": {".jsonc", ".code-snippets", ".code-workspace", ".sublime-build", ".sublime-commands", ".sublime-completions", ".sublime-keymap", ".sublime-macro", ".sublime-menu", ".sublime-mousemap", ".sublime-project", ".sublime-settings", ".sublime-theme", ".sublime-workspace", ".sublime_metrics", ".sublime_session"},
"JSON5": {".json5"},
"JSONLD": {".jsonld"},
"JSONiq": {".jq"},
@ -1829,6 +1836,7 @@ var ExtensionsByLanguage = map[string][]string{
"Regular Expression": {".regexp", ".regex"},
"Ren'Py": {".rpy"},
"RenderScript": {".rs", ".rsh"},
"Rez": {".r"},
"Rich Text Format": {".rtf"},
"Ring": {".ring"},
"Riot": {".riot"},
@ -1892,6 +1900,7 @@ var ExtensionsByLanguage = map[string][]string{
"SuperCollider": {".sc", ".scd"},
"Svelte": {".svelte"},
"Sway": {".sw"},
"Sweave": {".rnw"},
"Swift": {".swift"},
"SystemVerilog": {".sv", ".svh", ".vh"},
"TI Program": {".8xp", ".8xk", ".8xk.txt", ".8xp.txt"},
@ -1917,6 +1926,7 @@ var ExtensionsByLanguage = map[string][]string{
"Twig": {".twig"},
"Type Language": {".tl"},
"TypeScript": {".ts", ".cts", ".mts"},
"Typst": {".typ"},
"Unified Parallel C": {".upc"},
"Unity3D Asset": {".anim", ".asset", ".mask", ".mat", ".meta", ".prefab", ".unity"},
"Unix Assembly": {".s", ".ms"},
@ -1961,7 +1971,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", ".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": {".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", ".typ", ".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"},

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -96,6 +96,7 @@ var LanguagesByFilename = map[string][]string{
".project": {"XML"},
".pryrc": {"Ruby"},
".pylintrc": {"INI"},
".rspec": {"Option List"},
".scalafix.conf": {"HOCON"},
".scalafmt.conf": {"HOCON"},
".shellcheckrc": {"ShellCheck Config"},
@ -112,6 +113,7 @@ var LanguagesByFilename = map[string][]string{
".vscodeignore": {"Ignore List"},
".watchmanconfig": {"JSON"},
".wgetrc": {"Wget Config"},
".yardopts": {"Option List"},
".zlogin": {"Shell"},
".zlogout": {"Shell"},
".zprofile": {"Shell"},

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -8,6 +8,7 @@ var LanguagesGroup = map[string]string{
"Apollo Guidance Computer": "Assembly",
"BibTeX": "TeX",
"Bison": "Yacc",
"Bluespec BH": "Bluespec",
"C2hs Haskell": "Haskell",
"CameLIGO": "LigoLANG",
"ColdFusion CFC": "ColdFusion",
@ -24,6 +25,7 @@ var LanguagesGroup = map[string]string{
"Gentoo Eclass": "Shell",
"Git Attributes": "INI",
"Git Config": "INI",
"Gradle Kotlin DSL": "Gradle",
"Groovy Server Pages": "Groovy",
"HTML+ECR": "HTML",
"HTML+EEX": "HTML",

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -62,6 +62,7 @@ var IDByLanguage = map[string]int{
"BlitzBasic": 34,
"BlitzMax": 35,
"Bluespec": 36,
"Bluespec BH": 641580358,
"Boo": 37,
"Boogie": 955017407,
"Brainfuck": 38,
@ -230,6 +231,7 @@ var IDByLanguage = map[string]int{
"Gosu": 134,
"Grace": 135,
"Gradle": 136,
"Gradle Kotlin DSL": 432600901,
"Grammatical Framework": 137,
"Graph Modeling Language": 138,
"GraphQL": 139,
@ -521,6 +523,7 @@ var IDByLanguage = map[string]int{
"Regular Expression": 363378884,
"Ren'Py": 322,
"RenderScript": 323,
"Rez": 498022874,
"Rich Text Format": 51601661,
"Ring": 431,
"Riot": 878396783,
@ -588,6 +591,7 @@ var IDByLanguage = map[string]int{
"SuperCollider": 361,
"Svelte": 928734530,
"Sway": 271471144,
"Sweave": 558779190,
"Swift": 362,
"SystemVerilog": 363,
"TI Program": 422,
@ -614,6 +618,7 @@ var IDByLanguage = map[string]int{
"Twig": 377,
"Type Language": 632765617,
"TypeScript": 378,
"Typst": 704730682,
"Unified Parallel C": 379,
"Unity3D Asset": 380,
"Unix Assembly": 120,

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -1247,19 +1247,44 @@ var LanguageInfoByID = map[int]LanguageInfo{
Type: TypeForString("programming"),
Color: "#12223c",
Group: "",
Aliases: []string{},
Aliases: []string{
"bluespec bsv",
"bsv",
},
Extensions: []string{
".bsv",
},
Interpreters: []string{},
Filenames: []string{},
MimeType: "",
MimeType: "text/x-systemverilog",
TMScope: "source.bsv",
AceMode: "verilog",
CodeMirrorMode: "",
CodeMirrorMode: "verilog",
Wrap: false,
LanguageID: 36,
},
641580358: LanguageInfo{
Name: "Bluespec BH",
FSName: "",
Type: TypeForString("programming"),
Color: "#12223c",
Group: "Bluespec",
Aliases: []string{
"bh",
"bluespec classic",
},
Extensions: []string{
".bs",
},
Interpreters: []string{},
Filenames: []string{},
MimeType: "text/x-haskell",
TMScope: "source.haskell",
AceMode: "haskell",
CodeMirrorMode: "haskell",
Wrap: false,
LanguageID: 641580358,
},
37: LanguageInfo{
Name: "Boo",
FSName: "",
@ -4210,6 +4235,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
".tese",
".vert",
".vrx",
".vs",
".vsh",
".vshader",
},
@ -4869,6 +4895,25 @@ var LanguageInfoByID = map[int]LanguageInfo{
Wrap: false,
LanguageID: 136,
},
432600901: LanguageInfo{
Name: "Gradle Kotlin DSL",
FSName: "",
Type: TypeForString("data"),
Color: "#02303a",
Group: "Gradle",
Aliases: []string{},
Extensions: []string{
".gradle.kts",
},
Interpreters: []string{},
Filenames: []string{},
MimeType: "",
TMScope: "source.kotlin",
AceMode: "text",
CodeMirrorMode: "",
Wrap: false,
LanguageID: 432600901,
},
137: LanguageInfo{
Name: "Grammatical Framework",
FSName: "",
@ -5441,7 +5486,9 @@ var LanguageInfoByID = map[int]LanguageInfo{
Type: TypeForString("data"),
Color: "#308888",
Group: "",
Aliases: []string{},
Aliases: []string{
"hosts",
},
Extensions: []string{},
Interpreters: []string{},
Filenames: []string{
@ -5990,6 +6037,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
Extensions: []string{
".jsonc",
".code-snippets",
".code-workspace",
".sublime-build",
".sublime-commands",
".sublime-completions",
@ -9253,6 +9301,8 @@ var LanguageInfoByID = map[int]LanguageInfo{
Interpreters: []string{},
Filenames: []string{
".ackrc",
".rspec",
".yardopts",
"ackrc",
"mocha.opts",
},
@ -9750,7 +9800,9 @@ var LanguageInfoByID = map[int]LanguageInfo{
Type: TypeForString("markup"),
Color: "",
Group: "Roff",
Aliases: []string{},
Aliases: []string{
"pikchr",
},
Extensions: []string{
".pic",
".chem",
@ -11216,6 +11268,25 @@ var LanguageInfoByID = map[int]LanguageInfo{
Wrap: false,
LanguageID: 323,
},
498022874: LanguageInfo{
Name: "Rez",
FSName: "",
Type: TypeForString("programming"),
Color: "#FFDAB3",
Group: "",
Aliases: []string{},
Extensions: []string{
".r",
},
Interpreters: []string{},
Filenames: []string{},
MimeType: "",
TMScope: "source.rez",
AceMode: "text",
CodeMirrorMode: "",
Wrap: false,
LanguageID: 498022874,
},
51601661: LanguageInfo{
Name: "Rich Text Format",
FSName: "",
@ -12788,6 +12859,25 @@ var LanguageInfoByID = map[int]LanguageInfo{
Wrap: false,
LanguageID: 271471144,
},
558779190: LanguageInfo{
Name: "Sweave",
FSName: "",
Type: TypeForString("prose"),
Color: "#198ce7",
Group: "",
Aliases: []string{},
Extensions: []string{
".rnw",
},
Interpreters: []string{},
Filenames: []string{},
MimeType: "",
TMScope: "text.tex.latex.sweave",
AceMode: "tex",
CodeMirrorMode: "",
Wrap: false,
LanguageID: 558779190,
},
362: LanguageInfo{
Name: "Swift",
FSName: "",
@ -13377,6 +13467,27 @@ var LanguageInfoByID = map[int]LanguageInfo{
Wrap: false,
LanguageID: 378,
},
704730682: LanguageInfo{
Name: "Typst",
FSName: "",
Type: TypeForString("programming"),
Color: "#239dad",
Group: "",
Aliases: []string{
"typ",
},
Extensions: []string{
".typ",
},
Interpreters: []string{},
Filenames: []string{},
MimeType: "",
TMScope: "source.typst",
AceMode: "text",
CodeMirrorMode: "",
Wrap: false,
LanguageID: 704730682,
},
379: LanguageInfo{
Name: "Unified Parallel C",
FSName: "",
@ -14466,6 +14577,7 @@ var LanguageInfoByID = map[int]LanguageInfo{
".tml",
".ts",
".tsx",
".typ",
".ui",
".urdf",
".ux",

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -17,6 +17,8 @@ var LanguagesMime = map[string]string{
"Beef": "text/x-csharp",
"BibTeX": "text/x-stex",
"Bikeshed": "text/html",
"Bluespec": "text/x-systemverilog",
"Bluespec BH": "text/x-haskell",
"Brainfuck": "text/x-brainfuck",
"C": "text/x-csrc",
"C#": "text/x-csharp",

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -104,6 +104,7 @@ var LanguagesType = map[string]int{
"BlitzBasic": 2,
"BlitzMax": 2,
"Bluespec": 2,
"Bluespec BH": 2,
"Boo": 2,
"Boogie": 2,
"Brainfuck": 2,
@ -272,6 +273,7 @@ var LanguagesType = map[string]int{
"Gosu": 2,
"Grace": 2,
"Gradle": 1,
"Gradle Kotlin DSL": 1,
"Grammatical Framework": 2,
"Graph Modeling Language": 1,
"GraphQL": 1,
@ -563,6 +565,7 @@ var LanguagesType = map[string]int{
"Regular Expression": 1,
"Ren'Py": 2,
"RenderScript": 2,
"Rez": 2,
"Rich Text Format": 3,
"Ring": 2,
"Riot": 3,
@ -630,6 +633,7 @@ var LanguagesType = map[string]int{
"SuperCollider": 2,
"Svelte": 3,
"Sway": 2,
"Sweave": 4,
"Swift": 2,
"SystemVerilog": 2,
"TI Program": 2,
@ -656,6 +660,7 @@ var LanguagesType = map[string]int{
"Twig": 3,
"Type Language": 1,
"TypeScript": 2,
"Typst": 2,
"Unified Parallel C": 2,
"Unity3D Asset": 1,
"Unix Assembly": 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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data

View File

@ -21,7 +21,7 @@ import (
var (
linguistClonedEnvVar = "ENRY_TEST_REPO"
linguistURL = "https://github.com/github/linguist.git"
commit = "b5432ebc7e78f25415b98d48c2fbacddbf8df317"
commit = "7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd"
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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -100,6 +100,7 @@ var LanguageByAliasMap = map[string]string{
"beef": "Beef",
"befunge": "Befunge",
"berry": "Berry",
"bh": "Bluespec BH",
"bibtex": "BibTeX",
"bicep": "Bicep",
"bikeshed": "Bikeshed",
@ -111,6 +112,9 @@ var LanguageByAliasMap = map[string]string{
"blitzmax": "BlitzMax",
"blitzplus": "BlitzBasic",
"bluespec": "Bluespec",
"bluespec_bh": "Bluespec BH",
"bluespec_bsv": "Bluespec",
"bluespec_classic": "Bluespec BH",
"bmax": "BlitzMax",
"boo": "Boo",
"boogie": "Boogie",
@ -121,6 +125,7 @@ var LanguageByAliasMap = map[string]string{
"bro": "Zeek",
"browserslist": "Browserslist",
"bsdmake": "Makefile",
"bsv": "Bluespec",
"byond": "DM",
"bzl": "Starlark",
"c": "C",
@ -370,6 +375,7 @@ var LanguageByAliasMap = map[string]string{
"gosu": "Gosu",
"grace": "Grace",
"gradle": "Gradle",
"gradle_kotlin_dsl": "Gradle Kotlin DSL",
"grammatical_framework": "Grammatical Framework",
"graph_modeling_language": "Graph Modeling Language",
"graphql": "GraphQL",
@ -398,6 +404,7 @@ var LanguageByAliasMap = map[string]string{
"hocon": "HOCON",
"holyc": "HolyC",
"hoon": "hoon",
"hosts": "Hosts File",
"hosts_file": "Hosts File",
"html": "HTML",
"html+django": "Jinja",
@ -711,6 +718,7 @@ var LanguageByAliasMap = map[string]string{
"pickle": "Pickle",
"picolisp": "PicoLisp",
"piglatin": "PigLatin",
"pikchr": "Pic",
"pike": "Pike",
"pir": "Parrot Internal Representation",
"plain_text": "Text",
@ -806,6 +814,7 @@ var LanguageByAliasMap = map[string]string{
"rescript": "ReScript",
"restructuredtext": "reStructuredText",
"rexx": "REXX",
"rez": "Rez",
"rhtml": "HTML+ERB",
"rich_text_format": "Rich Text Format",
"ring": "Ring",
@ -911,6 +920,7 @@ var LanguageByAliasMap = map[string]string{
"svelte": "Svelte",
"svg": "SVG",
"sway": "Sway",
"sweave": "Sweave",
"swift": "Swift",
"swig": "SWIG",
"systemverilog": "SystemVerilog",
@ -943,8 +953,10 @@ var LanguageByAliasMap = map[string]string{
"turtle": "Turtle",
"twig": "Twig",
"txl": "TXL",
"typ": "Typst",
"type_language": "Type Language",
"typescript": "TypeScript",
"typst": "Typst",
"udiff": "Diff",
"ultisnip": "Vim Snippet",
"ultisnips": "Vim Snippet",

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -58,6 +58,7 @@ var LanguagesColor = map[string]string{
"BlitzBasic": "#00FFAE",
"BlitzMax": "#cd6400",
"Bluespec": "#12223c",
"Bluespec BH": "#12223c",
"Boo": "#d4bec1",
"Boogie": "#c80fa0",
"Brainfuck": "#2F2530",
@ -197,6 +198,7 @@ var LanguagesColor = map[string]string{
"Gosu": "#82937f",
"Grace": "#615f8b",
"Gradle": "#02303a",
"Gradle Kotlin DSL": "#02303a",
"Grammatical Framework": "#ff0000",
"GraphQL": "#e10098",
"Graphviz (DOT)": "#2596be",
@ -427,6 +429,7 @@ var LanguagesColor = map[string]string{
"Red": "#f50000",
"Regular Expression": "#009a00",
"Ren'Py": "#ff7f7f",
"Rez": "#FFDAB3",
"Ring": "#2D54CB",
"Riot": "#A71E49",
"RobotFramework": "#00c0b5",
@ -481,6 +484,7 @@ var LanguagesColor = map[string]string{
"SuperCollider": "#46390b",
"Svelte": "#ff3e00",
"Sway": "#dea584",
"Sweave": "#198ce7",
"Swift": "#F05138",
"SystemVerilog": "#DAE1C2",
"TI Program": "#A0AA87",
@ -501,6 +505,7 @@ var LanguagesColor = map[string]string{
"Turing": "#cf142b",
"Twig": "#c1d026",
"TypeScript": "#3178c6",
"Typst": "#239dad",
"Unified Parallel C": "#4e3617",
"Unity3D Asset": "#222c37",
"Uno": "#9933cc",

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

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -607,7 +607,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("AsciiDoc"),
regex.MustCompileMultiline(`^[=-]+(\s|\n)|\{\{[A-Za-z]`),
regex.MustCompileMultiline(`^[=-]+\s|\{\{[A-Za-z]`),
),
rule.Or(
rule.MatchingLanguages("AGS Script"),
@ -697,6 +697,10 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("BrighterScript"),
regex.MustCompileRuby(`(?i:^\s*(?=^sub\s)(?:sub\s*\w+\(.*?\))|(?::\s*sub\(.*?\))$)|(?i:^\s*(end\ssub)$)|(?i:^\s*(?=^function\s)(?:function\s*\w+\(.*?\)\s*as\s*\w*)|(?::\s*function\(.*?\)\s*as\s*\w*)$)|(?i:^\s*(end\sfunction)$)`),
),
rule.Or(
rule.MatchingLanguages("Bluespec BH"),
regex.MustCompileMultiline(`^package\s+[A-Za-z_][A-Za-z0-9_']*(?:\s*\(|\s+where)`),
),
},
".builds": &Heuristics{
rule.Or(
@ -752,7 +756,7 @@ var ContentHeuristics = map[string]*Heuristics{
".cmp": &Heuristics{
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*\r?\n`),
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*(?:\r?\n|\r)`),
),
},
".cs": &Heuristics{
@ -931,7 +935,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+[^\r\n]*?\}|^[ \t]*(?:<#--.*?-->|<#([a-z]+)(?=\s|>)[^>]*>.*?</#\1>|\[#--.*?--\]|\[#([a-z]+)(?=\s|\])[^\]]*\].*?\[#\2\])`),
),
rule.Or(
rule.MatchingLanguages("Fluent"),
@ -945,7 +949,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("G-code"),
regex.MustCompileMultiline(`^[MG][0-9]+\n`),
regex.MustCompileMultiline(`^[MG][0-9]+(?:\r?\n|\r)`),
),
},
".gd": &Heuristics{
@ -1224,7 +1228,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("M4"),
regex.MustCompileMultiline(`^dnl|^divert\((?:-?\d+)?\)|^\w+\(`+"`"+`[^\n]*?'[),]`),
regex.MustCompileMultiline(`^dnl|^divert\((?:-?\d+)?\)|^\w+\(`+"`"+`[^\r\n]*?'[),]`),
),
rule.Or(
rule.MatchingLanguages("Monkey C"),
@ -1335,7 +1339,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*\r?\n`),
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*(?:\r?\n|\r)`),
),
rule.Or(
rule.MatchingLanguages("Text"),
@ -1449,7 +1453,7 @@ var ContentHeuristics = map[string]*Heuristics{
".pod": &Heuristics{
rule.Or(
rule.MatchingLanguages("Pod 6"),
regex.MustCompileMultiline(`^[\s&&[^\n]]*=(comment|begin pod|begin para|item\d+)`),
regex.MustCompileMultiline(`^[\s&&[^\r\n]]*=(comment|begin pod|begin para|item\d+)`),
),
rule.Always(
rule.MatchingLanguages("Pod"),
@ -1529,7 +1533,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.]*:\{)|^\\(cd?|d|l|p|ts?) )`),
),
rule.Or(
rule.MatchingLanguages("HiveQL"),
@ -1551,6 +1555,10 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("Rebol"),
regex.MustCompileMultiline(`(?i:\bRebol\b)`),
),
rule.Or(
rule.MatchingLanguages("Rez"),
regex.MustCompileMultiline(`(#include\s+["<](Types\.r|Carbon\/Carbon\.r)[">])|((resource|data|type)\s+'[A-Za-z0-9]{4}'\s+((\(.*\)\s+){0,1}){)`),
),
rule.Or(
rule.MatchingLanguages("R"),
regex.MustCompileMultiline(`<-|^\s*#`),
@ -1638,7 +1646,7 @@ var ContentHeuristics = map[string]*Heuristics{
),
rule.Or(
rule.MatchingLanguages("Gerber Image"),
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*\r?\n`),
regex.MustCompileMultiline(`^[DGMT][0-9]{2}\*(?:\r?\n|\r)`),
),
},
".sql": &Heuristics{
@ -1690,7 +1698,7 @@ var ContentHeuristics = map[string]*Heuristics{
".stl": &Heuristics{
rule.Or(
rule.MatchingLanguages("STL"),
regex.MustCompileRuby(`\A\s*solid(?=$|\s)(?:.|[\r\n])*?^endsolid(?:$|\s)`),
regex.MustCompileMultiline(`\A\s*solid(?:$|\s)[\s\S]*^endsolid(?:$|\s)`),
),
},
".sw": &Heuristics{
@ -1805,10 +1813,19 @@ var ContentHeuristics = map[string]*Heuristics{
rule.MatchingLanguages("Text"),
),
},
".typ": &Heuristics{
rule.Or(
rule.MatchingLanguages("Typst"),
regex.MustCompileMultiline(`^#(import|show|let|set)`),
),
rule.Always(
rule.MatchingLanguages("XML"),
),
},
".url": &Heuristics{
rule.Or(
rule.MatchingLanguages("INI"),
regex.MustCompileRuby(`^\[InternetShortcut\](?:\r?\n|\r)(?>[^\s\[][^\n]*(?:\r?\n|\r))*URL=`),
regex.MustCompileRuby(`^\[InternetShortcut\](?:\r?\n|\r)(?>[^\s\[][^\r\n]*(?:\r?\n|\r))*URL=`),
),
},
".v": &Heuristics{

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -135,7 +135,7 @@ var LanguagesByExtension = map[string][]string{
".brd": {"Eagle", "KiCad Legacy Layout"},
".bro": {"Zeek"},
".brs": {"Brightscript"},
".bs": {"Bikeshed", "BrighterScript"},
".bs": {"Bikeshed", "Bluespec BH", "BrighterScript"},
".bsl": {"1C Enterprise"},
".bsv": {"Bluespec"},
".builder": {"Ruby"},
@ -201,6 +201,7 @@ var LanguagesByExtension = map[string][]string{
".cobol": {"COBOL"},
".cocci": {"SmPL"},
".code-snippets": {"JSON with Comments"},
".code-workspace": {"JSON with Comments"},
".coffee": {"CoffeeScript"},
".coffee.md": {"Literate CoffeeScript"},
".com": {"DIGITAL Command Language"},
@ -432,6 +433,7 @@ var LanguagesByExtension = map[string][]string{
".gql": {"GraphQL"},
".grace": {"Grace"},
".gradle": {"Gradle"},
".gradle.kts": {"Gradle Kotlin DSL"},
".graphql": {"GraphQL"},
".graphqls": {"GraphQL"},
".groovy": {"Groovy"},
@ -922,7 +924,7 @@ var LanguagesByExtension = map[string][]string{
".qmd": {"RMarkdown"},
".qml": {"QML"},
".qs": {"Q#", "Qt Script"},
".r": {"R", "Rebol"},
".r": {"R", "Rebol", "Rez"},
".r2": {"Rebol"},
".r3": {"Rebol"},
".rabl": {"Ruby"},
@ -979,6 +981,7 @@ var LanguagesByExtension = map[string][]string{
".rmiss": {"GLSL"},
".rnh": {"RUNOFF"},
".rno": {"RUNOFF", "Roff"},
".rnw": {"Sweave"},
".robot": {"RobotFramework"},
".rockspec": {"Lua"},
".roff": {"Roff"},
@ -1177,6 +1180,7 @@ var LanguagesByExtension = map[string][]string{
".txl": {"TXL"},
".txt": {"Adblock Filter List", "Text", "Vim Help File"},
".txx": {"C++"},
".typ": {"Typst", "XML"},
".uc": {"UnrealScript"},
".udf": {"SQL"},
".udo": {"Csound"},
@ -1219,6 +1223,7 @@ var LanguagesByExtension = map[string][]string{
".vmb": {"Vim Script"},
".volt": {"Volt"},
".vrx": {"GLSL"},
".vs": {"GLSL"},
".vsh": {"GLSL"},
".vshader": {"GLSL"},
".vsixmanifest": {"XML"},
@ -1398,6 +1403,7 @@ var ExtensionsByLanguage = map[string][]string{
"BlitzBasic": {".bb", ".decls"},
"BlitzMax": {".bmx"},
"Bluespec": {".bsv"},
"Bluespec BH": {".bs"},
"Boo": {".boo"},
"Boogie": {".bpl"},
"Brainfuck": {".b", ".bf"},
@ -1530,7 +1536,7 @@ var ExtensionsByLanguage = map[string][]string{
"GDB": {".gdb", ".gdbinit"},
"GDScript": {".gd"},
"GEDCOM": {".ged"},
"GLSL": {".glsl", ".fp", ".frag", ".frg", ".fs", ".fsh", ".fshader", ".geo", ".geom", ".glslf", ".glslv", ".gs", ".gshader", ".rchit", ".rmiss", ".shader", ".tesc", ".tese", ".vert", ".vrx", ".vsh", ".vshader"},
"GLSL": {".glsl", ".fp", ".frag", ".frg", ".fs", ".fsh", ".fshader", ".geo", ".geom", ".glslf", ".glslv", ".gs", ".gshader", ".rchit", ".rmiss", ".shader", ".tesc", ".tese", ".vert", ".vrx", ".vs", ".vsh", ".vshader"},
"GN": {".gn", ".gni"},
"GSC": {".gsc", ".csc", ".gsh"},
"Game Maker Language": {".gml"},
@ -1555,6 +1561,7 @@ var ExtensionsByLanguage = map[string][]string{
"Gosu": {".gs", ".gst", ".gsx", ".vark"},
"Grace": {".grace"},
"Gradle": {".gradle"},
"Gradle Kotlin DSL": {".gradle.kts"},
"Grammatical Framework": {".gf"},
"Graph Modeling Language": {".gml"},
"GraphQL": {".graphql", ".gql", ".graphqls"},
@ -1601,7 +1608,7 @@ var ExtensionsByLanguage = map[string][]string{
"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"},
"JSON with Comments": {".jsonc", ".code-snippets", ".code-workspace", ".sublime-build", ".sublime-commands", ".sublime-completions", ".sublime-keymap", ".sublime-macro", ".sublime-menu", ".sublime-mousemap", ".sublime-project", ".sublime-settings", ".sublime-theme", ".sublime-workspace", ".sublime_metrics", ".sublime_session"},
"JSON5": {".json5"},
"JSONLD": {".jsonld"},
"JSONiq": {".jq"},
@ -1829,6 +1836,7 @@ var ExtensionsByLanguage = map[string][]string{
"Regular Expression": {".regexp", ".regex"},
"Ren'Py": {".rpy"},
"RenderScript": {".rs", ".rsh"},
"Rez": {".r"},
"Rich Text Format": {".rtf"},
"Ring": {".ring"},
"Riot": {".riot"},
@ -1892,6 +1900,7 @@ var ExtensionsByLanguage = map[string][]string{
"SuperCollider": {".sc", ".scd"},
"Svelte": {".svelte"},
"Sway": {".sw"},
"Sweave": {".rnw"},
"Swift": {".swift"},
"SystemVerilog": {".sv", ".svh", ".vh"},
"TI Program": {".8xp", ".8xk", ".8xk.txt", ".8xp.txt"},
@ -1917,6 +1926,7 @@ var ExtensionsByLanguage = map[string][]string{
"Twig": {".twig"},
"Type Language": {".tl"},
"TypeScript": {".ts", ".cts", ".mts"},
"Typst": {".typ"},
"Unified Parallel C": {".upc"},
"Unity3D Asset": {".anim", ".asset", ".mask", ".mat", ".meta", ".prefab", ".unity"},
"Unix Assembly": {".s", ".ms"},
@ -1961,7 +1971,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", ".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": {".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", ".typ", ".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"},

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -96,6 +96,7 @@ var LanguagesByFilename = map[string][]string{
".project": {"XML"},
".pryrc": {"Ruby"},
".pylintrc": {"INI"},
".rspec": {"Option List"},
".scalafix.conf": {"HOCON"},
".scalafmt.conf": {"HOCON"},
".shellcheckrc": {"ShellCheck Config"},
@ -112,6 +113,7 @@ var LanguagesByFilename = map[string][]string{
".vscodeignore": {"Ignore List"},
".watchmanconfig": {"JSON"},
".wgetrc": {"Wget Config"},
".yardopts": {"Option List"},
".zlogin": {"Shell"},
".zlogout": {"Shell"},
".zprofile": {"Shell"},

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
// Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT.
// Extracted from github/linguist commit: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -8,6 +8,7 @@ var LanguagesGroup = map[string]string{
"Apollo Guidance Computer": "Assembly",
"BibTeX": "TeX",
"Bison": "Yacc",
"Bluespec BH": "Bluespec",
"C2hs Haskell": "Haskell",
"CameLIGO": "LigoLANG",
"ColdFusion CFC": "ColdFusion",
@ -24,6 +25,7 @@ var LanguagesGroup = map[string]string{
"Gentoo Eclass": "Shell",
"Git Attributes": "INI",
"Git Config": "INI",
"Gradle Kotlin DSL": "Gradle",
"Groovy Server Pages": "Groovy",
"HTML+ECR": "HTML",
"HTML+EEX": "HTML",

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -17,6 +17,8 @@ var LanguagesMime = map[string]string{
"Beef": "text/x-csharp",
"BibTeX": "text/x-stex",
"Bikeshed": "text/html",
"Bluespec": "text/x-systemverilog",
"Bluespec BH": "text/x-haskell",
"Brainfuck": "text/x-brainfuck",
"C": "text/x-csrc",
"C#": "text/x-csharp",

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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data
@ -104,6 +104,7 @@ var LanguagesType = map[string]int{
"BlitzBasic": 2,
"BlitzMax": 2,
"Bluespec": 2,
"Bluespec BH": 2,
"Boo": 2,
"Boogie": 2,
"Brainfuck": 2,
@ -272,6 +273,7 @@ var LanguagesType = map[string]int{
"Gosu": 2,
"Grace": 2,
"Gradle": 1,
"Gradle Kotlin DSL": 1,
"Grammatical Framework": 2,
"Graph Modeling Language": 1,
"GraphQL": 1,
@ -563,6 +565,7 @@ var LanguagesType = map[string]int{
"Regular Expression": 1,
"Ren'Py": 2,
"RenderScript": 2,
"Rez": 2,
"Rich Text Format": 3,
"Ring": 2,
"Riot": 3,
@ -630,6 +633,7 @@ var LanguagesType = map[string]int{
"SuperCollider": 2,
"Svelte": 3,
"Sway": 2,
"Sweave": 4,
"Swift": 2,
"SystemVerilog": 2,
"TI Program": 2,
@ -656,6 +660,7 @@ var LanguagesType = map[string]int{
"Twig": 3,
"Type Language": 1,
"TypeScript": 2,
"Typst": 2,
"Unified Parallel C": 2,
"Unity3D Asset": 1,
"Unix Assembly": 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: b5432ebc7e78f25415b98d48c2fbacddbf8df317
// Extracted from github/linguist commit: 7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd
package data