2 lines
8.8 KiB
JavaScript
2 lines
8.8 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[78330],{78330:function(v,x,k){v=k.nmd(v),ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(o,f,p){"use strict";var m=o("../lib/oop"),h=o("./text_highlight_rules").TextHighlightRules,l=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},l.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};m.inherits(l,h),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}},f.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,f,p){"use strict";var m=o("../lib/oop"),h=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:"\\/\\/.*$"},h.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(h,"doc-",[h.getEndRule("start")]),this.normalizeRules()};m.inherits(s,l),f.CSharpHighlightRules=s}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(o,f,p){"use strict";var m=o("../range").Range,h=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 i=this.$getIndent(l.getLine(r.row));l.replace(new m(s,0,s,t-1),i)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(h.prototype),f.MatchingBraceOutdent=h}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(o,f,p){"use strict";var m=o("../../lib/oop"),h=o("../../range").Range,l=o("./fold_mode").FoldMode,s=f.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};m.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 i=this._getFoldWidgetBase(e,n,t);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,n,t,r){var i=e.getLine(t);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,t);var a=i.match(this.foldingStartMarker);if(a){var g=a.index;if(a[1])return this.openingBracketBlock(e,a[1],t,g);var c=e.getCommentFoldRange(t,g+a[0].length,1);return c&&!c.isMultiLine()&&(r?c=this.getSectionRange(e,t):n!="all"&&(c=null)),c}if(n!=="markbegin"){var a=i.match(this.foldingStopMarker);if(a){var g=a.index+a[0].length;return a[1]?this.closingBracketBlock(e,a[1],t,g):e.getCommentFoldRange(t,g,-1)}}},this.getSectionRange=function(e,n){var t=e.getLine(n),r=t.search(/\S/),i=n,a=t.length;n=n+1;for(var g=n,c=e.getLength();++n<c;){t=e.getLine(n);var d=t.search(/\S/);if(d!==-1){if(r>d)break;var u=this.getFoldWidgetRange(e,"all",n);if(u){if(u.start.row<=i)break;if(u.isMultiLine())n=u.end.row;else if(r==d)break}g=n}}return new h(i,a,g,e.getLine(g).length)},this.getCommentRegionBlock=function(e,n,t){for(var r=n.search(/\s*$/),i=e.getLength(),a=t,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++t<i;){n=e.getLine(t);var d=g.exec(n);if(!!d&&(d[1]?c--:c++,!c))break}var u=t;if(u>a)return new h(a,r,u,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,f,p){"use strict";var m=o("../../lib/oop"),h=o("../../range").Range,l=o("./cstyle").FoldMode,s=f.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};m.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 i=e.getLine(t);if(/^\s*#region\b/.test(i))return"start";var a=this.usingRe;if(a.test(i)){var g=e.getLine(t-1),c=e.getLine(t+1);if(!a.test(g)&&a.test(c))return"start"}}return r},this.getFoldWidgetRange=function(e,n,t){var r=this.getFoldWidgetRangeBase(e,n,t);if(r)return r;var i=e.getLine(t);if(this.usingRe.test(i))return this.getUsingStatementBlock(e,i,t);if(/^\s*#region\b/.test(i))return this.getRegionBlock(e,i,t)},this.getUsingStatementBlock=function(e,n,t){for(var r=n.match(this.usingRe)[0].length-1,i=e.getLength(),a=t,g=t;++t<i;)if(n=e.getLine(t),!/^\s*$/.test(n)){if(!this.usingRe.test(n))break;g=t}if(g>a){var c=e.getLine(g).length;return new h(a,r,g,c)}},this.getRegionBlock=function(e,n,t){for(var r=n.search(/\s*$/),i=e.getLength(),a=t,g=/^\s*#(end)?region\b/,c=1;++t<i;){n=e.getLine(t);var d=g.exec(n);if(!!d&&(d[1]?c--:c++,!c))break}var u=t;if(u>a)return new h(a,r,u,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/behaviour/cstyle","ace/mode/folding/csharp"],function(o,f,p){"use strict";var m=o("../lib/oop"),h=o("./text").Mode,l=o("./csharp_highlight_rules").CSharpHighlightRules,s=o("./matching_brace_outdent").MatchingBraceOutdent,e=o("./behaviour/cstyle").CstyleBehaviour,n=o("./folding/csharp").FoldMode,t=function(){this.HighlightRules=l,this.$outdent=new s,this.$behaviour=new e,this.foldingRules=new n};m.inherits(t,h),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(r,i,a){var g=this.$getIndent(i),c=this.getTokenizer().getLineTokens(i,r),d=c.tokens;if(d.length&&d[d.length-1].type=="comment")return g;if(r=="start"){var u=i.match(/^.*[\{\(\[]\s*$/);u&&(g+=a)}return g},this.checkOutdent=function(r,i,a){return this.$outdent.checkOutdent(i,a)},this.autoOutdent=function(r,i,a){this.$outdent.autoOutdent(i,a)},this.createWorker=function(r){return null},this.$id="ace/mode/csharp"}.call(t.prototype),f.Mode=t}),function(){ace.require(["ace/mode/csharp"],function(o){v&&(v.exports=o)})}()}}]);
|