Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit e013ca4

Browse files
committed
Add some more common binary types: Node native extensions, Flash, EOT
webfonts, MS Office files, SQLite db files
1 parent e9ad8a0 commit e013ca4

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/language/LanguageManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ define(function (require, exports, module) {
467467

468468
/**
469469
* Adds one or more file extensions to this language.
470-
* @param {!string|Array.<string>>} extension A file extension (or array thereof) used by this language
470+
* @param {!string|Array.<string>} extension A file extension (or array thereof) used by this language
471471
*/
472472
Language.prototype.addFileExtension = function (extension) {
473473
if (Array.isArray(extension)) {

src/language/languages.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,9 @@
243243

244244
"binary": {
245245
"name": "Other Binary",
246-
"fileExtensions": ["svgz", "jsz", "zip", "gz", "htmz", "htmlz", "rar", "tar", "exe", "bin", "dll", "pdb", "lib", "obj", "so", "a", "dylib",
247-
"pdf", "psd", "ai", "tif", "tiff", "mpg", "mpeg", "avi", "flv", "mp4", "ttf", "otf", "woff"],
246+
"fileExtensions": ["svgz", "jsz", "zip", "gz", "htmz", "htmlz", "rar", "tar", "exe", "bin", "dll", "pdb", "lib", "obj", "o", "so", "a", "dylib", "node",
247+
"pdf", "psd", "ai", "tif", "tiff", "mpg", "mpeg", "avi", "flv", "mp4", "swf", "ttf", "otf", "woff", "eot",
248+
"doc", "docx", "xls", "xlsx", "ppt", "pptx", "sqlite"],
248249
"isBinary": true
249250
}
250251
}

0 commit comments

Comments
 (0)