feat: added more languages (#227)

* Update languages.json

* Update languages.json

* Update languages.json

* Update languages.json

* Update languages.json

* Update languages.json

* Update languages.json

* Update languages.json

* Update Activity.ts

* Update languages.json

* Update languages.json

* Update languages.json

* Update languages.json

* Update languages.json

* Convert spaces to tabs
This commit is contained in:
Smokie 2019-04-11 17:46:25 +01:00 committed by Crawl
parent fcecfbc1d0
commit 9b01d3c793
2 changed files with 141 additions and 6 deletions

View file

@ -4,11 +4,16 @@
"asp", "asp",
"assembly", "assembly",
"ahk", "ahk",
"applescript",
"appveyor",
"autoit", "autoit",
"babel",
"bower", "bower",
"brainfuck", "brainfuck",
"gemfile", "gemfile",
"c", "c",
"circleci",
"cargo",
"cpp", "cpp",
"csharp", "csharp",
"cshtml", "cshtml",
@ -30,11 +35,14 @@
"elm", "elm",
"erlang", "erlang",
"elixir", "elixir",
"eslint",
"env",
"fsharp", "fsharp",
"git", "git",
"go", "go",
"gradle", "gradle",
"graphql", "graphql",
"gulp",
"handlebars", "handlebars",
"haskell", "haskell",
"html", "html",
@ -42,6 +50,7 @@
"ini", "ini",
"pug", "pug",
"jar", "jar",
"jest",
"java", "java",
"julia", "julia",
"js", "js",
@ -49,9 +58,11 @@
"json", "json",
"kotlin", "kotlin",
"lisp", "lisp",
"log",
"lua", "lua",
"makefile", "makefile",
"markdown", "markdown",
"markdownx",
"marko", "marko",
"nim", "nim",
"nix", "nix",
@ -64,6 +75,7 @@
"powershell", "powershell",
"purescript", "purescript",
"python", "python",
"postcss",
"r", "r",
"reasonml", "reasonml",
"ruby", "ruby",
@ -79,6 +91,8 @@
"tsx", "tsx",
"twig", "twig",
"text", "text",
"travis",
"typescript-def",
"vb", "vb",
"vba", "vba",
"vbhtml", "vbhtml",
@ -90,7 +104,8 @@
"yaml", "yaml",
"yarn", "yarn",
"bat", "bat",
"wasm" "wasm",
"webpack"
], ],
"knownExtentions": { "knownExtentions": {
".swf": { ".swf": {
@ -105,6 +120,15 @@
".swc": { ".swc": {
"image": "as" "image": "as"
}, },
"/(\\.)?angular(-cli)?\\.json/i": {
"image": "angular"
},
"/angular.(component|guard|service|pipe|filter|directive|resolver).(ts|js)/i": {
"image": "angular"
},
"androidmanifest.xml": {
"image": "android"
},
".asp": { ".asp": {
"image": "asp" "image": "asp"
}, },
@ -144,6 +168,9 @@
".d-objdump": { ".d-objdump": {
"image": "assembly" "image": "assembly"
}, },
"/gruntfile\\.(js|coffee)/i": {
"image": "gruntfile"
},
"/\\.gcode|\\.gco/i": { "/\\.gcode|\\.gco/i": {
"image": "assembly" "image": "assembly"
}, },
@ -165,6 +192,9 @@
".ahkl": { ".ahkl": {
"image": "ahk" "image": "ahk"
}, },
".applescript": {
"image": "applescript"
},
".au3": { ".au3": {
"image": "autoit" "image": "autoit"
}, },
@ -195,15 +225,30 @@
".cats": { ".cats": {
"image": "cpp" "image": "cpp"
}, },
"/(cargo.toml|cargo.lock)/i": {
"image": "cargo"
},
"circle.yml": {
"image": "circleci"
},
"/\\.codeclimate\\.(yml|json)/i": {
"image": "codeclimate"
},
".idc": { ".idc": {
"image": "cpp" "image": "cpp"
}, },
".w": { ".w": {
"image": "cpp" "image": "cpp"
}, },
"/webpack(\\.dev|\\.development|\\.prod|\\.production)?\\.config\\.js/i": {
"image": "webpack"
},
".nc": { ".nc": {
"image": "cpp" "image": "cpp"
}, },
".npmrc": {
"image": "npm"
},
".upc": { ".upc": {
"image": "cpp" "image": "cpp"
}, },
@ -258,15 +303,24 @@
".litcoffee": { ".litcoffee": {
"image": "coffee" "image": "coffee"
}, },
".ls": {
"image": "livescript"
},
".iced": { ".iced": {
"image": "coffee" "image": "coffee"
}, },
"/\\.e?cr$/i": { "/\\.e?cr$/i": {
"image": "crystal" "image": "crystal"
}, },
".css.map": {
"image": "cssmap"
},
".css": { ".css": {
"image": "css" "image": "css"
}, },
".cu": {
"image": "cuda"
},
".less": { ".less": {
"image": "less" "image": "less"
}, },
@ -300,24 +354,48 @@
".cson": { ".cson": {
"image": "manifest" "image": "manifest"
}, },
"/(\\.firebaserc|firebase\\.json)/i": {
"image": "firebase"
},
".json5": { ".json5": {
"image": "manifest" "image": "manifest"
}, },
".http": { ".http": {
"image": "manifest" "image": "http"
}, },
".ndjson": { ".ndjson": {
"image": "manifest" "image": "manifest"
}, },
"nodemon.json": {
"image": "nodemon"
},
".fea": { ".fea": {
"image": "manifest" "image": "manifest"
}, },
".flowconfig": {
"image": "flowconfig"
},
".json.eex": { ".json.eex": {
"image": "manifest" "image": "manifest"
}, },
"prisma.yml": {
"image": "prisma"
},
".prettierignore": {
"image": "prettier"
},
"/\\.prettier((rc)|(\\.(toml|yml|yaml|json|js))?$){2}/i": {
"image": "prettier"
},
"prettier.config.js": {
"image": "prettier"
},
".proto": { ".proto": {
"image": "manifest" "image": "manifest"
}, },
"/^procfile/i": {
"image": "heroku"
},
".pytb": { ".pytb": {
"image": "manifest" "image": "manifest"
}, },
@ -327,9 +405,15 @@
"/\\.pot?$/i": { "/\\.pot?$/i": {
"image": "manifest" "image": "manifest"
}, },
".pcss": {
"image": "postcss"
},
".ejson": { ".ejson": {
"image": "manifest" "image": "manifest"
}, },
".editorconfig": {
"image": "editorconfig"
},
".edn": { ".edn": {
"image": "manifest" "image": "manifest"
}, },
@ -348,6 +432,12 @@
".ttl": { ".ttl": {
"image": "manifest" "image": "manifest"
}, },
".travis.yml": {
"image": "travis"
},
".rest": {
"image": "http"
},
".rviz": { ".rviz": {
"image": "manifest" "image": "manifest"
}, },
@ -378,6 +468,9 @@
"/\\.git[\\/\\\\](.*[\\/\\\\])?(HEAD|ORIG_HEAD|packed-refs|logs[\\/\\\\](.+[\\/\\\\])?[^\\/\\\\]+)$/": { "/\\.git[\\/\\\\](.*[\\/\\\\])?(HEAD|ORIG_HEAD|packed-refs|logs[\\/\\\\](.+[\\/\\\\])?[^\\/\\\\]+)$/": {
"image": "manifest" "image": "manifest"
}, },
"/gatsby-(browser|node|ssr|config)\\.js/i": {
"image": "gatsbyjs"
},
".dfm": { ".dfm": {
"image": "delphi" "image": "delphi"
}, },
@ -414,6 +507,9 @@
".app.src": { ".app.src": {
"image": "erlang" "image": "erlang"
}, },
"/(\\.)?appveyor\\.yml/i": {
"image": "appveyor"
},
"/^Emakefile$/": { "/^Emakefile$/": {
"image": "erlang" "image": "erlang"
}, },
@ -453,9 +549,15 @@
"gradlew": { "gradlew": {
"image": "gradle" "image": "gradle"
}, },
".gql": {
"image": "graphql"
},
".graphql": { ".graphql": {
"image": "graphql" "image": "graphql"
}, },
"gulpfile.js": {
"image": "gulp"
},
"/\\.(hbs|handlebars|(mu)?stache)$/i": { "/\\.(hbs|handlebars|(mu)?stache)$/i": {
"image": "handlebars" "image": "handlebars"
}, },
@ -492,9 +594,18 @@
".java": { ".java": {
"image": "java" "image": "java"
}, },
".jil": { "/\\.(jil|jl)/i": {
"image": "julia" "image": "julia"
}, },
"babel.config.js": {
"image": "babel"
},
"jest.config.js": {
"image": "jest"
},
".js.map": {
"image": "jsmap"
},
".js": { ".js": {
"image": "js" "image": "js"
}, },
@ -504,6 +615,9 @@
".es": { ".es": {
"image": "js" "image": "js"
}, },
".env": {
"image": "env"
},
".mjs": { ".mjs": {
"image": "js" "image": "js"
}, },
@ -543,6 +657,9 @@
".sexp": { ".sexp": {
"image": "lisp" "image": "lisp"
}, },
".log": {
"image": "log"
},
".lua": { ".lua": {
"image": "lua" "image": "lua"
}, },
@ -588,6 +705,9 @@
"/\\.(md|mdown|markdown|mkd|mkdown|mdwn|mkdn|rmd|ron|pmd)$/i": { "/\\.(md|mdown|markdown|mkd|mkdown|mdwn|mkdn|rmd|ron|pmd)$/i": {
"image": "markdown" "image": "markdown"
}, },
".mdx": {
"image": "markdownx"
},
".nim": { ".nim": {
"image": "nim" "image": "nim"
}, },
@ -618,6 +738,9 @@
".eliomi": { ".eliomi": {
"image": "ocaml" "image": "ocaml"
}, },
"/\\.(eslintrc|eslintignore)/i": {
"image": "eslint"
},
".ml4": { ".ml4": {
"image": "ocaml" "image": "ocaml"
}, },
@ -702,6 +825,9 @@
".inc": { ".inc": {
"image": "pawn" "image": "pawn"
}, },
".ino": {
"image": "arduino"
},
".pwn": { ".pwn": {
"image": "pawn" "image": "pawn"
}, },
@ -906,12 +1032,18 @@
".texi": { ".texi": {
"image": "tex" "image": "tex"
}, },
"heroku.yml": {
"image": "heroku"
},
"/^hyphen(ex)?\\.(cs|den|det|fr|sv|us)$/": { "/^hyphen(ex)?\\.(cs|den|det|fr|sv|us)$/": {
"image": "tex" "image": "tex"
}, },
".toml": { ".toml": {
"image": "toml" "image": "toml"
}, },
"/.*\\.d\\.ts/i": {
"image": "typescript-def"
},
".ts": { ".ts": {
"image": "ts" "image": "ts"
}, },
@ -946,10 +1078,10 @@
"image": "vba" "image": "vba"
}, },
".vbhtml": { ".vbhtml": {
"image": "vbhtml" "image": "vb"
}, },
".vbproj": { ".vbproj": {
"image": "vbproj" "image": "vb"
}, },
".vcxproj": { ".vcxproj": {
"image": "vcxproj" "image": "vcxproj"
@ -972,6 +1104,9 @@
".yarnrc": { ".yarnrc": {
"image": "yarn" "image": "yarn"
}, },
"/\\.babelrc/i": {
"image": "babel"
},
".bat": { ".bat": {
"image": "bat" "image": "bat"
}, },

View file

@ -64,7 +64,7 @@ export default class Activity implements Disposable {
this._lastKnownFile = window.activeTextEditor.document.fileName; this._lastKnownFile = window.activeTextEditor.document.fileName;
const filename = basename(window.activeTextEditor.document.fileName); const filename = basename(window.activeTextEditor.document.fileName);
largeImageKey = knownExtentions[Object.keys(knownExtentions).find(key => { largeImageKey = knownExtentions[Object.keys(knownExtentions).find(key => {
if (key.startsWith('.') && filename.endsWith(key)) return true; if (filename.endsWith(key)) return true;
const match = key.match(/^\/(.*)\/([mgiy]+)$/); const match = key.match(/^\/(.*)\/([mgiy]+)$/);
if (!match) return false; if (!match) return false;
const regex = new RegExp(match[1], match[2]); const regex = new RegExp(match[1], match[2]);