2 lines
7.4 KiB
JavaScript
2 lines
7.4 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[77196],{77196:function(f,x,v){f=v.nmd(f),ace.define("ace/mode/perl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,u,k){"use strict";var p=a("../lib/oop"),d=a("./text_highlight_rules").TextHighlightRules,s=function(){var l="base|constant|continue|else|elsif|for|foreach|format|goto|if|last|local|my|next|no|package|parent|redo|require|scalar|sub|unless|until|while|use|vars",t="ARGV|ENV|INC|SIG",n="getprotobynumber|getprotobyname|getservbyname|gethostbyaddr|gethostbyname|getservbyport|getnetbyaddr|getnetbyname|getsockname|getpeername|setpriority|getprotoent|setprotoent|getpriority|endprotoent|getservent|setservent|endservent|sethostent|socketpair|getsockopt|gethostent|endhostent|setsockopt|setnetent|quotemeta|localtime|prototype|getnetent|endnetent|rewinddir|wantarray|getpwuid|closedir|getlogin|readlink|endgrent|getgrgid|getgrnam|shmwrite|shutdown|readline|endpwent|setgrent|readpipe|formline|truncate|dbmclose|syswrite|setpwent|getpwnam|getgrent|getpwent|ucfirst|sysread|setpgrp|shmread|sysseek|sysopen|telldir|defined|opendir|connect|lcfirst|getppid|binmode|syscall|sprintf|getpgrp|readdir|seekdir|waitpid|reverse|unshift|symlink|dbmopen|semget|msgrcv|rename|listen|chroot|msgsnd|shmctl|accept|unpack|exists|fileno|shmget|system|unlink|printf|gmtime|msgctl|semctl|values|rindex|substr|splice|length|msgget|select|socket|return|caller|delete|alarm|ioctl|index|undef|lstat|times|srand|chown|fcntl|close|write|umask|rmdir|study|sleep|chomp|untie|print|utime|mkdir|atan2|split|crypt|flock|chmod|BEGIN|bless|chdir|semop|shift|reset|link|stat|chop|grep|fork|dump|join|open|tell|pipe|exit|glob|warn|each|bind|sort|pack|eval|push|keys|getc|kill|seek|sqrt|send|wait|rand|tied|read|time|exec|recv|eof|chr|int|ord|exp|pos|pop|sin|log|abs|oct|hex|tie|cos|vec|END|ref|map|die|uc|lc|do",e=this.createKeywordMapper({keyword:l,"constant.language":t,"support.function":n},"identifier");this.$rules={start:[{token:"comment.doc",regex:"^=(?:begin|item)\\b",next:"block_comment"},{token:"string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:'["].*\\\\$',next:"qqstring"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"string",regex:"['].*\\\\$",next:"qstring"},{token:"constant.numeric",regex:"0x[0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"%#|\\$#|\\.\\.\\.|\\|\\|=|>>=|<<=|<=>|&&=|=>|!~|\\^=|&=|\\|=|\\.=|x=|%=|\\/=|\\*=|\\-=|\\+=|=~|\\*\\*|\\-\\-|\\.\\.|\\|\\||&&|\\+\\+|\\->|!=|==|>=|<=|>>|<<|,|=|\\?\\:|\\^|\\||x|%|\\/|\\*|<|&|\\\\|~|!|>|\\.|\\-|\\+|\\-C|\\-b|\\-S|\\-u|\\-t|\\-p|\\-l|\\-d|\\-f|\\-g|\\-s|\\-z|\\-k|\\-e|\\-O|\\-T|\\-B|\\-M|\\-A|\\-X|\\-W|\\-c|\\-R|\\-o|\\-x|\\-w|\\-r|\\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)"},{token:"comment",regex:"#.*$"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qqstring:[{token:"string",regex:'(?:(?:\\\\.)|(?:[^"\\\\]))*?"',next:"start"},{token:"string",regex:".+"}],qstring:[{token:"string",regex:"(?:(?:\\\\.)|(?:[^'\\\\]))*?'",next:"start"},{token:"string",regex:".+"}],block_comment:[{token:"comment.doc",regex:"^=cut\\b",next:"start"},{defaultToken:"comment.doc"}]}};p.inherits(s,d),u.PerlHighlightRules=s}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,u,k){"use strict";var p=a("../range").Range,d=function(){};(function(){this.checkOutdent=function(s,l){return/^\s+$/.test(s)?/^\s*\}/.test(l):!1},this.autoOutdent=function(s,l){var t=s.getLine(l),n=t.match(/^(\s*\})/);if(!n)return 0;var e=n[1].length,r=s.findMatchingBracket({row:l,column:e});if(!r||r.row==l)return 0;var i=this.$getIndent(s.getLine(r.row));s.replace(new p(l,0,l,e-1),i)},this.$getIndent=function(s){return s.match(/^\s*/)[0]}}).call(d.prototype),u.MatchingBraceOutdent=d}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(a,u,k){"use strict";var p=a("../../lib/oop"),d=a("../../range").Range,s=a("./fold_mode").FoldMode,l=u.FoldMode=function(t){t&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+t.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+t.end)))};p.inherits(l,s),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(t,n,e){var r=t.getLine(e);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(t,n,e);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(t,n,e,r){var i=t.getLine(e);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(t,i,e);var o=i.match(this.foldingStartMarker);if(o){var c=o.index;if(o[1])return this.openingBracketBlock(t,o[1],e,c);var g=t.getCommentFoldRange(e,c+o[0].length,1);return g&&!g.isMultiLine()&&(r?g=this.getSectionRange(t,e):n!="all"&&(g=null)),g}if(n!=="markbegin"){var o=i.match(this.foldingStopMarker);if(o){var c=o.index+o[0].length;return o[1]?this.closingBracketBlock(t,o[1],e,c):t.getCommentFoldRange(e,c,-1)}}},this.getSectionRange=function(t,n){var e=t.getLine(n),r=e.search(/\S/),i=n,o=e.length;n=n+1;for(var c=n,g=t.getLength();++n<g;){e=t.getLine(n);var h=e.search(/\S/);if(h!==-1){if(r>h)break;var m=this.getFoldWidgetRange(t,"all",n);if(m){if(m.start.row<=i)break;if(m.isMultiLine())n=m.end.row;else if(r==h)break}c=n}}return new d(i,o,c,t.getLine(c).length)},this.getCommentRegionBlock=function(t,n,e){for(var r=n.search(/\s*$/),i=t.getLength(),o=e,c=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++e<i;){n=t.getLine(e);var h=c.exec(n);if(!!h&&(h[1]?g--:g++,!g))break}var m=e;if(m>o)return new d(o,r,m,n.length)}}.call(l.prototype)}),ace.define("ace/mode/perl",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/perl_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle"],function(a,u,k){"use strict";var p=a("../lib/oop"),d=a("./text").Mode,s=a("./perl_highlight_rules").PerlHighlightRules,l=a("./matching_brace_outdent").MatchingBraceOutdent,t=a("./folding/cstyle").FoldMode,n=function(){this.HighlightRules=s,this.$outdent=new l,this.foldingRules=new t({start:"^=(begin|item)\\b",end:"^=(cut)\\b"}),this.$behaviour=this.$defaultBehaviour};p.inherits(n,d),function(){this.lineCommentStart="#",this.blockComment=[{start:"=begin",end:"=cut",lineStartOnly:!0},{start:"=item",end:"=cut",lineStartOnly:!0}],this.getNextLineIndent=function(e,r,i){var o=this.$getIndent(r),c=this.getTokenizer().getLineTokens(r,e),g=c.tokens;if(g.length&&g[g.length-1].type=="comment")return o;if(e=="start"){var h=r.match(/^.*[\{\(\[:]\s*$/);h&&(o+=i)}return o},this.checkOutdent=function(e,r,i){return this.$outdent.checkOutdent(r,i)},this.autoOutdent=function(e,r,i){this.$outdent.autoOutdent(r,i)},this.$id="ace/mode/perl",this.snippetFileId="ace/snippets/perl"}.call(n.prototype),u.Mode=n}),function(){ace.require(["ace/mode/perl"],function(a){f&&(f.exports=a)})}()}}]);
|