123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- define("ace/mode/abap_highlight_rules",["ace_require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(ace_require, exports, module) {
- "use strict";
- var oop = ace_require("../lib/oop");
- var TextHighlightRules = ace_require("./text_highlight_rules").TextHighlightRules;
- var AbapHighlightRules = function() {
- var keywordMapper = this.createKeywordMapper({
- "variable.language": "this",
- "keyword":
- "ADD ALIAS ALIASES ASCENDING ASSERT ASSIGN ASSIGNING AT BACK" +
- " CALL CASE CATCH CHECK CLASS CLEAR CLOSE CNT COLLECT COMMIT COMMUNICATION COMPUTE CONCATENATE CONDENSE CONSTANTS CONTINUE CONTROLS CONVERT CREATE CURRENCY" +
- " DATA DEFINE DEFINITION DEFERRED DELETE DESCENDING DESCRIBE DETAIL DIVIDE DO" +
- " ELSE ELSEIF ENDAT ENDCASE ENDCLASS ENDDO ENDEXEC ENDFORM ENDFUNCTION ENDIF ENDIFEND ENDINTERFACE ENDLOOP ENDMETHOD ENDMODULE ENDON ENDPROVIDE ENDSELECT ENDTRY ENDWHILE EVENT EVENTS EXEC EXIT EXPORT EXPORTING EXTRACT" +
- " FETCH FIELDS FORM FORMAT FREE FROM FUNCTION" +
- " GENERATE GET" +
- " HIDE" +
- " IF IMPORT IMPORTING INDEX INFOTYPES INITIALIZATION INTERFACE INTERFACES INPUT INSERT IMPLEMENTATION" +
- " LEAVE LIKE LINE LOAD LOCAL LOOP" +
- " MESSAGE METHOD METHODS MODIFY MODULE MOVE MULTIPLY" +
- " ON OVERLAY OPTIONAL OTHERS" +
- " PACK PARAMETERS PERFORM POSITION PROGRAM PROVIDE PUT" +
- " RAISE RANGES READ RECEIVE RECEIVING REDEFINITION REFERENCE REFRESH REJECT REPLACE REPORT RESERVE RESTORE RETURN RETURNING ROLLBACK" +
- " SCAN SCROLL SEARCH SELECT SET SHIFT SKIP SORT SORTED SPLIT STANDARD STATICS STEP STOP SUBMIT SUBTRACT SUM SUMMARY SUPPRESS" +
- " TABLES TIMES TRANSFER TRANSLATE TRY TYPE TYPES" +
- " UNASSIGN ULINE UNPACK UPDATE" +
- " WHEN WHILE WINDOW WRITE" +
- " OCCURS STRUCTURE OBJECT PROPERTY" +
- " CASTING APPEND RAISING VALUE COLOR" +
- " CHANGING EXCEPTION EXCEPTIONS DEFAULT CHECKBOX COMMENT" +
- " ID NUMBER FOR TITLE OUTPUT" +
- " WITH EXIT USING" +
- " INTO WHERE GROUP BY HAVING ORDER BY SINGLE" +
- " APPENDING CORRESPONDING FIELDS OF TABLE" +
- " LEFT RIGHT OUTER INNER JOIN AS CLIENT SPECIFIED BYPASSING BUFFER UP TO ROWS CONNECTING" +
- " EQ NE LT LE GT GE NOT AND OR XOR IN LIKE BETWEEN",
- "constant.language":
- "TRUE FALSE NULL SPACE",
- "support.type":
- "c n i p f d t x string xstring decfloat16 decfloat34",
- "keyword.operator":
- "abs sign ceil floor trunc frac acos asin atan cos sin tan" +
- " abapOperator cosh sinh tanh exp log log10 sqrt" +
- " strlen xstrlen charlen numofchar dbmaxlen lines"
- }, "text", true, " ");
- var compoundKeywords = "WITH\\W+(?:HEADER\\W+LINE|FRAME|KEY)|NO\\W+STANDARD\\W+PAGE\\W+HEADING|"+
- "EXIT\\W+FROM\\W+STEP\\W+LOOP|BEGIN\\W+OF\\W+(?:BLOCK|LINE)|BEGIN\\W+OF|"+
- "END\\W+OF\\W+(?:BLOCK|LINE)|END\\W+OF|NO\\W+INTERVALS|"+
- "RESPECTING\\W+BLANKS|SEPARATED\\W+BY|USING\\W+(?:EDIT\\W+MASK)|"+
- "WHERE\\W+(?:LINE)|RADIOBUTTON\\W+GROUP|REF\\W+TO|"+
- "(?:PUBLIC|PRIVATE|PROTECTED)(?:\\W+SECTION)?|DELETING\\W+(?:TRAILING|LEADING)"+
- "(?:ALL\\W+OCCURRENCES)|(?:FIRST|LAST)\\W+OCCURRENCE|INHERITING\\W+FROM|"+
- "LINE-COUNT|ADD-CORRESPONDING|AUTHORITY-CHECK|BREAK-POINT|CLASS-DATA|CLASS-METHODS|"+
- "CLASS-METHOD|DIVIDE-CORRESPONDING|EDITOR-CALL|END-OF-DEFINITION|END-OF-PAGE|END-OF-SELECTION|"+
- "FIELD-GROUPS|FIELD-SYMBOLS|FUNCTION-POOL|MOVE-CORRESPONDING|MULTIPLY-CORRESPONDING|NEW-LINE|"+
- "NEW-PAGE|NEW-SECTION|PRINT-CONTROL|RP-PROVIDE-FROM-LAST|SELECT-OPTIONS|SELECTION-SCREEN|"+
- "START-OF-SELECTION|SUBTRACT-CORRESPONDING|SYNTAX-CHECK|SYNTAX-TRACE|TOP-OF-PAGE|TYPE-POOL|"+
- "TYPE-POOLS|LINE-SIZE|LINE-COUNT|MESSAGE-ID|DISPLAY-MODE|READ(?:-ONLY)?|"+
- "IS\\W+(?:NOT\\W+)?(?:ASSIGNED|BOUND|INITIAL|SUPPLIED)";
-
- this.$rules = {
- "start" : [
- {token : "string", regex : "`", next : "string"},
- {token : "string", regex : "'", next : "qstring"},
- {token : "doc.comment", regex : /^\*.+/},
- {token : "comment", regex : /".+$/},
- {token : "invalid", regex: "\\.{2,}"},
- {token : "keyword.operator", regex: /\W[\-+%=<>*]\W|\*\*|[~:,\.&$]|->*?|=>/},
- {token : "paren.lparen", regex : "[\\[({]"},
- {token : "paren.rparen", regex : "[\\])}]"},
- {token : "constant.numeric", regex: "[+-]?\\d+\\b"},
- {token : "variable.parameter", regex : /sy|pa?\d\d\d\d\|t\d\d\d\.|innnn/},
- {token : "keyword", regex : compoundKeywords},
- {token : "variable.parameter", regex : /\w+-\w[\-\w]*/},
- {token : keywordMapper, regex : "\\b\\w+\\b"},
- {caseInsensitive: true}
- ],
- "qstring" : [
- {token : "constant.language.escape", regex : "''"},
- {token : "string", regex : "'", next : "start"},
- {defaultToken : "string"}
- ],
- "string" : [
- {token : "constant.language.escape", regex : "``"},
- {token : "string", regex : "`", next : "start"},
- {defaultToken : "string"}
- ]
- };
- };
- oop.inherits(AbapHighlightRules, TextHighlightRules);
- exports.AbapHighlightRules = AbapHighlightRules;
- });
- define("ace/mode/folding/coffee",["ace_require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(ace_require, exports, module) {
- "use strict";
- var oop = ace_require("../../lib/oop");
- var BaseFoldMode = ace_require("./fold_mode").FoldMode;
- var Range = ace_require("../../range").Range;
- var FoldMode = exports.FoldMode = function() {};
- oop.inherits(FoldMode, BaseFoldMode);
- (function() {
- this.getFoldWidgetRange = function(session, foldStyle, row) {
- var range = this.indentationBlock(session, row);
- if (range)
- return range;
- var re = /\S/;
- var line = session.getLine(row);
- var startLevel = line.search(re);
- if (startLevel == -1 || line[startLevel] != "#")
- return;
- var startColumn = line.length;
- var maxRow = session.getLength();
- var startRow = row;
- var endRow = row;
- while (++row < maxRow) {
- line = session.getLine(row);
- var level = line.search(re);
- if (level == -1)
- continue;
- if (line[level] != "#")
- break;
- endRow = row;
- }
- if (endRow > startRow) {
- var endColumn = session.getLine(endRow).length;
- return new Range(startRow, startColumn, endRow, endColumn);
- }
- };
- this.getFoldWidget = function(session, foldStyle, row) {
- var line = session.getLine(row);
- var indent = line.search(/\S/);
- var next = session.getLine(row + 1);
- var prev = session.getLine(row - 1);
- var prevIndent = prev.search(/\S/);
- var nextIndent = next.search(/\S/);
- if (indent == -1) {
- session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
- return "";
- }
- if (prevIndent == -1) {
- if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
- session.foldWidgets[row - 1] = "";
- session.foldWidgets[row + 1] = "";
- return "start";
- }
- } else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
- if (session.getLine(row - 2).search(/\S/) == -1) {
- session.foldWidgets[row - 1] = "start";
- session.foldWidgets[row + 1] = "";
- return "";
- }
- }
- if (prevIndent!= -1 && prevIndent < indent)
- session.foldWidgets[row - 1] = "start";
- else
- session.foldWidgets[row - 1] = "";
- if (indent < nextIndent)
- return "start";
- else
- return "";
- };
- }).call(FoldMode.prototype);
- });
- define("ace/mode/abap",["ace_require","exports","module","ace/mode/abap_highlight_rules","ace/mode/folding/coffee","ace/range","ace/mode/text","ace/lib/oop"], function(ace_require, exports, module) {
- "use strict";
- var Rules = ace_require("./abap_highlight_rules").AbapHighlightRules;
- var FoldMode = ace_require("./folding/coffee").FoldMode;
- var Range = ace_require("../range").Range;
- var TextMode = ace_require("./text").Mode;
- var oop = ace_require("../lib/oop");
- function Mode() {
- this.HighlightRules = Rules;
- this.foldingRules = new FoldMode();
- }
- oop.inherits(Mode, TextMode);
- (function() {
-
- this.lineCommentStart = '"';
-
- this.getNextLineIndent = function(state, line, tab) {
- var indent = this.$getIndent(line);
- return indent;
- };
-
- this.$id = "ace/mode/abap";
- }).call(Mode.prototype);
- exports.Mode = Mode;
- }); (function() {
- window.ace_require(["ace/mode/abap"], function(m) {
- if (typeof module == "object" && typeof exports == "object" && module) {
- module.exports = m;
- }
- });
- })();
-
|