mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
a3894ac9b4
Upgrade Ace to v1.4.4 GitOrigin-RevId: 26681bcf255537f8eb09fa0ac1c98009cf964496
33 lines
No EOL
976 B
JavaScript
33 lines
No EOL
976 B
JavaScript
ace.define("ace/mode/plain_text",[], function(require, exports, module) {
|
|
"use strict";
|
|
|
|
var oop = require("../lib/oop");
|
|
var TextMode = require("./text").Mode;
|
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
var Behaviour = require("./behaviour").Behaviour;
|
|
|
|
var Mode = function() {
|
|
this.HighlightRules = TextHighlightRules;
|
|
this.$behaviour = new Behaviour();
|
|
};
|
|
|
|
oop.inherits(Mode, TextMode);
|
|
|
|
(function() {
|
|
this.type = "text";
|
|
this.getNextLineIndent = function(state, line, tab) {
|
|
return '';
|
|
};
|
|
this.$id = "ace/mode/plain_text";
|
|
}).call(Mode.prototype);
|
|
|
|
exports.Mode = Mode;
|
|
});
|
|
(function() {
|
|
ace.require(["ace/mode/plain_text"], function(m) {
|
|
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
module.exports = m;
|
|
}
|
|
});
|
|
})();
|
|
|