Temporary fix. I proposed the same change to the official repo.
@@ -15,6 +15,8 @@ var Mode = function() {
oop.inherits(Mode, TextMode);
(function() {
+ this.type = "text";
+
this.lineCommentStart = "%";
}).call(Mode.prototype);