Permalink
Browse files

Merge pull request #1452 from adobe/pflynn/file-extensions

Fix #1429 (Only lowercase file extensions are recognized)
  • Loading branch information...
2 parents 0d377cf + db92bb9 commit de1baf5bdac3c3d8aeb1e6f1fbd0213767ad3060 @gruehle gruehle committed Aug 27, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/editor/EditorUtils.js
@@ -43,6 +43,7 @@ define(function (require, exports, module) {
require("thirdparty/CodeMirror2/mode/clojure/clojure");
require("thirdparty/CodeMirror2/mode/perl/perl");
require("thirdparty/CodeMirror2/mode/ruby/ruby");
+ require("thirdparty/CodeMirror2/mode/lua/lua");
require("thirdparty/CodeMirror2/mode/mysql/mysql");
require("thirdparty/CodeMirror2/mode/diff/diff");
require("thirdparty/CodeMirror2/mode/markdown/markdown");
@@ -62,6 +63,9 @@ define(function (require, exports, module) {
if (ext.charAt(0) === ".") {
ext = ext.substr(1);
}
+
+ // Make checks below case-INsensitive
+ ext = ext.toLowerCase();
switch (ext) {
@@ -85,6 +89,8 @@ define(function (require, exports, module) {
return "htmlmixed";
case "xml":
+ case "wxs": // Wix XML extensions - used in Brackets installer
+ case "wxl":
return "xml";
case "php":
@@ -129,6 +135,9 @@ define(function (require, exports, module) {
case "rb":
return "ruby";
+
+ case "lua":
+ return "lua";
case "sql":
return "mysql";

0 comments on commit de1baf5

Please sign in to comment.