mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 20:04:58 -05:00
30 lines
720 B
JavaScript
30 lines
720 B
JavaScript
|
/* global define */
|
||
|
|
||
|
define(function(require, exports, module) {
|
||
|
"use strict";
|
||
|
|
||
|
var oop = require("../lib/oop");
|
||
|
var HtmlMode = require("./html").Mode;
|
||
|
var Tokenizer = require("../tokenizer").Tokenizer;
|
||
|
var HandlebarsHighlightRules = require("./handlebars_highlight_rules").HandlebarsHighlightRules;
|
||
|
var HtmlBehaviour = require("./behaviour/html").HtmlBehaviour;
|
||
|
var HtmlFoldMode = require("./folding/html").FoldMode;
|
||
|
|
||
|
var Mode = function() {
|
||
|
HtmlMode.call(this);
|
||
|
this.HighlightRules = HandlebarsHighlightRules;
|
||
|
this.$behaviour = new HtmlBehaviour();
|
||
|
|
||
|
|
||
|
this.foldingRules = new HtmlFoldMode();
|
||
|
};
|
||
|
|
||
|
oop.inherits(Mode, HtmlMode);
|
||
|
|
||
|
(function() {
|
||
|
|
||
|
}).call(Mode.prototype);
|
||
|
|
||
|
exports.Mode = Mode;
|
||
|
});
|