mirror of
https://github.com/atom/atom.git
synced 2026-02-12 07:35:14 -05:00
Loading is now visibly more janky, but I think
d3ba5b8111
fixes a lot of our problems.
I tested this on split-panes-2.0 and a major bug (no input
after resizing) is now gone. Poof.
27 lines
788 B
JavaScript
27 lines
788 B
JavaScript
define(function(require, exports, module) {
|
|
|
|
var oop = require("../lib/oop");
|
|
var JavaScriptMode = require("./javascript").Mode;
|
|
var Tokenizer = require("../tokenizer").Tokenizer;
|
|
var JavaHighlightRules = require("./java_highlight_rules").JavaHighlightRules;
|
|
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
|
var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
|
|
|
|
var Mode = function() {
|
|
this.$tokenizer = new Tokenizer(new JavaHighlightRules().getRules());
|
|
this.$outdent = new MatchingBraceOutdent();
|
|
this.$behaviour = new CstyleBehaviour();
|
|
};
|
|
oop.inherits(Mode, JavaScriptMode);
|
|
|
|
(function() {
|
|
|
|
this.createWorker = function(session) {
|
|
return null;
|
|
};
|
|
|
|
}).call(Mode.prototype);
|
|
|
|
exports.Mode = Mode;
|
|
});
|