UNPKG

@galaxyproject/galaxy-client

Version:

Galaxy client application build system

1 lines 4.61 kB
(self.webpackChunk_galaxyproject_galaxy_client=self.webpackChunk_galaxyproject_galaxy_client||[]).push([[7809],{37809:(e,t,o)=>{e=o.nmd(e),ace.define("ace/mode/basic_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,o){"use strict";var n=e("../lib/oop"),r=e("./text_highlight_rules").TextHighlightRules,i=function(){var e=this.createKeywordMapper({"keyword.control":"FOR|TO|NEXT|GOSUB|RETURN|IF|THEN|ELSE|GOTO|ON|WHILE|WEND|TRON|TROFF","entity.name":"Auto|Call|Chain|Clear|Close|Common|Cont|Data|MERGE|ALL|Delete|DIM|EDIT|END|ERASE|ERROR|FIELD|GET|INPUT|KILL|LET|LIST|LLIST|LOAD|LSET|RSET|MERGE|NEW|NULL|OPEN|OUT|POKE|PRINT|PUT|RANDOMIZE|READ|RENUM|RESTORE|RESUME|RUN|SAVE|STOP|SWAP|WAIT|WIDTH","keyword.operator":"Mod|And|Not|Or|Xor|Eqv|Imp","support.function":"ABS|ASC|ATN|CDBL|CINT|COS|CSNG|CVI|CVS|CVD|EOF|EXP|FIX|FRE|INP|INSTR|INT|LEN|LOC|LOG|LPOS|PEEK|POS|RND|SGN|SIN|SPC|SQR|TAB|TAN|USR|VAL|VARPTR"},"identifier",!0);this.$rules={start:[{token:"string",regex:/"(?:\\.|[^"\\])*"/},{token:"support.function",regex:/(HEX|CHR|INPUT|LEFT|MID|MKI|MKS|MKD|OCT|RIGHT|SPACE|STR|STRING)\$/},{token:"entity.name",regex:/(?:DEF\s(?:SEG|USR|FN[a-zA-Z]+)|LINE\sINPUT|L?PRINT#?(?:\sUSING)?|MID\$|ON\sERROR\sGOTO|OPTION\sBASE|WRITE#?|DATE\$|INKEY\$|TIME\$)/},{token:"variable",regex:/[a-zA-Z][a-zA-Z0-9_]{0,38}[$%!#]?(?=\s*=)/},{token:"keyword.operator",regex:/\\|=|\^|\*|\/|\+|\-|<|>|-/},{token:"paren.lparen",regex:/[([]/},{token:"paren.rparen",regex:/[\)\]]/},{token:"constant.numeric",regex:/[+-]?\d+(\.\d+)?([ED][+-]?\d+)?(?:[!#])?/},{token:"constant.numeric",regex:/&[HO]?[0-9A-F]+/},{token:"comment",regex:/REM\s+.*$/},{regex:"\\w+",token:e},{token:"punctiation",regex:/[,;]/}]},this.normalizeRules()};n.inherits(i,r),t.BasicHighlightRules=i})),ace.define("ace/mode/folding/basic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],(function(e,t,o){"use strict";var n=e("../../lib/oop"),r=e("./fold_mode").FoldMode,i=e("../../range").Range,a=e("../../token_iterator").TokenIterator,s=t.FoldMode=function(){};n.inherits(s,r),function(){this.indentKeywords={tron:1,while:1,for:1,troff:-1,wend:-1,next:-1},this.foldingStartMarker=/(?:\s|^)(tron|while|for)\b/i,this.foldingStopMarker=/(?:\b)(troff|next|wend)\b/i,this.getFoldWidgetRange=function(e,t,o){var n=e.getLine(o),r=this.foldingStartMarker.test(n),i=this.foldingStopMarker.test(n);if(r||i){var a=i?this.foldingStopMarker.exec(n):this.foldingStartMarker.exec(n);if(a&&a[1].toLowerCase())if("keyword.control"===e.getTokenAt(o,a.index+2).type)return this.basicBlock(e,o,a.index+2)}},this.getFoldWidget=function(e,t,o){var n=e.getLine(o),r=this.foldingStartMarker.test(n),i=this.foldingStopMarker.test(n);if(r&&!i&&((s=(a=this.foldingStartMarker.exec(n))&&a[1].toLowerCase())&&"keyword.control"==e.getTokenAt(o,a.index+2).type))return"start";if("markbeginend"!=t||!i||r&&i)return"";var a,s=(a=n.match(this.foldingStopMarker))&&a[1].toLowerCase();return this.indentKeywords[s]&&"keyword.control"===e.getTokenAt(o,a.index+2).type?"end":""},this.basicBlock=function(e,t,o,n){var r=new a(e,t,o),s=r.getCurrentToken();if(s&&"keyword.control"==s.type){var l=s.value.toLowerCase(),d=[l],c=this.indentKeywords[l];if(c){var g=-1===c?r.getCurrentTokenColumn():e.getLine(t).length,h=t;for(r.step=-1===c?r.stepBackward:r.stepForward;s=r.step();)if(l=s.value.toLowerCase(),"keyword.control"===s.type&&this.indentKeywords[l]){var u=c*this.indentKeywords[l];if(u>0?d.unshift(l):u<=0&&d.shift(),0===d.length)break}if(!s)return null;if(n)return r.getCurrentTokenRange();t=r.getCurrentTokenRow();return-1===c?new i(t,e.getLine(t).length,h,g):new i(h,g,t,r.getCurrentTokenColumn())}}}}.call(s.prototype)})),ace.define("ace/mode/basic",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/basic_highlight_rules","ace/mode/folding/basic"],(function(e,t,o){"use strict";var n=e("../lib/oop"),r=e("./text").Mode,i=e("./basic_highlight_rules").BasicHighlightRules,a=e("./folding/basic").FoldMode,s=function(){this.HighlightRules=i,this.foldingRules=new a,this.$behaviour=this.$defaultBehaviour,this.indentKeywords=this.foldingRules.indentKeywords};n.inherits(s,r),function(){this.lineCommentStart=["REM"],this.getMatching=function(e,t,o,n){if(null==t){var r=e.selection.lead;o=r.column,t=r.row}null==n&&(n=!0);var i=e.getTokenAt(t,o);if(i&&i.value.toLowerCase()in this.indentKeywords)return this.foldingRules.basicBlock(e,t,o,n)},this.$id="ace/mode/basic"}.call(s.prototype),t.Mode=s})),ace.require(["ace/mode/basic"],(function(t){e&&(e.exports=t)}))}}]);