2 lines
2.4 KiB
JavaScript
2 lines
2.4 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[45839],{45839:function(u,b,m){u=m.nmd(u),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(a,d,v){"use strict";var g=a("../../lib/oop"),c=a("./fold_mode").FoldMode,o=a("../../range").Range,p=d.FoldMode=function(){};g.inherits(p,c),function(){this.getFoldWidgetRange=function(e,k,t){var l=this.indentationBlock(e,t);if(l)return l;var i=/\S/,n=e.getLine(t),h=n.search(i);if(!(h==-1||n[h]!="#")){for(var r=n.length,f=e.getLength(),x=t,s=t;++t<f;){n=e.getLine(t);var _=n.search(i);if(_!=-1){if(n[_]!="#")break;s=t}}if(s>x){var R=e.getLine(s).length;return new o(x,r,s,R)}}},this.getFoldWidget=function(e,k,t){var l=e.getLine(t),i=l.search(/\S/),n=e.getLine(t+1),h=e.getLine(t-1),r=h.search(/\S/),f=n.search(/\S/);if(i==-1)return e.foldWidgets[t-1]=r!=-1&&r<f?"start":"","";if(r==-1){if(i==f&&l[i]=="#"&&n[i]=="#")return e.foldWidgets[t-1]="",e.foldWidgets[t+1]="","start"}else if(r==i&&l[i]=="#"&&h[i]=="#"&&e.getLine(t-2).search(/\S/)==-1)return e.foldWidgets[t-1]="start",e.foldWidgets[t+1]="","";return r!=-1&&r<i?e.foldWidgets[t-1]="start":e.foldWidgets[t-1]="",i<f?"start":""}}.call(p.prototype)}),ace.define("ace/mode/space_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,d,v){"use strict";var g=a("../lib/oop"),c=a("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"empty_line",regex:/ */,next:"key"},{token:"empty_line",regex:/$/,next:"key"}],key:[{token:"variable",regex:/\S+/},{token:"empty_line",regex:/$/,next:"start"},{token:"keyword.operator",regex:/ /,next:"value"}],value:[{token:"keyword.operator",regex:/$/,next:"start"},{token:"string",regex:/[^$]/}]}};g.inherits(o,c),d.SpaceHighlightRules=o}),ace.define("ace/mode/space",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/folding/coffee","ace/mode/space_highlight_rules"],function(a,d,v){"use strict";var g=a("../lib/oop"),c=a("./text").Mode,o=a("./folding/coffee").FoldMode,p=a("./space_highlight_rules").SpaceHighlightRules,e=function(){this.HighlightRules=p,this.foldingRules=new o,this.$behaviour=this.$defaultBehaviour};g.inherits(e,c),function(){this.$id="ace/mode/space"}.call(e.prototype),d.Mode=e}),function(){ace.require(["ace/mode/space"],function(a){u&&(u.exports=a)})}()}}]);
|