rename all language mode classes to 'Mode'.

This commit is contained in:
Fabian Jakobs 2010-12-10 18:07:06 +01:00
commit cbb6215145
18 changed files with 80 additions and 119 deletions

View file

@ -38,17 +38,17 @@
define(function(require, exports, module) {
var oop = require("pilot/oop").oop;
var TextMode = require("./text").Text;
var TextMode = require("./text").Mode;
var Tokenizer = require("../tokenizer").Tokenizer;
var PythonHighlightRules = require("./python_highlight_rules").PythonHighlightRules;
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
var Range = require("../range").Range;
var Python = function() {
var Mode = function() {
this.$tokenizer = new Tokenizer(new PythonHighlightRules().getRules());
this.$outdent = new MatchingBraceOutdent();
};
oop.inherits(Python, TextMode);
oop.inherits(Mode, TextMode);
(function() {
@ -110,7 +110,7 @@ oop.inherits(Python, TextMode);
return this.$outdent.autoOutdent(doc, row);
};
}).call(Python.prototype);
}).call(Mode.prototype);
exports.Python = Python;
exports.Mode = Mode;
});