32 lines
769 B
JavaScript
Executable File
32 lines
769 B
JavaScript
Executable File
/* 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;
|
|
|
|
});
|