convert python mode to exports style and add it to the demo
This commit is contained in:
parent
f7c217d7a4
commit
a4fcd3fd89
5 changed files with 41 additions and 13 deletions
|
|
@ -37,12 +37,12 @@
|
|||
|
||||
define(function(require, exports, module) {
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextMode = require("./text");
|
||||
var Tokenizer = require("../tokenizer");
|
||||
var PythonHighlightRules = require("./python_highlight_rules");
|
||||
var MatchingBraceOutdent = require("./matching_brace_outdent");
|
||||
var Range = require("../range");
|
||||
var oop = require("pilot/oop").oop;
|
||||
var TextMode = require("./text").Text;
|
||||
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() {
|
||||
this.$tokenizer = new Tokenizer(new PythonHighlightRules().getRules());
|
||||
|
|
@ -112,5 +112,5 @@ oop.inherits(Python, TextMode);
|
|||
|
||||
}).call(Python.prototype);
|
||||
|
||||
return Python;
|
||||
exports.Python = Python;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue