filesbox/web/dist/62561.6237cf0b.async.js
2024-07-26 14:10:54 +08:00

2 lines
4.3 KiB
JavaScript

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[62561],{62561:function(f,y,b){f=b.nmd(f),ace.define("ace/mode/pascal_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,c,m){"use strict";var u=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,r=function(){var l=this.createKeywordMapper({"keyword.control":"absolute|abstract|all|and|and_then|array|as|asm|attribute|begin|bindable|case|class|const|constructor|destructor|div|do|do|else|end|except|export|exports|external|far|file|finalization|finally|for|forward|goto|if|implementation|import|in|inherited|initialization|interface|interrupt|is|label|library|mod|module|name|near|nil|not|object|of|only|operator|or|or_else|otherwise|packed|pow|private|program|property|protected|public|published|qualified|record|repeat|resident|restricted|segment|set|shl|shr|then|to|try|type|unit|until|uses|value|var|view|virtual|while|with|xor"},"identifier",!0);this.$rules={start:[{caseInsensitive:!0,token:["variable","text","storage.type.prototype","entity.name.function.prototype"],regex:"\\b(function|procedure)(\\s+)(\\w+)(\\.\\w+)?(?=(?:\\(.*?\\))?;\\s*(?:attribute|forward|external))"},{caseInsensitive:!0,token:["variable","text","storage.type.function","entity.name.function"],regex:"\\b(function|procedure)(\\s+)(\\w+)(\\.\\w+)?"},{caseInsensitive:!0,token:l,regex:/\b[a-z_]+\b/},{token:"constant.numeric",regex:"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"},{token:"punctuation.definition.comment",regex:"--.*$"},{token:"punctuation.definition.comment",regex:"//.*$"},{token:"punctuation.definition.comment",regex:"\\(\\*",push:[{token:"punctuation.definition.comment",regex:"\\*\\)",next:"pop"},{defaultToken:"comment.block.one"}]},{token:"punctuation.definition.comment",regex:"\\{",push:[{token:"punctuation.definition.comment",regex:"\\}",next:"pop"},{defaultToken:"comment.block.two"}]},{token:"punctuation.definition.string.begin",regex:'"',push:[{token:"constant.character.escape",regex:"\\\\."},{token:"punctuation.definition.string.end",regex:'"',next:"pop"},{defaultToken:"string.quoted.double"}]},{token:"punctuation.definition.string.begin",regex:"'",push:[{token:"constant.character.escape.apostrophe",regex:"''"},{token:"punctuation.definition.string.end",regex:"'",next:"pop"},{defaultToken:"string.quoted.single"}]},{token:"keyword.operator",regex:"[+\\-;,/*%]|:=|="}]},this.normalizeRules()};u.inherits(r,s),c.PascalHighlightRules=r}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(n,c,m){"use strict";var u=n("../../lib/oop"),s=n("./fold_mode").FoldMode,r=n("../../range").Range,l=c.FoldMode=function(){};u.inherits(l,s),function(){this.getFoldWidgetRange=function(e,k,t){var d=this.indentationBlock(e,t);if(d)return d;var i=/\S/,o=e.getLine(t),g=o.search(i);if(!(g==-1||o[g]!="#")){for(var a=o.length,p=e.getLength(),x=t,h=t;++t<p;){o=e.getLine(t);var v=o.search(i);if(v!=-1){if(o[v]!="#")break;h=t}}if(h>x){var _=e.getLine(h).length;return new r(x,a,h,_)}}},this.getFoldWidget=function(e,k,t){var d=e.getLine(t),i=d.search(/\S/),o=e.getLine(t+1),g=e.getLine(t-1),a=g.search(/\S/),p=o.search(/\S/);if(i==-1)return e.foldWidgets[t-1]=a!=-1&&a<p?"start":"","";if(a==-1){if(i==p&&d[i]=="#"&&o[i]=="#")return e.foldWidgets[t-1]="",e.foldWidgets[t+1]="","start"}else if(a==i&&d[i]=="#"&&g[i]=="#"&&e.getLine(t-2).search(/\S/)==-1)return e.foldWidgets[t-1]="start",e.foldWidgets[t+1]="","";return a!=-1&&a<i?e.foldWidgets[t-1]="start":e.foldWidgets[t-1]="",i<p?"start":""}}.call(l.prototype)}),ace.define("ace/mode/pascal",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/pascal_highlight_rules","ace/mode/folding/coffee"],function(n,c,m){"use strict";var u=n("../lib/oop"),s=n("./text").Mode,r=n("./pascal_highlight_rules").PascalHighlightRules,l=n("./folding/coffee").FoldMode,e=function(){this.HighlightRules=r,this.foldingRules=new l,this.$behaviour=this.$defaultBehaviour};u.inherits(e,s),function(){this.lineCommentStart=["--","//"],this.blockComment=[{start:"(*",end:"*)"},{start:"{",end:"}"}],this.$id="ace/mode/pascal"}.call(e.prototype),c.Mode=e}),function(){ace.require(["ace/mode/pascal"],function(n){f&&(f.exports=n)})}()}}]);