gitlab.com/thomasboni/go-enry/v2@v2.8.3-0.20220418031202-30b0d7a3de98/internal/code-generator/generator/test_files/alias.gold (about) 1 // Code generated by gitlab.com/thomasboni/go-enry/v2/internal/code-generator DO NOT EDIT. 2 // Extracted from github/linguist commit: 4ffcdbcbb60a74cbfbd37656bcc3fcea4eca8e26 3 4 package data 5 6 import "strings" 7 8 // LanguageByAliasMap keeps alias for different languages and use the name of the languages as an alias too. 9 // All the keys (alias or not) are written in lower case and the whitespaces has been replaced by underscores. 10 var LanguageByAliasMap = map[string]string{ 11 "1c_enterprise": "1C Enterprise", 12 "2-dimensional_array": "2-Dimensional Array", 13 "4d": "4D", 14 "abap": "ABAP", 15 "abap_cds": "ABAP CDS", 16 "abl": "OpenEdge ABL", 17 "abnf": "ABNF", 18 "abuild": "Alpine Abuild", 19 "acfm": "Adobe Font Metrics", 20 "aconf": "ApacheConf", 21 "actionscript": "ActionScript", 22 "actionscript3": "ActionScript", 23 "actionscript_3": "ActionScript", 24 "ada": "Ada", 25 "ada2005": "Ada", 26 "ada95": "Ada", 27 "adobe_composite_font_metrics": "Adobe Font Metrics", 28 "adobe_font_metrics": "Adobe Font Metrics", 29 "adobe_multiple_font_metrics": "Adobe Font Metrics", 30 "advpl": "xBase", 31 "afdko": "OpenType Feature File", 32 "agda": "Agda", 33 "ags": "AGS Script", 34 "ags_script": "AGS Script", 35 "ahk": "AutoHotkey", 36 "aidl": "AIDL", 37 "al": "AL", 38 "alloy": "Alloy", 39 "alpine_abuild": "Alpine Abuild", 40 "altium": "Altium Designer", 41 "altium_designer": "Altium Designer", 42 "amfm": "Adobe Font Metrics", 43 "ampl": "AMPL", 44 "amusewiki": "Muse", 45 "angelscript": "AngelScript", 46 "ant_build_system": "Ant Build System", 47 "antlr": "ANTLR", 48 "apache": "ApacheConf", 49 "apacheconf": "ApacheConf", 50 "apex": "Apex", 51 "api_blueprint": "API Blueprint", 52 "apkbuild": "Alpine Abuild", 53 "apl": "APL", 54 "apollo_guidance_computer": "Apollo Guidance Computer", 55 "applescript": "AppleScript", 56 "arc": "Arc", 57 "arexx": "REXX", 58 "as3": "ActionScript", 59 "asciidoc": "AsciiDoc", 60 "asl": "ASL", 61 "asm": "Assembly", 62 "asn.1": "ASN.1", 63 "asp": "Classic ASP", 64 "asp.net": "ASP.NET", 65 "aspectj": "AspectJ", 66 "aspx": "ASP.NET", 67 "aspx-vb": "ASP.NET", 68 "assembly": "Assembly", 69 "astro": "Astro", 70 "asymptote": "Asymptote", 71 "ats": "ATS", 72 "ats2": "ATS", 73 "au3": "AutoIt", 74 "augeas": "Augeas", 75 "autoconf": "M4Sugar", 76 "autohotkey": "AutoHotkey", 77 "autoit": "AutoIt", 78 "autoit3": "AutoIt", 79 "autoitscript": "AutoIt", 80 "avro_idl": "Avro IDL", 81 "awk": "Awk", 82 "b3d": "BlitzBasic", 83 "ballerina": "Ballerina", 84 "bash": "Shell", 85 "bash_session": "ShellSession", 86 "basic": "BASIC", 87 "bat": "Batchfile", 88 "batch": "Batchfile", 89 "batchfile": "Batchfile", 90 "bazel": "Starlark", 91 "be": "Berry", 92 "beef": "Beef", 93 "befunge": "Befunge", 94 "berry": "Berry", 95 "bibtex": "BibTeX", 96 "bicep": "Bicep", 97 "bison": "Bison", 98 "bitbake": "BitBake", 99 "blade": "Blade", 100 "blitz3d": "BlitzBasic", 101 "blitzbasic": "BlitzBasic", 102 "blitzmax": "BlitzMax", 103 "blitzplus": "BlitzBasic", 104 "bluespec": "Bluespec", 105 "bmax": "BlitzMax", 106 "boo": "Boo", 107 "boogie": "Boogie", 108 "bplus": "BlitzBasic", 109 "brainfuck": "Brainfuck", 110 "brightscript": "Brightscript", 111 "bro": "Zeek", 112 "browserslist": "Browserslist", 113 "bsdmake": "Makefile", 114 "byond": "DM", 115 "bzl": "Starlark", 116 "c": "C", 117 "c#": "C#", 118 "c++": "C++", 119 "c++-objdump": "Cpp-ObjDump", 120 "c-objdump": "C-ObjDump", 121 "c2hs": "C2hs Haskell", 122 "c2hs_haskell": "C2hs Haskell", 123 "cabal": "Cabal Config", 124 "cabal_config": "Cabal Config", 125 "cadence": "Cadence", 126 "cairo": "Cairo", 127 "cake": "C#", 128 "cakescript": "C#", 129 "cameligo": "CameLIGO", 130 "cap'n_proto": "Cap'n Proto", 131 "carto": "CartoCSS", 132 "cartocss": "CartoCSS", 133 "ceylon": "Ceylon", 134 "cfc": "ColdFusion CFC", 135 "cfm": "ColdFusion", 136 "cfml": "ColdFusion", 137 "chapel": "Chapel", 138 "charity": "Charity", 139 "chpl": "Chapel", 140 "chuck": "ChucK", 141 "cil": "CIL", 142 "cirru": "Cirru", 143 "clarion": "Clarion", 144 "clarity": "Clarity", 145 "classic_asp": "Classic ASP", 146 "clean": "Clean", 147 "click": "Click", 148 "clipper": "xBase", 149 "clips": "CLIPS", 150 "clojure": "Clojure", 151 "closure_templates": "Closure Templates", 152 "cloud_firestore_security_rules": "Cloud Firestore Security Rules", 153 "cmake": "CMake", 154 "cobol": "COBOL", 155 "coccinelle": "SmPL", 156 "codeowners": "CODEOWNERS", 157 "codeql": "CodeQL", 158 "coffee": "CoffeeScript", 159 "coffee-script": "CoffeeScript", 160 "coffeescript": "CoffeeScript", 161 "coldfusion": "ColdFusion", 162 "coldfusion_cfc": "ColdFusion CFC", 163 "coldfusion_html": "ColdFusion", 164 "collada": "COLLADA", 165 "common_lisp": "Common Lisp", 166 "common_workflow_language": "Common Workflow Language", 167 "component_pascal": "Component Pascal", 168 "conll": "CoNLL-U", 169 "conll-u": "CoNLL-U", 170 "conll-x": "CoNLL-U", 171 "console": "ShellSession", 172 "containerfile": "Dockerfile", 173 "cool": "Cool", 174 "coq": "Coq", 175 "cperl": "Perl", 176 "cpp": "C++", 177 "cpp-objdump": "Cpp-ObjDump", 178 "creole": "Creole", 179 "crystal": "Crystal", 180 "csharp": "C#", 181 "cson": "CSON", 182 "csound": "Csound", 183 "csound-csd": "Csound Document", 184 "csound-orc": "Csound", 185 "csound-sco": "Csound Score", 186 "csound_document": "Csound Document", 187 "csound_score": "Csound Score", 188 "css": "CSS", 189 "csv": "CSV", 190 "cucumber": "Gherkin", 191 "cuda": "Cuda", 192 "cue": "CUE", 193 "cue_sheet": "Cue Sheet", 194 "curl_config": "cURL Config", 195 "curlrc": "cURL Config", 196 "curry": "Curry", 197 "cweb": "CWeb", 198 "cwl": "Common Workflow Language", 199 "cycript": "Cycript", 200 "cython": "Cython", 201 "d": "D", 202 "d-objdump": "D-ObjDump", 203 "dafny": "Dafny", 204 "darcs_patch": "Darcs Patch", 205 "dart": "Dart", 206 "dataweave": "DataWeave", 207 "dcl": "DIGITAL Command Language", 208 "debian_package_control_file": "Debian Package Control File", 209 "delphi": "Pascal", 210 "denizenscript": "DenizenScript", 211 "desktop": "desktop", 212 "dhall": "Dhall", 213 "diff": "Diff", 214 "digital_command_language": "DIGITAL Command Language", 215 "dircolors": "dircolors", 216 "directx_3d_file": "DirectX 3D File", 217 "django": "Jinja", 218 "dlang": "D", 219 "dm": "DM", 220 "dns_zone": "DNS Zone", 221 "dockerfile": "Dockerfile", 222 "dogescript": "Dogescript", 223 "dosbatch": "Batchfile", 224 "dosini": "INI", 225 "dpatch": "Darcs Patch", 226 "dtrace": "DTrace", 227 "dtrace-script": "DTrace", 228 "dylan": "Dylan", 229 "e": "E", 230 "e-mail": "E-mail", 231 "eagle": "Eagle", 232 "earthfile": "Earthly", 233 "earthly": "Earthly", 234 "easybuild": "Easybuild", 235 "ebnf": "EBNF", 236 "ec": "eC", 237 "ecere_projects": "Ecere Projects", 238 "ecl": "ECL", 239 "eclipse": "ECLiPSe", 240 "ecr": "HTML+ECR", 241 "editor-config": "EditorConfig", 242 "editorconfig": "EditorConfig", 243 "edje_data_collection": "Edje Data Collection", 244 "edn": "edn", 245 "eeschema_schematic": "KiCad Schematic", 246 "eex": "HTML+EEX", 247 "eiffel": "Eiffel", 248 "ejs": "EJS", 249 "elisp": "Emacs Lisp", 250 "elixir": "Elixir", 251 "elm": "Elm", 252 "emacs": "Emacs Lisp", 253 "emacs_lisp": "Emacs Lisp", 254 "emacs_muse": "Muse", 255 "email": "E-mail", 256 "emberscript": "EmberScript", 257 "eml": "E-mail", 258 "eq": "EQ", 259 "erb": "HTML+ERB", 260 "erlang": "Erlang", 261 "euphoria": "Euphoria", 262 "f#": "F#", 263 "f*": "F*", 264 "factor": "Factor", 265 "fancy": "Fancy", 266 "fantom": "Fantom", 267 "faust": "Faust", 268 "fb": "FreeBasic", 269 "fennel": "Fennel", 270 "figfont": "FIGlet Font", 271 "figlet_font": "FIGlet Font", 272 "filebench_wml": "Filebench WML", 273 "filterscript": "Filterscript", 274 "fish": "fish", 275 "flex": "Lex", 276 "fluent": "Fluent", 277 "flux": "FLUX", 278 "formatted": "Formatted", 279 "forth": "Forth", 280 "fortran": "Fortran", 281 "fortran_free_form": "Fortran Free Form", 282 "foxpro": "xBase", 283 "freebasic": "FreeBasic", 284 "freemarker": "FreeMarker", 285 "frege": "Frege", 286 "fsharp": "F#", 287 "fstar": "F*", 288 "ftl": "FreeMarker", 289 "fundamental": "Text", 290 "futhark": "Futhark", 291 "g-code": "G-code", 292 "game_maker_language": "Game Maker Language", 293 "gaml": "GAML", 294 "gams": "GAMS", 295 "gap": "GAP", 296 "gcc_machine_description": "GCC Machine Description", 297 "gdb": "GDB", 298 "gdscript": "GDScript", 299 "gedcom": "GEDCOM", 300 "gemfile.lock": "Gemfile.lock", 301 "genero": "Genero", 302 "genero_forms": "Genero Forms", 303 "genie": "Genie", 304 "genshi": "Genshi", 305 "gentoo_ebuild": "Gentoo Ebuild", 306 "gentoo_eclass": "Gentoo Eclass", 307 "gerber_image": "Gerber Image", 308 "gettext_catalog": "Gettext Catalog", 309 "gf": "Grammatical Framework", 310 "gherkin": "Gherkin", 311 "git-ignore": "Ignore List", 312 "git_attributes": "Git Attributes", 313 "git_config": "Git Config", 314 "gitattributes": "Git Attributes", 315 "gitconfig": "Git Config", 316 "gitignore": "Ignore List", 317 "gitmodules": "Git Config", 318 "gleam": "Gleam", 319 "glsl": "GLSL", 320 "glyph": "Glyph", 321 "glyph_bitmap_distribution_format": "Glyph Bitmap Distribution Format", 322 "gn": "GN", 323 "gnuplot": "Gnuplot", 324 "go": "Go", 325 "go.mod": "Go Module", 326 "go.sum": "Go Checksums", 327 "go_checksums": "Go Checksums", 328 "go_mod": "Go Module", 329 "go_module": "Go Module", 330 "go_sum": "Go Checksums", 331 "golang": "Go", 332 "golo": "Golo", 333 "gosu": "Gosu", 334 "grace": "Grace", 335 "gradle": "Gradle", 336 "grammatical_framework": "Grammatical Framework", 337 "graph_modeling_language": "Graph Modeling Language", 338 "graphql": "GraphQL", 339 "graphviz_(dot)": "Graphviz (DOT)", 340 "groff": "Roff", 341 "groovy": "Groovy", 342 "groovy_server_pages": "Groovy Server Pages", 343 "gsc": "GSC", 344 "gsp": "Groovy Server Pages", 345 "hack": "Hack", 346 "haml": "Haml", 347 "handlebars": "Handlebars", 348 "haproxy": "HAProxy", 349 "harbour": "Harbour", 350 "hashicorp_configuration_language": "HCL", 351 "haskell": "Haskell", 352 "haxe": "Haxe", 353 "hbs": "Handlebars", 354 "hcl": "HCL", 355 "heex": "HTML+EEX", 356 "help": "Vim Help File", 357 "hiveql": "HiveQL", 358 "hlsl": "HLSL", 359 "holyc": "HolyC", 360 "hoon": "hoon", 361 "html": "HTML", 362 "html+django": "Jinja", 363 "html+ecr": "HTML+ECR", 364 "html+eex": "HTML+EEX", 365 "html+erb": "HTML+ERB", 366 "html+jinja": "Jinja", 367 "html+php": "HTML+PHP", 368 "html+razor": "HTML+Razor", 369 "html+ruby": "HTML+ERB", 370 "htmlbars": "Handlebars", 371 "htmldjango": "Jinja", 372 "http": "HTTP", 373 "hxml": "HXML", 374 "hy": "Hy", 375 "hylang": "Hy", 376 "hyphy": "HyPhy", 377 "i7": "Inform 7", 378 "idl": "IDL", 379 "idris": "Idris", 380 "ignore": "Ignore List", 381 "ignore_list": "Ignore List", 382 "igor": "IGOR Pro", 383 "igor_pro": "IGOR Pro", 384 "igorpro": "IGOR Pro", 385 "ijm": "ImageJ Macro", 386 "ile_rpg": "RPGLE", 387 "imagej_macro": "ImageJ Macro", 388 "inc": "PHP", 389 "inform7": "Inform 7", 390 "inform_7": "Inform 7", 391 "ini": "INI", 392 "inno_setup": "Inno Setup", 393 "inputrc": "Readline Config", 394 "io": "Io", 395 "ioke": "Ioke", 396 "ipython_notebook": "Jupyter Notebook", 397 "irc": "IRC log", 398 "irc_log": "IRC log", 399 "irc_logs": "IRC log", 400 "isabelle": "Isabelle", 401 "isabelle_root": "Isabelle ROOT", 402 "j": "J", 403 "janet": "Janet", 404 "jar_manifest": "JAR Manifest", 405 "jasmin": "Jasmin", 406 "java": "Java", 407 "java_properties": "Java Properties", 408 "java_server_page": "Groovy Server Pages", 409 "java_server_pages": "Java Server Pages", 410 "javascript": "JavaScript", 411 "javascript+erb": "JavaScript+ERB", 412 "jest_snapshot": "Jest Snapshot", 413 "jflex": "JFlex", 414 "jinja": "Jinja", 415 "jison": "Jison", 416 "jison_lex": "Jison Lex", 417 "jolie": "Jolie", 418 "jq": "jq", 419 "jruby": "Ruby", 420 "js": "JavaScript", 421 "json": "JSON", 422 "json5": "JSON5", 423 "json_with_comments": "JSON with Comments", 424 "jsonc": "JSON with Comments", 425 "jsoniq": "JSONiq", 426 "jsonld": "JSONLD", 427 "jsonnet": "Jsonnet", 428 "jsp": "Java Server Pages", 429 "julia": "Julia", 430 "jupyter_notebook": "Jupyter Notebook", 431 "kaitai_struct": "Kaitai Struct", 432 "kak": "KakouneScript", 433 "kakounescript": "KakouneScript", 434 "kakscript": "KakouneScript", 435 "keyvalues": "Valve Data Format", 436 "kicad_layout": "KiCad Layout", 437 "kicad_legacy_layout": "KiCad Legacy Layout", 438 "kicad_schematic": "KiCad Schematic", 439 "kit": "Kit", 440 "kotlin": "Kotlin", 441 "krl": "KRL", 442 "ksy": "Kaitai Struct", 443 "kusto": "Kusto", 444 "kvlang": "kvlang", 445 "labview": "LabVIEW", 446 "lark": "Lark", 447 "lasso": "Lasso", 448 "lassoscript": "Lasso", 449 "latex": "TeX", 450 "latte": "Latte", 451 "lean": "Lean", 452 "leex": "HTML+EEX", 453 "less": "Less", 454 "less-css": "Less", 455 "lex": "Lex", 456 "lfe": "LFE", 457 "lhaskell": "Literate Haskell", 458 "lhs": "Literate Haskell", 459 "ligolang": "LigoLANG", 460 "lilypond": "LilyPond", 461 "limbo": "Limbo", 462 "linker_script": "Linker Script", 463 "linux_kernel_module": "Linux Kernel Module", 464 "liquid": "Liquid", 465 "lisp": "Common Lisp", 466 "litcoffee": "Literate CoffeeScript", 467 "literate_agda": "Literate Agda", 468 "literate_coffeescript": "Literate CoffeeScript", 469 "literate_haskell": "Literate Haskell", 470 "live-script": "LiveScript", 471 "livescript": "LiveScript", 472 "llvm": "LLVM", 473 "logos": "Logos", 474 "logtalk": "Logtalk", 475 "lolcode": "LOLCODE", 476 "lookml": "LookML", 477 "loomscript": "LoomScript", 478 "ls": "LiveScript", 479 "lsl": "LSL", 480 "ltspice_symbol": "LTspice Symbol", 481 "lua": "Lua", 482 "m": "M", 483 "m2": "Macaulay2", 484 "m4": "M4", 485 "m4sugar": "M4Sugar", 486 "m68k": "Motorola 68K Assembly", 487 "macaulay2": "Macaulay2", 488 "macruby": "Ruby", 489 "mail": "E-mail", 490 "make": "Makefile", 491 "makefile": "Makefile", 492 "mako": "Mako", 493 "man": "Roff", 494 "man-page": "Roff", 495 "man_page": "Roff", 496 "manpage": "Roff", 497 "markdown": "Markdown", 498 "marko": "Marko", 499 "markojs": "Marko", 500 "mask": "Mask", 501 "mathematica": "Mathematica", 502 "matlab": "MATLAB", 503 "maven_pom": "Maven POM", 504 "max": "Max", 505 "max/msp": "Max", 506 "maxmsp": "Max", 507 "maxscript": "MAXScript", 508 "mbox": "E-mail", 509 "mcfunction": "mcfunction", 510 "mdoc": "Roff", 511 "mediawiki": "Wikitext", 512 "mercury": "Mercury", 513 "meson": "Meson", 514 "metal": "Metal", 515 "mf": "Makefile", 516 "microsoft_developer_studio_project": "Microsoft Developer Studio Project", 517 "microsoft_visual_studio_solution": "Microsoft Visual Studio Solution", 518 "minid": "MiniD", 519 "miniyaml": "MiniYAML", 520 "mint": "Mint", 521 "mirah": "Mirah", 522 "mirc_script": "mIRC Script", 523 "mlir": "MLIR", 524 "mma": "Mathematica", 525 "modelica": "Modelica", 526 "modula-2": "Modula-2", 527 "modula-3": "Modula-3", 528 "module_management_system": "Module Management System", 529 "monkey": "Monkey", 530 "monkey_c": "Monkey C", 531 "moocode": "Moocode", 532 "moonscript": "MoonScript", 533 "motoko": "Motoko", 534 "motorola_68k_assembly": "Motorola 68K Assembly", 535 "mql4": "MQL4", 536 "mql5": "MQL5", 537 "mtml": "MTML", 538 "muf": "MUF", 539 "mumps": "M", 540 "mupad": "mupad", 541 "muse": "Muse", 542 "mustache": "Mustache", 543 "myghty": "Myghty", 544 "nanorc": "nanorc", 545 "nasl": "NASL", 546 "nasm": "Assembly", 547 "ncl": "NCL", 548 "ne-on": "NEON", 549 "nearley": "Nearley", 550 "nemerle": "Nemerle", 551 "neon": "NEON", 552 "neosnippet": "Vim Snippet", 553 "nesc": "nesC", 554 "netlinx": "NetLinx", 555 "netlinx+erb": "NetLinx+ERB", 556 "netlogo": "NetLogo", 557 "nette_object_notation": "NEON", 558 "newlisp": "NewLisp", 559 "nextflow": "Nextflow", 560 "nginx": "Nginx", 561 "nginx_configuration_file": "Nginx", 562 "nim": "Nim", 563 "ninja": "Ninja", 564 "nit": "Nit", 565 "nix": "Nix", 566 "nixos": "Nix", 567 "njk": "Nunjucks", 568 "nl": "NL", 569 "node": "JavaScript", 570 "npm_config": "NPM Config", 571 "npmrc": "NPM Config", 572 "nroff": "Roff", 573 "nsis": "NSIS", 574 "nu": "Nu", 575 "numpy": "NumPy", 576 "nunjucks": "Nunjucks", 577 "nush": "Nu", 578 "nvim": "Vim Script", 579 "nwscript": "NWScript", 580 "obj-c": "Objective-C", 581 "obj-c++": "Objective-C++", 582 "obj-j": "Objective-J", 583 "objc": "Objective-C", 584 "objc++": "Objective-C++", 585 "objdump": "ObjDump", 586 "object_data_instance_notation": "Object Data Instance Notation", 587 "objective-c": "Objective-C", 588 "objective-c++": "Objective-C++", 589 "objective-j": "Objective-J", 590 "objectivec": "Objective-C", 591 "objectivec++": "Objective-C++", 592 "objectivej": "Objective-J", 593 "objectpascal": "Pascal", 594 "objectscript": "ObjectScript", 595 "objj": "Objective-J", 596 "ocaml": "OCaml", 597 "octave": "MATLAB", 598 "odin": "Odin", 599 "odin-lang": "Odin", 600 "odinlang": "Odin", 601 "omgrofl": "Omgrofl", 602 "oncrpc": "RPC", 603 "ooc": "ooc", 604 "opa": "Opa", 605 "opal": "Opal", 606 "open_policy_agent": "Open Policy Agent", 607 "opencl": "OpenCL", 608 "openedge": "OpenEdge ABL", 609 "openedge_abl": "OpenEdge ABL", 610 "openqasm": "OpenQASM", 611 "openrc": "OpenRC runscript", 612 "openrc_runscript": "OpenRC runscript", 613 "openscad": "OpenSCAD", 614 "openstep_property_list": "OpenStep Property List", 615 "opentype_feature_file": "OpenType Feature File", 616 "org": "Org", 617 "osascript": "AppleScript", 618 "ox": "Ox", 619 "oxygene": "Oxygene", 620 "oz": "Oz", 621 "p4": "P4", 622 "pan": "Pan", 623 "pandoc": "Markdown", 624 "papyrus": "Papyrus", 625 "parrot": "Parrot", 626 "parrot_assembly": "Parrot Assembly", 627 "parrot_internal_representation": "Parrot Internal Representation", 628 "pascal": "Pascal", 629 "pasm": "Parrot Assembly", 630 "pawn": "Pawn", 631 "pcbnew": "KiCad Layout", 632 "peg.js": "PEG.js", 633 "pep8": "Pep8", 634 "perl": "Perl", 635 "perl-6": "Raku", 636 "perl6": "Raku", 637 "php": "PHP", 638 "pic": "Pic", 639 "pickle": "Pickle", 640 "picolisp": "PicoLisp", 641 "piglatin": "PigLatin", 642 "pike": "Pike", 643 "pir": "Parrot Internal Representation", 644 "plain_text": "Text", 645 "plantuml": "PlantUML", 646 "plpgsql": "PLpgSQL", 647 "plsql": "PLSQL", 648 "pod": "Pod", 649 "pod_6": "Pod 6", 650 "pogoscript": "PogoScript", 651 "pony": "Pony", 652 "posh": "PowerShell", 653 "postcss": "PostCSS", 654 "postscr": "PostScript", 655 "postscript": "PostScript", 656 "pot": "Gettext Catalog", 657 "pov-ray": "POV-Ray SDL", 658 "pov-ray_sdl": "POV-Ray SDL", 659 "povray": "POV-Ray SDL", 660 "powerbuilder": "PowerBuilder", 661 "powershell": "PowerShell", 662 "prisma": "Prisma", 663 "processing": "Processing", 664 "procfile": "Procfile", 665 "progress": "OpenEdge ABL", 666 "proguard": "Proguard", 667 "prolog": "Prolog", 668 "promela": "Promela", 669 "propeller_spin": "Propeller Spin", 670 "protobuf": "Protocol Buffer", 671 "protobuf_text_format": "Protocol Buffer Text Format", 672 "protocol_buffer": "Protocol Buffer", 673 "protocol_buffer_text_format": "Protocol Buffer Text Format", 674 "protocol_buffers": "Protocol Buffer", 675 "public_key": "Public Key", 676 "pug": "Pug", 677 "puppet": "Puppet", 678 "pure_data": "Pure Data", 679 "purebasic": "PureBasic", 680 "purescript": "PureScript", 681 "pwsh": "PowerShell", 682 "pycon": "Python console", 683 "pyrex": "Cython", 684 "python": "Python", 685 "python3": "Python", 686 "python_console": "Python console", 687 "python_traceback": "Python traceback", 688 "q": "q", 689 "q#": "Q#", 690 "ql": "CodeQL", 691 "qmake": "QMake", 692 "qml": "QML", 693 "qsharp": "Q#", 694 "qt_script": "Qt Script", 695 "quake": "Quake", 696 "r": "R", 697 "racket": "Racket", 698 "ragel": "Ragel", 699 "ragel-rb": "Ragel", 700 "ragel-ruby": "Ragel", 701 "rake": "Ruby", 702 "raku": "Raku", 703 "raml": "RAML", 704 "rascal": "Rascal", 705 "raw": "Raw token data", 706 "raw_token_data": "Raw token data", 707 "razor": "HTML+Razor", 708 "rb": "Ruby", 709 "rbx": "Ruby", 710 "rdoc": "RDoc", 711 "readline": "Readline Config", 712 "readline_config": "Readline Config", 713 "realbasic": "REALbasic", 714 "reason": "Reason", 715 "reasonligo": "ReasonLIGO", 716 "rebol": "Rebol", 717 "record_jar": "Record Jar", 718 "red": "Red", 719 "red/system": "Red", 720 "redcode": "Redcode", 721 "redirect_rules": "Redirect Rules", 722 "redirects": "Redirect Rules", 723 "regex": "Regular Expression", 724 "regexp": "Regular Expression", 725 "regular_expression": "Regular Expression", 726 "ren'py": "Ren'Py", 727 "renderscript": "RenderScript", 728 "renpy": "Ren'Py", 729 "rescript": "ReScript", 730 "restructuredtext": "reStructuredText", 731 "rexx": "REXX", 732 "rhtml": "HTML+ERB", 733 "rich_text_format": "Rich Text Format", 734 "ring": "Ring", 735 "riot": "Riot", 736 "rmarkdown": "RMarkdown", 737 "robotframework": "RobotFramework", 738 "robots": "robots.txt", 739 "robots.txt": "robots.txt", 740 "robots_txt": "robots.txt", 741 "roff": "Roff", 742 "roff_manpage": "Roff Manpage", 743 "rouge": "Rouge", 744 "rpc": "RPC", 745 "rpcgen": "RPC", 746 "rpgle": "RPGLE", 747 "rpm_spec": "RPM Spec", 748 "rs": "Rust", 749 "rs-274x": "Gerber Image", 750 "rscript": "R", 751 "rss": "XML", 752 "rst": "reStructuredText", 753 "ruby": "Ruby", 754 "runoff": "RUNOFF", 755 "rust": "Rust", 756 "rusthon": "Python", 757 "sage": "Sage", 758 "salt": "SaltStack", 759 "saltstack": "SaltStack", 760 "saltstate": "SaltStack", 761 "sas": "SAS", 762 "sass": "Sass", 763 "scala": "Scala", 764 "scaml": "Scaml", 765 "scheme": "Scheme", 766 "scilab": "Scilab", 767 "scss": "SCSS", 768 "sed": "sed", 769 "self": "Self", 770 "selinux_kernel_policy_language": "SELinux Policy", 771 "selinux_policy": "SELinux Policy", 772 "sepolicy": "SELinux Policy", 773 "sh": "Shell", 774 "shaderlab": "ShaderLab", 775 "shell": "Shell", 776 "shell-script": "Shell", 777 "shellcheck_config": "ShellCheck Config", 778 "shellcheckrc": "ShellCheck Config", 779 "shellsession": "ShellSession", 780 "shen": "Shen", 781 "sieve": "Sieve", 782 "singularity": "Singularity", 783 "slash": "Slash", 784 "slice": "Slice", 785 "slim": "Slim", 786 "smali": "Smali", 787 "smalltalk": "Smalltalk", 788 "smarty": "Smarty", 789 "sml": "Standard ML", 790 "smpl": "SmPL", 791 "smt": "SMT", 792 "snipmate": "Vim Snippet", 793 "snippet": "YASnippet", 794 "solidity": "Solidity", 795 "soong": "Soong", 796 "sourcemod": "SourcePawn", 797 "sourcepawn": "SourcePawn", 798 "soy": "Closure Templates", 799 "sparql": "SPARQL", 800 "specfile": "RPM Spec", 801 "spline_font_database": "Spline Font Database", 802 "splus": "R", 803 "sqf": "SQF", 804 "sql": "SQL", 805 "sqlpl": "SQLPL", 806 "sqlrpgle": "RPGLE", 807 "squeak": "Smalltalk", 808 "squirrel": "Squirrel", 809 "srecode_template": "SRecode Template", 810 "ssh_config": "SSH Config", 811 "stan": "Stan", 812 "standard_ml": "Standard ML", 813 "starlark": "Starlark", 814 "stata": "Stata", 815 "ston": "STON", 816 "stringtemplate": "StringTemplate", 817 "stylus": "Stylus", 818 "subrip_text": "SubRip Text", 819 "sugarss": "SugarSS", 820 "supercollider": "SuperCollider", 821 "svelte": "Svelte", 822 "svg": "SVG", 823 "swift": "Swift", 824 "swig": "SWIG", 825 "systemverilog": "SystemVerilog", 826 "talon": "Talon", 827 "tcl": "Tcl", 828 "tcsh": "Tcsh", 829 "tea": "Tea", 830 "terra": "Terra", 831 "terraform": "HCL", 832 "tex": "TeX", 833 "texinfo": "Texinfo", 834 "text": "Text", 835 "text_proto": "Protocol Buffer Text Format", 836 "textile": "Textile", 837 "textmate_properties": "TextMate Properties", 838 "thrift": "Thrift", 839 "ti_program": "TI Program", 840 "tl": "Type Language", 841 "tla": "TLA", 842 "tm-properties": "TextMate Properties", 843 "toml": "TOML", 844 "troff": "Roff", 845 "ts": "TypeScript", 846 "tsql": "TSQL", 847 "tsv": "TSV", 848 "tsx": "TSX", 849 "turing": "Turing", 850 "turtle": "Turtle", 851 "twig": "Twig", 852 "txl": "TXL", 853 "type_language": "Type Language", 854 "typescript": "TypeScript", 855 "udiff": "Diff", 856 "ultisnip": "Vim Snippet", 857 "ultisnips": "Vim Snippet", 858 "unified_parallel_c": "Unified Parallel C", 859 "unity3d_asset": "Unity3D Asset", 860 "unix_assembly": "Unix Assembly", 861 "uno": "Uno", 862 "unrealscript": "UnrealScript", 863 "ur": "UrWeb", 864 "ur/web": "UrWeb", 865 "urweb": "UrWeb", 866 "v": "V", 867 "vala": "Vala", 868 "valve_data_format": "Valve Data Format", 869 "vb.net": "Visual Basic .NET", 870 "vb6": "VBA", 871 "vb_.net": "Visual Basic .NET", 872 "vba": "VBA", 873 "vbnet": "Visual Basic .NET", 874 "vbscript": "VBScript", 875 "vcl": "VCL", 876 "vdf": "Valve Data Format", 877 "verilog": "Verilog", 878 "vhdl": "VHDL", 879 "vim": "Vim Script", 880 "vim_help_file": "Vim Help File", 881 "vim_script": "Vim Script", 882 "vim_snippet": "Vim Snippet", 883 "vimhelp": "Vim Help File", 884 "viml": "Vim Script", 885 "visual_basic": "Visual Basic .NET", 886 "visual_basic_.net": "Visual Basic .NET", 887 "visual_basic_6": "VBA", 888 "visual_basic_for_applications": "VBA", 889 "vlang": "V", 890 "volt": "Volt", 891 "vue": "Vue", 892 "vyper": "Vyper", 893 "wasm": "WebAssembly", 894 "wast": "WebAssembly", 895 "wavefront_material": "Wavefront Material", 896 "wavefront_object": "Wavefront Object", 897 "wdl": "wdl", 898 "web_ontology_language": "Web Ontology Language", 899 "webassembly": "WebAssembly", 900 "webidl": "WebIDL", 901 "webvtt": "WebVTT", 902 "wget_config": "Wget Config", 903 "wgetrc": "Wget Config", 904 "wiki": "Wikitext", 905 "wikitext": "Wikitext", 906 "win32_message_file": "Win32 Message File", 907 "winbatch": "Batchfile", 908 "windows_registry_entries": "Windows Registry Entries", 909 "wisp": "wisp", 910 "witcher_script": "Witcher Script", 911 "wl": "Mathematica", 912 "wolfram": "Mathematica", 913 "wolfram_lang": "Mathematica", 914 "wolfram_language": "Mathematica", 915 "wollok": "Wollok", 916 "world_of_warcraft_addon_data": "World of Warcraft Addon Data", 917 "wsdl": "XML", 918 "x10": "X10", 919 "x_bitmap": "X BitMap", 920 "x_font_directory_index": "X Font Directory Index", 921 "x_pixmap": "X PixMap", 922 "xbase": "xBase", 923 "xbm": "X BitMap", 924 "xc": "XC", 925 "xcompose": "XCompose", 926 "xdr": "RPC", 927 "xhtml": "HTML", 928 "xml": "XML", 929 "xml+genshi": "Genshi", 930 "xml+kid": "Genshi", 931 "xml_property_list": "XML Property List", 932 "xojo": "Xojo", 933 "xonsh": "Xonsh", 934 "xpages": "XPages", 935 "xpm": "X PixMap", 936 "xproc": "XProc", 937 "xquery": "XQuery", 938 "xs": "XS", 939 "xsd": "XML", 940 "xsl": "XSLT", 941 "xslt": "XSLT", 942 "xten": "X10", 943 "xtend": "Xtend", 944 "yacc": "Yacc", 945 "yaml": "YAML", 946 "yang": "YANG", 947 "yara": "YARA", 948 "yarn": "yarn", 949 "yas": "YASnippet", 950 "yasnippet": "YASnippet", 951 "yml": "YAML", 952 "zap": "ZAP", 953 "zeek": "Zeek", 954 "zenscript": "ZenScript", 955 "zephir": "Zephir", 956 "zig": "Zig", 957 "zil": "ZIL", 958 "zimpl": "Zimpl", 959 "zsh": "Shell", 960 } 961 962 // LanguageByAlias looks up the language name by it's alias or name. 963 // It mirrors the logic of github linguist and is needed e.g for heuristcs.yml 964 // that mixes names and aliases in a language field (see XPM example). 965 func LanguageByAlias(langOrAlias string) (lang string, ok bool) { 966 k := convertToAliasKey(langOrAlias) 967 lang, ok = LanguageByAliasMap[k] 968 return 969 } 970 971 // convertToAliasKey converts language name to a key in LanguageByAliasMap. 972 // Following 973 // - internal.code-generator.generator.convertToAliasKey() 974 // - GetLanguageByAlias() 975 // conventions. 976 // It is here to avoid dependency on "generate" and "enry" packages. 977 func convertToAliasKey(langName string) string { 978 ak := strings.SplitN(langName, `,`, 2)[0] 979 ak = strings.Replace(ak, ` `, `_`, -1) 980 ak = strings.ToLower(ak) 981 return ak 982 }