12 |
- import{g as b}from"./index-63ed8a66.js";function _(v,k){for(var o=0;o<k.length;o++){const h=k[o];if(typeof h!="string"&&!Array.isArray(h)){for(const f in h)if(f!=="default"&&!(f in v)){const u=Object.getOwnPropertyDescriptor(h,f);u&&Object.defineProperty(v,f,u.get?u:{enumerable:!0,get:()=>h[f]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(v,k){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(o,h,f){var u=o("../lib/oop"),d=o("./text_highlight_rules").TextHighlightRules,l=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},l.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};u.inherits(l,d),l.getTagRule=function(s){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},l.getStartRule=function(s){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:s}},l.getEndRule=function(s){return{token:"comment.doc",regex:"\\*\\/",next:s}},h.DocCommentHighlightRules=l}),ace.define("ace/mode/csharp_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(o,h,f){var u=o("../lib/oop"),d=o("./doc_comment_highlight_rules").DocCommentHighlightRules,l=o("./text_highlight_rules").TextHighlightRules,s=function(){var e=this.createKeywordMapper({"variable.language":"this",keyword:"abstract|async|await|event|new|struct|as|explicit|null|switch|base|extern|object|this|bool|false|operator|throw|break|finally|out|true|byte|fixed|override|try|case|float|params|typeof|catch|for|private|uint|char|foreach|protected|ulong|checked|goto|public|unchecked|class|if|readonly|unsafe|const|implicit|ref|ushort|continue|in|return|using|decimal|int|sbyte|virtual|default|interface|sealed|volatile|delegate|internal|partial|short|void|do|is|sizeof|while|double|lock|stackalloc|else|long|static|enum|namespace|string|var|dynamic","constant.language":"null|true|false"},"identifier");this.$rules={start:[{token:"comment",regex:"\\/\\/.*$"},d.getStartRule("doc-start"),{token:"comment",regex:"\\/\\*",next:"comment"},{token:"string",regex:/'(?:.|\\(:?u[\da-fA-F]+|x[\da-fA-F]+|[tbrf'"n]))?'/},{token:"string",start:'"',end:'"|$',next:[{token:"constant.language.escape",regex:/\\(:?u[\da-fA-F]+|x[\da-fA-F]+|[tbrf'"n])/},{token:"invalid",regex:/\\./}]},{token:"string",start:'@"',end:'"',next:[{token:"constant.language.escape",regex:'""'}]},{token:"string",start:/\$"/,end:'"|$',next:[{token:"constant.language.escape",regex:/\\(:?$)|{{/},{token:"constant.language.escape",regex:/\\(:?u[\da-fA-F]+|x[\da-fA-F]+|[tbrf'"n])/},{token:"invalid",regex:/\\./}]},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"keyword",regex:"^\\s*#(if|else|elif|endif|define|undef|warning|error|line|region|endregion|pragma)"},{token:"punctuation.operator",regex:"\\?|\\:|\\,|\\;|\\."},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],comment:[{token:"comment",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]},this.embedRules(d,"doc-",[d.getEndRule("start")]),this.normalizeRules()};u.inherits(s,l),h.CSharpHighlightRules=s}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(o,h,f){var u=o("../range").Range,d=function(){};(function(){this.checkOutdent=function(l,s){return/^\s+$/.test(l)?/^\s*\}/.test(s):!1},this.autoOutdent=function(l,s){var e=l.getLine(s),n=e.match(/^(\s*\})/);if(!n)return 0;var t=n[1].length,r=l.findMatchingBracket({row:s,column:t});if(!r||r.row==s)return 0;var a=this.$getIndent(l.getLine(r.row));l.replace(new u(s,0,s,t-1),a)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(d.prototype),h.MatchingBraceOutdent=d}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(o,h,f){var u=o("../../lib/oop"),d=o("../../range").Range,l=o("./fold_mode").FoldMode,s=h.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};u.inherits(s,l),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,n,t){var r=e.getLine(t);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var a=this._getFoldWidgetBase(e,n,t);return!a&&this.startRegionRe.test(r)?"start":a},this.getFoldWidgetRange=function(e,n,t,r){var a=e.getLine(t);if(this.startRegionRe.test(a))return this.getCommentRegionBlock(e,a,t);var i=a.match(this.foldingStartMarker);if(i){var g=i.index;if(i[1])return this.openingBracketBlock(e,i[1],t,g);var c=e.getCommentFoldRange(t,g+i[0].length,1);return c&&!c.isMultiLine()&&(r?c=this.getSectionRange(e,t):n!="all"&&(c=null)),c}if(n!=="markbegin"){var i=a.match(this.foldingStopMarker);if(i){var g=i.index+i[0].length;return i[1]?this.closingBracketBlock(e,i[1],t,g):e.getCommentFoldRange(t,g,-1)}}},this.getSectionRange=function(e,n){var t=e.getLine(n),r=t.search(/\S/),a=n,g=t.length;n=n+1;for(var c=n,i=e.getLength();++n<i;){t=e.getLine(n);var m=t.search(/\S/);if(m!==-1){if(r>m)break;var p=this.getFoldWidgetRange(e,"all",n);if(p){if(p.start.row<=a)break;if(p.isMultiLine())n=p.end.row;else if(r==m)break}c=n}}return new d(a,g,c,e.getLine(c).length)},this.getCommentRegionBlock=function(e,n,t){for(var r=n.search(/\s*$/),a=e.getLength(),g=t,c=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,i=1;++t<a;){n=e.getLine(t);var m=c.exec(n);if(m&&(m[1]?i--:i++,!i))break}var p=t;if(p>g)return new d(g,r,p,n.length)}}.call(s.prototype)}),ace.define("ace/mode/folding/csharp",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],function(o,h,f){var u=o("../../lib/oop"),d=o("../../range").Range,l=o("./cstyle").FoldMode,s=h.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};u.inherits(s,l),function(){this.usingRe=/^\s*using \S/,this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,n,t){var r=this.getFoldWidgetBase(e,n,t);if(!r){var a=e.getLine(t);if(/^\s*#region\b/.test(a))return"start";var g=this.usingRe;if(g.test(a)){var c=e.getLine(t-1),i=e.getLine(t+1);if(!g.test(c)&&g.test(i))return"start"}}return r},this.getFoldWidgetRange=function(e,n,t){var r=this.getFoldWidgetRangeBase(e,n,t);if(r)return r;var a=e.getLine(t);if(this.usingRe.test(a))return this.getUsingStatementBlock(e,a,t);if(/^\s*#region\b/.test(a))return this.getRegionBlock(e,a,t)},this.getUsingStatementBlock=function(e,n,t){for(var r=n.match(this.usingRe)[0].length-1,a=e.getLength(),g=t,c=t;++t<a;)if(n=e.getLine(t),!/^\s*$/.test(n)){if(!this.usingRe.test(n))break;c=t}if(c>g){var i=e.getLine(c).length;return new d(g,r,c,i)}},this.getRegionBlock=function(e,n,t){for(var r=n.search(/\s*$/),a=e.getLength(),g=t,c=/^\s*#(end)?region\b/,i=1;++t<a;){n=e.getLine(t);var m=c.exec(n);if(m&&(m[1]?i--:i++,!i))break}var p=t;if(p>g)return new d(g,r,p,n.length)}}.call(s.prototype)}),ace.define("ace/mode/csharp",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/csharp_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/csharp"],function(o,h,f){var u=o("../lib/oop"),d=o("./text").Mode,l=o("./csharp_highlight_rules").CSharpHighlightRules,s=o("./matching_brace_outdent").MatchingBraceOutdent,e=o("./folding/csharp").FoldMode,n=function(){this.HighlightRules=l,this.$outdent=new s,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new e};u.inherits(n,d),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(t,r,a){var g=this.$getIndent(r),c=this.getTokenizer().getLineTokens(r,t),i=c.tokens;if(i.length&&i[i.length-1].type=="comment")return g;if(t=="start"){var m=r.match(/^.*[\{\(\[]\s*$/);m&&(g+=a)}return g},this.checkOutdent=function(t,r,a){return this.$outdent.checkOutdent(r,a)},this.autoOutdent=function(t,r,a){this.$outdent.autoOutdent(r,a)},this.createWorker=function(t){return null},this.$id="ace/mode/csharp"}.call(n.prototype),h.Mode=n}),function(){ace.require(["ace/mode/csharp"],function(o){v&&(v.exports=o)})}()})(x);var R=x.exports;const M=b(R),$=_({__proto__:null,default:M},[R]);export{$ as m};
- //# sourceMappingURL=mode-csharp-3302ee19.js.map
|