filesbox/web/dist/67173.479745cd.async.js

2 lines
4.0 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[67173],{67173:function(j,a,f){"use strict";f.r(a),f.d(a,{vb:function(){return D}});var u="error";function o(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var m=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),x=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),I=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),R=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),C=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),O=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),h=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],s=["else","elseif","case","catch","finally"],p=["next","loop"],v=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],z=o(v),g=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],y=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],E=o(g),_=o(y),S='"',T=o(h),w=o(s),b=o(p),k=o(["end"]),F=o(["do"]),K=null;function d(e,n){n.currentIndent++}function c(e,n){n.currentIndent--}function l(e,n){if(e.eatSpace())return null;var i=e.peek();if(i==="'")return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var r=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(r=!0),r)return e.eat(/J/i),"number";var t=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?t=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),t=!0):e.match(/^0(?![\dx])/i)&&(t=!0),t)return e.eat(/L/i),"number"}return e.match(S)?(n.tokenize=L(e.current()),n.tokenize(e,n)):e.match(C)||e.match(R)?null:e.match(I)||e.match(m)||e.match(z)?"operator":e.match(x)?null:e.match(F)?(d(e,n),n.doInCurrentLine=!0,"keyword"):e.match(T)?(n.doInCurrentLine?n.doInCurrentLine=!1:d(e,n),"keyword"):e.match(w)?"keyword":e.match(k)?(c(e,n),c(e,n),"keyword"):e.match(b)?(c(e,n),"keyword"):e.match(_)||e.match(E)?"keyword":e.match(O)?"variable":(e.next(),u)}function L(e){var n=e.length==1,i="string";return function(r,t){for(;!r.eol();){if(r.eatWhile(/[^'"]/),r.match(e))return t.tokenize=l,i;r.eat(/['"]/)}return n&&(t.tokenize=l),i}}function A(e,n){var i=n.tokenize(e,n),r=e.current();if(r===".")return i=n.tokenize(e,n),i==="variable"?"variable":u;var t="[({".indexOf(r);return t!==-1&&d(e,n),K==="dedent"&&c(e,n)||(t="])}".indexOf(r),t!==-1&&c(e,n))?u:i}const D={name:"vb",startState:function(){return{tokenize:l,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var i=A(e,n);return n.lastToken={style:i,content:e.current()},i},indent:function(e,n,i){var r=n.replace(/^\s+|\s+$/g,"");return r.match(b)||r.match(k)||r.match(w)?i.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*i.unit},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:"'"},autocomplete:h.concat(s).concat(p).concat(v).concat(g).concat(y)}}}}]);