diff --git a/src/language/LanguageManager.js b/src/language/LanguageManager.js index 5b06397b57f..97be528f6d2 100644 --- a/src/language/LanguageManager.js +++ b/src/language/LanguageManager.js @@ -770,11 +770,11 @@ define(function (require, exports, module) { _patchCodeMirror(); // Define a custom MIME mode here instead of putting it directly into languages.json - // because JSON files must not contain regular expressions. Also, all other modes so + // because JSON files can't contain regular expressions. Also, all other modes so // far were strings, so we spare us the trouble of allowing more complex mode values. CodeMirror.defineMIME("text/x-brackets-html", { "name": "htmlmixed", - "scriptTypes": [{"matches": /\/x-handlebars-template|\/x-mustache/i, + "scriptTypes": [{"matches": /\/x-handlebars|\/x-mustache|^text\/html$/i, "mode": null}] }); diff --git a/src/language/languages.json b/src/language/languages.json index d1d17992b16..136fb1edeab 100644 --- a/src/language/languages.json +++ b/src/language/languages.json @@ -120,13 +120,6 @@ "lineComment": ["//"] }, - "clike": { - "name": "clike", - "mode": "clike", - "blockComment": ["/*", "*/"], - "lineComment": ["//", "#"] - }, - "java": { "name": "Java", "mode": ["clike", "text/x-java"], @@ -138,7 +131,9 @@ "scala": { "name": "Scala", "mode": ["clike", "text/x-scala"], - "fileExtensions": ["scala", "sbt"] + "fileExtensions": ["scala", "sbt"], + "blockComment": ["/*", "*/"], + "lineComment": ["//"] }, "coffeescript": { @@ -242,5 +237,12 @@ "name": "Audio", "fileExtensions": ["mp3", "wav", "aif", "aiff", "ogg"], "isBinary": true + }, + + "binary": { + "name": "Other Binary", + "fileExtensions": ["svgz", "jsz", "zip", "gz", "htmz", "htmlz", "rar", "tar", "exe", "bin", "dll", "pdb", "lib", "obj", "so", "a", "dylib", + "pdf", "psd", "ai", "tif", "tiff", "mpg", "mpeg", "avi", "flv", "mp4", "ttf", "otf", "woff"], + "isBinary": true } } diff --git a/src/search/FindInFiles.js b/src/search/FindInFiles.js index a40c011f21f..376917419d3 100644 --- a/src/search/FindInFiles.js +++ b/src/search/FindInFiles.js @@ -751,7 +751,9 @@ define(function (require, exports, module) { var inWorkingSet = DocumentManager.getWorkingSet().some(function (wsFile) { return wsFile.fullPath === file.fullPath; }); - return inWorkingSet; + if (!inWorkingSet) { + return false; + } } } // In the initial search, this is passed as a getAllFiles() filter