rename all language mode classes to 'Mode'.
This commit is contained in:
parent
5224b0cf97
commit
cbb6215145
18 changed files with 80 additions and 119 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue