2023-01-16 22:26:34 +00:00
|
|
|
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
|
2020-04-14 12:14:48 +00:00
|
|
|
var oop = require("../lib/oop");
|
|
|
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
2023-01-16 22:26:34 +00:00
|
|
|
var DocCommentHighlightRules = function () {
|
2020-04-14 12:14:48 +00:00
|
|
|
this.$rules = {
|
2023-01-16 22:26:34 +00:00
|
|
|
"start": [{
|
|
|
|
token: "comment.doc.tag",
|
|
|
|
regex: "@[\\w\\d_]+" // TODO: fix email addresses
|
|
|
|
},
|
|
|
|
DocCommentHighlightRules.getTagRule(),
|
|
|
|
{
|
|
|
|
defaultToken: "comment.doc",
|
|
|
|
caseInsensitive: true
|
|
|
|
}]
|
2020-04-14 12:14:48 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
oop.inherits(DocCommentHighlightRules, TextHighlightRules);
|
2023-01-16 22:26:34 +00:00
|
|
|
DocCommentHighlightRules.getTagRule = function (start) {
|
2020-04-14 12:14:48 +00:00
|
|
|
return {
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "comment.doc.tag.storage.type",
|
|
|
|
regex: "\\b(?:TODO|FIXME|XXX|HACK)\\b"
|
2020-04-14 12:14:48 +00:00
|
|
|
};
|
|
|
|
};
|
2023-01-16 22:26:34 +00:00
|
|
|
DocCommentHighlightRules.getStartRule = function (start) {
|
2020-04-14 12:14:48 +00:00
|
|
|
return {
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "comment.doc",
|
|
|
|
regex: "\\/\\*(?=\\*)",
|
|
|
|
next: start
|
2020-04-14 12:14:48 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
DocCommentHighlightRules.getEndRule = function (start) {
|
|
|
|
return {
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "comment.doc",
|
|
|
|
regex: "\\*\\/",
|
|
|
|
next: start
|
2020-04-14 12:14:48 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
exports.DocCommentHighlightRules = DocCommentHighlightRules;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2023-01-16 22:26:34 +00:00
|
|
|
ace.define("ace/mode/apex_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/doc_comment_highlight_rules"], function(require, exports, module){"use strict";
|
2020-04-14 12:14:48 +00:00
|
|
|
var oop = require("../lib/oop");
|
|
|
|
var TextHighlightRules = require("../mode/text_highlight_rules").TextHighlightRules;
|
|
|
|
var DocCommentHighlightRules = require("../mode/doc_comment_highlight_rules").DocCommentHighlightRules;
|
2023-01-16 22:26:34 +00:00
|
|
|
var ApexHighlightRules = function () {
|
2020-04-14 12:14:48 +00:00
|
|
|
var mainKeywordMapper = this.createKeywordMapper({
|
|
|
|
"variable.language": "activate|any|autonomous|begin|bigdecimal|byte|cast|char|collect|const"
|
2023-01-16 22:26:34 +00:00
|
|
|
+ "|end|exit|export|float|goto|group|having|hint|import|inner|into|join|loop|number|object|of|outer"
|
|
|
|
+ "|parallel|pragma|retrieve|returning|search|short|stat|synchronized|then|this_month"
|
|
|
|
+ "|transaction|type|when",
|
2020-04-14 12:14:48 +00:00
|
|
|
"keyword": "private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final"
|
2023-01-16 22:26:34 +00:00
|
|
|
+ "|and|array|as|asc|break|bulk|by|catch|class|commit|continue|convertcurrency"
|
|
|
|
+ "|delete|desc|do|else|enum|extends|false|final|finally|for|from|future|global"
|
|
|
|
+ "|if|implements|in|insert|instanceof|interface|last_90_days|last_month"
|
|
|
|
+ "|last_n_days|last_week|like|limit|list|map|merge|new|next_90_days|next_month|next_n_days"
|
|
|
|
+ "|next_week|not|null|nulls|on|or|override|package|return"
|
|
|
|
+ "|rollback|savepoint|select|set|sort|super|testmethod|this|this_week|throw|today"
|
|
|
|
+ "|tolabel|tomorrow|trigger|true|try|undelete|update|upsert|using|virtual|webservice"
|
|
|
|
+ "|where|while|yesterday|switch|case|default",
|
|
|
|
"storage.type": "def|boolean|byte|char|short|int|float|pblob|date|datetime|decimal|double|id|integer|long|string|time|void|blob|Object",
|
|
|
|
"constant.language": "true|false|null|after|before|count|excludes|first|includes|last|order|sharing|with",
|
|
|
|
"support.function": "system|apex|label|apexpages|userinfo|schema"
|
2020-04-14 12:14:48 +00:00
|
|
|
}, "identifier", true);
|
|
|
|
function keywordMapper(value) {
|
2023-01-16 22:26:34 +00:00
|
|
|
if (value.slice(-3) == "__c")
|
|
|
|
return "support.function";
|
2020-04-14 12:14:48 +00:00
|
|
|
return mainKeywordMapper(value);
|
|
|
|
}
|
|
|
|
function string(start, options) {
|
|
|
|
return {
|
|
|
|
regex: start + (options.multiline ? "" : "(?=.)"),
|
|
|
|
token: "string.start",
|
|
|
|
next: [{
|
2023-01-16 22:26:34 +00:00
|
|
|
regex: options.escape,
|
|
|
|
token: "character.escape"
|
|
|
|
}, {
|
|
|
|
regex: options.error,
|
|
|
|
token: "error.invalid"
|
|
|
|
}, {
|
|
|
|
regex: start + (options.multiline ? "" : "|$"),
|
|
|
|
token: "string.end",
|
|
|
|
next: options.next || "start"
|
|
|
|
}, {
|
|
|
|
defaultToken: "string"
|
|
|
|
}]
|
2020-04-14 12:14:48 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
function comments() {
|
|
|
|
return [{
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "comment",
|
|
|
|
regex: "\\/\\/(?=.)",
|
|
|
|
next: [
|
2020-04-14 12:14:48 +00:00
|
|
|
DocCommentHighlightRules.getTagRule(),
|
2023-01-16 22:26:34 +00:00
|
|
|
{ token: "comment", regex: "$|^", next: "start" },
|
|
|
|
{ defaultToken: "comment", caseInsensitive: true }
|
2020-04-14 12:14:48 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
DocCommentHighlightRules.getStartRule("doc-start"),
|
|
|
|
{
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "comment",
|
|
|
|
regex: /\/\*/,
|
|
|
|
next: [
|
2020-04-14 12:14:48 +00:00
|
|
|
DocCommentHighlightRules.getTagRule(),
|
2023-01-16 22:26:34 +00:00
|
|
|
{ token: "comment", regex: "\\*\\/", next: "start" },
|
|
|
|
{ defaultToken: "comment", caseInsensitive: true }
|
2020-04-14 12:14:48 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
this.$rules = {
|
|
|
|
start: [
|
|
|
|
string("'", {
|
|
|
|
escape: /\\[nb'"\\]/,
|
|
|
|
error: /\\./,
|
|
|
|
multiline: false
|
|
|
|
}),
|
|
|
|
comments("c"),
|
|
|
|
{
|
|
|
|
type: "decoration",
|
|
|
|
token: [
|
|
|
|
"meta.package.apex",
|
|
|
|
"keyword.other.package.apex",
|
|
|
|
"meta.package.apex",
|
|
|
|
"storage.modifier.package.apex",
|
|
|
|
"meta.package.apex",
|
|
|
|
"punctuation.terminator.apex"
|
|
|
|
],
|
|
|
|
regex: /^(\s*)(package)\b(?:(\s*)([^ ;$]+)(\s*)((?:;)?))?/
|
|
|
|
}, {
|
2023-01-16 22:26:34 +00:00
|
|
|
regex: /@[a-zA-Z_$][a-zA-Z_$\d\u0080-\ufffe]*/,
|
|
|
|
token: "constant.language"
|
2020-04-14 12:14:48 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
regex: /[a-zA-Z_$][a-zA-Z_$\d\u0080-\ufffe]*/,
|
|
|
|
token: keywordMapper
|
2023-01-16 22:26:34 +00:00
|
|
|
},
|
2020-04-14 12:14:48 +00:00
|
|
|
{
|
|
|
|
regex: "`#%",
|
|
|
|
token: "error.invalid"
|
|
|
|
}, {
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "constant.numeric",
|
|
|
|
regex: /[+-]?\d+(?:(?:\.\d*)?(?:[LlDdEe][+-]?\d+)?)\b|\.\d+[LlDdEe]/
|
2020-04-14 12:14:48 +00:00
|
|
|
}, {
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "keyword.operator",
|
|
|
|
regex: /--|\+\+|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|[!$%&*+\-~\/^]=?/,
|
|
|
|
next: "start"
|
2020-04-14 12:14:48 +00:00
|
|
|
}, {
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "punctuation.operator",
|
|
|
|
regex: /[?:,;.]/,
|
|
|
|
next: "start"
|
2020-04-14 12:14:48 +00:00
|
|
|
}, {
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "paren.lparen",
|
|
|
|
regex: /[\[]/,
|
|
|
|
next: "maybe_soql",
|
|
|
|
merge: false
|
2020-04-14 12:14:48 +00:00
|
|
|
}, {
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "paren.lparen",
|
|
|
|
regex: /[\[({]/,
|
|
|
|
next: "start",
|
|
|
|
merge: false
|
2020-04-14 12:14:48 +00:00
|
|
|
}, {
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "paren.rparen",
|
|
|
|
regex: /[\])}]/,
|
|
|
|
merge: false
|
|
|
|
}
|
|
|
|
],
|
2020-04-14 12:14:48 +00:00
|
|
|
maybe_soql: [{
|
2023-01-16 22:26:34 +00:00
|
|
|
regex: /\s+/,
|
|
|
|
token: "text"
|
|
|
|
}, {
|
|
|
|
regex: /(SELECT|FIND)\b/,
|
|
|
|
token: "keyword",
|
|
|
|
caseInsensitive: true,
|
|
|
|
next: "soql"
|
|
|
|
}, {
|
|
|
|
regex: "",
|
|
|
|
token: "none",
|
|
|
|
next: "start"
|
|
|
|
}],
|
2020-04-14 12:14:48 +00:00
|
|
|
soql: [{
|
2023-01-16 22:26:34 +00:00
|
|
|
regex: "(:?ASC|BY|CATEGORY|CUBE|DATA|DESC|END|FIND|FIRST|FOR|FROM|GROUP|HAVING|IN|LAST"
|
|
|
|
+ "|LIMIT|NETWORK|NULLS|OFFSET|ORDER|REFERENCE|RETURNING|ROLLUP|SCOPE|SELECT"
|
|
|
|
+ "|SNIPPET|TRACKING|TYPEOF|UPDATE|USING|VIEW|VIEWSTAT|WHERE|WITH|AND|OR)\\b",
|
|
|
|
token: "keyword",
|
|
|
|
caseInsensitive: true
|
|
|
|
}, {
|
|
|
|
regex: "(:?target_length|toLabel|convertCurrency|count|Contact|Account|User|FIELDS)\\b",
|
|
|
|
token: "support.function",
|
|
|
|
caseInsensitive: true
|
|
|
|
}, {
|
|
|
|
token: "paren.rparen",
|
|
|
|
regex: /[\]]/,
|
|
|
|
next: "start",
|
|
|
|
merge: false
|
|
|
|
},
|
|
|
|
string("'", {
|
|
|
|
escape: /\\[nb'"\\]/,
|
|
|
|
error: /\\./,
|
|
|
|
multiline: false,
|
|
|
|
next: "soql"
|
|
|
|
}),
|
|
|
|
string('"', {
|
|
|
|
escape: /\\[nb'"\\]/,
|
|
|
|
error: /\\./,
|
|
|
|
multiline: false,
|
|
|
|
next: "soql"
|
|
|
|
}),
|
|
|
|
{
|
|
|
|
regex: /\\./,
|
|
|
|
token: "character.escape"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
regex: /[\?\&\|\!\{\}\[\]\(\)\^\~\*\:\"\'\+\-\,\.=\\\/]/,
|
|
|
|
token: "keyword.operator"
|
|
|
|
}],
|
|
|
|
"log-start": [{
|
|
|
|
token: "timestamp.invisible",
|
|
|
|
regex: /^[\d:.() ]+\|/,
|
|
|
|
next: "log-header"
|
|
|
|
}, {
|
|
|
|
token: "timestamp.invisible",
|
|
|
|
regex: /^ (Number of|Maximum)[^:]*:/,
|
|
|
|
next: "log-comment"
|
|
|
|
}, {
|
|
|
|
token: "invisible",
|
|
|
|
regex: /^Execute Anonymous:/,
|
|
|
|
next: "log-comment"
|
|
|
|
}, {
|
|
|
|
defaultToken: "text"
|
|
|
|
}],
|
2020-04-14 12:14:48 +00:00
|
|
|
"log-comment": [{
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "log-comment",
|
|
|
|
regex: /.*$/,
|
|
|
|
next: "log-start"
|
|
|
|
}],
|
2020-04-14 12:14:48 +00:00
|
|
|
"log-header": [{
|
2023-01-16 22:26:34 +00:00
|
|
|
token: "timestamp.invisible",
|
|
|
|
regex: /((USER_DEBUG|\[\d+\]|DEBUG)\|)+/
|
|
|
|
},
|
|
|
|
{
|
|
|
|
token: "keyword",
|
|
|
|
regex: "(?:EXECUTION_FINISHED|EXECUTION_STARTED|CODE_UNIT_STARTED"
|
|
|
|
+ "|CUMULATIVE_LIMIT_USAGE|LIMIT_USAGE_FOR_NS"
|
|
|
|
+ "|CUMULATIVE_LIMIT_USAGE_END|CODE_UNIT_FINISHED)"
|
|
|
|
}, {
|
|
|
|
regex: "",
|
|
|
|
next: "log-start"
|
|
|
|
}]
|
2020-04-14 12:14:48 +00:00
|
|
|
};
|
2023-01-16 22:26:34 +00:00
|
|
|
this.embedRules(DocCommentHighlightRules, "doc-", [DocCommentHighlightRules.getEndRule("start")]);
|
2020-04-14 12:14:48 +00:00
|
|
|
this.normalizeRules();
|
|
|
|
};
|
|
|
|
oop.inherits(ApexHighlightRules, TextHighlightRules);
|
|
|
|
exports.ApexHighlightRules = ApexHighlightRules;
|
|
|
|
|
2023-01-16 22:26:34 +00:00
|
|
|
});
|
2020-04-14 12:14:48 +00:00
|
|
|
|
2023-01-16 22:26:34 +00:00
|
|
|
ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
|
2020-04-14 12:14:48 +00:00
|
|
|
var oop = require("../../lib/oop");
|
|
|
|
var Range = require("../../range").Range;
|
|
|
|
var BaseFoldMode = require("./fold_mode").FoldMode;
|
2023-01-16 22:26:34 +00:00
|
|
|
var FoldMode = exports.FoldMode = function (commentRegex) {
|
2020-04-14 12:14:48 +00:00
|
|
|
if (commentRegex) {
|
2023-01-16 22:26:34 +00:00
|
|
|
this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
|
|
|
|
this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
|
2020-04-14 12:14:48 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
oop.inherits(FoldMode, BaseFoldMode);
|
2023-01-16 22:26:34 +00:00
|
|
|
(function () {
|
2020-04-14 12:14:48 +00:00
|
|
|
this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
|
|
|
|
this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
|
2023-01-16 22:26:34 +00:00
|
|
|
this.singleLineBlockCommentRe = /^\s*(\/\*).*\*\/\s*$/;
|
2020-04-14 12:14:48 +00:00
|
|
|
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
|
|
|
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
|
|
|
this._getFoldWidgetBase = this.getFoldWidget;
|
2023-01-16 22:26:34 +00:00
|
|
|
this.getFoldWidget = function (session, foldStyle, row) {
|
2020-04-14 12:14:48 +00:00
|
|
|
var line = session.getLine(row);
|
|
|
|
if (this.singleLineBlockCommentRe.test(line)) {
|
|
|
|
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
|
|
|
if (!fw && this.startRegionRe.test(line))
|
|
|
|
return "start"; // lineCommentRegionStart
|
|
|
|
return fw;
|
|
|
|
};
|
2023-01-16 22:26:34 +00:00
|
|
|
this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
|
2020-04-14 12:14:48 +00:00
|
|
|
var line = session.getLine(row);
|
|
|
|
if (this.startRegionRe.test(line))
|
|
|
|
return this.getCommentRegionBlock(session, line, row);
|
|
|
|
var match = line.match(this.foldingStartMarker);
|
|
|
|
if (match) {
|
|
|
|
var i = match.index;
|
|
|
|
if (match[1])
|
|
|
|
return this.openingBracketBlock(session, match[1], row, i);
|
|
|
|
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
|
|
|
if (range && !range.isMultiLine()) {
|
|
|
|
if (forceMultiline) {
|
|
|
|
range = this.getSectionRange(session, row);
|
2023-01-16 22:26:34 +00:00
|
|
|
}
|
|
|
|
else if (foldStyle != "all")
|
2020-04-14 12:14:48 +00:00
|
|
|
range = null;
|
|
|
|
}
|
|
|
|
return range;
|
|
|
|
}
|
|
|
|
if (foldStyle === "markbegin")
|
|
|
|
return;
|
|
|
|
var match = line.match(this.foldingStopMarker);
|
|
|
|
if (match) {
|
|
|
|
var i = match.index + match[0].length;
|
|
|
|
if (match[1])
|
|
|
|
return this.closingBracketBlock(session, match[1], row, i);
|
|
|
|
return session.getCommentFoldRange(row, i, -1);
|
|
|
|
}
|
|
|
|
};
|
2023-01-16 22:26:34 +00:00
|
|
|
this.getSectionRange = function (session, row) {
|
2020-04-14 12:14:48 +00:00
|
|
|
var line = session.getLine(row);
|
|
|
|
var startIndent = line.search(/\S/);
|
|
|
|
var startRow = row;
|
|
|
|
var startColumn = line.length;
|
|
|
|
row = row + 1;
|
|
|
|
var endRow = row;
|
|
|
|
var maxRow = session.getLength();
|
|
|
|
while (++row < maxRow) {
|
|
|
|
line = session.getLine(row);
|
|
|
|
var indent = line.search(/\S/);
|
|
|
|
if (indent === -1)
|
|
|
|
continue;
|
2023-01-16 22:26:34 +00:00
|
|
|
if (startIndent > indent)
|
2020-04-14 12:14:48 +00:00
|
|
|
break;
|
|
|
|
var subRange = this.getFoldWidgetRange(session, "all", row);
|
|
|
|
if (subRange) {
|
|
|
|
if (subRange.start.row <= startRow) {
|
|
|
|
break;
|
2023-01-16 22:26:34 +00:00
|
|
|
}
|
|
|
|
else if (subRange.isMultiLine()) {
|
2020-04-14 12:14:48 +00:00
|
|
|
row = subRange.end.row;
|
2023-01-16 22:26:34 +00:00
|
|
|
}
|
|
|
|
else if (startIndent == indent) {
|
2020-04-14 12:14:48 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
endRow = row;
|
|
|
|
}
|
|
|
|
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
|
|
|
};
|
2023-01-16 22:26:34 +00:00
|
|
|
this.getCommentRegionBlock = function (session, line, row) {
|
2020-04-14 12:14:48 +00:00
|
|
|
var startColumn = line.search(/\s*$/);
|
|
|
|
var maxRow = session.getLength();
|
|
|
|
var startRow = row;
|
|
|
|
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
|
|
|
var depth = 1;
|
|
|
|
while (++row < maxRow) {
|
|
|
|
line = session.getLine(row);
|
|
|
|
var m = re.exec(line);
|
2023-01-16 22:26:34 +00:00
|
|
|
if (!m)
|
|
|
|
continue;
|
|
|
|
if (m[1])
|
|
|
|
depth--;
|
|
|
|
else
|
|
|
|
depth++;
|
|
|
|
if (!depth)
|
|
|
|
break;
|
2020-04-14 12:14:48 +00:00
|
|
|
}
|
|
|
|
var endRow = row;
|
|
|
|
if (endRow > startRow) {
|
|
|
|
return new Range(startRow, startColumn, endRow, line.length);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}).call(FoldMode.prototype);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2023-01-16 22:26:34 +00:00
|
|
|
ace.define("ace/mode/apex",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/apex_highlight_rules","ace/mode/folding/cstyle","ace/mode/behaviour/cstyle"], function(require, exports, module){/* caption: Apex; extensions: apex,cls,trigger,tgr */
|
2020-04-14 12:14:48 +00:00
|
|
|
"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;
|
|
|
|
|
|
|
|
}); (function() {
|
|
|
|
ace.require(["ace/mode/apex"], function(m) {
|
|
|
|
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
|
|
module.exports = m;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})();
|
|
|
|
|