2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4655],{4655:function(m,v,x){m=x.nmd(m),ace.define("ace/mode/jack_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(o,h,p){"use strict";var d=o("../lib/oop"),u=o("./text_highlight_rules").TextHighlightRules,g=function(){this.$rules={start:[{token:"string",regex:'"',next:"string2"},{token:"string",regex:"'",next:"string1"},{token:"constant.numeric",regex:"-?0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"(?:0|[-+]?[1-9][0-9]*)\\b"},{token:"constant.binary",regex:"<[0-9A-Fa-f][0-9A-Fa-f](\\s+[0-9A-Fa-f][0-9A-Fa-f])*>"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"constant.language.null",regex:"null\\b"},{token:"storage.type",regex:"(?:Integer|Boolean|Null|String|Buffer|Tuple|List|Object|Function|Coroutine|Form)\\b"},{token:"keyword",regex:"(?:return|abort|vars|for|delete|in|is|escape|exec|split|and|if|elif|else|while)\\b"},{token:"language.builtin",regex:"(?:lines|source|parse|read-stream|interval|substr|parseint|write|print|range|rand|inspect|bind|i-values|i-pairs|i-map|i-filter|i-chunk|i-all\\?|i-any\\?|i-collect|i-zip|i-merge|i-each)\\b"},{token:"comment",regex:"--.*$"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"storage.form",regex:"@[a-z]+"},{token:"constant.other.symbol",regex:":+[a-zA-Z_]([-]?[a-zA-Z0-9_])*[?!]?"},{token:"variable",regex:"[a-zA-Z_]([-]?[a-zA-Z0-9_])*[?!]?"},{token:"keyword.operator",regex:"\\|\\||\\^\\^|&&|!=|==|<=|<|>=|>|\\+|-|\\*|\\/|\\^|\\%|\\#|\\!"},{token:"text",regex:"\\s+"}],string1:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|['"\\\/bfnrt])/},{token:"string",regex:"[^'\\\\]+"},{token:"string",regex:"'",next:"start"},{token:"string",regex:"",next:"start"}],string2:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|['"\\\/bfnrt])/},{token:"string",regex:'[^"\\\\]+'},{token:"string",regex:'"',next:"start"},{token:"string",regex:"",next:"start"}]}};d.inherits(g,u),h.JackHighlightRules=g}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(o,h,p){"use strict";var d=o("../range").Range,u=function(){};(function(){this.checkOutdent=function(g,c){return/^\s+$/.test(g)?/^\s*\}/.test(c):!1},this.autoOutdent=function(g,c){var e=g.getLine(c),n=e.match(/^(\s*\})/);if(!n)return 0;var t=n[1].length,r=g.findMatchingBracket({row:c,column:t});if(!r||r.row==c)return 0;var a=this.$getIndent(g.getLine(r.row));g.replace(new d(c,0,c,t-1),a)},this.$getIndent=function(g){return g.match(/^\s*/)[0]}}).call(u.prototype),h.MatchingBraceOutdent=u}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(o,h,p){"use strict";var d=o("../../lib/oop"),u=o("../../range").Range,g=o("./fold_mode").FoldMode,c=h.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};d.inherits(c,g),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,n,t){var r=e.getLine(t);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var a=this._getFoldWidgetBase(e,n,t);return!a&&this.startRegionRe.test(r)?"start":a},this.getFoldWidgetRange=function(e,n,t,r){var a=e.getLine(t);if(this.startRegionRe.test(a))return this.getCommentRegionBlock(e,a,t);var i=a.match(this.foldingStartMarker);if(i){var l=i.index;if(i[1])return this.openingBracketBlock(e,i[1],t,l);var s=e.getCommentFoldRange(t,l+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,t):n!="all"&&(s=null)),s}if(n!=="markbegin"){var i=a.match(this.foldingStopMarker);if(i){var l=i.index+i[0].length;return i[1]?this.closingBracketBlock(e,i[1],t,l):e.getCommentFoldRange(t,l,-1)}}},this.getSectionRange=function(e,n){var t=e.getLine(n),r=t.search(/\S/),a=n,i=t.length;n=n+1;for(var l=n,s=e.getLength();++n<s;){t=e.getLine(n);var k=t.search(/\S/);if(k!==-1){if(r>k)break;var f=this.getFoldWidgetRange(e,"all",n);if(f){if(f.start.row<=a)break;if(f.isMultiLine())n=f.end.row;else if(r==k)break}l=n}}return new u(a,i,l,e.getLine(l).length)},this.getCommentRegionBlock=function(e,n,t){for(var r=n.search(/\s*$/),a=e.getLength(),i=t,l=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,s=1;++t<a;){n=e.getLine(t);var k=l.exec(n);if(!!k&&(k[1]?s--:s++,!s))break}var f=t;if(f>i)return new u(i,r,f,n.length)}}.call(c.prototype)}),ace.define("ace/mode/jack",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/jack_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(o,h,p){"use strict";var d=o("../lib/oop"),u=o("./text").Mode,g=o("./jack_highlight_rules").JackHighlightRules,c=o("./matching_brace_outdent").MatchingBraceOutdent,e=o("./behaviour/cstyle").CstyleBehaviour,n=o("./folding/cstyle").FoldMode,t=function(){this.HighlightRules=g,this.$outdent=new c,this.$behaviour=new e,this.foldingRules=new n};d.inherits(t,u),function(){this.lineCommentStart="--",this.getNextLineIndent=function(r,a,i){var l=this.$getIndent(a);if(r=="start"){var s=a.match(/^.*[\{\(\[]\s*$/);s&&(l+=i)}return l},this.checkOutdent=function(r,a,i){return this.$outdent.checkOutdent(a,i)},this.autoOutdent=function(r,a,i){this.$outdent.autoOutdent(a,i)},this.$id="ace/mode/jack"}.call(t.prototype),h.Mode=t}),function(){ace.require(["ace/mode/jack"],function(o){m&&(m.exports=o)})}()}}]);
|