2 lines
3.6 KiB
JavaScript
2 lines
3.6 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[62568],{62568:function(m,R,k){m=k.nmd(m),ace.define("ace/mode/graphqlschema_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(r,f,v){"use strict";var u=r("../lib/oop"),s=r("./text_highlight_rules").TextHighlightRules,c=function(){var d="type|interface|union|enum|schema|input|implements|extends|scalar",e="Int|Float|String|ID|Boolean",t=this.createKeywordMapper({keyword:d,"storage.type":e},"identifier");this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:t,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};u.inherits(c,s),f.GraphQLSchemaHighlightRules=c}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(r,f,v){"use strict";var u=r("../../lib/oop"),s=r("../../range").Range,c=r("./fold_mode").FoldMode,d=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)))};u.inherits(d,c),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 o=e.getLine(i);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var n=this._getFoldWidgetBase(e,t,i);return!n&&this.startRegionRe.test(o)?"start":n},this.getFoldWidgetRange=function(e,t,i,o){var n=e.getLine(i);if(this.startRegionRe.test(n))return this.getCommentRegionBlock(e,n,i);var a=n.match(this.foldingStartMarker);if(a){var l=a.index;if(a[1])return this.openingBracketBlock(e,a[1],i,l);var h=e.getCommentFoldRange(i,l+a[0].length,1);return h&&!h.isMultiLine()&&(o?h=this.getSectionRange(e,i):t!="all"&&(h=null)),h}if(t!=="markbegin"){var a=n.match(this.foldingStopMarker);if(a){var l=a.index+a[0].length;return a[1]?this.closingBracketBlock(e,a[1],i,l):e.getCommentFoldRange(i,l,-1)}}},this.getSectionRange=function(e,t){var i=e.getLine(t),o=i.search(/\S/),n=t,a=i.length;t=t+1;for(var l=t,h=e.getLength();++t<h;){i=e.getLine(t);var p=i.search(/\S/);if(p!==-1){if(o>p)break;var g=this.getFoldWidgetRange(e,"all",t);if(g){if(g.start.row<=n)break;if(g.isMultiLine())t=g.end.row;else if(o==p)break}l=t}}return new s(n,a,l,e.getLine(l).length)},this.getCommentRegionBlock=function(e,t,i){for(var o=t.search(/\s*$/),n=e.getLength(),a=i,l=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,h=1;++i<n;){t=e.getLine(i);var p=l.exec(t);if(!!p&&(p[1]?h--:h++,!h))break}var g=i;if(g>a)return new s(a,o,g,t.length)}}.call(d.prototype)}),ace.define("ace/mode/graphqlschema",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/graphqlschema_highlight_rules","ace/mode/folding/cstyle"],function(r,f,v){"use strict";var u=r("../lib/oop"),s=r("./text").Mode,c=r("./graphqlschema_highlight_rules").GraphQLSchemaHighlightRules,d=r("./folding/cstyle").FoldMode,e=function(){this.HighlightRules=c,this.foldingRules=new d};u.inherits(e,s),function(){this.lineCommentStart="#",this.$id="ace/mode/graphqlschema",this.snippetFileId="ace/snippets/graphqlschema"}.call(e.prototype),f.Mode=e}),function(){ace.require(["ace/mode/graphqlschema"],function(r){m&&(m.exports=r)})}()}}]);
|