Skip to main content

rumdl_lib/
linguist_data.rs

1//! GitHub Linguist language data
2//!
3//! Auto-generated from GitHub Linguist languages.yml
4//! Linguist commit: e51c2270 (2026-01-14)
5//!
6//! To regenerate: `uv run --with pyyaml python /tmp/gen_linguist.py > src/linguist_data.rs`
7//!
8//! Manual addition on top of the e51c2270 generation: `py` and `py3` as aliases
9//! for Python in both `ALIAS_TO_CANONICAL` and `CANONICAL_TO_ALIASES`. Upstream
10//! added these in commit 6fc1cc65b3 ("Add `py` and `py3` to Python aliases",
11//! PR #7791, merged 2026-03-02), after the e51c2270 pin (2026-01-14), so a
12//! regeneration from that pinned commit alone would not include them.
13
14use std::collections::{HashMap, HashSet};
15use std::sync::LazyLock;
16
17/// Linguist commit hash this data was generated from
18pub const LINGUIST_VERSION: &str = "e51c2270";
19
20/// Linguist commit date
21pub const LINGUIST_DATE: &str = "2026-01-14";
22
23/// Maps lowercase alias -> canonical language name
24pub static ALIAS_TO_CANONICAL: LazyLock<HashMap<&'static str, &'static str>> = LazyLock::new(|| {
25    let mut m = HashMap::with_capacity(1210);
26    m.insert("1c enterprise", "1C Enterprise");
27    m.insert("2-dimensional array", "2-Dimensional Array");
28    m.insert("4d", "4D");
29    m.insert("abap", "ABAP");
30    m.insert("abap cds", "ABAP CDS");
31    m.insert("abl", "OpenEdge ABL");
32    m.insert("abnf", "ABNF");
33    m.insert("abuild", "Shell");
34    m.insert("acfm", "Adobe Font Metrics");
35    m.insert("ackrc", "Option List");
36    m.insert("aconf", "ApacheConf");
37    m.insert("actionscript", "ActionScript");
38    m.insert("actionscript 3", "ActionScript");
39    m.insert("actionscript3", "ActionScript");
40    m.insert("ad block", "Adblock Filter List");
41    m.insert("ad block filters", "Adblock Filter List");
42    m.insert("ada", "Ada");
43    m.insert("ada2005", "Ada");
44    m.insert("ada95", "Ada");
45    m.insert("adb", "Adblock Filter List");
46    m.insert("adblock", "Adblock Filter List");
47    m.insert("adblock filter list", "Adblock Filter List");
48    m.insert("adobe composite font metrics", "Adobe Font Metrics");
49    m.insert("adobe font metrics", "Adobe Font Metrics");
50    m.insert("adobe multiple font metrics", "Adobe Font Metrics");
51    m.insert("advpl", "xBase");
52    m.insert("afdko", "OpenType Feature File");
53    m.insert("agda", "Agda");
54    m.insert("ags", "AGS Script");
55    m.insert("ags script", "AGS Script");
56    m.insert("ahk", "AutoHotkey");
57    m.insert("aidl", "AIDL");
58    m.insert("aiken", "Aiken");
59    m.insert("al", "AL");
60    m.insert("algol", "ALGOL");
61    m.insert("alloy", "Alloy");
62    m.insert("alpine abuild", "Shell");
63    m.insert("altium", "Altium Designer");
64    m.insert("altium designer", "Altium Designer");
65    m.insert("amfm", "Adobe Font Metrics");
66    m.insert("ampl", "AMPL");
67    m.insert("amusewiki", "Muse");
68    m.insert("angelscript", "AngelScript");
69    m.insert("answer set programming", "Answer Set Programming");
70    m.insert("ant build system", "Ant Build System");
71    m.insert("antlers", "Antlers");
72    m.insert("antlr", "ANTLR");
73    m.insert("apache", "ApacheConf");
74    m.insert("apacheconf", "ApacheConf");
75    m.insert("apex", "Apex");
76    m.insert("api blueprint", "API Blueprint");
77    m.insert("apkbuild", "Shell");
78    m.insert("apl", "APL");
79    m.insert("apollo guidance computer", "Assembly");
80    m.insert("applescript", "AppleScript");
81    m.insert("arc", "Arc");
82    m.insert("arexx", "REXX");
83    m.insert("as3", "ActionScript");
84    m.insert("ascii stl", "STL");
85    m.insert("asciidoc", "AsciiDoc");
86    m.insert("asl", "ASL");
87    m.insert("asm", "Assembly");
88    m.insert("asn.1", "ASN.1");
89    m.insert("asp", "Classic ASP");
90    m.insert("asp.net", "ASP.NET");
91    m.insert("aspectj", "AspectJ");
92    m.insert("aspx", "ASP.NET");
93    m.insert("aspx-vb", "ASP.NET");
94    m.insert("assembly", "Assembly");
95    m.insert("astro", "Astro");
96    m.insert("asymptote", "Asymptote");
97    m.insert("ats", "ATS");
98    m.insert("ats2", "ATS");
99    m.insert("au3", "AutoIt");
100    m.insert("augeas", "Augeas");
101    m.insert("autoconf", "M4");
102    m.insert("autohotkey", "AutoHotkey");
103    m.insert("autoit", "AutoIt");
104    m.insert("autoit3", "AutoIt");
105    m.insert("autoitscript", "AutoIt");
106    m.insert("avro idl", "Avro IDL");
107    m.insert("awk", "Awk");
108    m.insert("b (formal method)", "B (Formal Method)");
109    m.insert("b3d", "BlitzBasic");
110    m.insert("b4x", "B4X");
111    m.insert("ballerina", "Ballerina");
112    m.insert("bash", "Shell");
113    m.insert("bash session", "ShellSession");
114    m.insert("basic", "BASIC");
115    m.insert("basic for android", "B4X");
116    m.insert("bat", "Batchfile");
117    m.insert("batch", "Batchfile");
118    m.insert("batchfile", "Batchfile");
119    m.insert("bazel", "Starlark");
120    m.insert("be", "Berry");
121    m.insert("beef", "Beef");
122    m.insert("befunge", "Befunge");
123    m.insert("berry", "Berry");
124    m.insert("bh", "Bluespec");
125    m.insert("bibtex", "TeX");
126    m.insert("bibtex style", "BibTeX Style");
127    m.insert("bicep", "Bicep");
128    m.insert("bikeshed", "Bikeshed");
129    m.insert("bison", "Yacc");
130    m.insert("bitbake", "BitBake");
131    m.insert("blade", "Blade");
132    m.insert("blitz3d", "BlitzBasic");
133    m.insert("blitzbasic", "BlitzBasic");
134    m.insert("blitzmax", "BlitzMax");
135    m.insert("blitzplus", "BlitzBasic");
136    m.insert("bluespec", "Bluespec");
137    m.insert("bluespec bh", "Bluespec");
138    m.insert("bluespec bsv", "Bluespec");
139    m.insert("bluespec classic", "Bluespec");
140    m.insert("bmax", "BlitzMax");
141    m.insert("boo", "Boo");
142    m.insert("boogie", "Boogie");
143    m.insert("bplus", "BlitzBasic");
144    m.insert("bqn", "BQN");
145    m.insert("brainfuck", "Brainfuck");
146    m.insert("brighterscript", "BrighterScript");
147    m.insert("brightscript", "Brightscript");
148    m.insert("bro", "Zeek");
149    m.insert("browserslist", "Browserslist");
150    m.insert("bru", "Bru");
151    m.insert("bsdmake", "Makefile");
152    m.insert("bsv", "Bluespec");
153    m.insert("buildstream", "BuildStream");
154    m.insert("byond", "DM");
155    m.insert("bzl", "Starlark");
156    m.insert("c", "C");
157    m.insert("c#", "C#");
158    m.insert("c++", "C++");
159    m.insert("c++-objdump", "Cpp-ObjDump");
160    m.insert("c-objdump", "C-ObjDump");
161    m.insert("c2hs", "Haskell");
162    m.insert("c2hs haskell", "Haskell");
163    m.insert("c3", "C3");
164    m.insert("cabal", "Cabal Config");
165    m.insert("cabal config", "Cabal Config");
166    m.insert("caddy", "Caddyfile");
167    m.insert("caddyfile", "Caddyfile");
168    m.insert("cadence", "Cadence");
169    m.insert("cairo", "Cairo");
170    m.insert("cairo zero", "Cairo");
171    m.insert("cake", "C#");
172    m.insert("cakescript", "C#");
173    m.insert("cameligo", "LigoLANG");
174    m.insert("cangjie", "Cangjie");
175    m.insert("cap cds", "CAP CDS");
176    m.insert("cap'n proto", "Cap'n Proto");
177    m.insert("carbon", "Carbon");
178    m.insert("carto", "CartoCSS");
179    m.insert("cartocss", "CartoCSS");
180    m.insert("cds", "CAP CDS");
181    m.insert("ceylon", "Ceylon");
182    m.insert("cfc", "ColdFusion");
183    m.insert("cfm", "ColdFusion");
184    m.insert("cfml", "ColdFusion");
185    m.insert("chapel", "Chapel");
186    m.insert("charity", "Charity");
187    m.insert("checksum", "Checksums");
188    m.insert("checksums", "Checksums");
189    m.insert("chpl", "Chapel");
190    m.insert("chuck", "ChucK");
191    m.insert("cil", "CIL");
192    m.insert("circom", "Circom");
193    m.insert("cirru", "Cirru");
194    m.insert("clarion", "Clarion");
195    m.insert("clarity", "Clarity");
196    m.insert("classic asp", "Classic ASP");
197    m.insert("classic qbasic", "QuickBASIC");
198    m.insert("classic quickbasic", "QuickBASIC");
199    m.insert("classic visual basic", "Visual Basic 6.0");
200    m.insert("clean", "Clean");
201    m.insert("click", "Click");
202    m.insert("clipper", "xBase");
203    m.insert("clips", "CLIPS");
204    m.insert("clojure", "Clojure");
205    m.insert("closure templates", "Closure Templates");
206    m.insert("cloud firestore security rules", "Cloud Firestore Security Rules");
207    m.insert("clue", "Clue");
208    m.insert("cmake", "CMake");
209    m.insert("cobol", "COBOL");
210    m.insert("coccinelle", "SmPL");
211    m.insert("codeowners", "CODEOWNERS");
212    m.insert("codeql", "CodeQL");
213    m.insert("coffee", "CoffeeScript");
214    m.insert("coffee-script", "CoffeeScript");
215    m.insert("coffeescript", "CoffeeScript");
216    m.insert("coldfusion", "ColdFusion");
217    m.insert("coldfusion cfc", "ColdFusion");
218    m.insert("coldfusion html", "ColdFusion");
219    m.insert("collada", "COLLADA");
220    m.insert("commit", "Git Commit");
221    m.insert("common lisp", "Common Lisp");
222    m.insert("common workflow language", "Common Workflow Language");
223    m.insert("component pascal", "Component Pascal");
224    m.insert("conll", "CoNLL-U");
225    m.insert("conll-u", "CoNLL-U");
226    m.insert("conll-x", "CoNLL-U");
227    m.insert("console", "ShellSession");
228    m.insert("containerfile", "Dockerfile");
229    m.insert("cooklang", "Cooklang");
230    m.insert("cool", "Cool");
231    m.insert("coq", "Rocq Prover");
232    m.insert("cperl", "Perl");
233    m.insert("cpp", "C++");
234    m.insert("cpp-objdump", "Cpp-ObjDump");
235    m.insert("cql", "CQL");
236    m.insert("creole", "Creole");
237    m.insert("cron", "crontab");
238    m.insert("cron table", "crontab");
239    m.insert("crontab", "crontab");
240    m.insert("crystal", "Crystal");
241    m.insert("csharp", "C#");
242    m.insert("cson", "CSON");
243    m.insert("csound", "Csound");
244    m.insert("csound document", "Csound Document");
245    m.insert("csound score", "Csound Score");
246    m.insert("csound-csd", "Csound Document");
247    m.insert("csound-orc", "Csound");
248    m.insert("csound-sco", "Csound Score");
249    m.insert("css", "CSS");
250    m.insert("csv", "CSV");
251    m.insert("cucumber", "Gherkin");
252    m.insert("cuda", "Cuda");
253    m.insert("cue", "CUE");
254    m.insert("cue sheet", "Cue Sheet");
255    m.insert("curl config", "INI");
256    m.insert("curlrc", "INI");
257    m.insert("curry", "Curry");
258    m.insert("cweb", "CWeb");
259    m.insert("cwl", "Common Workflow Language");
260    m.insert("cycript", "Cycript");
261    m.insert("cylc", "INI");
262    m.insert("cypher", "Cypher");
263    m.insert("cython", "Cython");
264    m.insert("d", "D");
265    m.insert("d-objdump", "D-ObjDump");
266    m.insert("d2", "D2");
267    m.insert("d2lang", "D2");
268    m.insert("dafny", "Dafny");
269    m.insert("darcs patch", "Darcs Patch");
270    m.insert("dart", "Dart");
271    m.insert("daslang", "Daslang");
272    m.insert("dataweave", "DataWeave");
273    m.insert("dcl", "DIGITAL Command Language");
274    m.insert("debian package control file", "Debian Package Control File");
275    m.insert("delphi", "Pascal");
276    m.insert("denizenscript", "DenizenScript");
277    m.insert("desktop", "desktop");
278    m.insert("dhall", "Dhall");
279    m.insert("diff", "Diff");
280    m.insert("digital command language", "DIGITAL Command Language");
281    m.insert("dircolors", "dircolors");
282    m.insert("directx 3d file", "DirectX 3D File");
283    m.insert("django", "Jinja");
284    m.insert("dlang", "D");
285    m.insert("dm", "DM");
286    m.insert("dns zone", "DNS Zone");
287    m.insert("dockerfile", "Dockerfile");
288    m.insert("dogescript", "Dogescript");
289    m.insert("dosbatch", "Batchfile");
290    m.insert("dosini", "INI");
291    m.insert("dotenv", "Dotenv");
292    m.insert("dpatch", "Darcs Patch");
293    m.insert("dtrace", "DTrace");
294    m.insert("dtrace-script", "DTrace");
295    m.insert("dune", "Dune");
296    m.insert("dylan", "Dylan");
297    m.insert("e", "E");
298    m.insert("e-mail", "E-mail");
299    m.insert("eagle", "Eagle");
300    m.insert("earthfile", "Earthly");
301    m.insert("earthly", "Earthly");
302    m.insert("easybuild", "Python");
303    m.insert("ebnf", "EBNF");
304    m.insert("ec", "eC");
305    m.insert("ecere projects", "JavaScript");
306    m.insert("ecl", "ECL");
307    m.insert("eclipse", "Prolog");
308    m.insert("ecmarkdown", "HTML");
309    m.insert("ecmarkup", "HTML");
310    m.insert("ecr", "HTML");
311    m.insert("edge", "Edge");
312    m.insert("edgeql", "EdgeQL");
313    m.insert("editor-config", "INI");
314    m.insert("editorconfig", "INI");
315    m.insert("edje data collection", "Edje Data Collection");
316    m.insert("edn", "edn");
317    m.insert("eeschema schematic", "KiCad Schematic");
318    m.insert("eex", "HTML");
319    m.insert("eiffel", "Eiffel");
320    m.insert("ejs", "EJS");
321    m.insert("electronic business card", "vCard");
322    m.insert("elisp", "Emacs Lisp");
323    m.insert("elixir", "Elixir");
324    m.insert("elm", "Elm");
325    m.insert("elvish", "Elvish");
326    m.insert("elvish transcript", "Elvish");
327    m.insert("emacs", "Emacs Lisp");
328    m.insert("emacs lisp", "Emacs Lisp");
329    m.insert("emacs muse", "Muse");
330    m.insert("email", "E-mail");
331    m.insert("emberscript", "EmberScript");
332    m.insert("eml", "E-mail");
333    m.insert("envrc", "Shell");
334    m.insert("eq", "EQ");
335    m.insert("erb", "HTML");
336    m.insert("erlang", "Erlang");
337    m.insert("esdl", "EdgeQL");
338    m.insert("euphoria", "Euphoria");
339    m.insert("f#", "F#");
340    m.insert("f*", "F*");
341    m.insert("factor", "Factor");
342    m.insert("fancy", "Fancy");
343    m.insert("fantom", "Fantom");
344    m.insert("faust", "Faust");
345    m.insert("fb", "FreeBASIC");
346    m.insert("fennel", "Fennel");
347    m.insert("figfont", "FIGlet Font");
348    m.insert("figlet font", "FIGlet Font");
349    m.insert("filebench wml", "Filebench WML");
350    m.insert("filterscript", "RenderScript");
351    m.insert("firrtl", "FIRRTL");
352    m.insert("fish", "Shell");
353    m.insert("flex", "Lex");
354    m.insert("flix", "Flix");
355    m.insert("fluent", "Fluent");
356    m.insert("flux", "FLUX");
357    m.insert("formatted", "Formatted");
358    m.insert("forth", "Forth");
359    m.insert("fortran", "Fortran");
360    m.insert("fortran free form", "Fortran");
361    m.insert("foxpro", "xBase");
362    m.insert("freebasic", "FreeBASIC");
363    m.insert("freemarker", "FreeMarker");
364    m.insert("frege", "Frege");
365    m.insert("fsharp", "F#");
366    m.insert("fstar", "F*");
367    m.insert("ftl", "FreeMarker");
368    m.insert("fundamental", "Text");
369    m.insert("futhark", "Futhark");
370    m.insert("g-code", "G-code");
371    m.insert("game maker language", "Game Maker Language");
372    m.insert("gaml", "GAML");
373    m.insert("gams", "GAMS");
374    m.insert("gap", "GAP");
375    m.insert("gas", "Assembly");
376    m.insert("gcc machine description", "GCC Machine Description");
377    m.insert("gdb", "GDB");
378    m.insert("gdscript", "GDScript");
379    m.insert("gdshader", "GDShader");
380    m.insert("gedcom", "GEDCOM");
381    m.insert("gemfile.lock", "Gemfile.lock");
382    m.insert("gemini", "Gemini");
383    m.insert("gemtext", "Gemini");
384    m.insert("genero 4gl", "Genero 4gl");
385    m.insert("genero per", "Genero per");
386    m.insert("genie", "Genie");
387    m.insert("genshi", "Genshi");
388    m.insert("gentoo ebuild", "Shell");
389    m.insert("gentoo eclass", "Shell");
390    m.insert("geojson", "JSON");
391    m.insert("gerber image", "Gerber Image");
392    m.insert("gettext catalog", "Gettext Catalog");
393    m.insert("gf", "Grammatical Framework");
394    m.insert("gherkin", "Gherkin");
395    m.insert("git attributes", "Git Attributes");
396    m.insert("git blame ignore revs", "Git Revision List");
397    m.insert("git commit", "Git Commit");
398    m.insert("git config", "INI");
399    m.insert("git revision list", "Git Revision List");
400    m.insert("git-ignore", "Ignore List");
401    m.insert("gitattributes", "Git Attributes");
402    m.insert("gitconfig", "INI");
403    m.insert("gitignore", "Ignore List");
404    m.insert("gitmodules", "INI");
405    m.insert("gjs", "JavaScript");
406    m.insert("gleam", "Gleam");
407    m.insert("glimmer js", "JavaScript");
408    m.insert("glimmer ts", "TypeScript");
409    m.insert("glsl", "GLSL");
410    m.insert("glyph", "Glyph");
411    m.insert("glyph bitmap distribution format", "Glyph Bitmap Distribution Format");
412    m.insert("gn", "GN");
413    m.insert("gnu asm", "Assembly");
414    m.insert("gnuplot", "Gnuplot");
415    m.insert("go", "Go");
416    m.insert("go checksums", "Go Checksums");
417    m.insert("go mod", "Go Module");
418    m.insert("go module", "Go Module");
419    m.insert("go sum", "Go Checksums");
420    m.insert("go template", "Go Template");
421    m.insert("go work", "Go Workspace");
422    m.insert("go work sum", "Go Checksums");
423    m.insert("go workspace", "Go Workspace");
424    m.insert("go.mod", "Go Module");
425    m.insert("go.sum", "Go Checksums");
426    m.insert("go.work", "Go Workspace");
427    m.insert("go.work.sum", "Go Checksums");
428    m.insert("godot resource", "Godot Resource");
429    m.insert("golang", "Go");
430    m.insert("golo", "Golo");
431    m.insert("gosu", "Gosu");
432    m.insert("gotmpl", "Go Template");
433    m.insert("grace", "Grace");
434    m.insert("gradle", "Gradle");
435    m.insert("gradle kotlin dsl", "Gradle");
436    m.insert("grammatical framework", "Grammatical Framework");
437    m.insert("graph modeling language", "Graph Modeling Language");
438    m.insert("graphql", "GraphQL");
439    m.insert("graphviz (dot)", "Graphviz (DOT)");
440    m.insert("groff", "Roff");
441    m.insert("groovy", "Groovy");
442    m.insert("groovy server pages", "Groovy");
443    m.insert("gsc", "GSC");
444    m.insert("gsp", "Groovy");
445    m.insert("gts", "TypeScript");
446    m.insert("hack", "Hack");
447    m.insert("haml", "Haml");
448    m.insert("handlebars", "Handlebars");
449    m.insert("haproxy", "HAProxy");
450    m.insert("harbour", "Harbour");
451    m.insert("hare", "Hare");
452    m.insert("hash", "Checksums");
453    m.insert("hashes", "Checksums");
454    m.insert("hashicorp configuration language", "HCL");
455    m.insert("haskell", "Haskell");
456    m.insert("haxe", "Haxe");
457    m.insert("hbs", "Handlebars");
458    m.insert("hcl", "HCL");
459    m.insert("heex", "HTML");
460    m.insert("help", "Vim Help File");
461    m.insert("hip", "HIP");
462    m.insert("hiveql", "HiveQL");
463    m.insert("hls playlist", "M3U");
464    m.insert("hlsl", "HLSL");
465    m.insert("hocon", "HOCON");
466    m.insert("holyc", "HolyC");
467    m.insert("hoon", "hoon");
468    m.insert("hosts", "Hosts File");
469    m.insert("hosts file", "Hosts File");
470    m.insert("html", "HTML");
471    m.insert("html+django", "Jinja");
472    m.insert("html+ecr", "HTML");
473    m.insert("html+eex", "HTML");
474    m.insert("html+erb", "HTML");
475    m.insert("html+jinja", "Jinja");
476    m.insert("html+php", "HTML");
477    m.insert("html+razor", "HTML");
478    m.insert("html+ruby", "HTML");
479    m.insert("htmlbars", "Handlebars");
480    m.insert("htmldjango", "Jinja");
481    m.insert("http", "HTTP");
482    m.insert("hurl", "Hurl");
483    m.insert("hxml", "HXML");
484    m.insert("hy", "Hy");
485    m.insert("hylang", "Hy");
486    m.insert("hyphy", "HyPhy");
487    m.insert("i7", "Inform 7");
488    m.insert("ical", "iCalendar");
489    m.insert("icalendar", "iCalendar");
490    m.insert("idl", "IDL");
491    m.insert("idris", "Idris");
492    m.insert("ignore", "Ignore List");
493    m.insert("ignore list", "Ignore List");
494    m.insert("igor", "IGOR Pro");
495    m.insert("igor pro", "IGOR Pro");
496    m.insert("igorpro", "IGOR Pro");
497    m.insert("ijm", "ImageJ Macro");
498    m.insert("ile rpg", "RPGLE");
499    m.insert("imagej macro", "ImageJ Macro");
500    m.insert("imba", "Imba");
501    m.insert("inc", "PHP");
502    m.insert("inform 7", "Inform 7");
503    m.insert("inform7", "Inform 7");
504    m.insert("ini", "INI");
505    m.insert("ink", "Ink");
506    m.insert("inno setup", "Inno Setup");
507    m.insert("inputrc", "INI");
508    m.insert("io", "Io");
509    m.insert("ioke", "Ioke");
510    m.insert("ipython notebook", "Jupyter Notebook");
511    m.insert("irc", "IRC log");
512    m.insert("irc log", "IRC log");
513    m.insert("irc logs", "IRC log");
514    m.insert("isabelle", "Isabelle");
515    m.insert("isabelle root", "Isabelle");
516    m.insert("ispc", "ISPC");
517    m.insert("j", "J");
518    m.insert("jac", "Jac");
519    m.insert("jai", "Jai");
520    m.insert("janet", "Janet");
521    m.insert("jar manifest", "JAR Manifest");
522    m.insert("jasmin", "Jasmin");
523    m.insert("java", "Java");
524    m.insert("java properties", "Java Properties");
525    m.insert("java server page", "Groovy");
526    m.insert("java server pages", "Java");
527    m.insert("java template engine", "Java");
528    m.insert("javascript", "JavaScript");
529    m.insert("javascript+erb", "JavaScript");
530    m.insert("jcl", "JCL");
531    m.insert("jest snapshot", "Jest Snapshot");
532    m.insert("jetbrains mps", "JetBrains MPS");
533    m.insert("jflex", "Lex");
534    m.insert("jinja", "Jinja");
535    m.insert("jison", "Yacc");
536    m.insert("jison lex", "Lex");
537    m.insert("jolie", "Jolie");
538    m.insert("jq", "jq");
539    m.insert("jruby", "Ruby");
540    m.insert("js", "JavaScript");
541    m.insert("json", "JSON");
542    m.insert("json with comments", "JSON");
543    m.insert("json5", "JSON5");
544    m.insert("jsonc", "JSON");
545    m.insert("jsoniq", "JSONiq");
546    m.insert("jsonl", "JSON");
547    m.insert("jsonld", "JSONLD");
548    m.insert("jsonnet", "Jsonnet");
549    m.insert("jsp", "Java");
550    m.insert("jte", "Java");
551    m.insert("julia", "Julia");
552    m.insert("julia repl", "Julia");
553    m.insert("jupyter notebook", "Jupyter Notebook");
554    m.insert("just", "Just");
555    m.insert("justfile", "Just");
556    m.insert("kaitai struct", "Kaitai Struct");
557    m.insert("kak", "KakouneScript");
558    m.insert("kakounescript", "KakouneScript");
559    m.insert("kakscript", "KakouneScript");
560    m.insert("kcl", "KCL");
561    m.insert("kdl", "KDL");
562    m.insert("kerboscript", "KerboScript");
563    m.insert("keyvalues", "Valve Data Format");
564    m.insert("kframework", "KFramework");
565    m.insert("kicad layout", "KiCad Layout");
566    m.insert("kicad legacy layout", "KiCad Legacy Layout");
567    m.insert("kicad schematic", "KiCad Schematic");
568    m.insert("kickstart", "Kickstart");
569    m.insert("kit", "Kit");
570    m.insert("koka", "Koka");
571    m.insert("kolmafia ash", "KoLmafia ASH");
572    m.insert("kotlin", "Kotlin");
573    m.insert("krl", "KRL");
574    m.insert("ksy", "Kaitai Struct");
575    m.insert("kusto", "Kusto");
576    m.insert("kvlang", "kvlang");
577    m.insert("labview", "LabVIEW");
578    m.insert("lambdapi", "Lambdapi");
579    m.insert("langium", "Langium");
580    m.insert("lark", "Lark");
581    m.insert("lasso", "Lasso");
582    m.insert("lassoscript", "Lasso");
583    m.insert("latex", "TeX");
584    m.insert("latte", "Latte");
585    m.insert("lean", "Lean");
586    m.insert("lean 4", "Lean");
587    m.insert("lean4", "Lean");
588    m.insert("leex", "HTML");
589    m.insert("leo", "Leo");
590    m.insert("less", "Less");
591    m.insert("less-css", "Less");
592    m.insert("lex", "Lex");
593    m.insert("lfe", "LFE");
594    m.insert("lhaskell", "Haskell");
595    m.insert("lhs", "Haskell");
596    m.insert("ligolang", "LigoLANG");
597    m.insert("lilypond", "LilyPond");
598    m.insert("limbo", "Limbo");
599    m.insert("linear programming", "Linear Programming");
600    m.insert("linker script", "Linker Script");
601    m.insert("linux kernel module", "Linux Kernel Module");
602    m.insert("liquid", "Liquid");
603    m.insert("lisp", "Common Lisp");
604    m.insert("litcoffee", "CoffeeScript");
605    m.insert("literate agda", "Agda");
606    m.insert("literate coffeescript", "CoffeeScript");
607    m.insert("literate haskell", "Haskell");
608    m.insert("live-script", "LiveScript");
609    m.insert("livecode script", "LiveCode Script");
610    m.insert("livescript", "LiveScript");
611    m.insert("llvm", "LLVM");
612    m.insert("logos", "Logos");
613    m.insert("logtalk", "Logtalk");
614    m.insert("lolcode", "LOLCODE");
615    m.insert("lookml", "LookML");
616    m.insert("loomscript", "LoomScript");
617    m.insert("ls", "LiveScript");
618    m.insert("lsl", "LSL");
619    m.insert("ltspice symbol", "LTspice Symbol");
620    m.insert("lua", "Lua");
621    m.insert("luau", "Luau");
622    m.insert("m", "M");
623    m.insert("m2", "Macaulay2");
624    m.insert("m3u", "M3U");
625    m.insert("m3u playlist", "M3U");
626    m.insert("m4", "M4");
627    m.insert("m4sugar", "M4");
628    m.insert("m68k", "Assembly");
629    m.insert("macaulay2", "Macaulay2");
630    m.insert("macruby", "Ruby");
631    m.insert("mail", "E-mail");
632    m.insert("make", "Makefile");
633    m.insert("makefile", "Makefile");
634    m.insert("mako", "Mako");
635    m.insert("man", "Roff");
636    m.insert("man page", "Roff");
637    m.insert("man-page", "Roff");
638    m.insert("manpage", "Roff");
639    m.insert("markdown", "Markdown");
640    m.insert("marko", "Marko");
641    m.insert("markojs", "Marko");
642    m.insert("mask", "Mask");
643    m.insert("mathematica", "Wolfram Language");
644    m.insert("mathematical programming system", "Mathematical Programming System");
645    m.insert("matlab", "MATLAB");
646    m.insert("maven pom", "XML");
647    m.insert("max", "Max");
648    m.insert("max/msp", "Max");
649    m.insert("maxmsp", "Max");
650    m.insert("maxscript", "MAXScript");
651    m.insert("mbox", "E-mail");
652    m.insert("mcfunction", "mcfunction");
653    m.insert("md", "Markdown");
654    m.insert("mdoc", "Roff");
655    m.insert("mdsvex", "mdsvex");
656    m.insert("mdx", "MDX");
657    m.insert("mediawiki", "Wikitext");
658    m.insert("mercury", "Mercury");
659    m.insert("mermaid", "Mermaid");
660    m.insert("mermaid example", "Mermaid");
661    m.insert("meson", "Meson");
662    m.insert("metal", "Metal");
663    m.insert("mf", "Makefile");
664    m.insert(
665        "microsoft developer studio project",
666        "Microsoft Developer Studio Project",
667    );
668    m.insert("microsoft visual studio solution", "Microsoft Visual Studio Solution");
669    m.insert("minid", "MiniD");
670    m.insert("miniyaml", "MiniYAML");
671    m.insert("minizinc", "MiniZinc");
672    m.insert("minizinc data", "MiniZinc Data");
673    m.insert("mint", "Mint");
674    m.insert("mirah", "Mirah");
675    m.insert("mirc script", "mIRC Script");
676    m.insert("mlir", "MLIR");
677    m.insert("mma", "Wolfram Language");
678    m.insert("modelica", "Modelica");
679    m.insert("modula-2", "Modula-2");
680    m.insert("modula-3", "Modula-3");
681    m.insert("module management system", "Module Management System");
682    m.insert("mojo", "Mojo");
683    m.insert("monkey", "Monkey");
684    m.insert("monkey c", "Monkey C");
685    m.insert("moocode", "Moocode");
686    m.insert("moonbit", "MoonBit");
687    m.insert("moonscript", "MoonScript");
688    m.insert("motoko", "Motoko");
689    m.insert("motorola 68k assembly", "Assembly");
690    m.insert("move", "Move");
691    m.insert("mps", "JetBrains MPS");
692    m.insert("mql4", "MQL4");
693    m.insert("mql5", "MQL5");
694    m.insert("mtml", "MTML");
695    m.insert("muf", "Forth");
696    m.insert("mumps", "M");
697    m.insert("mupad", "mupad");
698    m.insert("muse", "Muse");
699    m.insert("mustache", "Mustache");
700    m.insert("myghty", "Myghty");
701    m.insert("nanorc", "INI");
702    m.insert("nargo", "Noir");
703    m.insert("nasal", "Nasal");
704    m.insert("nasl", "NASL");
705    m.insert("nasm", "Assembly");
706    m.insert("ncl", "NCL");
707    m.insert("ne-on", "NEON");
708    m.insert("nearley", "Nearley");
709    m.insert("nemerle", "Nemerle");
710    m.insert("neon", "NEON");
711    m.insert("neosnippet", "Vim Snippet");
712    m.insert("nesc", "nesC");
713    m.insert("netlinx", "NetLinx");
714    m.insert("netlinx+erb", "NetLinx+ERB");
715    m.insert("netlogo", "NetLogo");
716    m.insert("nette object notation", "NEON");
717    m.insert("newlisp", "NewLisp");
718    m.insert("nextflow", "Nextflow");
719    m.insert("nginx", "Nginx");
720    m.insert("nginx configuration file", "Nginx");
721    m.insert("nickel", "Nickel");
722    m.insert("nim", "Nim");
723    m.insert("ninja", "Ninja");
724    m.insert("nit", "Nit");
725    m.insert("nix", "Nix");
726    m.insert("nixos", "Nix");
727    m.insert("njk", "Nunjucks");
728    m.insert("nl", "NL");
729    m.insert("nmodl", "NMODL");
730    m.insert("node", "JavaScript");
731    m.insert("noir", "Noir");
732    m.insert("npm config", "INI");
733    m.insert("npmrc", "INI");
734    m.insert("nroff", "Roff");
735    m.insert("nsis", "NSIS");
736    m.insert("nu", "Nu");
737    m.insert("nu-script", "Nushell");
738    m.insert("numpy", "Python");
739    m.insert("nunjucks", "Nunjucks");
740    m.insert("nush", "Nu");
741    m.insert("nushell", "Nushell");
742    m.insert("nushell-script", "Nushell");
743    m.insert("nvim", "Vim Script");
744    m.insert("nwscript", "NWScript");
745    m.insert("oasv2", "OpenAPI Specification v2");
746    m.insert("oasv2-json", "OpenAPI Specification v2");
747    m.insert("oasv2-yaml", "OpenAPI Specification v2");
748    m.insert("oasv3", "OpenAPI Specification v3");
749    m.insert("oasv3-json", "OpenAPI Specification v3");
750    m.insert("oasv3-yaml", "OpenAPI Specification v3");
751    m.insert("oberon", "Oberon");
752    m.insert("obj-c", "Objective-C");
753    m.insert("obj-c++", "Objective-C++");
754    m.insert("obj-j", "Objective-J");
755    m.insert("objc", "Objective-C");
756    m.insert("objc++", "Objective-C++");
757    m.insert("objdump", "ObjDump");
758    m.insert("object data instance notation", "Object Data Instance Notation");
759    m.insert("objective-c", "Objective-C");
760    m.insert("objective-c++", "Objective-C++");
761    m.insert("objective-j", "Objective-J");
762    m.insert("objectivec", "Objective-C");
763    m.insert("objectivec++", "Objective-C++");
764    m.insert("objectivej", "Objective-J");
765    m.insert("objectpascal", "Pascal");
766    m.insert("objectscript", "ObjectScript");
767    m.insert("objj", "Objective-J");
768    m.insert("ocaml", "OCaml");
769    m.insert("octave", "MATLAB");
770    m.insert("odin", "Odin");
771    m.insert("odin-lang", "Odin");
772    m.insert("odinlang", "Odin");
773    m.insert("omgrofl", "Omgrofl");
774    m.insert("omnet++ msg", "OMNeT++ MSG");
775    m.insert("omnet++ ned", "OMNeT++ NED");
776    m.insert("omnetpp-msg", "OMNeT++ MSG");
777    m.insert("omnetpp-ned", "OMNeT++ NED");
778    m.insert("oncrpc", "RPC");
779    m.insert("ooc", "ooc");
780    m.insert("opa", "Opa");
781    m.insert("opal", "Opal");
782    m.insert("open policy agent", "Open Policy Agent");
783    m.insert("openapi specification v2", "OpenAPI Specification v2");
784    m.insert("openapi specification v3", "OpenAPI Specification v3");
785    m.insert("opencl", "C");
786    m.insert("openedge", "OpenEdge ABL");
787    m.insert("openedge abl", "OpenEdge ABL");
788    m.insert("openqasm", "OpenQASM");
789    m.insert("openrc", "Shell");
790    m.insert("openrc runscript", "Shell");
791    m.insert("openscad", "OpenSCAD");
792    m.insert("openstep property list", "OpenStep Property List");
793    m.insert("opentofu", "HCL");
794    m.insert("opentype feature file", "OpenType Feature File");
795    m.insert("option list", "Option List");
796    m.insert("opts", "Option List");
797    m.insert("org", "Org");
798    m.insert("osascript", "AppleScript");
799    m.insert("overpassql", "OverpassQL");
800    m.insert("ox", "Ox");
801    m.insert("oxygene", "Oxygene");
802    m.insert("oz", "Oz");
803    m.insert("p4", "P4");
804    m.insert("pact", "Pact");
805    m.insert("pan", "Pan");
806    m.insert("pandoc", "Markdown");
807    m.insert("papyrus", "Papyrus");
808    m.insert("parrot", "Parrot");
809    m.insert("parrot assembly", "Parrot");
810    m.insert("parrot internal representation", "Parrot");
811    m.insert("pascal", "Pascal");
812    m.insert("pasm", "Parrot");
813    m.insert("pawn", "Pawn");
814    m.insert("pcbnew", "KiCad Layout");
815    m.insert("pddl", "PDDL");
816    m.insert("peg.js", "PEG.js");
817    m.insert("pep8", "Pep8");
818    m.insert("perl", "Perl");
819    m.insert("perl-6", "Raku");
820    m.insert("perl6", "Raku");
821    m.insert("php", "PHP");
822    m.insert("pic", "Roff");
823    m.insert("pickle", "Pickle");
824    m.insert("picolisp", "PicoLisp");
825    m.insert("piglatin", "PigLatin");
826    m.insert("pikchr", "Roff");
827    m.insert("pike", "Pike");
828    m.insert("pip requirements", "Pip Requirements");
829    m.insert("pir", "Parrot");
830    m.insert("pkl", "Pkl");
831    m.insert("plain text", "Text");
832    m.insert("plantuml", "PlantUML");
833    m.insert("plpgsql", "PLpgSQL");
834    m.insert("plsql", "PLSQL");
835    m.insert("pod", "Pod");
836    m.insert("pod 6", "Pod 6");
837    m.insert("pogoscript", "PogoScript");
838    m.insert("polar", "Polar");
839    m.insert("pony", "Pony");
840    m.insert("portugol", "Portugol");
841    m.insert("posh", "PowerShell");
842    m.insert("postcss", "CSS");
843    m.insert("postscr", "PostScript");
844    m.insert("postscript", "PostScript");
845    m.insert("pot", "Gettext Catalog");
846    m.insert("pov-ray", "POV-Ray SDL");
847    m.insert("pov-ray sdl", "POV-Ray SDL");
848    m.insert("povray", "POV-Ray SDL");
849    m.insert("powerbuilder", "PowerBuilder");
850    m.insert("powershell", "PowerShell");
851    m.insert("praat", "Praat");
852    m.insert("prisma", "Prisma");
853    m.insert("processing", "Processing");
854    m.insert("procfile", "Procfile");
855    m.insert("progress", "OpenEdge ABL");
856    m.insert("proguard", "Proguard");
857    m.insert("prolog", "Prolog");
858    m.insert("promela", "Promela");
859    m.insert("propeller spin", "Propeller Spin");
860    m.insert("proto", "Protocol Buffer");
861    m.insert("protobuf", "Protocol Buffer");
862    m.insert("protobuf text format", "Protocol Buffer Text Format");
863    m.insert("protocol buffer", "Protocol Buffer");
864    m.insert("protocol buffer text format", "Protocol Buffer Text Format");
865    m.insert("protocol buffers", "Protocol Buffer");
866    m.insert("public key", "Public Key");
867    m.insert("pug", "Pug");
868    m.insert("puppet", "Puppet");
869    m.insert("pure data", "Pure Data");
870    m.insert("purebasic", "PureBasic");
871    m.insert("purescript", "PureScript");
872    m.insert("pwsh", "PowerShell");
873    m.insert("py", "Python");
874    m.insert("py3", "Python");
875    m.insert("pycon", "Python");
876    m.insert("pyret", "Pyret");
877    m.insert("pyrex", "Cython");
878    m.insert("python", "Python");
879    m.insert("python console", "Python");
880    m.insert("python traceback", "Python");
881    m.insert("python3", "Python");
882    m.insert("q", "q");
883    m.insert("q#", "Q#");
884    m.insert("qb", "QuickBASIC");
885    m.insert("qb64", "QuickBASIC");
886    m.insert("qbasic", "QuickBASIC");
887    m.insert("ql", "CodeQL");
888    m.insert("qmake", "QMake");
889    m.insert("qml", "QML");
890    m.insert("qsharp", "Q#");
891    m.insert("qt script", "Qt Script");
892    m.insert("quake", "Quake");
893    m.insert("quakec", "QuakeC");
894    m.insert("quickbasic", "QuickBASIC");
895    m.insert("r", "R");
896    m.insert("racket", "Racket");
897    m.insert("ragel", "Ragel");
898    m.insert("ragel-rb", "Ragel");
899    m.insert("ragel-ruby", "Ragel");
900    m.insert("rake", "Ruby");
901    m.insert("raku", "Raku");
902    m.insert("raml", "RAML");
903    m.insert("rascal", "Rascal");
904    m.insert("rascript", "RAScript");
905    m.insert("raw", "Raw token data");
906    m.insert("raw token data", "Raw token data");
907    m.insert("razor", "HTML");
908    m.insert("rb", "Ruby");
909    m.insert("rbs", "Ruby");
910    m.insert("rbx", "Ruby");
911    m.insert("rdoc", "RDoc");
912    m.insert("readline", "INI");
913    m.insert("readline config", "INI");
914    m.insert("realbasic", "REALbasic");
915    m.insert("reason", "Reason");
916    m.insert("reasonligo", "LigoLANG");
917    m.insert("rebol", "Rebol");
918    m.insert("record jar", "Record Jar");
919    m.insert("red", "Red");
920    m.insert("red/system", "Red");
921    m.insert("redcode", "Redcode");
922    m.insert("redirect rules", "Redirect Rules");
923    m.insert("redirects", "Redirect Rules");
924    m.insert("regex", "Regular Expression");
925    m.insert("regexp", "Regular Expression");
926    m.insert("regular expression", "Regular Expression");
927    m.insert("ren'py", "Ren'Py");
928    m.insert("renderscript", "RenderScript");
929    m.insert("renpy", "Ren'Py");
930    m.insert("rescript", "ReScript");
931    m.insert("restructuredtext", "reStructuredText");
932    m.insert("rexx", "REXX");
933    m.insert("rez", "Rez");
934    m.insert("rhtml", "HTML");
935    m.insert("rich text format", "Rich Text Format");
936    m.insert("ring", "Ring");
937    m.insert("riot", "Riot");
938    m.insert("rmarkdown", "RMarkdown");
939    m.insert("robotframework", "RobotFramework");
940    m.insert("robots", "robots.txt");
941    m.insert("robots txt", "robots.txt");
942    m.insert("robots.txt", "robots.txt");
943    m.insert("roc", "Roc");
944    m.insert("rocq", "Rocq Prover");
945    m.insert("rocq prover", "Rocq Prover");
946    m.insert("roff", "Roff");
947    m.insert("roff manpage", "Roff");
948    m.insert("ron", "RON");
949    m.insert("ros interface", "ROS Interface");
950    m.insert("rosmsg", "ROS Interface");
951    m.insert("rouge", "Rouge");
952    m.insert("routeros script", "RouterOS Script");
953    m.insert("rpc", "RPC");
954    m.insert("rpcgen", "RPC");
955    m.insert("rpgle", "RPGLE");
956    m.insert("rpm spec", "RPM Spec");
957    m.insert("rs", "Rust");
958    m.insert("rs-274x", "Gerber Image");
959    m.insert("rscript", "R");
960    m.insert("rss", "XML");
961    m.insert("rst", "reStructuredText");
962    m.insert("ruby", "Ruby");
963    m.insert("runoff", "RUNOFF");
964    m.insert("rust", "Rust");
965    m.insert("rusthon", "Python");
966    m.insert("sage", "Sage");
967    m.insert("sail", "Sail");
968    m.insert("salt", "SaltStack");
969    m.insert("saltstack", "SaltStack");
970    m.insert("saltstate", "SaltStack");
971    m.insert("sarif", "JSON");
972    m.insert("sas", "SAS");
973    m.insert("sass", "Sass");
974    m.insert("scala", "Scala");
975    m.insert("scaml", "Scaml");
976    m.insert("scenic", "Scenic");
977    m.insert("scheme", "Scheme");
978    m.insert("scilab", "Scilab");
979    m.insert("scss", "SCSS");
980    m.insert("sdc", "Tcl");
981    m.insert("sed", "sed");
982    m.insert("self", "Self");
983    m.insert("selinux kernel policy language", "SELinux Policy");
984    m.insert("selinux policy", "SELinux Policy");
985    m.insert("sepolicy", "SELinux Policy");
986    m.insert("sfv", "Checksums");
987    m.insert("sh", "Shell");
988    m.insert("shaderlab", "ShaderLab");
989    m.insert("shell", "Shell");
990    m.insert("shell-script", "Shell");
991    m.insert("shellcheck config", "ShellCheck Config");
992    m.insert("shellcheckrc", "ShellCheck Config");
993    m.insert("shellsession", "ShellSession");
994    m.insert("shen", "Shen");
995    m.insert("sieve", "Sieve");
996    m.insert("simple file verification", "Checksums");
997    m.insert("singularity", "Singularity");
998    m.insert("slang", "Slang");
999    m.insert("slash", "Slash");
1000    m.insert("slice", "Slice");
1001    m.insert("slim", "Slim");
1002    m.insert("slint", "Slint");
1003    m.insert("smali", "Smali");
1004    m.insert("smalltalk", "Smalltalk");
1005    m.insert("smarty", "Smarty");
1006    m.insert("smithy", "Smithy");
1007    m.insert("sml", "Standard ML");
1008    m.insert("smpl", "SmPL");
1009    m.insert("smt", "SMT");
1010    m.insert("snakefile", "Python");
1011    m.insert("snakemake", "Python");
1012    m.insert("snipmate", "Vim Snippet");
1013    m.insert("snippet", "YASnippet");
1014    m.insert("solidity", "Solidity");
1015    m.insert("soong", "Soong");
1016    m.insert("sourcemod", "SourcePawn");
1017    m.insert("sourcepawn", "SourcePawn");
1018    m.insert("soy", "Closure Templates");
1019    m.insert("sparql", "SPARQL");
1020    m.insert("specfile", "RPM Spec");
1021    m.insert("spline font database", "Spline Font Database");
1022    m.insert("splus", "R");
1023    m.insert("sqf", "SQF");
1024    m.insert("sql", "SQL");
1025    m.insert("sqlpl", "SQLPL");
1026    m.insert("sqlrpgle", "RPGLE");
1027    m.insert("squeak", "Smalltalk");
1028    m.insert("squirrel", "Squirrel");
1029    m.insert("srecode template", "SRecode Template");
1030    m.insert("ssh config", "INI");
1031    m.insert("ssh_config", "INI");
1032    m.insert("sshconfig", "INI");
1033    m.insert("sshd_config", "INI");
1034    m.insert("sshdconfig", "INI");
1035    m.insert("stan", "Stan");
1036    m.insert("standard ml", "Standard ML");
1037    m.insert("star", "STAR");
1038    m.insert("starlark", "Starlark");
1039    m.insert("stata", "Stata");
1040    m.insert("stl", "STL");
1041    m.insert("stla", "STL");
1042    m.insert("ston", "Smalltalk");
1043    m.insert("stringtemplate", "StringTemplate");
1044    m.insert("stylus", "Stylus");
1045    m.insert("subrip text", "SubRip Text");
1046    m.insert("sugarss", "SugarSS");
1047    m.insert("sum", "Checksums");
1048    m.insert("sums", "Checksums");
1049    m.insert("supercollider", "SuperCollider");
1050    m.insert("surql", "SurrealQL");
1051    m.insert("surrealql", "SurrealQL");
1052    m.insert("survex data", "Survex data");
1053    m.insert("svelte", "Svelte");
1054    m.insert("svg", "SVG");
1055    m.insert("sway", "Sway");
1056    m.insert("sweave", "Sweave");
1057    m.insert("swift", "Swift");
1058    m.insert("swig", "SWIG");
1059    m.insert("systemverilog", "SystemVerilog");
1060    m.insert("tab-seperated values", "TSV");
1061    m.insert("tabular model definition language", "TMDL");
1062    m.insert("tact", "Tact");
1063    m.insert("talon", "Talon");
1064    m.insert("tcl", "Tcl");
1065    m.insert("tcsh", "Shell");
1066    m.insert("tea", "Tea");
1067    m.insert("teal", "Teal");
1068    m.insert("templ", "templ");
1069    m.insert("terra", "Terra");
1070    m.insert("terraform", "HCL");
1071    m.insert("terraform template", "HCL");
1072    m.insert("tex", "TeX");
1073    m.insert("texinfo", "Texinfo");
1074    m.insert("text", "Text");
1075    m.insert("text proto", "Protocol Buffer Text Format");
1076    m.insert("textgrid", "TextGrid");
1077    m.insert("textile", "Textile");
1078    m.insert("textmate properties", "TextMate Properties");
1079    m.insert("thrift", "Thrift");
1080    m.insert("ti program", "TI Program");
1081    m.insert("tl", "Type Language");
1082    m.insert("tl-verilog", "TL-Verilog");
1083    m.insert("tla", "TLA");
1084    m.insert("tm-properties", "TextMate Properties");
1085    m.insert("tmdl", "TMDL");
1086    m.insert("toit", "Toit");
1087    m.insert("toml", "TOML");
1088    m.insert("topojson", "JSON");
1089    m.insert("tor config", "Tor Config");
1090    m.insert("torrc", "Tor Config");
1091    m.insert("traveling salesman problem", "TSPLIB data");
1092    m.insert("travelling salesman problem", "TSPLIB data");
1093    m.insert("tree-sitter query", "Tree-sitter Query");
1094    m.insert("troff", "Roff");
1095    m.insert("ts", "TypeScript");
1096    m.insert("tsp", "TypeSpec");
1097    m.insert("tsplib data", "TSPLIB data");
1098    m.insert("tsq", "Tree-sitter Query");
1099    m.insert("tsql", "TSQL");
1100    m.insert("tsv", "TSV");
1101    m.insert("tsx", "TypeScript");
1102    m.insert("turing", "Turing");
1103    m.insert("turtle", "Turtle");
1104    m.insert("twig", "Twig");
1105    m.insert("txl", "TXL");
1106    m.insert("typ", "Typst");
1107    m.insert("type language", "Type Language");
1108    m.insert("typescript", "TypeScript");
1109    m.insert("typespec", "TypeSpec");
1110    m.insert("typst", "Typst");
1111    m.insert("udiff", "Diff");
1112    m.insert("ultisnip", "Vim Snippet");
1113    m.insert("ultisnips", "Vim Snippet");
1114    m.insert("unified parallel c", "C");
1115    m.insert("unity3d asset", "Unity3D Asset");
1116    m.insert("unix asm", "Assembly");
1117    m.insert("unix assembly", "Assembly");
1118    m.insert("uno", "Uno");
1119    m.insert("unrealscript", "UnrealScript");
1120    m.insert("untyped plutus core", "Untyped Plutus Core");
1121    m.insert("ur", "UrWeb");
1122    m.insert("ur/web", "UrWeb");
1123    m.insert("urweb", "UrWeb");
1124    m.insert("v", "V");
1125    m.insert("vala", "Vala");
1126    m.insert("valve data format", "Valve Data Format");
1127    m.insert("vb .net", "Visual Basic .NET");
1128    m.insert("vb 6", "Visual Basic 6.0");
1129    m.insert("vb.net", "Visual Basic .NET");
1130    m.insert("vb6", "Visual Basic 6.0");
1131    m.insert("vba", "VBA");
1132    m.insert("vbnet", "Visual Basic .NET");
1133    m.insert("vbscript", "VBScript");
1134    m.insert("vcard", "vCard");
1135    m.insert("vcl", "VCL");
1136    m.insert("vdf", "Valve Data Format");
1137    m.insert("velocity", "Velocity Template Language");
1138    m.insert("velocity template language", "Velocity Template Language");
1139    m.insert("vento", "Vento");
1140    m.insert("verilog", "Verilog");
1141    m.insert("vhdl", "VHDL");
1142    m.insert("vim", "Vim Script");
1143    m.insert("vim help file", "Vim Help File");
1144    m.insert("vim script", "Vim Script");
1145    m.insert("vim snippet", "Vim Snippet");
1146    m.insert("vimhelp", "Vim Help File");
1147    m.insert("viml", "Vim Script");
1148    m.insert("vimscript", "Vim Script");
1149    m.insert("virtual contact file", "vCard");
1150    m.insert("visual basic", "Visual Basic .NET");
1151    m.insert("visual basic .net", "Visual Basic .NET");
1152    m.insert("visual basic 6", "Visual Basic 6.0");
1153    m.insert("visual basic 6.0", "Visual Basic 6.0");
1154    m.insert("visual basic classic", "Visual Basic 6.0");
1155    m.insert("visual basic for applications", "VBA");
1156    m.insert("vlang", "V");
1157    m.insert("volt", "Volt");
1158    m.insert("vtl", "Velocity Template Language");
1159    m.insert("vtt", "WebVTT");
1160    m.insert("vue", "Vue");
1161    m.insert("vyper", "Vyper");
1162    m.insert("wasm", "WebAssembly");
1163    m.insert("wast", "WebAssembly");
1164    m.insert("wavefront material", "Wavefront Material");
1165    m.insert("wavefront object", "Wavefront Object");
1166    m.insert("wdl", "WDL");
1167    m.insert("web ontology language", "Web Ontology Language");
1168    m.insert("webassembly", "WebAssembly");
1169    m.insert("webassembly interface type", "WebAssembly Interface Type");
1170    m.insert("webidl", "WebIDL");
1171    m.insert("webvtt", "WebVTT");
1172    m.insert("wget config", "INI");
1173    m.insert("wgetrc", "INI");
1174    m.insert("wgsl", "WGSL");
1175    m.insert("whiley", "Whiley");
1176    m.insert("wiki", "Wikitext");
1177    m.insert("wikitext", "Wikitext");
1178    m.insert("win32 message file", "Win32 Message File");
1179    m.insert("winbatch", "Batchfile");
1180    m.insert("windows registry entries", "Windows Registry Entries");
1181    m.insert("wisp", "wisp");
1182    m.insert("wit", "WebAssembly Interface Type");
1183    m.insert("witcher script", "Witcher Script");
1184    m.insert("wl", "Wolfram Language");
1185    m.insert("wolfram", "Wolfram Language");
1186    m.insert("wolfram lang", "Wolfram Language");
1187    m.insert("wolfram language", "Wolfram Language");
1188    m.insert("wollok", "Wollok");
1189    m.insert("workflow description language", "WDL");
1190    m.insert("world of warcraft addon data", "World of Warcraft Addon Data");
1191    m.insert("wren", "Wren");
1192    m.insert("wrenlang", "Wren");
1193    m.insert("wsdl", "XML");
1194    m.insert("x bitmap", "C");
1195    m.insert("x font directory index", "X Font Directory Index");
1196    m.insert("x pixmap", "C");
1197    m.insert("x10", "X10");
1198    m.insert("xbase", "xBase");
1199    m.insert("xbm", "C");
1200    m.insert("xc", "XC");
1201    m.insert("xcompose", "XCompose");
1202    m.insert("xdc", "Tcl");
1203    m.insert("xdr", "RPC");
1204    m.insert("xhtml", "HTML");
1205    m.insert("xmake", "Xmake");
1206    m.insert("xml", "XML");
1207    m.insert("xml property list", "XML");
1208    m.insert("xml+genshi", "Genshi");
1209    m.insert("xml+kid", "Genshi");
1210    m.insert("xojo", "Xojo");
1211    m.insert("xonsh", "Xonsh");
1212    m.insert("xpages", "XPages");
1213    m.insert("xpm", "C");
1214    m.insert("xproc", "XProc");
1215    m.insert("xquery", "XQuery");
1216    m.insert("xs", "XS");
1217    m.insert("xsd", "XML");
1218    m.insert("xsl", "XSLT");
1219    m.insert("xslt", "XSLT");
1220    m.insert("xten", "X10");
1221    m.insert("xtend", "Xtend");
1222    m.insert("yacc", "Yacc");
1223    m.insert("yaml", "YAML");
1224    m.insert("yang", "YANG");
1225    m.insert("yara", "YARA");
1226    m.insert("yas", "YASnippet");
1227    m.insert("yasnippet", "YASnippet");
1228    m.insert("yml", "YAML");
1229    m.insert("yul", "Yul");
1230    m.insert("zap", "ZAP");
1231    m.insert("zeek", "Zeek");
1232    m.insert("zenscript", "ZenScript");
1233    m.insert("zephir", "Zephir");
1234    m.insert("zig", "Zig");
1235    m.insert("zil", "ZIL");
1236    m.insert("zimpl", "Zimpl");
1237    m.insert("zmodel", "Zmodel");
1238    m.insert("zsh", "Shell");
1239    m
1240});
1241
1242/// Maps canonical language name -> all valid aliases (for validation)
1243pub static CANONICAL_TO_ALIASES: LazyLock<HashMap<&'static str, HashSet<&'static str>>> = LazyLock::new(|| {
1244    let mut m = HashMap::with_capacity(720);
1245    m.insert("1C Enterprise", HashSet::from(["1c enterprise"]));
1246    m.insert("2-Dimensional Array", HashSet::from(["2-dimensional array"]));
1247    m.insert("4D", HashSet::from(["4d"]));
1248    m.insert("ABAP", HashSet::from(["abap"]));
1249    m.insert("ABAP CDS", HashSet::from(["abap cds"]));
1250    m.insert("ABNF", HashSet::from(["abnf"]));
1251    m.insert("AGS Script", HashSet::from(["ags", "ags script"]));
1252    m.insert("AIDL", HashSet::from(["aidl"]));
1253    m.insert("AL", HashSet::from(["al"]));
1254    m.insert("ALGOL", HashSet::from(["algol"]));
1255    m.insert("AMPL", HashSet::from(["ampl"]));
1256    m.insert("ANTLR", HashSet::from(["antlr"]));
1257    m.insert("API Blueprint", HashSet::from(["api blueprint"]));
1258    m.insert("APL", HashSet::from(["apl"]));
1259    m.insert("ASL", HashSet::from(["asl"]));
1260    m.insert("ASN.1", HashSet::from(["asn.1"]));
1261    m.insert("ASP.NET", HashSet::from(["asp.net", "aspx", "aspx-vb"]));
1262    m.insert("ATS", HashSet::from(["ats", "ats2"]));
1263    m.insert(
1264        "ActionScript",
1265        HashSet::from(["actionscript", "actionscript 3", "actionscript3", "as3"]),
1266    );
1267    m.insert("Ada", HashSet::from(["ada", "ada2005", "ada95"]));
1268    m.insert(
1269        "Adblock Filter List",
1270        HashSet::from(["ad block", "ad block filters", "adb", "adblock", "adblock filter list"]),
1271    );
1272    m.insert(
1273        "Adobe Font Metrics",
1274        HashSet::from([
1275            "acfm",
1276            "adobe composite font metrics",
1277            "adobe font metrics",
1278            "adobe multiple font metrics",
1279            "amfm",
1280        ]),
1281    );
1282    m.insert("Agda", HashSet::from(["agda", "literate agda"]));
1283    m.insert("Aiken", HashSet::from(["aiken"]));
1284    m.insert("Alloy", HashSet::from(["alloy"]));
1285    m.insert("Altium Designer", HashSet::from(["altium", "altium designer"]));
1286    m.insert("AngelScript", HashSet::from(["angelscript"]));
1287    m.insert("Answer Set Programming", HashSet::from(["answer set programming"]));
1288    m.insert("Ant Build System", HashSet::from(["ant build system"]));
1289    m.insert("Antlers", HashSet::from(["antlers"]));
1290    m.insert("ApacheConf", HashSet::from(["aconf", "apache", "apacheconf"]));
1291    m.insert("Apex", HashSet::from(["apex"]));
1292    m.insert("AppleScript", HashSet::from(["applescript", "osascript"]));
1293    m.insert("Arc", HashSet::from(["arc"]));
1294    m.insert("AsciiDoc", HashSet::from(["asciidoc"]));
1295    m.insert("AspectJ", HashSet::from(["aspectj"]));
1296    m.insert(
1297        "Assembly",
1298        HashSet::from([
1299            "apollo guidance computer",
1300            "asm",
1301            "assembly",
1302            "gas",
1303            "gnu asm",
1304            "m68k",
1305            "motorola 68k assembly",
1306            "nasm",
1307            "unix asm",
1308            "unix assembly",
1309        ]),
1310    );
1311    m.insert("Astro", HashSet::from(["astro"]));
1312    m.insert("Asymptote", HashSet::from(["asymptote"]));
1313    m.insert("Augeas", HashSet::from(["augeas"]));
1314    m.insert("AutoHotkey", HashSet::from(["ahk", "autohotkey"]));
1315    m.insert("AutoIt", HashSet::from(["au3", "autoit", "autoit3", "autoitscript"]));
1316    m.insert("Avro IDL", HashSet::from(["avro idl"]));
1317    m.insert("Awk", HashSet::from(["awk"]));
1318    m.insert("B (Formal Method)", HashSet::from(["b (formal method)"]));
1319    m.insert("B4X", HashSet::from(["b4x", "basic for android"]));
1320    m.insert("BASIC", HashSet::from(["basic"]));
1321    m.insert("BQN", HashSet::from(["bqn"]));
1322    m.insert("Ballerina", HashSet::from(["ballerina"]));
1323    m.insert(
1324        "Batchfile",
1325        HashSet::from(["bat", "batch", "batchfile", "dosbatch", "winbatch"]),
1326    );
1327    m.insert("Beef", HashSet::from(["beef"]));
1328    m.insert("Befunge", HashSet::from(["befunge"]));
1329    m.insert("Berry", HashSet::from(["be", "berry"]));
1330    m.insert("BibTeX Style", HashSet::from(["bibtex style"]));
1331    m.insert("Bicep", HashSet::from(["bicep"]));
1332    m.insert("Bikeshed", HashSet::from(["bikeshed"]));
1333    m.insert("BitBake", HashSet::from(["bitbake"]));
1334    m.insert("Blade", HashSet::from(["blade"]));
1335    m.insert(
1336        "BlitzBasic",
1337        HashSet::from(["b3d", "blitz3d", "blitzbasic", "blitzplus", "bplus"]),
1338    );
1339    m.insert("BlitzMax", HashSet::from(["blitzmax", "bmax"]));
1340    m.insert(
1341        "Bluespec",
1342        HashSet::from([
1343            "bh",
1344            "bluespec",
1345            "bluespec bh",
1346            "bluespec bsv",
1347            "bluespec classic",
1348            "bsv",
1349        ]),
1350    );
1351    m.insert("Boo", HashSet::from(["boo"]));
1352    m.insert("Boogie", HashSet::from(["boogie"]));
1353    m.insert("Brainfuck", HashSet::from(["brainfuck"]));
1354    m.insert("BrighterScript", HashSet::from(["brighterscript"]));
1355    m.insert("Brightscript", HashSet::from(["brightscript"]));
1356    m.insert("Browserslist", HashSet::from(["browserslist"]));
1357    m.insert("Bru", HashSet::from(["bru"]));
1358    m.insert("BuildStream", HashSet::from(["buildstream"]));
1359    m.insert(
1360        "C",
1361        HashSet::from([
1362            "c",
1363            "opencl",
1364            "unified parallel c",
1365            "x bitmap",
1366            "x pixmap",
1367            "xbm",
1368            "xpm",
1369        ]),
1370    );
1371    m.insert("C#", HashSet::from(["c#", "cake", "cakescript", "csharp"]));
1372    m.insert("C++", HashSet::from(["c++", "cpp"]));
1373    m.insert("C-ObjDump", HashSet::from(["c-objdump"]));
1374    m.insert("C3", HashSet::from(["c3"]));
1375    m.insert("CAP CDS", HashSet::from(["cap cds", "cds"]));
1376    m.insert("CIL", HashSet::from(["cil"]));
1377    m.insert("CLIPS", HashSet::from(["clips"]));
1378    m.insert("CMake", HashSet::from(["cmake"]));
1379    m.insert("COBOL", HashSet::from(["cobol"]));
1380    m.insert("CODEOWNERS", HashSet::from(["codeowners"]));
1381    m.insert("COLLADA", HashSet::from(["collada"]));
1382    m.insert("CQL", HashSet::from(["cql"]));
1383    m.insert("CSON", HashSet::from(["cson"]));
1384    m.insert("CSS", HashSet::from(["css", "postcss"]));
1385    m.insert("CSV", HashSet::from(["csv"]));
1386    m.insert("CUE", HashSet::from(["cue"]));
1387    m.insert("CWeb", HashSet::from(["cweb"]));
1388    m.insert("Cabal Config", HashSet::from(["cabal", "cabal config"]));
1389    m.insert("Caddyfile", HashSet::from(["caddy", "caddyfile"]));
1390    m.insert("Cadence", HashSet::from(["cadence"]));
1391    m.insert("Cairo", HashSet::from(["cairo", "cairo zero"]));
1392    m.insert("Cangjie", HashSet::from(["cangjie"]));
1393    m.insert("Cap'n Proto", HashSet::from(["cap'n proto"]));
1394    m.insert("Carbon", HashSet::from(["carbon"]));
1395    m.insert("CartoCSS", HashSet::from(["carto", "cartocss"]));
1396    m.insert("Ceylon", HashSet::from(["ceylon"]));
1397    m.insert("Chapel", HashSet::from(["chapel", "chpl"]));
1398    m.insert("Charity", HashSet::from(["charity"]));
1399    m.insert(
1400        "Checksums",
1401        HashSet::from([
1402            "checksum",
1403            "checksums",
1404            "hash",
1405            "hashes",
1406            "sfv",
1407            "simple file verification",
1408            "sum",
1409            "sums",
1410        ]),
1411    );
1412    m.insert("ChucK", HashSet::from(["chuck"]));
1413    m.insert("Circom", HashSet::from(["circom"]));
1414    m.insert("Cirru", HashSet::from(["cirru"]));
1415    m.insert("Clarion", HashSet::from(["clarion"]));
1416    m.insert("Clarity", HashSet::from(["clarity"]));
1417    m.insert("Classic ASP", HashSet::from(["asp", "classic asp"]));
1418    m.insert("Clean", HashSet::from(["clean"]));
1419    m.insert("Click", HashSet::from(["click"]));
1420    m.insert("Clojure", HashSet::from(["clojure"]));
1421    m.insert("Closure Templates", HashSet::from(["closure templates", "soy"]));
1422    m.insert(
1423        "Cloud Firestore Security Rules",
1424        HashSet::from(["cloud firestore security rules"]),
1425    );
1426    m.insert("Clue", HashSet::from(["clue"]));
1427    m.insert("CoNLL-U", HashSet::from(["conll", "conll-u", "conll-x"]));
1428    m.insert("CodeQL", HashSet::from(["codeql", "ql"]));
1429    m.insert(
1430        "CoffeeScript",
1431        HashSet::from([
1432            "coffee",
1433            "coffee-script",
1434            "coffeescript",
1435            "litcoffee",
1436            "literate coffeescript",
1437        ]),
1438    );
1439    m.insert(
1440        "ColdFusion",
1441        HashSet::from(["cfc", "cfm", "cfml", "coldfusion", "coldfusion cfc", "coldfusion html"]),
1442    );
1443    m.insert("Common Lisp", HashSet::from(["common lisp", "lisp"]));
1444    m.insert(
1445        "Common Workflow Language",
1446        HashSet::from(["common workflow language", "cwl"]),
1447    );
1448    m.insert("Component Pascal", HashSet::from(["component pascal"]));
1449    m.insert("Cooklang", HashSet::from(["cooklang"]));
1450    m.insert("Cool", HashSet::from(["cool"]));
1451    m.insert("Cpp-ObjDump", HashSet::from(["c++-objdump", "cpp-objdump"]));
1452    m.insert("Creole", HashSet::from(["creole"]));
1453    m.insert("Crystal", HashSet::from(["crystal"]));
1454    m.insert("Csound", HashSet::from(["csound", "csound-orc"]));
1455    m.insert("Csound Document", HashSet::from(["csound document", "csound-csd"]));
1456    m.insert("Csound Score", HashSet::from(["csound score", "csound-sco"]));
1457    m.insert("Cuda", HashSet::from(["cuda"]));
1458    m.insert("Cue Sheet", HashSet::from(["cue sheet"]));
1459    m.insert("Curry", HashSet::from(["curry"]));
1460    m.insert("Cycript", HashSet::from(["cycript"]));
1461    m.insert("Cypher", HashSet::from(["cypher"]));
1462    m.insert("Cython", HashSet::from(["cython", "pyrex"]));
1463    m.insert("D", HashSet::from(["d", "dlang"]));
1464    m.insert("D-ObjDump", HashSet::from(["d-objdump"]));
1465    m.insert("D2", HashSet::from(["d2", "d2lang"]));
1466    m.insert(
1467        "DIGITAL Command Language",
1468        HashSet::from(["dcl", "digital command language"]),
1469    );
1470    m.insert("DM", HashSet::from(["byond", "dm"]));
1471    m.insert("DNS Zone", HashSet::from(["dns zone"]));
1472    m.insert("DTrace", HashSet::from(["dtrace", "dtrace-script"]));
1473    m.insert("Dafny", HashSet::from(["dafny"]));
1474    m.insert("Darcs Patch", HashSet::from(["darcs patch", "dpatch"]));
1475    m.insert("Dart", HashSet::from(["dart"]));
1476    m.insert("Daslang", HashSet::from(["daslang"]));
1477    m.insert("DataWeave", HashSet::from(["dataweave"]));
1478    m.insert(
1479        "Debian Package Control File",
1480        HashSet::from(["debian package control file"]),
1481    );
1482    m.insert("DenizenScript", HashSet::from(["denizenscript"]));
1483    m.insert("Dhall", HashSet::from(["dhall"]));
1484    m.insert("Diff", HashSet::from(["diff", "udiff"]));
1485    m.insert("DirectX 3D File", HashSet::from(["directx 3d file"]));
1486    m.insert("Dockerfile", HashSet::from(["containerfile", "dockerfile"]));
1487    m.insert("Dogescript", HashSet::from(["dogescript"]));
1488    m.insert("Dotenv", HashSet::from(["dotenv"]));
1489    m.insert("Dune", HashSet::from(["dune"]));
1490    m.insert("Dylan", HashSet::from(["dylan"]));
1491    m.insert("E", HashSet::from(["e"]));
1492    m.insert("E-mail", HashSet::from(["e-mail", "email", "eml", "mail", "mbox"]));
1493    m.insert("EBNF", HashSet::from(["ebnf"]));
1494    m.insert("ECL", HashSet::from(["ecl"]));
1495    m.insert("EJS", HashSet::from(["ejs"]));
1496    m.insert("EQ", HashSet::from(["eq"]));
1497    m.insert("Eagle", HashSet::from(["eagle"]));
1498    m.insert("Earthly", HashSet::from(["earthfile", "earthly"]));
1499    m.insert("Edge", HashSet::from(["edge"]));
1500    m.insert("EdgeQL", HashSet::from(["edgeql", "esdl"]));
1501    m.insert("Edje Data Collection", HashSet::from(["edje data collection"]));
1502    m.insert("Eiffel", HashSet::from(["eiffel"]));
1503    m.insert("Elixir", HashSet::from(["elixir"]));
1504    m.insert("Elm", HashSet::from(["elm"]));
1505    m.insert("Elvish", HashSet::from(["elvish", "elvish transcript"]));
1506    m.insert("Emacs Lisp", HashSet::from(["elisp", "emacs", "emacs lisp"]));
1507    m.insert("EmberScript", HashSet::from(["emberscript"]));
1508    m.insert("Erlang", HashSet::from(["erlang"]));
1509    m.insert("Euphoria", HashSet::from(["euphoria"]));
1510    m.insert("F#", HashSet::from(["f#", "fsharp"]));
1511    m.insert("F*", HashSet::from(["f*", "fstar"]));
1512    m.insert("FIGlet Font", HashSet::from(["figfont", "figlet font"]));
1513    m.insert("FIRRTL", HashSet::from(["firrtl"]));
1514    m.insert("FLUX", HashSet::from(["flux"]));
1515    m.insert("Factor", HashSet::from(["factor"]));
1516    m.insert("Fancy", HashSet::from(["fancy"]));
1517    m.insert("Fantom", HashSet::from(["fantom"]));
1518    m.insert("Faust", HashSet::from(["faust"]));
1519    m.insert("Fennel", HashSet::from(["fennel"]));
1520    m.insert("Filebench WML", HashSet::from(["filebench wml"]));
1521    m.insert("Flix", HashSet::from(["flix"]));
1522    m.insert("Fluent", HashSet::from(["fluent"]));
1523    m.insert("Formatted", HashSet::from(["formatted"]));
1524    m.insert("Forth", HashSet::from(["forth", "muf"]));
1525    m.insert("Fortran", HashSet::from(["fortran", "fortran free form"]));
1526    m.insert("FreeBASIC", HashSet::from(["fb", "freebasic"]));
1527    m.insert("FreeMarker", HashSet::from(["freemarker", "ftl"]));
1528    m.insert("Frege", HashSet::from(["frege"]));
1529    m.insert("Futhark", HashSet::from(["futhark"]));
1530    m.insert("G-code", HashSet::from(["g-code"]));
1531    m.insert("GAML", HashSet::from(["gaml"]));
1532    m.insert("GAMS", HashSet::from(["gams"]));
1533    m.insert("GAP", HashSet::from(["gap"]));
1534    m.insert("GCC Machine Description", HashSet::from(["gcc machine description"]));
1535    m.insert("GDB", HashSet::from(["gdb"]));
1536    m.insert("GDScript", HashSet::from(["gdscript"]));
1537    m.insert("GDShader", HashSet::from(["gdshader"]));
1538    m.insert("GEDCOM", HashSet::from(["gedcom"]));
1539    m.insert("GLSL", HashSet::from(["glsl"]));
1540    m.insert("GN", HashSet::from(["gn"]));
1541    m.insert("GSC", HashSet::from(["gsc"]));
1542    m.insert("Game Maker Language", HashSet::from(["game maker language"]));
1543    m.insert("Gemfile.lock", HashSet::from(["gemfile.lock"]));
1544    m.insert("Gemini", HashSet::from(["gemini", "gemtext"]));
1545    m.insert("Genero 4gl", HashSet::from(["genero 4gl"]));
1546    m.insert("Genero per", HashSet::from(["genero per"]));
1547    m.insert("Genie", HashSet::from(["genie"]));
1548    m.insert("Genshi", HashSet::from(["genshi", "xml+genshi", "xml+kid"]));
1549    m.insert("Gerber Image", HashSet::from(["gerber image", "rs-274x"]));
1550    m.insert("Gettext Catalog", HashSet::from(["gettext catalog", "pot"]));
1551    m.insert("Gherkin", HashSet::from(["cucumber", "gherkin"]));
1552    m.insert("Git Attributes", HashSet::from(["git attributes", "gitattributes"]));
1553    m.insert("Git Commit", HashSet::from(["commit", "git commit"]));
1554    m.insert(
1555        "Git Revision List",
1556        HashSet::from(["git blame ignore revs", "git revision list"]),
1557    );
1558    m.insert("Gleam", HashSet::from(["gleam"]));
1559    m.insert("Glyph", HashSet::from(["glyph"]));
1560    m.insert(
1561        "Glyph Bitmap Distribution Format",
1562        HashSet::from(["glyph bitmap distribution format"]),
1563    );
1564    m.insert("Gnuplot", HashSet::from(["gnuplot"]));
1565    m.insert("Go", HashSet::from(["go", "golang"]));
1566    m.insert(
1567        "Go Checksums",
1568        HashSet::from(["go checksums", "go sum", "go work sum", "go.sum", "go.work.sum"]),
1569    );
1570    m.insert("Go Module", HashSet::from(["go mod", "go module", "go.mod"]));
1571    m.insert("Go Template", HashSet::from(["go template", "gotmpl"]));
1572    m.insert("Go Workspace", HashSet::from(["go work", "go workspace", "go.work"]));
1573    m.insert("Godot Resource", HashSet::from(["godot resource"]));
1574    m.insert("Golo", HashSet::from(["golo"]));
1575    m.insert("Gosu", HashSet::from(["gosu"]));
1576    m.insert("Grace", HashSet::from(["grace"]));
1577    m.insert("Gradle", HashSet::from(["gradle", "gradle kotlin dsl"]));
1578    m.insert("Grammatical Framework", HashSet::from(["gf", "grammatical framework"]));
1579    m.insert("Graph Modeling Language", HashSet::from(["graph modeling language"]));
1580    m.insert("GraphQL", HashSet::from(["graphql"]));
1581    m.insert("Graphviz (DOT)", HashSet::from(["graphviz (dot)"]));
1582    m.insert(
1583        "Groovy",
1584        HashSet::from(["groovy", "groovy server pages", "gsp", "java server page"]),
1585    );
1586    m.insert("HAProxy", HashSet::from(["haproxy"]));
1587    m.insert(
1588        "HCL",
1589        HashSet::from([
1590            "hashicorp configuration language",
1591            "hcl",
1592            "opentofu",
1593            "terraform",
1594            "terraform template",
1595        ]),
1596    );
1597    m.insert("HIP", HashSet::from(["hip"]));
1598    m.insert("HLSL", HashSet::from(["hlsl"]));
1599    m.insert("HOCON", HashSet::from(["hocon"]));
1600    m.insert(
1601        "HTML",
1602        HashSet::from([
1603            "ecmarkdown",
1604            "ecmarkup",
1605            "ecr",
1606            "eex",
1607            "erb",
1608            "heex",
1609            "html",
1610            "html+ecr",
1611            "html+eex",
1612            "html+erb",
1613            "html+php",
1614            "html+razor",
1615            "html+ruby",
1616            "leex",
1617            "razor",
1618            "rhtml",
1619            "xhtml",
1620        ]),
1621    );
1622    m.insert("HTTP", HashSet::from(["http"]));
1623    m.insert("HXML", HashSet::from(["hxml"]));
1624    m.insert("Hack", HashSet::from(["hack"]));
1625    m.insert("Haml", HashSet::from(["haml"]));
1626    m.insert("Handlebars", HashSet::from(["handlebars", "hbs", "htmlbars"]));
1627    m.insert("Harbour", HashSet::from(["harbour"]));
1628    m.insert("Hare", HashSet::from(["hare"]));
1629    m.insert(
1630        "Haskell",
1631        HashSet::from(["c2hs", "c2hs haskell", "haskell", "lhaskell", "lhs", "literate haskell"]),
1632    );
1633    m.insert("Haxe", HashSet::from(["haxe"]));
1634    m.insert("HiveQL", HashSet::from(["hiveql"]));
1635    m.insert("HolyC", HashSet::from(["holyc"]));
1636    m.insert("Hosts File", HashSet::from(["hosts", "hosts file"]));
1637    m.insert("Hurl", HashSet::from(["hurl"]));
1638    m.insert("Hy", HashSet::from(["hy", "hylang"]));
1639    m.insert("HyPhy", HashSet::from(["hyphy"]));
1640    m.insert("IDL", HashSet::from(["idl"]));
1641    m.insert("IGOR Pro", HashSet::from(["igor", "igor pro", "igorpro"]));
1642    m.insert(
1643        "INI",
1644        HashSet::from([
1645            "curl config",
1646            "curlrc",
1647            "cylc",
1648            "dosini",
1649            "editor-config",
1650            "editorconfig",
1651            "git config",
1652            "gitconfig",
1653            "gitmodules",
1654            "ini",
1655            "inputrc",
1656            "nanorc",
1657            "npm config",
1658            "npmrc",
1659            "readline",
1660            "readline config",
1661            "ssh config",
1662            "ssh_config",
1663            "sshconfig",
1664            "sshd_config",
1665            "sshdconfig",
1666            "wget config",
1667            "wgetrc",
1668        ]),
1669    );
1670    m.insert("IRC log", HashSet::from(["irc", "irc log", "irc logs"]));
1671    m.insert("ISPC", HashSet::from(["ispc"]));
1672    m.insert("Idris", HashSet::from(["idris"]));
1673    m.insert(
1674        "Ignore List",
1675        HashSet::from(["git-ignore", "gitignore", "ignore", "ignore list"]),
1676    );
1677    m.insert("ImageJ Macro", HashSet::from(["ijm", "imagej macro"]));
1678    m.insert("Imba", HashSet::from(["imba"]));
1679    m.insert("Inform 7", HashSet::from(["i7", "inform 7", "inform7"]));
1680    m.insert("Ink", HashSet::from(["ink"]));
1681    m.insert("Inno Setup", HashSet::from(["inno setup"]));
1682    m.insert("Io", HashSet::from(["io"]));
1683    m.insert("Ioke", HashSet::from(["ioke"]));
1684    m.insert("Isabelle", HashSet::from(["isabelle", "isabelle root"]));
1685    m.insert("J", HashSet::from(["j"]));
1686    m.insert("JAR Manifest", HashSet::from(["jar manifest"]));
1687    m.insert("JCL", HashSet::from(["jcl"]));
1688    m.insert(
1689        "JSON",
1690        HashSet::from([
1691            "geojson",
1692            "json",
1693            "json with comments",
1694            "jsonc",
1695            "jsonl",
1696            "sarif",
1697            "topojson",
1698        ]),
1699    );
1700    m.insert("JSON5", HashSet::from(["json5"]));
1701    m.insert("JSONLD", HashSet::from(["jsonld"]));
1702    m.insert("JSONiq", HashSet::from(["jsoniq"]));
1703    m.insert("Jac", HashSet::from(["jac"]));
1704    m.insert("Jai", HashSet::from(["jai"]));
1705    m.insert("Janet", HashSet::from(["janet"]));
1706    m.insert("Jasmin", HashSet::from(["jasmin"]));
1707    m.insert(
1708        "Java",
1709        HashSet::from(["java", "java server pages", "java template engine", "jsp", "jte"]),
1710    );
1711    m.insert("Java Properties", HashSet::from(["java properties"]));
1712    m.insert(
1713        "JavaScript",
1714        HashSet::from([
1715            "ecere projects",
1716            "gjs",
1717            "glimmer js",
1718            "javascript",
1719            "javascript+erb",
1720            "js",
1721            "node",
1722        ]),
1723    );
1724    m.insert("Jest Snapshot", HashSet::from(["jest snapshot"]));
1725    m.insert("JetBrains MPS", HashSet::from(["jetbrains mps", "mps"]));
1726    m.insert(
1727        "Jinja",
1728        HashSet::from(["django", "html+django", "html+jinja", "htmldjango", "jinja"]),
1729    );
1730    m.insert("Jolie", HashSet::from(["jolie"]));
1731    m.insert("Jsonnet", HashSet::from(["jsonnet"]));
1732    m.insert("Julia", HashSet::from(["julia", "julia repl"]));
1733    m.insert(
1734        "Jupyter Notebook",
1735        HashSet::from(["ipython notebook", "jupyter notebook"]),
1736    );
1737    m.insert("Just", HashSet::from(["just", "justfile"]));
1738    m.insert("KCL", HashSet::from(["kcl"]));
1739    m.insert("KDL", HashSet::from(["kdl"]));
1740    m.insert("KFramework", HashSet::from(["kframework"]));
1741    m.insert("KRL", HashSet::from(["krl"]));
1742    m.insert("Kaitai Struct", HashSet::from(["kaitai struct", "ksy"]));
1743    m.insert("KakouneScript", HashSet::from(["kak", "kakounescript", "kakscript"]));
1744    m.insert("KerboScript", HashSet::from(["kerboscript"]));
1745    m.insert("KiCad Layout", HashSet::from(["kicad layout", "pcbnew"]));
1746    m.insert("KiCad Legacy Layout", HashSet::from(["kicad legacy layout"]));
1747    m.insert(
1748        "KiCad Schematic",
1749        HashSet::from(["eeschema schematic", "kicad schematic"]),
1750    );
1751    m.insert("Kickstart", HashSet::from(["kickstart"]));
1752    m.insert("Kit", HashSet::from(["kit"]));
1753    m.insert("KoLmafia ASH", HashSet::from(["kolmafia ash"]));
1754    m.insert("Koka", HashSet::from(["koka"]));
1755    m.insert("Kotlin", HashSet::from(["kotlin"]));
1756    m.insert("Kusto", HashSet::from(["kusto"]));
1757    m.insert("LFE", HashSet::from(["lfe"]));
1758    m.insert("LLVM", HashSet::from(["llvm"]));
1759    m.insert("LOLCODE", HashSet::from(["lolcode"]));
1760    m.insert("LSL", HashSet::from(["lsl"]));
1761    m.insert("LTspice Symbol", HashSet::from(["ltspice symbol"]));
1762    m.insert("LabVIEW", HashSet::from(["labview"]));
1763    m.insert("Lambdapi", HashSet::from(["lambdapi"]));
1764    m.insert("Langium", HashSet::from(["langium"]));
1765    m.insert("Lark", HashSet::from(["lark"]));
1766    m.insert("Lasso", HashSet::from(["lasso", "lassoscript"]));
1767    m.insert("Latte", HashSet::from(["latte"]));
1768    m.insert("Lean", HashSet::from(["lean", "lean 4", "lean4"]));
1769    m.insert("Leo", HashSet::from(["leo"]));
1770    m.insert("Less", HashSet::from(["less", "less-css"]));
1771    m.insert("Lex", HashSet::from(["flex", "jflex", "jison lex", "lex"]));
1772    m.insert("LigoLANG", HashSet::from(["cameligo", "ligolang", "reasonligo"]));
1773    m.insert("LilyPond", HashSet::from(["lilypond"]));
1774    m.insert("Limbo", HashSet::from(["limbo"]));
1775    m.insert("Linear Programming", HashSet::from(["linear programming"]));
1776    m.insert("Linker Script", HashSet::from(["linker script"]));
1777    m.insert("Linux Kernel Module", HashSet::from(["linux kernel module"]));
1778    m.insert("Liquid", HashSet::from(["liquid"]));
1779    m.insert("LiveCode Script", HashSet::from(["livecode script"]));
1780    m.insert("LiveScript", HashSet::from(["live-script", "livescript", "ls"]));
1781    m.insert("Logos", HashSet::from(["logos"]));
1782    m.insert("Logtalk", HashSet::from(["logtalk"]));
1783    m.insert("LookML", HashSet::from(["lookml"]));
1784    m.insert("LoomScript", HashSet::from(["loomscript"]));
1785    m.insert("Lua", HashSet::from(["lua"]));
1786    m.insert("Luau", HashSet::from(["luau"]));
1787    m.insert("M", HashSet::from(["m", "mumps"]));
1788    m.insert("M3U", HashSet::from(["hls playlist", "m3u", "m3u playlist"]));
1789    m.insert("M4", HashSet::from(["autoconf", "m4", "m4sugar"]));
1790    m.insert("MATLAB", HashSet::from(["matlab", "octave"]));
1791    m.insert("MAXScript", HashSet::from(["maxscript"]));
1792    m.insert("MDX", HashSet::from(["mdx"]));
1793    m.insert("MLIR", HashSet::from(["mlir"]));
1794    m.insert("MQL4", HashSet::from(["mql4"]));
1795    m.insert("MQL5", HashSet::from(["mql5"]));
1796    m.insert("MTML", HashSet::from(["mtml"]));
1797    m.insert("Macaulay2", HashSet::from(["m2", "macaulay2"]));
1798    m.insert("Makefile", HashSet::from(["bsdmake", "make", "makefile", "mf"]));
1799    m.insert("Mako", HashSet::from(["mako"]));
1800    m.insert("Markdown", HashSet::from(["markdown", "md", "pandoc"]));
1801    m.insert("Marko", HashSet::from(["marko", "markojs"]));
1802    m.insert("Mask", HashSet::from(["mask"]));
1803    m.insert(
1804        "Mathematical Programming System",
1805        HashSet::from(["mathematical programming system"]),
1806    );
1807    m.insert("Max", HashSet::from(["max", "max/msp", "maxmsp"]));
1808    m.insert("Mercury", HashSet::from(["mercury"]));
1809    m.insert("Mermaid", HashSet::from(["mermaid", "mermaid example"]));
1810    m.insert("Meson", HashSet::from(["meson"]));
1811    m.insert("Metal", HashSet::from(["metal"]));
1812    m.insert(
1813        "Microsoft Developer Studio Project",
1814        HashSet::from(["microsoft developer studio project"]),
1815    );
1816    m.insert(
1817        "Microsoft Visual Studio Solution",
1818        HashSet::from(["microsoft visual studio solution"]),
1819    );
1820    m.insert("MiniD", HashSet::from(["minid"]));
1821    m.insert("MiniYAML", HashSet::from(["miniyaml"]));
1822    m.insert("MiniZinc", HashSet::from(["minizinc"]));
1823    m.insert("MiniZinc Data", HashSet::from(["minizinc data"]));
1824    m.insert("Mint", HashSet::from(["mint"]));
1825    m.insert("Mirah", HashSet::from(["mirah"]));
1826    m.insert("Modelica", HashSet::from(["modelica"]));
1827    m.insert("Modula-2", HashSet::from(["modula-2"]));
1828    m.insert("Modula-3", HashSet::from(["modula-3"]));
1829    m.insert("Module Management System", HashSet::from(["module management system"]));
1830    m.insert("Mojo", HashSet::from(["mojo"]));
1831    m.insert("Monkey", HashSet::from(["monkey"]));
1832    m.insert("Monkey C", HashSet::from(["monkey c"]));
1833    m.insert("Moocode", HashSet::from(["moocode"]));
1834    m.insert("MoonBit", HashSet::from(["moonbit"]));
1835    m.insert("MoonScript", HashSet::from(["moonscript"]));
1836    m.insert("Motoko", HashSet::from(["motoko"]));
1837    m.insert("Move", HashSet::from(["move"]));
1838    m.insert("Muse", HashSet::from(["amusewiki", "emacs muse", "muse"]));
1839    m.insert("Mustache", HashSet::from(["mustache"]));
1840    m.insert("Myghty", HashSet::from(["myghty"]));
1841    m.insert("NASL", HashSet::from(["nasl"]));
1842    m.insert("NCL", HashSet::from(["ncl"]));
1843    m.insert("NEON", HashSet::from(["ne-on", "neon", "nette object notation"]));
1844    m.insert("NL", HashSet::from(["nl"]));
1845    m.insert("NMODL", HashSet::from(["nmodl"]));
1846    m.insert("NSIS", HashSet::from(["nsis"]));
1847    m.insert("NWScript", HashSet::from(["nwscript"]));
1848    m.insert("Nasal", HashSet::from(["nasal"]));
1849    m.insert("Nearley", HashSet::from(["nearley"]));
1850    m.insert("Nemerle", HashSet::from(["nemerle"]));
1851    m.insert("NetLinx", HashSet::from(["netlinx"]));
1852    m.insert("NetLinx+ERB", HashSet::from(["netlinx+erb"]));
1853    m.insert("NetLogo", HashSet::from(["netlogo"]));
1854    m.insert("NewLisp", HashSet::from(["newlisp"]));
1855    m.insert("Nextflow", HashSet::from(["nextflow"]));
1856    m.insert("Nginx", HashSet::from(["nginx", "nginx configuration file"]));
1857    m.insert("Nickel", HashSet::from(["nickel"]));
1858    m.insert("Nim", HashSet::from(["nim"]));
1859    m.insert("Ninja", HashSet::from(["ninja"]));
1860    m.insert("Nit", HashSet::from(["nit"]));
1861    m.insert("Nix", HashSet::from(["nix", "nixos"]));
1862    m.insert("Noir", HashSet::from(["nargo", "noir"]));
1863    m.insert("Nu", HashSet::from(["nu", "nush"]));
1864    m.insert("Nunjucks", HashSet::from(["njk", "nunjucks"]));
1865    m.insert("Nushell", HashSet::from(["nu-script", "nushell", "nushell-script"]));
1866    m.insert("OCaml", HashSet::from(["ocaml"]));
1867    m.insert("OMNeT++ MSG", HashSet::from(["omnet++ msg", "omnetpp-msg"]));
1868    m.insert("OMNeT++ NED", HashSet::from(["omnet++ ned", "omnetpp-ned"]));
1869    m.insert("Oberon", HashSet::from(["oberon"]));
1870    m.insert("ObjDump", HashSet::from(["objdump"]));
1871    m.insert(
1872        "Object Data Instance Notation",
1873        HashSet::from(["object data instance notation"]),
1874    );
1875    m.insert("ObjectScript", HashSet::from(["objectscript"]));
1876    m.insert(
1877        "Objective-C",
1878        HashSet::from(["obj-c", "objc", "objective-c", "objectivec"]),
1879    );
1880    m.insert(
1881        "Objective-C++",
1882        HashSet::from(["obj-c++", "objc++", "objective-c++", "objectivec++"]),
1883    );
1884    m.insert(
1885        "Objective-J",
1886        HashSet::from(["obj-j", "objective-j", "objectivej", "objj"]),
1887    );
1888    m.insert("Odin", HashSet::from(["odin", "odin-lang", "odinlang"]));
1889    m.insert("Omgrofl", HashSet::from(["omgrofl"]));
1890    m.insert("Opa", HashSet::from(["opa"]));
1891    m.insert("Opal", HashSet::from(["opal"]));
1892    m.insert("Open Policy Agent", HashSet::from(["open policy agent"]));
1893    m.insert(
1894        "OpenAPI Specification v2",
1895        HashSet::from(["oasv2", "oasv2-json", "oasv2-yaml", "openapi specification v2"]),
1896    );
1897    m.insert(
1898        "OpenAPI Specification v3",
1899        HashSet::from(["oasv3", "oasv3-json", "oasv3-yaml", "openapi specification v3"]),
1900    );
1901    m.insert(
1902        "OpenEdge ABL",
1903        HashSet::from(["abl", "openedge", "openedge abl", "progress"]),
1904    );
1905    m.insert("OpenQASM", HashSet::from(["openqasm"]));
1906    m.insert("OpenSCAD", HashSet::from(["openscad"]));
1907    m.insert("OpenStep Property List", HashSet::from(["openstep property list"]));
1908    m.insert(
1909        "OpenType Feature File",
1910        HashSet::from(["afdko", "opentype feature file"]),
1911    );
1912    m.insert("Option List", HashSet::from(["ackrc", "option list", "opts"]));
1913    m.insert("Org", HashSet::from(["org"]));
1914    m.insert("OverpassQL", HashSet::from(["overpassql"]));
1915    m.insert("Ox", HashSet::from(["ox"]));
1916    m.insert("Oxygene", HashSet::from(["oxygene"]));
1917    m.insert("Oz", HashSet::from(["oz"]));
1918    m.insert("P4", HashSet::from(["p4"]));
1919    m.insert("PDDL", HashSet::from(["pddl"]));
1920    m.insert("PEG.js", HashSet::from(["peg.js"]));
1921    m.insert("PHP", HashSet::from(["inc", "php"]));
1922    m.insert("PLSQL", HashSet::from(["plsql"]));
1923    m.insert("PLpgSQL", HashSet::from(["plpgsql"]));
1924    m.insert("POV-Ray SDL", HashSet::from(["pov-ray", "pov-ray sdl", "povray"]));
1925    m.insert("Pact", HashSet::from(["pact"]));
1926    m.insert("Pan", HashSet::from(["pan"]));
1927    m.insert("Papyrus", HashSet::from(["papyrus"]));
1928    m.insert(
1929        "Parrot",
1930        HashSet::from([
1931            "parrot",
1932            "parrot assembly",
1933            "parrot internal representation",
1934            "pasm",
1935            "pir",
1936        ]),
1937    );
1938    m.insert("Pascal", HashSet::from(["delphi", "objectpascal", "pascal"]));
1939    m.insert("Pawn", HashSet::from(["pawn"]));
1940    m.insert("Pep8", HashSet::from(["pep8"]));
1941    m.insert("Perl", HashSet::from(["cperl", "perl"]));
1942    m.insert("Pickle", HashSet::from(["pickle"]));
1943    m.insert("PicoLisp", HashSet::from(["picolisp"]));
1944    m.insert("PigLatin", HashSet::from(["piglatin"]));
1945    m.insert("Pike", HashSet::from(["pike"]));
1946    m.insert("Pip Requirements", HashSet::from(["pip requirements"]));
1947    m.insert("Pkl", HashSet::from(["pkl"]));
1948    m.insert("PlantUML", HashSet::from(["plantuml"]));
1949    m.insert("Pod", HashSet::from(["pod"]));
1950    m.insert("Pod 6", HashSet::from(["pod 6"]));
1951    m.insert("PogoScript", HashSet::from(["pogoscript"]));
1952    m.insert("Polar", HashSet::from(["polar"]));
1953    m.insert("Pony", HashSet::from(["pony"]));
1954    m.insert("Portugol", HashSet::from(["portugol"]));
1955    m.insert("PostScript", HashSet::from(["postscr", "postscript"]));
1956    m.insert("PowerBuilder", HashSet::from(["powerbuilder"]));
1957    m.insert("PowerShell", HashSet::from(["posh", "powershell", "pwsh"]));
1958    m.insert("Praat", HashSet::from(["praat"]));
1959    m.insert("Prisma", HashSet::from(["prisma"]));
1960    m.insert("Processing", HashSet::from(["processing"]));
1961    m.insert("Procfile", HashSet::from(["procfile"]));
1962    m.insert("Proguard", HashSet::from(["proguard"]));
1963    m.insert("Prolog", HashSet::from(["eclipse", "prolog"]));
1964    m.insert("Promela", HashSet::from(["promela"]));
1965    m.insert("Propeller Spin", HashSet::from(["propeller spin"]));
1966    m.insert(
1967        "Protocol Buffer",
1968        HashSet::from(["proto", "protobuf", "protocol buffer", "protocol buffers"]),
1969    );
1970    m.insert(
1971        "Protocol Buffer Text Format",
1972        HashSet::from(["protobuf text format", "protocol buffer text format", "text proto"]),
1973    );
1974    m.insert("Public Key", HashSet::from(["public key"]));
1975    m.insert("Pug", HashSet::from(["pug"]));
1976    m.insert("Puppet", HashSet::from(["puppet"]));
1977    m.insert("Pure Data", HashSet::from(["pure data"]));
1978    m.insert("PureBasic", HashSet::from(["purebasic"]));
1979    m.insert("PureScript", HashSet::from(["purescript"]));
1980    m.insert("Pyret", HashSet::from(["pyret"]));
1981    m.insert(
1982        "Python",
1983        HashSet::from([
1984            "easybuild",
1985            "numpy",
1986            "py",
1987            "py3",
1988            "pycon",
1989            "python",
1990            "python console",
1991            "python traceback",
1992            "python3",
1993            "rusthon",
1994            "snakefile",
1995            "snakemake",
1996        ]),
1997    );
1998    m.insert("Q#", HashSet::from(["q#", "qsharp"]));
1999    m.insert("QML", HashSet::from(["qml"]));
2000    m.insert("QMake", HashSet::from(["qmake"]));
2001    m.insert("Qt Script", HashSet::from(["qt script"]));
2002    m.insert("Quake", HashSet::from(["quake"]));
2003    m.insert("QuakeC", HashSet::from(["quakec"]));
2004    m.insert(
2005        "QuickBASIC",
2006        HashSet::from([
2007            "classic qbasic",
2008            "classic quickbasic",
2009            "qb",
2010            "qb64",
2011            "qbasic",
2012            "quickbasic",
2013        ]),
2014    );
2015    m.insert("R", HashSet::from(["r", "rscript", "splus"]));
2016    m.insert("RAML", HashSet::from(["raml"]));
2017    m.insert("RAScript", HashSet::from(["rascript"]));
2018    m.insert("RDoc", HashSet::from(["rdoc"]));
2019    m.insert("REALbasic", HashSet::from(["realbasic"]));
2020    m.insert("REXX", HashSet::from(["arexx", "rexx"]));
2021    m.insert("RMarkdown", HashSet::from(["rmarkdown"]));
2022    m.insert("RON", HashSet::from(["ron"]));
2023    m.insert("ROS Interface", HashSet::from(["ros interface", "rosmsg"]));
2024    m.insert("RPC", HashSet::from(["oncrpc", "rpc", "rpcgen", "xdr"]));
2025    m.insert("RPGLE", HashSet::from(["ile rpg", "rpgle", "sqlrpgle"]));
2026    m.insert("RPM Spec", HashSet::from(["rpm spec", "specfile"]));
2027    m.insert("RUNOFF", HashSet::from(["runoff"]));
2028    m.insert("Racket", HashSet::from(["racket"]));
2029    m.insert("Ragel", HashSet::from(["ragel", "ragel-rb", "ragel-ruby"]));
2030    m.insert("Raku", HashSet::from(["perl-6", "perl6", "raku"]));
2031    m.insert("Rascal", HashSet::from(["rascal"]));
2032    m.insert("Raw token data", HashSet::from(["raw", "raw token data"]));
2033    m.insert("ReScript", HashSet::from(["rescript"]));
2034    m.insert("Reason", HashSet::from(["reason"]));
2035    m.insert("Rebol", HashSet::from(["rebol"]));
2036    m.insert("Record Jar", HashSet::from(["record jar"]));
2037    m.insert("Red", HashSet::from(["red", "red/system"]));
2038    m.insert("Redcode", HashSet::from(["redcode"]));
2039    m.insert("Redirect Rules", HashSet::from(["redirect rules", "redirects"]));
2040    m.insert(
2041        "Regular Expression",
2042        HashSet::from(["regex", "regexp", "regular expression"]),
2043    );
2044    m.insert("Ren'Py", HashSet::from(["ren'py", "renpy"]));
2045    m.insert("RenderScript", HashSet::from(["filterscript", "renderscript"]));
2046    m.insert("Rez", HashSet::from(["rez"]));
2047    m.insert("Rich Text Format", HashSet::from(["rich text format"]));
2048    m.insert("Ring", HashSet::from(["ring"]));
2049    m.insert("Riot", HashSet::from(["riot"]));
2050    m.insert("RobotFramework", HashSet::from(["robotframework"]));
2051    m.insert("Roc", HashSet::from(["roc"]));
2052    m.insert("Rocq Prover", HashSet::from(["coq", "rocq", "rocq prover"]));
2053    m.insert(
2054        "Roff",
2055        HashSet::from([
2056            "groff",
2057            "man",
2058            "man page",
2059            "man-page",
2060            "manpage",
2061            "mdoc",
2062            "nroff",
2063            "pic",
2064            "pikchr",
2065            "roff",
2066            "roff manpage",
2067            "troff",
2068        ]),
2069    );
2070    m.insert("Rouge", HashSet::from(["rouge"]));
2071    m.insert("RouterOS Script", HashSet::from(["routeros script"]));
2072    m.insert(
2073        "Ruby",
2074        HashSet::from(["jruby", "macruby", "rake", "rb", "rbs", "rbx", "ruby"]),
2075    );
2076    m.insert("Rust", HashSet::from(["rs", "rust"]));
2077    m.insert("SAS", HashSet::from(["sas"]));
2078    m.insert("SCSS", HashSet::from(["scss"]));
2079    m.insert(
2080        "SELinux Policy",
2081        HashSet::from(["selinux kernel policy language", "selinux policy", "sepolicy"]),
2082    );
2083    m.insert("SMT", HashSet::from(["smt"]));
2084    m.insert("SPARQL", HashSet::from(["sparql"]));
2085    m.insert("SQF", HashSet::from(["sqf"]));
2086    m.insert("SQL", HashSet::from(["sql"]));
2087    m.insert("SQLPL", HashSet::from(["sqlpl"]));
2088    m.insert("SRecode Template", HashSet::from(["srecode template"]));
2089    m.insert("STAR", HashSet::from(["star"]));
2090    m.insert("STL", HashSet::from(["ascii stl", "stl", "stla"]));
2091    m.insert("SVG", HashSet::from(["svg"]));
2092    m.insert("SWIG", HashSet::from(["swig"]));
2093    m.insert("Sage", HashSet::from(["sage"]));
2094    m.insert("Sail", HashSet::from(["sail"]));
2095    m.insert("SaltStack", HashSet::from(["salt", "saltstack", "saltstate"]));
2096    m.insert("Sass", HashSet::from(["sass"]));
2097    m.insert("Scala", HashSet::from(["scala"]));
2098    m.insert("Scaml", HashSet::from(["scaml"]));
2099    m.insert("Scenic", HashSet::from(["scenic"]));
2100    m.insert("Scheme", HashSet::from(["scheme"]));
2101    m.insert("Scilab", HashSet::from(["scilab"]));
2102    m.insert("Self", HashSet::from(["self"]));
2103    m.insert("ShaderLab", HashSet::from(["shaderlab"]));
2104    m.insert(
2105        "Shell",
2106        HashSet::from([
2107            "abuild",
2108            "alpine abuild",
2109            "apkbuild",
2110            "bash",
2111            "envrc",
2112            "fish",
2113            "gentoo ebuild",
2114            "gentoo eclass",
2115            "openrc",
2116            "openrc runscript",
2117            "sh",
2118            "shell",
2119            "shell-script",
2120            "tcsh",
2121            "zsh",
2122        ]),
2123    );
2124    m.insert(
2125        "ShellCheck Config",
2126        HashSet::from(["shellcheck config", "shellcheckrc"]),
2127    );
2128    m.insert(
2129        "ShellSession",
2130        HashSet::from(["bash session", "console", "shellsession"]),
2131    );
2132    m.insert("Shen", HashSet::from(["shen"]));
2133    m.insert("Sieve", HashSet::from(["sieve"]));
2134    m.insert("Singularity", HashSet::from(["singularity"]));
2135    m.insert("Slang", HashSet::from(["slang"]));
2136    m.insert("Slash", HashSet::from(["slash"]));
2137    m.insert("Slice", HashSet::from(["slice"]));
2138    m.insert("Slim", HashSet::from(["slim"]));
2139    m.insert("Slint", HashSet::from(["slint"]));
2140    m.insert("SmPL", HashSet::from(["coccinelle", "smpl"]));
2141    m.insert("Smali", HashSet::from(["smali"]));
2142    m.insert("Smalltalk", HashSet::from(["smalltalk", "squeak", "ston"]));
2143    m.insert("Smarty", HashSet::from(["smarty"]));
2144    m.insert("Smithy", HashSet::from(["smithy"]));
2145    m.insert("Solidity", HashSet::from(["solidity"]));
2146    m.insert("Soong", HashSet::from(["soong"]));
2147    m.insert("SourcePawn", HashSet::from(["sourcemod", "sourcepawn"]));
2148    m.insert("Spline Font Database", HashSet::from(["spline font database"]));
2149    m.insert("Squirrel", HashSet::from(["squirrel"]));
2150    m.insert("Stan", HashSet::from(["stan"]));
2151    m.insert("Standard ML", HashSet::from(["sml", "standard ml"]));
2152    m.insert("Starlark", HashSet::from(["bazel", "bzl", "starlark"]));
2153    m.insert("Stata", HashSet::from(["stata"]));
2154    m.insert("StringTemplate", HashSet::from(["stringtemplate"]));
2155    m.insert("Stylus", HashSet::from(["stylus"]));
2156    m.insert("SubRip Text", HashSet::from(["subrip text"]));
2157    m.insert("SugarSS", HashSet::from(["sugarss"]));
2158    m.insert("SuperCollider", HashSet::from(["supercollider"]));
2159    m.insert("SurrealQL", HashSet::from(["surql", "surrealql"]));
2160    m.insert("Survex data", HashSet::from(["survex data"]));
2161    m.insert("Svelte", HashSet::from(["svelte"]));
2162    m.insert("Sway", HashSet::from(["sway"]));
2163    m.insert("Sweave", HashSet::from(["sweave"]));
2164    m.insert("Swift", HashSet::from(["swift"]));
2165    m.insert("SystemVerilog", HashSet::from(["systemverilog"]));
2166    m.insert("TI Program", HashSet::from(["ti program"]));
2167    m.insert("TL-Verilog", HashSet::from(["tl-verilog"]));
2168    m.insert("TLA", HashSet::from(["tla"]));
2169    m.insert("TMDL", HashSet::from(["tabular model definition language", "tmdl"]));
2170    m.insert("TOML", HashSet::from(["toml"]));
2171    m.insert(
2172        "TSPLIB data",
2173        HashSet::from([
2174            "traveling salesman problem",
2175            "travelling salesman problem",
2176            "tsplib data",
2177        ]),
2178    );
2179    m.insert("TSQL", HashSet::from(["tsql"]));
2180    m.insert("TSV", HashSet::from(["tab-seperated values", "tsv"]));
2181    m.insert("TXL", HashSet::from(["txl"]));
2182    m.insert("Tact", HashSet::from(["tact"]));
2183    m.insert("Talon", HashSet::from(["talon"]));
2184    m.insert("Tcl", HashSet::from(["sdc", "tcl", "xdc"]));
2185    m.insert("TeX", HashSet::from(["bibtex", "latex", "tex"]));
2186    m.insert("Tea", HashSet::from(["tea"]));
2187    m.insert("Teal", HashSet::from(["teal"]));
2188    m.insert("Terra", HashSet::from(["terra"]));
2189    m.insert("Texinfo", HashSet::from(["texinfo"]));
2190    m.insert("Text", HashSet::from(["fundamental", "plain text", "text"]));
2191    m.insert("TextGrid", HashSet::from(["textgrid"]));
2192    m.insert(
2193        "TextMate Properties",
2194        HashSet::from(["textmate properties", "tm-properties"]),
2195    );
2196    m.insert("Textile", HashSet::from(["textile"]));
2197    m.insert("Thrift", HashSet::from(["thrift"]));
2198    m.insert("Toit", HashSet::from(["toit"]));
2199    m.insert("Tor Config", HashSet::from(["tor config", "torrc"]));
2200    m.insert("Tree-sitter Query", HashSet::from(["tree-sitter query", "tsq"]));
2201    m.insert("Turing", HashSet::from(["turing"]));
2202    m.insert("Turtle", HashSet::from(["turtle"]));
2203    m.insert("Twig", HashSet::from(["twig"]));
2204    m.insert("Type Language", HashSet::from(["tl", "type language"]));
2205    m.insert(
2206        "TypeScript",
2207        HashSet::from(["glimmer ts", "gts", "ts", "tsx", "typescript"]),
2208    );
2209    m.insert("TypeSpec", HashSet::from(["tsp", "typespec"]));
2210    m.insert("Typst", HashSet::from(["typ", "typst"]));
2211    m.insert("Unity3D Asset", HashSet::from(["unity3d asset"]));
2212    m.insert("Uno", HashSet::from(["uno"]));
2213    m.insert("UnrealScript", HashSet::from(["unrealscript"]));
2214    m.insert("Untyped Plutus Core", HashSet::from(["untyped plutus core"]));
2215    m.insert("UrWeb", HashSet::from(["ur", "ur/web", "urweb"]));
2216    m.insert("V", HashSet::from(["v", "vlang"]));
2217    m.insert("VBA", HashSet::from(["vba", "visual basic for applications"]));
2218    m.insert("VBScript", HashSet::from(["vbscript"]));
2219    m.insert("VCL", HashSet::from(["vcl"]));
2220    m.insert("VHDL", HashSet::from(["vhdl"]));
2221    m.insert("Vala", HashSet::from(["vala"]));
2222    m.insert(
2223        "Valve Data Format",
2224        HashSet::from(["keyvalues", "valve data format", "vdf"]),
2225    );
2226    m.insert(
2227        "Velocity Template Language",
2228        HashSet::from(["velocity", "velocity template language", "vtl"]),
2229    );
2230    m.insert("Vento", HashSet::from(["vento"]));
2231    m.insert("Verilog", HashSet::from(["verilog"]));
2232    m.insert("Vim Help File", HashSet::from(["help", "vim help file", "vimhelp"]));
2233    m.insert(
2234        "Vim Script",
2235        HashSet::from(["nvim", "vim", "vim script", "viml", "vimscript"]),
2236    );
2237    m.insert(
2238        "Vim Snippet",
2239        HashSet::from(["neosnippet", "snipmate", "ultisnip", "ultisnips", "vim snippet"]),
2240    );
2241    m.insert(
2242        "Visual Basic .NET",
2243        HashSet::from(["vb .net", "vb.net", "vbnet", "visual basic", "visual basic .net"]),
2244    );
2245    m.insert(
2246        "Visual Basic 6.0",
2247        HashSet::from([
2248            "classic visual basic",
2249            "vb 6",
2250            "vb6",
2251            "visual basic 6",
2252            "visual basic 6.0",
2253            "visual basic classic",
2254        ]),
2255    );
2256    m.insert("Volt", HashSet::from(["volt"]));
2257    m.insert("Vue", HashSet::from(["vue"]));
2258    m.insert("Vyper", HashSet::from(["vyper"]));
2259    m.insert("WDL", HashSet::from(["wdl", "workflow description language"]));
2260    m.insert("WGSL", HashSet::from(["wgsl"]));
2261    m.insert("Wavefront Material", HashSet::from(["wavefront material"]));
2262    m.insert("Wavefront Object", HashSet::from(["wavefront object"]));
2263    m.insert("Web Ontology Language", HashSet::from(["web ontology language"]));
2264    m.insert("WebAssembly", HashSet::from(["wasm", "wast", "webassembly"]));
2265    m.insert(
2266        "WebAssembly Interface Type",
2267        HashSet::from(["webassembly interface type", "wit"]),
2268    );
2269    m.insert("WebIDL", HashSet::from(["webidl"]));
2270    m.insert("WebVTT", HashSet::from(["vtt", "webvtt"]));
2271    m.insert("Whiley", HashSet::from(["whiley"]));
2272    m.insert("Wikitext", HashSet::from(["mediawiki", "wiki", "wikitext"]));
2273    m.insert("Win32 Message File", HashSet::from(["win32 message file"]));
2274    m.insert("Windows Registry Entries", HashSet::from(["windows registry entries"]));
2275    m.insert("Witcher Script", HashSet::from(["witcher script"]));
2276    m.insert(
2277        "Wolfram Language",
2278        HashSet::from([
2279            "mathematica",
2280            "mma",
2281            "wl",
2282            "wolfram",
2283            "wolfram lang",
2284            "wolfram language",
2285        ]),
2286    );
2287    m.insert("Wollok", HashSet::from(["wollok"]));
2288    m.insert(
2289        "World of Warcraft Addon Data",
2290        HashSet::from(["world of warcraft addon data"]),
2291    );
2292    m.insert("Wren", HashSet::from(["wren", "wrenlang"]));
2293    m.insert("X Font Directory Index", HashSet::from(["x font directory index"]));
2294    m.insert("X10", HashSet::from(["x10", "xten"]));
2295    m.insert("XC", HashSet::from(["xc"]));
2296    m.insert("XCompose", HashSet::from(["xcompose"]));
2297    m.insert(
2298        "XML",
2299        HashSet::from(["maven pom", "rss", "wsdl", "xml", "xml property list", "xsd"]),
2300    );
2301    m.insert("XPages", HashSet::from(["xpages"]));
2302    m.insert("XProc", HashSet::from(["xproc"]));
2303    m.insert("XQuery", HashSet::from(["xquery"]));
2304    m.insert("XS", HashSet::from(["xs"]));
2305    m.insert("XSLT", HashSet::from(["xsl", "xslt"]));
2306    m.insert("Xmake", HashSet::from(["xmake"]));
2307    m.insert("Xojo", HashSet::from(["xojo"]));
2308    m.insert("Xonsh", HashSet::from(["xonsh"]));
2309    m.insert("Xtend", HashSet::from(["xtend"]));
2310    m.insert("YAML", HashSet::from(["yaml", "yml"]));
2311    m.insert("YANG", HashSet::from(["yang"]));
2312    m.insert("YARA", HashSet::from(["yara"]));
2313    m.insert("YASnippet", HashSet::from(["snippet", "yas", "yasnippet"]));
2314    m.insert("Yacc", HashSet::from(["bison", "jison", "yacc"]));
2315    m.insert("Yul", HashSet::from(["yul"]));
2316    m.insert("ZAP", HashSet::from(["zap"]));
2317    m.insert("ZIL", HashSet::from(["zil"]));
2318    m.insert("Zeek", HashSet::from(["bro", "zeek"]));
2319    m.insert("ZenScript", HashSet::from(["zenscript"]));
2320    m.insert("Zephir", HashSet::from(["zephir"]));
2321    m.insert("Zig", HashSet::from(["zig"]));
2322    m.insert("Zimpl", HashSet::from(["zimpl"]));
2323    m.insert("Zmodel", HashSet::from(["zmodel"]));
2324    m.insert("crontab", HashSet::from(["cron", "cron table", "crontab"]));
2325    m.insert("desktop", HashSet::from(["desktop"]));
2326    m.insert("dircolors", HashSet::from(["dircolors"]));
2327    m.insert("eC", HashSet::from(["ec"]));
2328    m.insert("edn", HashSet::from(["edn"]));
2329    m.insert("hoon", HashSet::from(["hoon"]));
2330    m.insert("iCalendar", HashSet::from(["ical", "icalendar"]));
2331    m.insert("jq", HashSet::from(["jq"]));
2332    m.insert("kvlang", HashSet::from(["kvlang"]));
2333    m.insert("mIRC Script", HashSet::from(["mirc script"]));
2334    m.insert("mcfunction", HashSet::from(["mcfunction"]));
2335    m.insert("mdsvex", HashSet::from(["mdsvex"]));
2336    m.insert("mupad", HashSet::from(["mupad"]));
2337    m.insert("nesC", HashSet::from(["nesc"]));
2338    m.insert("ooc", HashSet::from(["ooc"]));
2339    m.insert("q", HashSet::from(["q"]));
2340    m.insert("reStructuredText", HashSet::from(["restructuredtext", "rst"]));
2341    m.insert("robots.txt", HashSet::from(["robots", "robots txt", "robots.txt"]));
2342    m.insert("sed", HashSet::from(["sed"]));
2343    m.insert("templ", HashSet::from(["templ"]));
2344    m.insert(
2345        "vCard",
2346        HashSet::from(["electronic business card", "vcard", "virtual contact file"]),
2347    );
2348    m.insert("wisp", HashSet::from(["wisp"]));
2349    m.insert("xBase", HashSet::from(["advpl", "clipper", "foxpro", "xbase"]));
2350    m
2351});
2352
2353/// Preferred default alias for common languages (curated for widespread usage)
2354pub static DEFAULT_ALIASES: LazyLock<HashMap<&'static str, &'static str>> = LazyLock::new(|| {
2355    let mut m = HashMap::with_capacity(39);
2356    m.insert("C", "c");
2357    m.insert("C#", "csharp");
2358    m.insert("C++", "cpp");
2359    m.insert("CSS", "css");
2360    m.insert("Clojure", "clojure");
2361    m.insert("Dart", "dart");
2362    m.insert("Dockerfile", "dockerfile");
2363    m.insert("Elixir", "elixir");
2364    m.insert("Erlang", "erlang");
2365    m.insert("Go", "go");
2366    m.insert("GraphQL", "graphql");
2367    m.insert("HTML", "html");
2368    m.insert("Haskell", "haskell");
2369    m.insert("JSON", "json");
2370    m.insert("Java", "java");
2371    m.insert("JavaScript", "js");
2372    m.insert("Julia", "julia");
2373    m.insert("Kotlin", "kotlin");
2374    m.insert("Less", "less");
2375    m.insert("Lua", "lua");
2376    m.insert("Makefile", "makefile");
2377    m.insert("Markdown", "markdown");
2378    m.insert("Objective-C", "objc");
2379    m.insert("PHP", "php");
2380    m.insert("Perl", "perl");
2381    m.insert("Python", "python");
2382    m.insert("R", "r");
2383    m.insert("Ruby", "ruby");
2384    m.insert("Rust", "rust");
2385    m.insert("SCSS", "scss");
2386    m.insert("SQL", "sql");
2387    m.insert("Sass", "sass");
2388    m.insert("Scala", "scala");
2389    m.insert("Shell", "bash");
2390    m.insert("Swift", "swift");
2391    m.insert("TOML", "toml");
2392    m.insert("TypeScript", "ts");
2393    m.insert("XML", "xml");
2394    m.insert("YAML", "yaml");
2395    m
2396});
2397
2398/// Resolve an alias to its canonical language name
2399#[inline]
2400pub fn resolve_canonical(alias: &str) -> Option<&'static str> {
2401    ALIAS_TO_CANONICAL.get(alias.to_lowercase().as_str()).copied()
2402}
2403
2404/// Check if an alias is valid for a canonical language
2405#[inline]
2406pub fn is_valid_alias(canonical: &str, alias: &str) -> bool {
2407    CANONICAL_TO_ALIASES
2408        .get(canonical)
2409        .is_some_and(|aliases| aliases.contains(alias.to_lowercase().as_str()))
2410}
2411
2412/// Get the preferred default alias for a language
2413#[inline]
2414pub fn default_alias(canonical: &str) -> Option<&'static str> {
2415    DEFAULT_ALIASES.get(canonical).copied()
2416}
2417
2418/// Get all valid aliases for a canonical language
2419#[inline]
2420pub fn get_aliases(canonical: &str) -> Option<&HashSet<&'static str>> {
2421    CANONICAL_TO_ALIASES.get(canonical)
2422}
2423
2424// Statistics:
2425// - 1210 aliases (1208 generated + 2 manual: py, py3)
2426// - 720 canonical languages
2427// - 39 curated default aliases
2428
2429#[cfg(test)]
2430mod tests {
2431    use super::*;
2432
2433    /// Regression test for a category of bugs, not one instance: rumdl's generated
2434    /// Linguist alias table must resolve every high-traffic language alias. Each
2435    /// alias below is confirmed present in GitHub Linguist's `aliases:` list for its
2436    /// language (verified against the current upstream `languages.yml`; `py` and
2437    /// `py3` were added to Python's aliases after the `e51c2270` generation pin, see
2438    /// the module header comment).
2439    #[test]
2440    fn test_high_traffic_aliases_resolve_to_expected_canonical() {
2441        let cases = [
2442            ("py", "Python"),
2443            ("py3", "Python"),
2444            ("python", "Python"),
2445            ("sh", "Shell"),
2446            ("bash", "Shell"),
2447            ("shell", "Shell"),
2448            ("zsh", "Shell"),
2449            ("js", "JavaScript"),
2450            ("javascript", "JavaScript"),
2451            ("ts", "TypeScript"),
2452            ("typescript", "TypeScript"),
2453            ("rb", "Ruby"),
2454            ("ruby", "Ruby"),
2455            ("rs", "Rust"),
2456            ("rust", "Rust"),
2457            ("yml", "YAML"),
2458            ("yaml", "YAML"),
2459            ("cpp", "C++"),
2460            ("c++", "C++"),
2461            ("csharp", "C#"),
2462            ("golang", "Go"),
2463            ("dockerfile", "Dockerfile"),
2464            ("jsonc", "JSON"),
2465            ("kotlin", "Kotlin"),
2466        ];
2467        for (alias, expected_canonical) in cases {
2468            assert_eq!(
2469                resolve_canonical(alias),
2470                Some(expected_canonical),
2471                "alias '{alias}' should resolve to '{expected_canonical}'"
2472            );
2473        }
2474    }
2475
2476    /// `cs`, `kt`, and `pl` are file extensions but never appear in Linguist's
2477    /// `aliases:` list for C#, Kotlin, or Perl, so they must stay unresolved rather
2478    /// than being guessed at.
2479    #[test]
2480    fn test_extension_lookalikes_are_not_aliases() {
2481        for alias in ["cs", "kt", "pl"] {
2482            assert_eq!(
2483                resolve_canonical(alias),
2484                None,
2485                "'{alias}' is a file extension, not a Linguist alias, and must not resolve"
2486            );
2487        }
2488    }
2489
2490    /// `ALIAS_TO_CANONICAL` and `CANONICAL_TO_ALIASES` are two independent lookup
2491    /// tables built from the same source data; they must never disagree about which
2492    /// canonical language an alias belongs to.
2493    #[test]
2494    fn test_alias_maps_are_mutually_consistent() {
2495        for (&canonical, aliases) in CANONICAL_TO_ALIASES.iter() {
2496            for &alias in aliases {
2497                assert_eq!(
2498                    ALIAS_TO_CANONICAL.get(alias),
2499                    Some(&canonical),
2500                    "CANONICAL_TO_ALIASES['{canonical}'] contains '{alias}', \
2501                     but ALIAS_TO_CANONICAL['{alias}'] does not map back to '{canonical}'"
2502                );
2503            }
2504        }
2505        for (&alias, &canonical) in ALIAS_TO_CANONICAL.iter() {
2506            if let Some(aliases) = CANONICAL_TO_ALIASES.get(canonical) {
2507                assert!(
2508                    aliases.contains(alias),
2509                    "ALIAS_TO_CANONICAL['{alias}'] maps to '{canonical}', \
2510                     but CANONICAL_TO_ALIASES['{canonical}'] does not contain '{alias}'"
2511                );
2512            }
2513        }
2514    }
2515}