1 |
- import{g as R}from"./index-3157015c.js";function y(u,b){for(var o=0;o<b.length;o++){const n=b[o];if(typeof n!="string"&&!Array.isArray(n)){for(const h in n)if(h!=="default"&&!(h in u)){const d=Object.getOwnPropertyDescriptor(n,h);d&&Object.defineProperty(u,h,d.get?d:{enumerable:!0,get:()=>n[h]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(u,b){ace.define("ace/mode/batchfile_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(o,n,h){var d=o("../lib/oop"),m=o("./text_highlight_rules").TextHighlightRules,g=function(){this.$rules={start:[{token:"keyword.command.dosbatch",regex:"\\b(?:append|assoc|at|attrib|break|cacls|cd|chcp|chdir|chkdsk|chkntfs|cls|cmd|color|comp|compact|convert|copy|date|del|dir|diskcomp|diskcopy|doskey|echo|endlocal|erase|fc|find|findstr|format|ftype|graftabl|help|keyb|label|md|mkdir|mode|more|move|path|pause|popd|print|prompt|pushd|rd|recover|ren|rename|replace|restore|rmdir|set|setlocal|shift|sort|start|subst|time|title|tree|type|ver|verify|vol|xcopy)\\b",caseInsensitive:!0},{token:"keyword.control.statement.dosbatch",regex:"\\b(?:goto|call|exit)\\b",caseInsensitive:!0},{token:"keyword.control.conditional.if.dosbatch",regex:"\\bif\\s+not\\s+(?:exist|defined|errorlevel|cmdextversion)\\b",caseInsensitive:!0},{token:"keyword.control.conditional.dosbatch",regex:"\\b(?:if|else)\\b",caseInsensitive:!0},{token:"keyword.control.repeat.dosbatch",regex:"\\bfor\\b",caseInsensitive:!0},{token:"keyword.operator.dosbatch",regex:"\\b(?:EQU|NEQ|LSS|LEQ|GTR|GEQ)\\b"},{token:["doc.comment","comment"],regex:"(?:^|\\b)(rem)($|\\s.*$)",caseInsensitive:!0},{token:"comment.line.colons.dosbatch",regex:"::.*$"},{include:"variable"},{token:"punctuation.definition.string.begin.shell",regex:'"',push:[{token:"punctuation.definition.string.end.shell",regex:'"',next:"pop"},{include:"variable"},{defaultToken:"string.quoted.double.dosbatch"}]},{token:"keyword.operator.pipe.dosbatch",regex:"[|]"},{token:"keyword.operator.redirect.shell",regex:"&>|\\d*>&\\d*|\\d*(?:>>|>|<)|\\d*<&|\\d*<>"}],variable:[{token:"constant.numeric",regex:"%%\\w+|%[*\\d]|%\\w+%"},{token:"constant.numeric",regex:"%~\\d+"},{token:["markup.list","constant.other","markup.list"],regex:"(%)(\\w+)(%?)"}]},this.normalizeRules()};g.metaData={name:"Batch File",scopeName:"source.dosbatch",fileTypes:["bat"]},d.inherits(g,m),n.BatchFileHighlightRules=g}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(o,n,h){var d=o("../../lib/oop"),m=o("../../range").Range,g=o("./fold_mode").FoldMode,k=n.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};d.inherits(k,g),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,i){var l=e.getLine(i);if(this.singleLineBlockCommentRe.test(l)&&!this.startRegionRe.test(l)&&!this.tripleStarBlockCommentRe.test(l))return"";var a=this._getFoldWidgetBase(e,t,i);return!a&&this.startRegionRe.test(l)?"start":a},this.getFoldWidgetRange=function(e,t,i,l){var a=e.getLine(i);if(this.startRegionRe.test(a))return this.getCommentRegionBlock(e,a,i);var r=a.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],i,s);var c=e.getCommentFoldRange(i,s+r[0].length,1);return c&&!c.isMultiLine()&&(l?c=this.getSectionRange(e,i):t!="all"&&(c=null)),c}if(t!=="markbegin"){var r=a.match(this.foldingStopMarker);if(r){var s=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],i,s):e.getCommentFoldRange(i,s,-1)}}},this.getSectionRange=function(e,t){var i=e.getLine(t),l=i.search(/\S/),a=t,s=i.length;t=t+1;for(var c=t,r=e.getLength();++t<r;){i=e.getLine(t);var p=i.search(/\S/);if(p!==-1){if(l>p)break;var f=this.getFoldWidgetRange(e,"all",t);if(f){if(f.start.row<=a)break;if(f.isMultiLine())t=f.end.row;else if(l==p)break}c=t}}return new m(a,s,c,e.getLine(c).length)},this.getCommentRegionBlock=function(e,t,i){for(var l=t.search(/\s*$/),a=e.getLength(),s=i,c=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,r=1;++i<a;){t=e.getLine(i);var p=c.exec(t);if(p&&(p[1]?r--:r++,!r))break}var f=i;if(f>s)return new m(s,l,f,t.length)}}.call(k.prototype)}),ace.define("ace/mode/batchfile",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/batchfile_highlight_rules","ace/mode/folding/cstyle"],function(o,n,h){var d=o("../lib/oop"),m=o("./text").Mode,g=o("./batchfile_highlight_rules").BatchFileHighlightRules,k=o("./folding/cstyle").FoldMode,e=function(){this.HighlightRules=g,this.foldingRules=new k,this.$behaviour=this.$defaultBehaviour};d.inherits(e,m),function(){this.lineCommentStart="::",this.blockComment="",this.$id="ace/mode/batchfile"}.call(e.prototype),n.Mode=e}),function(){ace.require(["ace/mode/batchfile"],function(o){u&&(u.exports=o)})}()})(v);var x=v.exports;const B=R(x),F=y({__proto__:null,default:B},[x]);export{F as m};
|