lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/textile.js in gollum-3.1.2 vs lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/textile.js in gollum-3.1.3
- old
+ new
@@ -31,21 +31,21 @@
define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
-var Tokenizer = require("../tokenizer").Tokenizer;
var TextileHighlightRules = require("./textile_highlight_rules").TextileHighlightRules;
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
var Mode = function() {
- this.$tokenizer = new Tokenizer(new TextileHighlightRules().getRules());
+ this.HighlightRules = TextileHighlightRules;
this.$outdent = new MatchingBraceOutdent();
};
oop.inherits(Mode, TextMode);
(function() {
+ this.type = "text";
this.getNextLineIndent = function(state, line, tab) {
if (state == "intag")
return tab;
return "";
@@ -57,9 +57,10 @@
this.autoOutdent = function(state, doc, row) {
this.$outdent.autoOutdent(doc, row);
};
+ this.$id = "ace/mode/textile";
}).call(Mode.prototype);
exports.Mode = Mode;
});