mode-cobol-1a5f43ad.js 2.8 KB

1
  1. import{g as s}from"./index-d7fba904.js";function C(r,n){for(var e=0;e<n.length;e++){const o=n[e];if(typeof o!="string"&&!Array.isArray(o)){for(const E in o)if(E!=="default"&&!(E in r)){const t=Object.getOwnPropertyDescriptor(o,E);t&&Object.defineProperty(r,E,t.get?t:{enumerable:!0,get:()=>o[E]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}};(function(r,n){ace.define("ace/mode/cobol_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,o,E){var t=e("../lib/oop"),R=e("./text_highlight_rules").TextHighlightRules,i=function(){var T="ACCEPT|MERGE|SUM|ADD||MESSAGE|TABLE|ADVANCING|MODE|TAPE|AFTER|MULTIPLY|TEST|ALL|NEGATIVE|TEXT|ALPHABET|NEXT|THAN|ALSO|NO|THEN|ALTERNATE|NOT|THROUGH|AND|NUMBER|THRU|ANY|OCCURS|TIME|ARE|OF|TO|AREA|OFF|TOP||ASCENDING|OMITTED|TRUE|ASSIGN|ON|TYPE|AT|OPEN|UNIT|AUTHOR|OR|UNTIL|BEFORE|OTHER|UP|BLANK|OUTPUT|USE|BLOCK|PAGE|USING|BOTTOM|PERFORM|VALUE|BY|PIC|VALUES|CALL|PICTURE|WHEN|CANCEL|PLUS|WITH|CD|POINTER|WRITE|CHARACTER|POSITION||ZERO|CLOSE|POSITIVE|ZEROS|COLUMN|PROCEDURE|ZEROES|COMMA|PROGRAM|COMMON|PROGRAM-ID|COMMUNICATION|QUOTE|COMP|RANDOM|COMPUTE|READ|CONTAINS|RECEIVE|CONFIGURATION|RECORD|CONTINUE|REDEFINES|CONTROL|REFERENCE|COPY|REMAINDER|COUNT|REPLACE|DATA|REPORT|DATE|RESERVE|DAY|RESET|DELETE|RETURN|DESTINATION|REWIND|DISABLE|REWRITE|DISPLAY|RIGHT|DIVIDE|RUN|DOWN|SAME|ELSE|SEARCH|ENABLE|SECTION|END|SELECT|ENVIRONMENT|SENTENCE|EQUAL|SET|ERROR|SIGN|EXIT|SEQUENTIAL|EXTERNAL|SIZE|FLASE|SORT|FILE|SOURCE|LENGTH|SPACE|LESS|STANDARD|LIMIT|START|LINE|STOP|LOCK|STRING|LOW-VALUE|SUBTRACT",A="true|false|null",a="count|min|max|avg|sum|rank|now|coalesce|main",N=this.createKeywordMapper({"support.function":a,keyword:T,"constant.language":A},"identifier",!0);this.$rules={start:[{token:"comment",regex:"\\*.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:N,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]}};t.inherits(i,R),o.CobolHighlightRules=i}),ace.define("ace/mode/cobol",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/cobol_highlight_rules"],function(e,o,E){var t=e("../lib/oop"),R=e("./text").Mode,i=e("./cobol_highlight_rules").CobolHighlightRules,T=function(){this.HighlightRules=i,this.$behaviour=this.$defaultBehaviour};t.inherits(T,R),function(){this.lineCommentStart="*",this.$id="ace/mode/cobol"}.call(T.prototype),o.Mode=T}),function(){ace.require(["ace/mode/cobol"],function(e){r&&(r.exports=e)})}()})(l);var O=l.exports;const c=s(O),I=C({__proto__:null,default:c},[O]);export{I as m};