big-moving.ru/api/soft/ajaxorg/lib/ace/mode/apex.js

32 lines
769 B
JavaScript
Raw Normal View History

2022-06-24 15:29:23 +05:00
/* caption: Apex; extensions: apex,cls,trigger,tgr */
define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextMode = require("../mode/text").Mode;
var ApexHighlightRules = require("./apex_highlight_rules").ApexHighlightRules;
var FoldMode = require("../mode/folding/cstyle").FoldMode;
var CstyleBehaviour = require("../mode/behaviour/cstyle").CstyleBehaviour;
function ApexMode() {
TextMode.call(this);
this.HighlightRules = ApexHighlightRules;
this.foldingRules = new FoldMode();
this.$behaviour = new CstyleBehaviour();
}
oop.inherits(ApexMode, TextMode);
ApexMode.prototype.lineCommentStart = "//";
ApexMode.prototype.blockComment = {
start: "/*",
end: "*/"
};
exports.Mode = ApexMode;
});