2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[44373],{44373:function(f,v,x){f=x.nmd(f),ace.define("ace/mode/diff_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,o,c){"use strict";var a=e("../lib/oop"),d=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{regex:"^(?:\\*{15}|={67}|-{3}|\\+{3})$",token:"punctuation.definition.separator.diff",name:"keyword"},{regex:"^(@@)(\\s*.+?\\s*)(@@)(.*)$",token:["constant","constant.numeric","constant","comment.doc.tag"]},{regex:"^(\\d+)([,\\d]+)(a|d|c)(\\d+)([,\\d]+)(.*)$",token:["constant.numeric","punctuation.definition.range.diff","constant.function","constant.numeric","punctuation.definition.range.diff","invalid"],name:"meta."},{regex:"^(\\-{3}|\\+{3}|\\*{3})( .+)$",token:["constant.numeric","meta.tag"]},{regex:"^([!+>])(.*?)(\\s*)$",token:["support.constant","text","invalid"]},{regex:"^([<\\-])(.*?)(\\s*)$",token:["support.function","string","invalid"]},{regex:"^(diff)(\\s+--\\w+)?(.+?)( .+)?$",token:["variable","variable","keyword","variable"]},{regex:"^Index.+$",token:"variable"},{regex:"^\\s+$",token:"text"},{regex:"\\s*$",token:"invalid"},{defaultToken:"invisible",caseInsensitive:!0}]}};a.inherits(i,d),o.DiffHighlightRules=i}),ace.define("ace/mode/folding/diff",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,o,c){"use strict";var a=e("../../lib/oop"),d=e("./fold_mode").FoldMode,i=e("../../range").Range,l=o.FoldMode=function(t,u){this.regExpList=t,this.flag=u,this.foldingStartMarker=RegExp("^("+t.join("|")+")",this.flag)};a.inherits(l,d),function(){this.getFoldWidgetRange=function(t,u,n){for(var r=t.getLine(n),s={row:n,column:r.length},h=this.regExpList,g=1;g<=h.length;g++){var p=RegExp("^("+h.slice(0,g).join("|")+")",this.flag);if(p.test(r))break}for(var m=t.getLength();++n<m&&(r=t.getLine(n),!p.test(r)););if(n!=s.row+1)return new i(s.row,s.column,n-1,r.length)}}.call(l.prototype)}),ace.define("ace/mode/diff",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/diff_highlight_rules","ace/mode/folding/diff"],function(e,o,c){"use strict";var a=e("../lib/oop"),d=e("./text").Mode,i=e("./diff_highlight_rules").DiffHighlightRules,l=e("./folding/diff").FoldMode,t=function(){this.HighlightRules=i,this.foldingRules=new l(["diff","@@|\\*{5}"],"i")};a.inherits(t,d),function(){this.$id="ace/mode/diff",this.snippetFileId="ace/snippets/diff"}.call(t.prototype),o.Mode=t}),function(){ace.require(["ace/mode/diff"],function(e){f&&(f.exports=e)})}()}}]);
|