convert python mode to exports style and add it to the demo

This commit is contained in:
Fabian Jakobs 2010-12-10 17:11:43 +01:00
commit a4fcd3fd89
5 changed files with 41 additions and 13 deletions

View file

@ -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;
});