%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/old/home/stash/atlassian-stash/static/bower/CodeMirror/mode/vbscript/
Upload File :
Create Path :
Current File : //data/old/home/stash/atlassian-stash/static/bower/CodeMirror/mode/vbscript/vbscript-min.js

CodeMirror.defineMode("vbscript",function(g,M){var S="error";function E(r){return new RegExp("^(("+r.join(")|(")+"))\\b","i")}var o=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]");var N=new RegExp("^((<>)|(<=)|(>=))");var K=new RegExp("^[\\.,]");var c=new RegExp("^[\\(\\)]");var h=new RegExp("^[A-Za-z][_A-Za-z0-9]*");var f=["class","sub","select","while","if","function","property","with","for"];var U=["else","elseif","case"];var C=["next","loop","wend"];var D=E(["and","or","not","xor","is","mod","eqv","imp"]);var I=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"];var W=["true","false","nothing","empty","null"];var l=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"];var k=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"];var i=["WScript","err","debug","RegExp"];var q=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"];var T=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"];var e=["server","response","request","session","application"];var H=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"];var F=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"];var R=T.concat(q);i=i.concat(k);if(g.isASP){i=i.concat(e);R=R.concat(F,H)}var B=E(I);var O=E(W);var P=E(l);var m=E(i);var A=E(R);var n='"';var Q=E(f);var Y=E(U);var Z=E(C);var j=E(["end"]);var a=E(["do"]);var p=E(["on error resume next","exit"]);var V=E(["rem"]);function J(r,s){s.currentIndent++}function G(r,s){s.currentIndent--}function X(v,u){if(v.eatSpace()){return"space"}var t=v.peek();if(t==="'"){v.skipToEnd();return"comment"}if(v.match(V)){v.skipToEnd();return"comment"}if(v.match(/^((&H)|(&O))?[0-9\.]/i,false)&&!v.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,false)){var s=false;if(v.match(/^\d*\.\d+/i)){s=true}else{if(v.match(/^\d+\.\d*/)){s=true}else{if(v.match(/^\.\d+/)){s=true}}}if(s){v.eat(/J/i);return"number"}var r=false;if(v.match(/^&H[0-9a-f]+/i)){r=true}else{if(v.match(/^&O[0-7]+/i)){r=true}else{if(v.match(/^[1-9]\d*F?/)){v.eat(/J/i);r=true}else{if(v.match(/^0(?![\dx])/i)){r=true}}}}if(r){v.eat(/L/i);return"number"}}if(v.match(n)){u.tokenize=d(v.current());return u.tokenize(v,u)}if(v.match(N)||v.match(o)||v.match(D)){return"operator"}if(v.match(K)){return null}if(v.match(c)){return"bracket"}if(v.match(p)){u.doInCurrentLine=true;return"keyword"}if(v.match(a)){J(v,u);u.doInCurrentLine=true;return"keyword"}if(v.match(Q)){if(!u.doInCurrentLine){J(v,u)}else{u.doInCurrentLine=false}return"keyword"}if(v.match(Y)){return"keyword"}if(v.match(j)){G(v,u);G(v,u);return"keyword"}if(v.match(Z)){if(!u.doInCurrentLine){G(v,u)}else{u.doInCurrentLine=false}return"keyword"}if(v.match(B)){return"keyword"}if(v.match(O)){return"atom"}if(v.match(A)){return"variable-2"}if(v.match(P)){return"builtin"}if(v.match(m)){return"variable-2"}if(v.match(h)){return"variable"}v.next();return S}function d(r){var t=r.length==1;var s="string";return function(v,u){while(!v.eol()){v.eatWhile(/[^'"]/);if(v.match(r)){u.tokenize=X;return s}else{v.eat(/['"]/)}}if(t){if(M.singleLineStringErrors){return S}else{u.tokenize=X}}return s}}function L(u,s){var r=s.tokenize(u,s);var t=u.current();if(t==="."){r=s.tokenize(u,s);t=u.current();if(r.substr(0,8)==="variable"||r==="builtin"||r==="keyword"){if(r==="builtin"||r==="keyword"){r="variable"}if(R.indexOf(t.substr(1))>-1){r="variable-2"}return r}else{return S}}return r}var b={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:X,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:false,ignoreKeyword:false}},token:function(t,s){if(t.sol()){s.currentIndent+=s.nextLineIndent;s.nextLineIndent=0;s.doInCurrentLine=0}var r=L(t,s);s.lastToken={style:r,content:t.current()};if(r==="space"){r=null}return r},indent:function(t,r){var s=r.replace(/^\s+|\s+$/g,"");if(s.match(Z)||s.match(j)||s.match(Y)){return g.indentUnit*(t.currentIndent-1)}if(t.currentIndent<0){return 0}return t.currentIndent*g.indentUnit}};return b});CodeMirror.defineMIME("text/vbscript","vbscript");

Zerion Mini Shell 1.0