Last active
May 25, 2023 08:37
-
-
Save alanocallaghan/a827ad3b500ebe1a235a8a5727b66da4 to your computer and use it in GitHub Desktop.
Download github linguist language assocations and dump to a yaml file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"c": "c_cpp", | |
"c++": "c_cpp", | |
"c#": "csharp", | |
"f#": "fsharp", | |
"fortran free form": "fortran", | |
"gradle": "groovy", | |
"json with comments": "json", | |
"rmarkdown": "markdown", | |
"shell": "bash", | |
"snakemake": "python" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abap | |
abc | |
actionscript | |
ada | |
ada_test | |
alda | |
apache_conf | |
apex | |
applescript | |
aql | |
asciidoc | |
asl | |
assembly_x86 | |
autohotkey | |
batchfile | |
behaviour | |
bibtex | |
c9search | |
c_cpp | |
cirru | |
clojure | |
cobol | |
coffee | |
coldfusion | |
coldfusion_test | |
crystal | |
csharp | |
csound_document | |
csound_orchestra | |
csound_score | |
csp | |
css | |
css_completions | |
css_test | |
curly | |
d | |
dart | |
diff | |
django | |
dockerfile | |
dot | |
drools | |
edifact | |
eiffel | |
ejs | |
elixir | |
elm | |
erlang | |
forth | |
fortran | |
fsharp | |
fsl | |
ftl | |
gcode | |
gherkin | |
gitignore | |
glsl | |
gobstones | |
golang | |
graphqlschema | |
groovy | |
haml | |
handlebars | |
haskell | |
haskell_cabal | |
haxe | |
hjson | |
html | |
html_completions | |
html_elixir | |
html_ruby | |
html_test | |
ini | |
io | |
ion | |
jack | |
jade | |
java | |
javascript | |
javascript_test | |
jexl | |
json | |
json5 | |
jsp | |
jssm | |
jsx | |
julia | |
kotlin | |
latex | |
latte | |
less | |
liquid | |
lisp | |
livescript | |
logiql | |
logiql_test | |
logtalk | |
lsl | |
lua | |
luapage | |
lucene | |
makefile | |
markdown | |
mask | |
matching_brace_outdent | |
matching_parens_outdent | |
matlab | |
maze | |
mediawiki | |
mel | |
mips | |
mixal | |
mushcode | |
mysql | |
nginx | |
nim | |
nix | |
nsis | |
nunjucks | |
objectivec | |
ocaml | |
odin | |
odin_test | |
partiql | |
pascal | |
perl | |
pgsql | |
php | |
php_completions | |
php_laravel_blade | |
php_test | |
pig | |
plain_text | |
plain_text_test | |
plsql | |
powershell | |
praat | |
prisma | |
prolog | |
properties | |
protobuf | |
puppet | |
python | |
python_test | |
qml | |
r | |
raku | |
razor | |
razor_completions | |
rdoc | |
red | |
redshift | |
rhtml | |
robot | |
rst | |
ruby | |
ruby_test | |
rust | |
sac | |
sass | |
scad | |
scala | |
scheme | |
scrypt | |
scss | |
sh | |
sjs | |
slim | |
smarty | |
smithy | |
snippets | |
soy_template | |
space | |
sparql | |
sql | |
sqlserver | |
stylus | |
svg | |
swift | |
tcl | |
terraform | |
tex | |
text | |
text_test | |
textile | |
toml | |
tsx | |
turtle | |
twig | |
typescript | |
vala | |
vbscript | |
vbscript_test | |
velocity | |
verilog | |
vhdl | |
visualforce | |
wollok | |
xml | |
xml_test | |
yaml | |
zeek |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"bsl": "1c enterprise", "os": "1c enterprise", "2da": "2-dimensional array", "4dm": "4d", "abap": "abap", "asddls": "abap cds", "abnf": "abnf", "asc": "public key", "ash": "ags script", "aidl": "aidl", "al": "perl", "ampl": "ampl", "mod": "xml", "g4": "antlr", "apib": "api blueprint", "apl": "apl", "dyalog": "apl", "asl": "asl", "dsl": "asl", "asn": "asn.1", "asn1": "asn.1", "asax": "asp.net", "ascx": "asp.net", "ashx": "asp.net", "asmx": "asp.net", "aspx": "asp.net", "axd": "asp.net", "dats": "ats", "hats": "ats", "sats": "ats", "as": "angelscript", "adb": "ada", "ada": "ada", "ads": "ada", "txt": "vim help file", "afm": "adobe font metrics", "agda": "agda", "als": "alloy", "OutJob": "altium designer", "PcbDoc": "altium designer", "PrjPCB": "altium designer", "SchDoc": "altium designer", "angelscript": "angelscript", "antlers.html": "antlers", "antlers.php": "antlers", "antlers.xml": "antlers", "apacheconf": "apacheconf", "vhost": "nginx", "cls": "visual basic 6.0", "agc": "apollo guidance computer", "applescript": "applescript", "scpt": "applescript", "arc": "arc", "asciidoc": "asciidoc", "adoc": "asciidoc", "aj": "aspectj", "asm": "motorola 68k assembly", "a51": "assembly", "i": "swig", "inc": "sourcepawn", "nas": "nasal", "nasm": "assembly", "astro": "astro", "asy": "ltspice symbol", "aug": "augeas", "ahk": "autohotkey", "ahkl": "autohotkey", "au3": "autoit", "avdl": "avro idl", "awk": "awk", "auk": "awk", "gawk": "awk", "mawk": "awk", "nawk": "awk", "bas": "vba", "bal": "ballerina", "bat": "batchfile", "cmd": "batchfile", "bf": "hyphy", "befunge": "befunge", "be": "berry", "bib": "bibtex", "bibtex": "bibtex", "bicep": "bicep", "bs": "brighterscript", "bison": "bison", "bb": "clojure", "blade": "blade", "blade.php": "blade", "decls": "blitzbasic", "bmx": "blitzmax", "bsv": "bluespec", "boo": "boo", "bpl": "boogie", "b": "limbo", "brs": "brightscript", "c": "c_cpp", "cats": "c_cpp", "h": "objective-c", "idc": "c_cpp", "cs": "smalltalk", "cake": "coffeescript", "csx": "csharp", "linq": "csharp", "cpp": "c_cpp", "c++": "c_cpp", "cc": "c_cpp", "cp": "component pascal", "cppm": "c_cpp", "cxx": "c_cpp", "h++": "c_cpp", "hh": "hack", "hpp": "c_cpp", "hxx": "c_cpp", "inl": "c_cpp", "ino": "c_cpp", "ipp": "c_cpp", "ixx": "c_cpp", "re": "reason", "tcc": "c_cpp", "tpp": "c_cpp", "c-objdump": "c-objdump", "chs": "c2hs haskell", "cds": "cap cds", "cil": "cil", "clp": "clips", "cmake": "cmake", "cmake.in": "cmake", "cob": "cobol", "cbl": "cobol", "ccp": "cobol", "cobol": "cobol", "cpy": "cobol", "dae": "collada", "cson": "cson", "css": "css", "csv": "csv", "cue": "cue sheet", "w": "openedge abl", "cabal": "cabal config", "cdc": "cadence", "cairo": "cairo", "mligo": "cameligo", "capnp": "cap'n proto", "mss": "cartocss", "ceylon": "ceylon", "chpl": "chapel", "ch": "xbase", "crc32": "checksums", "md2": "checksums", "md4": "checksums", "md5": "checksums", "sha1": "checksums", "sha2": "checksums", "sha224": "checksums", "sha256": "checksums", "sha256sum": "checksums", "sha3": "checksums", "sha384": "checksums", "sha512": "checksums", "ck": "chuck", "circom": "circom", "cirru": "cirru", "clw": "clarion", "clar": "clarity", "asp": "classic asp", "icl": "clean", "dcl": "clean", "click": "click", "clj": "clojure", "boot": "clojure", "cl2": "clojure", "cljc": "clojure", "cljs": "clojure", "cljs.hl": "clojure", "cljscm": "clojure", "cljx": "clojure", "hic": "clojure", "soy": "closure templates", "conllu": "conll-u", "conll": "conll-u", "ql": "codeql", "qll": "codeql", "coffee": "coffeescript", "_coffee": "coffeescript", "cjsx": "coffeescript", "iced": "coffeescript", "cfm": "coldfusion", "cfml": "coldfusion", "cfc": "coldfusion cfc", "lisp": "newlisp", "asd": "common lisp", "cl": "opencl", "l": "roff", "lsp": "newlisp", "ny": "common lisp", "podsl": "common lisp", "sexp": "common lisp", "cwl": "common workflow language", "cps": "component pascal", "coq": "coq", "v": "verilog", "cppobjdump": "cpp-objdump", "c++-objdump": "cpp-objdump", "c++objdump": "cpp-objdump", "cpp-objdump": "cpp-objdump", "cxx-objdump": "cpp-objdump", "creole": "creole", "cr": "crystal", "orc": "csound", "udo": "csound", "csd": "csound document", "sco": "csound score", "cu": "cuda", "cuh": "cuda", "curry": "curry", "cy": "cycript", "cyp": "cypher", "cypher": "cypher", "pyx": "cython", "pxd": "cython", "pxi": "cython", "d": "makefile", "di": "d", "d-objdump": "d-objdump", "com": "digital command language", "dm": "dm", "zone": "dns zone", "arpa": "dns zone", "dfy": "dafny", "darcspatch": "darcs patch", "dpatch": "darcs patch", "dart": "dart", "dwl": "dataweave", "dsc": "denizenscript", "dhall": "dhall", "diff": "diff", "patch": "diff", "x": "rpc", "dockerfile": "dockerfile", "djs": "dogescript", "env": "dotenv", "dylan": "dylan", "dyl": "dylan", "intr": "dylan", "lid": "dylan", "e": "euphoria", "eml": "e-mail", "mbox": "e-mail", "ebnf": "ebnf", "ecl": "eclipse", "eclxml": "ecl", "ejs": "ejs", "ect": "ejs", "ejs.t": "ejs", "jst": "ejs", "eq": "eq", "sch": "xml", "brd": "kicad legacy layout", "eb": "easybuild", "epj": "ecere projects", "html": "html", "editorconfig": "editorconfig", "edc": "edje data collection", "ex": "euphoria", "exs": "elixir", "elm": "elm", "elv": "elvish", "el": "emacs lisp", "emacs": "emacs lisp", "emacs.desktop": "emacs lisp", "em": "emberscript", "emberscript": "emberscript", "erl": "erlang", "app": "erlang", "app.src": "erlang", "es": "javascript", "escript": "erlang", "hrl": "erlang", "xrl": "erlang", "yrl": "erlang", "fs": "glsl", "fsi": "fsharp", "fsx": "fsharp", "fst": "f*", "fsti": "f*", "flf": "figlet font", "fx": "hlsl", "flux": "flux", "factor": "factor", "fy": "fancy", "fancypack": "fancy", "fan": "fantom", "dsp": "microsoft developer studio project", "fnl": "fennel", "f": "fortran", "ftl": "freemarker", "for": "fortran", "eam.fs": "formatted", "fth": "forth", "4th": "forth", "forth": "forth", "fr": "text", "frt": "forth", "f77": "fortran", "fpp": "fortran", "f90": "fortran", "f03": "fortran", "f08": "fortran", "f95": "fortran", "bi": "freebasic", "fut": "futhark", "g": "gap", "cnc": "g-code", "gco": "g-code", "gcode": "g-code", "gaml": "gaml", "gms": "gams", "gap": "gap", "gd": "gdscript", "gi": "gap", "tst": "scilab", "md": "markdown", "gdb": "gdb", "gdbinit": "gdb", "ged": "gedcom", "glsl": "glsl", "fp": "glsl", "frag": "javascript", "frg": "glsl", "fsh": "glsl", "fshader": "glsl", "geo": "glsl", "geom": "glsl", "glslf": "glsl", "glslv": "glsl", "gs": "javascript", "gshader": "glsl", "rchit": "glsl", "rmiss": "glsl", "shader": "shaderlab", "tesc": "glsl", "tese": "glsl", "vert": "glsl", "vrx": "glsl", "vsh": "glsl", "vshader": "glsl", "gn": "gn", "gni": "gn", "gsc": "gsc", "csc": "gsc", "gsh": "gsc", "gml": "xml", "gmi": "gemini", "4gl": "genero", "per": "genero forms", "kid": "genshi", "ebuild": "gentoo ebuild", "eclass": "gentoo eclass", "gbr": "gerber image", "cmp": "gerber image", "gbl": "gerber image", "gbo": "gerber image", "gbp": "gerber image", "gbs": "gerber image", "gko": "gerber image", "gpb": "gerber image", "gpt": "gerber image", "gtl": "gerber image", "gto": "gerber image", "gtp": "gerber image", "gts": "gerber image", "ncl": "xml", "sol": "solidity", "po": "gettext catalog", "pot": "gettext catalog", "feature": "gherkin", "story": "gherkin", "gitconfig": "git config", "gleam": "gleam", "glf": "glyph", "bdf": "glyph bitmap distribution format", "gp": "gnuplot", "gnu": "gnuplot", "gnuplot": "gnuplot", "p": "openedge abl", "plot": "gnuplot", "plt": "prolog", "go": "go", "gdnlib": "godot resource", "gdns": "godot resource", "tres": "godot resource", "tscn": "godot resource", "golo": "golo", "gst": "xml", "gsx": "gosu", "vark": "gosu", "grace": "grace", "gradle": "groovy", "gf": "grammatical framework", "graphql": "graphql", "gql": "graphql", "graphqls": "graphql", "dot": "graphviz (dot)", "gv": "graphviz (dot)", "groovy": "groovy", "grt": "groovy", "gtpl": "groovy", "gvy": "groovy", "gsp": "groovy server pages", "cfg": "ini", "hcl": "hcl", "nomad": "hcl", "tf": "hcl", "tfvars": "hcl", "workflow": "xml", "hlsl": "hlsl", "cginc": "hlsl", "fxh": "hlsl", "hlsli": "hlsl", "hocon": "hocon", "hta": "html", "htm": "html", "html.hl": "html", "xht": "html", "xhtml": "html", "ecr": "html+ecr", "eex": "html+eex", "html.heex": "html+eex", "html.leex": "html+eex", "erb": "html+erb", "erb.deface": "html+erb", "rhtml": "html+erb", "phtml": "html+php", "cshtml": "html+razor", "razor": "html+razor", "http": "http", "hxml": "hxml", "hack": "hack", "hhi": "hack", "php": "php", "haml": "haml", "haml.deface": "haml", "handlebars": "handlebars", "hbs": "handlebars", "hb": "harbour", "hs": "haskell", "hs-boot": "haskell", "hsc": "haskell", "hx": "haxe", "hxsl": "haxe", "q": "q", "hql": "hiveql", "hc": "holyc", "hy": "hy", "pro": "qmake", "dlm": "idl", "ipf": "igor pro", "ini": "ini", "cnf": "ini", "dof": "ini", "lektorproject": "ini", "prefs": "ini", "properties": "java properties", "url": "ini", "irclog": "irc log", "weechatlog": "irc log", "idr": "idris", "lidr": "idris", "gitignore": "ignore list", "ijm": "imagej macro", "imba": "imba", "ni": "inform 7", "i7x": "inform 7", "ink": "ink", "iss": "inno setup", "isl": "inno setup", "io": "io", "ik": "ioke", "thy": "isabelle", "ijs": "j", "jcl": "jcl", "flex": "jflex", "jflex": "jflex", "json": "oasv3-json", "4DForm": "json", "4DProject": "json", "avsc": "json", "geojson": "json", "gltf": "json", "har": "json", "ice": "slice", "JSON-tmLanguage": "json", "jsonl": "json", "mcmeta": "json", "tfstate": "json", "tfstate.backup": "json", "topojson": "json", "webapp": "json", "webmanifest": "json", "yy": "yacc", "yyp": "json", "jsonc": "json", "code-snippets": "json", "sublime-build": "json", "sublime-commands": "json", "sublime-completions": "json", "sublime-keymap": "json", "sublime-macro": "json", "sublime-menu": "json", "sublime-mousemap": "json", "sublime-project": "json", "sublime-settings": "json", "sublime-theme": "json", "sublime-workspace": "json", "sublime_metrics": "json", "sublime_session": "json", "json5": "json5", "jsonld": "jsonld", "jq": "jq", "janet": "janet", "j": "objective-j", "java": "java", "jav": "java", "jsh": "java", "jsp": "java server pages", "tag": "java server pages", "js": "javascript", "_js": "javascript", "bones": "javascript", "cjs": "javascript", "es6": "javascript", "jake": "javascript", "javascript": "javascript", "jsb": "javascript", "jscad": "javascript", "jsfl": "javascript", "jslib": "javascript", "jsm": "javascript", "jspre": "javascript", "jss": "javascript", "jsx": "javascript", "mjs": "javascript", "njs": "javascript", "pac": "javascript", "sjs": "javascript", "ssjs": "javascript", "xsjs": "javascript", "xsjslib": "javascript", "js.erb": "javascript+erb", "snap": "jest snapshot", "mps": "jetbrains mps", "mpl": "jetbrains mps", "msd": "jetbrains mps", "jinja": "jinja", "j2": "jinja", "jinja2": "jinja", "jison": "jison", "jisonlex": "jison lex", "ol": "jolie", "iol": "jolie", "jsonnet": "jsonnet", "libsonnet": "jsonnet", "jl": "julia", "ipynb": "jupyter notebook", "krl": "krl", "ksy": "kaitai struct", "kak": "kakounescript", "ks": "kickstart", "kicad_pcb": "kicad layout", "kicad_mod": "kicad layout", "kicad_wks": "kicad layout", "kicad_sch": "kicad schematic", "kit": "kit", "kt": "kotlin", "ktm": "kotlin", "kts": "kotlin", "csl": "xml", "kql": "kusto", "lfe": "lfe", "ll": "llvm", "lol": "lolcode", "lsl": "lsl", "lslp": "lsl", "lvproj": "labview", "lvclass": "labview", "lvlib": "labview", "lark": "lark", "lasso": "lasso", "las": "lasso", "lasso8": "lasso", "lasso9": "lasso", "latte": "latte", "lean": "lean", "hlean": "lean", "less": "less", "lex": "lex", "ligo": "ligolang", "ly": "lilypond", "ily": "lilypond", "m": "objective-c", "ld": "linker script", "lds": "linker script", "liquid": "liquid", "lagda": "literate agda", "litcoffee": "literate coffeescript", "coffee.md": "literate coffeescript", "lhs": "literate haskell", "ls": "loomscript", "_ls": "livescript", "xm": "logos", "xi": "logos", "lgt": "logtalk", "logtalk": "logtalk", "lookml": "lookml", "model.lkml": "lookml", "view.lkml": "lookml", "lua": "lua", "fcgi": "bash", "nse": "lua", "p8": "lua", "pd_lua": "lua", "rbxs": "lua", "rockspec": "lua", "wlua": "lua", "mumps": "m", "m4": "m4sugar", "mc": "win32 message file", "matlab": "matlab", "ms": "unix assembly", "mcr": "maxscript", "mlir": "mlir", "mq4": "mql4", "mqh": "mql5", "mq5": "mql5", "mtml": "mtml", "muf": "muf", "m2": "macaulay2", "mak": "makefile", "make": "makefile", "makefile": "makefile", "mk": "makefile", "mkfile": "makefile", "mako": "mako", "mao": "mako", "livemd": "markdown", "markdown": "markdown", "mdown": "markdown", "mdwn": "markdown", "mdx": "markdown", "mkd": "markdown", "mkdn": "markdown", "mkdown": "markdown", "ronn": "markdown", "scd": "supercollider", "workbook": "markdown", "marko": "marko", "mask": "unity3d asset", "mathematica": "mathematica", "cdf": "mathematica", "ma": "mathematica", "mt": "mathematica", "nb": "text", "nbp": "mathematica", "wl": "mathematica", "wlt": "mathematica", "maxpat": "max", "maxhelp": "max", "maxproj": "max", "mxt": "max", "pat": "max", "moo": "moocode", "mmd": "mermaid", "mermaid": "mermaid", "metal": "metal", "sln": "microsoft visual studio solution", "minid": "minid", "yaml": "yaml", "yml": "yaml", "mint": "mint", "druby": "mirah", "duby": "mirah", "mirah": "mirah", "mo": "motoko", "i3": "modula-3", "ig": "modula-3", "m3": "modula-3", "mg": "modula-3", "mms": "module management system", "mmk": "module management system", "monkey": "monkey", "monkey2": "monkey", "moon": "moonscript", "s": "unix assembly", "x68": "motorola 68k assembly", "move": "move", "muse": "muse", "mustache": "mustache", "myt": "myghty", "nasl": "nasl", "neon": "neon", "nl": "newlisp", "nsi": "nsis", "nsh": "nsis", "nss": "nwscript", "ne": "nearley", "nearley": "nearley", "n": "roff", "axs": "netlinx", "axi": "netlinx", "axs.erb": "netlinx+erb", "axi.erb": "netlinx+erb", "nlogo": "netlogo", "nf": "nextflow", "nginx": "nginx", "nginxconf": "nginx", "nim": "nim", "nim.cfg": "nim", "nimble": "nim", "nimrod": "nim", "nims": "nim", "ninja": "ninja", "nit": "nit", "nix": "nix", "nu": "nu", "numpy": "numpy", "numpyw": "numpy", "numsc": "numpy", "njk": "nunjucks", "ml": "standard ml", "eliom": "ocaml", "eliomi": "ocaml", "ml4": "ocaml", "mli": "ocaml", "mll": "ocaml", "mly": "ocaml", "objdump": "objdump", "odin": "odin", "mm": "xml", "sj": "objective-j", "omgrofl": "omgrofl", "opa": "opa", "opal": "opal", "rego": "open policy agent", "opencl": "opencl", "qasm": "openqasm", "scad": "openscad", "plist": "xml property list", "glyphs": "openstep property list", "fea": "opentype feature file", "org": "org", "ox": "ox", "oxh": "ox", "oxo": "ox", "oxygene": "oxygene", "oz": "oz", "p4": "p4", "pddl": "pddl", "pegjs": "peg.js", "aw": "php", "ctp": "php", "php3": "php", "php4": "php", "php5": "php", "phps": "php", "phpt": "php", "pls": "plsql", "bdy": "plsql", "ddl": "sql", "fnc": "plsql", "pck": "plsql", "pkb": "plsql", "pks": "plsql", "plb": "plsql", "plsql": "plsql", "prc": "sql", "spc": "plsql", "sql": "tsql", "tpb": "plsql", "tps": "plsql", "trg": "plsql", "vw": "plsql", "pgsql": "plpgsql", "pov": "pov-ray sdl", "pan": "pan", "psc": "papyrus", "parrot": "parrot", "pasm": "parrot assembly", "pir": "parrot internal representation", "pas": "pascal", "dfm": "pascal", "dpr": "pascal", "lpr": "pascal", "pascal": "pascal", "pp": "puppet", "pwn": "pawn", "sma": "pawn", "pep": "pep8", "pl": "raku", "cgi": "bash", "perl": "perl", "ph": "perl", "plx": "perl", "pm": "x pixmap", "psgi": "perl", "t": "turing", "pic": "pic", "chem": "pic", "pkl": "pickle", "pig": "piglatin", "pike": "pike", "pmod": "pike", "puml": "plantuml", "iuml": "plantuml", "plantuml": "plantuml", "pod": "pod 6", "pod6": "pod 6", "pogo": "pogoscript", "polar": "polar", "pony": "pony", "por": "portugol", "pcss": "postcss", "postcss": "postcss", "ps": "postscript", "eps": "postscript", "epsi": "postscript", "pfa": "postscript", "pbt": "protocol buffer text format", "sra": "powerbuilder", "sru": "powerbuilder", "srw": "powerbuilder", "ps1": "powershell", "psd1": "powershell", "psm1": "powershell", "prisma": "prisma", "pde": "processing", "prolog": "prolog", "yap": "prolog", "pml": "promela", "spin": "propeller spin", "proto": "protocol buffer", "textproto": "protocol buffer text format", "pbtxt": "protocol buffer text format", "pub": "public key", "jade": "pug", "pug": "pug", "pd": "pure data", "pb": "purebasic", "pbi": "purebasic", "purs": "purescript", "arr": "pyret", "py": "python", "gyp": "python", "gypi": "python", "lmi": "python", "py3": "python", "pyde": "python", "pyi": "python", "pyp": "python", "pyt": "python", "pyw": "python", "rpy": "ren'py", "spec": "ruby", "tac": "python", "wsgi": "python", "xpy": "python", "pytb": "python traceback", "qs": "qt script", "qml": "qml", "qbs": "qml", "pri": "qmake", "r": "rebol", "rd": "r", "rsx": "r", "raml": "raml", "rdoc": "rdoc", "rbbas": "realbasic", "rbfrm": "realbasic", "rbmnu": "realbasic", "rbres": "realbasic", "rbtbar": "realbasic", "rbuistate": "realbasic", "rexx": "rexx", "pprx": "rexx", "rex": "rexx", "qmd": "markdown", "rmd": "markdown", "rpgle": "rpgle", "sqlrpgle": "rpgle", "rnh": "runoff", "rno": "roff", "rkt": "racket", "rktd": "racket", "rktl": "racket", "scrbl": "racket", "rl": "ragel", "6pl": "raku", "6pm": "raku", "nqp": "raku", "p6": "raku", "p6l": "raku", "p6m": "raku", "pl6": "raku", "pm6": "raku", "raku": "raku", "rakumod": "raku", "rsc": "routeros script", "raw": "raw token data", "res": "xml", "rei": "reason", "religo": "reasonligo", "reb": "rebol", "r2": "rebol", "r3": "rebol", "rebol": "rebol", "red": "red", "reds": "red", "cw": "redcode", "regexp": "regular expression", "regex": "regular expression", "rs": "xml", "rsh": "renderscript", "rtf": "rich text format", "ring": "ring", "riot": "riot", "robot": "robotframework", "roff": "roff", "1": "roff manpage", "1in": "roff manpage", "1m": "roff manpage", "1x": "roff manpage", "2": "roff manpage", "3": "roff manpage", "3in": "roff manpage", "3m": "roff manpage", "3p": "roff manpage", "3pm": "roff manpage", "3qt": "roff manpage", "3x": "roff manpage", "4": "roff manpage", "5": "roff manpage", "6": "roff manpage", "7": "roff manpage", "8": "roff manpage", "9": "roff manpage", "man": "roff manpage", "mdoc": "roff manpage", "me": "roff", "nr": "roff", "tmac": "roff", "rg": "rouge", "rb": "ruby", "builder": "ruby", "eye": "ruby", "gemspec": "ruby", "god": "ruby", "jbuilder": "ruby", "mspec": "ruby", "pluginspec": "xml", "podspec": "ruby", "prawn": "ruby", "rabl": "ruby", "rake": "ruby", "rbi": "ruby", "rbuild": "ruby", "rbw": "ruby", "rbx": "ruby", "ru": "ruby", "ruby": "ruby", "thor": "ruby", "watchr": "ruby", "rs.in": "rust", "sas": "sas", "scss": "scss", "te": "selinux policy", "smt2": "smt", "smt": "smt", "sparql": "sparql", "rq": "sparql", "sqf": "sqf", "hqf": "sqf", "cql": "sql", "mysql": "sql", "tab": "sql", "udf": "sql", "viw": "sql", "db2": "sqlpl", "srt": "subrip text", "star": "starlark", "stl": "stl", "ston": "ston", "svg": "svg", "sage": "sage", "sagews": "sage", "sls": "scheme", "sass": "sass", "scala": "scala", "kojo": "scala", "sbt": "scala", "sc": "supercollider", "scaml": "scaml", "scenic": "scenic", "scm": "scheme", "sld": "scheme", "sps": "scheme", "ss": "scheme", "sci": "scilab", "sce": "scilab", "self": "self", "sh": "bash", "bash": "bash", "bats": "bash", "command": "bash", "ksh": "bash", "sh.in": "bash", "tmux": "bash", "tool": "bash", "zsh": "bash", "zsh-theme": "bash", "sh-session": "shellsession", "shen": "shen", "sieve": "sieve", "sfv": "simple file verification", "sl": "slash", "slim": "slim", "cocci": "smpl", "smali": "smali", "st": "stringtemplate", "tpl": "smarty", "smithy": "smithy", "smk": "python", "snakefile": "python", "sp": "sourcepawn", "sfd": "spline font database", "nut": "squirrel", "stan": "stan", "fun": "standard ml", "sig": "standard ml", "sml": "standard ml", "bzl": "starlark", "do": "stata", "ado": "stata", "doh": "stata", "ihlp": "stata", "mata": "stata", "matah": "stata", "sthlp": "stata", "styl": "stylus", "sss": "sugarss", "svelte": "svelte", "sw": "xml", "swift": "swift", "sv": "systemverilog", "svh": "systemverilog", "vh": "systemverilog", "8xp": "ti program", "8xk": "ti program", "8xk.txt": "ti program", "8xp.txt": "ti program", "tla": "tla", "toml": "toml", "tsv": "tsv", "tsx": "xml", "txl": "txl", "talon": "talon", "tcl": "tcl", "adp": "tcl", "sdc": "tcl", "tcl.in": "tcl", "tm": "tcl", "xdc": "tcl", "tcsh": "tcsh", "csh": "tcsh", "tex": "tex", "aux": "tex", "bbx": "tex", "cbx": "tex", "dtx": "tex", "ins": "tex", "lbx": "tex", "ltx": "tex", "mkii": "tex", "mkiv": "tex", "mkvi": "tex", "sty": "tex", "toc": "world of warcraft addon data", "tea": "tea", "texinfo": "texinfo", "texi": "texinfo", "txi": "texinfo", "no": "text", "textile": "textile", "thrift": "thrift", "tu": "turing", "ttl": "turtle", "twig": "twig", "tl": "type language", "ts": "xml", "cts": "typescript", "mts": "typescript", "upc": "unified parallel c", "anim": "unity3d asset", "asset": "unity3d asset", "mat": "unity3d asset", "meta": "unity3d asset", "prefab": "unity3d asset", "unity": "unity3d asset", "uno": "uno", "uc": "unrealscript", "ur": "urweb", "urs": "urweb", "frm": "visual basic 6.0", "vba": "vim script", "vbs": "vbscript", "vcl": "vcl", "vhdl": "vhdl", "vhd": "vhdl", "vhf": "vhdl", "vhi": "vhdl", "vho": "vhdl", "vhs": "vhdl", "vht": "vhdl", "vhw": "vhdl", "vala": "vala", "vapi": "vala", "vdf": "valve data format", "vtl": "velocity template language", "veo": "verilog", "vim": "vim script", "vimrc": "vim script", "vmb": "vim script", "snip": "vim snippet", "snippet": "vim snippet", "snippets": "vim snippet", "vb": "visual basic .net", "vbhtml": "visual basic .net", "ctl": "visual basic 6.0", "Dsr": "visual basic 6.0", "volt": "volt", "vue": "vue", "vy": "vyper", "mtl": "wavefront material", "obj": "wavefront object", "owl": "web ontology language", "wast": "webassembly", "wat": "webassembly", "webidl": "webidl", "vtt": "webvtt", "whiley": "whiley", "mediawiki": "wikitext", "wiki": "wikitext", "wikitext": "wikitext", "reg": "windows registry entries", "ws": "witcher script", "wlk": "wollok", "wren": "wren", "xbm": "x bitmap", "xpm": "x pixmap", "x10": "x10", "xc": "xc", "xml": "xml", "adml": "xml", "admx": "xml", "ant": "xml", "axaml": "xml", "axml": "xml", "builds": "xml", "ccproj": "xml", "ccxml": "xml", "clixml": "xml", "cproject": "xml", "cscfg": "xml", "csdef": "xml", "csproj": "xml", "ct": "xml", "depproj": "xml", "dita": "xml", "ditamap": "xml", "ditaval": "xml", "dll.config": "xml", "dotsettings": "xml", "filters": "xml", "fsproj": "xml", "fxml": "xml", "glade": "xml", "gmx": "xml", "grxml": "xml", "hzp": "xml", "iml": "xml", "ivy": "xml", "jelly": "xml", "jsproj": "xml", "kml": "xml", "launch": "xml", "mdpolicy": "xml", "mjml": "xml", "mxml": "xml", "natvis": "xml", "ndproj": "xml", "nproj": "xml", "nuspec": "xml", "odd": "xml", "osm": "xml", "pkgproj": "xml", "proj": "xml", "props": "xml", "ps1xml": "xml", "psc1": "xml", "pt": "xml", "qhelp": "xml", "rdf": "xml", "resx": "xml", "rss": "xml", "scxml": "xml", "sfproj": "xml", "shproj": "xml", "srdf": "xml", "storyboard": "xml", "sublime-snippet": "xml", "targets": "xml", "tml": "xml", "ui": "xml", "urdf": "xml", "ux": "xml", "vbproj": "xml", "vcxproj": "xml", "vsixmanifest": "xml", "vssettings": "xml", "vstemplate": "xml", "vxml": "xml", "wixproj": "xml", "wsdl": "xml", "wsf": "xml", "wxi": "xml", "wxl": "xml", "wxs": "xml", "x3d": "xml", "xacro": "xml", "xaml": "xml", "xib": "xml", "xlf": "xml", "xliff": "xml", "xmi": "xml", "xml.dist": "xml", "xmp": "xml", "xproj": "xml", "xsd": "xml", "xspec": "xml", "xul": "xml", "zcml": "xml", "stTheme": "xml property list", "tmCommand": "xml property list", "tmLanguage": "xml property list", "tmPreferences": "xml property list", "tmSnippet": "xml property list", "tmTheme": "xml property list", "xsp-config": "xpages", "xsp.metadata": "xpages", "xpl": "xproc", "xproc": "xproc", "xquery": "xquery", "xq": "xquery", "xql": "xquery", "xqm": "xquery", "xqy": "xquery", "xs": "xs", "xslt": "xslt", "xsl": "xslt", "xojo_code": "xojo", "xojo_menu": "xojo", "xojo_report": "xojo", "xojo_script": "xojo", "xojo_toolbar": "xojo", "xojo_window": "xojo", "xsh": "xonsh", "xtend": "xtend", "mir": "yaml", "reek": "yaml", "rviz": "yaml", "sublime-syntax": "yaml", "syntax": "yaml", "yaml-tmlanguage": "yaml", "yaml.sed": "yaml", "yml.mysql": "yaml", "yang": "yang", "yar": "yara", "yara": "yara", "yasnippet": "yasnippet", "y": "yacc", "yacc": "yacc", "yul": "yul", "zap": "zap", "xzap": "zap", "zil": "zil", "mud": "zil", "zeek": "zeek", "bro": "zeek", "zs": "zenscript", "zep": "zephir", "zig": "zig", "zimpl": "zimpl", "zmpl": "zimpl", "zpl": "zimpl", "desktop": "desktop", "desktop.in": "desktop", "service": "desktop", "dircolors": "dircolors", "ec": "ec", "eh": "ec", "edn": "edn", "fish": "fish", "hoon": "hoon", "kv": "kvlang", "mrc": "mirc script", "mcfunction": "mcfunction", "mu": "mupad", "nanorc": "nanorc", "nc": "nesc", "ooc": "ooc", "rst": "restructuredtext", "rest": "restructuredtext", "rest.txt": "restructuredtext", "rst.txt": "restructuredtext", "sed": "sed", "wdl": "wdl", "wisp": "wisp", "prg": "xbase", "prw": "xbase"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import yaml | |
import requests | |
import json | |
url = "https://raw.githubusercontent.com/github-linguist/linguist/master/lib/linguist/languages.yml" | |
response = requests.get(url) | |
content = response.content.decode("utf-8") | |
array = yaml.safe_load(content) | |
with open("ace-modes.txt") as f: | |
modes = [line.strip() for line in f.readlines()] | |
with open("ace-mode-translations.json") as f: | |
translations = json.load(f) | |
has_ext = [(x, array[x]["extensions"]) for x in array.keys() if "extensions" in array[x].keys()] | |
file_associations = {} | |
for lang, exts in has_ext: | |
for ext in exts: | |
llang = lang.lower() | |
if llang in translations.keys(): | |
file_associations[ext[1:]] = translations[llang] | |
else: | |
file_associations[ext[1:]] = llang | |
with open('file_associations.json', 'w') as f: | |
json.dump(file_associations, f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment