Current File : /home/pacjaorg/public_html/kmm/media/vendor/codemirror/mode/vb/vb.min.js
(function(c){typeof exports=="object"&&typeof module=="object"?c(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],c):c(CodeMirror)})(function(c){"use strict";c.defineMode("vb",function(a,k){var u="error";function o(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var m=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),I=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),E=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),R=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),O=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),z=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"],v=["next","loop"],p=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],C=o(p),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"],S=o(g),F=o(y),L='"',T=o(h),b=o(s),w=o(v),x=o(["end"]),j=o(["do"]),K=null;c.registerHelper("hintWords","vb",h.concat(s).concat(v).concat(p).concat(g).concat(y));function l(e,n){n.currentIndent++}function d(e,n){n.currentIndent--}function f(e,n){if(e.eatSpace())return null;var r=e.peek();if(r==="'")return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var i=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(i=!0),i)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(L)?(n.tokenize=_(e.current()),n.tokenize(e,n)):e.match(O)||e.match(R)?null:e.match(E)||e.match(m)||e.match(C)?"operator":e.match(I)?null:e.match(j)?(l(e,n),n.doInCurrentLine=!0,"keyword"):e.match(T)?(n.doInCurrentLine?n.doInCurrentLine=!1:l(e,n),"keyword"):e.match(b)?"keyword":e.match(x)?(d(e,n),d(e,n),"keyword"):e.match(w)?(d(e,n),"keyword"):e.match(F)||e.match(S)?"keyword":e.match(z)?"variable":(e.next(),u)}function _(e){var n=e.length==1,r="string";return function(i,t){for(;!i.eol();){if(i.eatWhile(/[^'"]/),i.match(e))return t.tokenize=f,r;i.eat(/['"]/)}if(n){if(k.singleLineStringErrors)return u;t.tokenize=f}return r}}function A(e,n){var r=n.tokenize(e,n),i=e.current();if(i===".")return r=n.tokenize(e,n),r==="variable"?"variable":u;var t="[({".indexOf(i);return t!==-1&&l(e,n),K==="dedent"&&d(e,n)||(t="])}".indexOf(i),t!==-1&&d(e,n))?u:r}var D={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:f,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 r=A(e,n);return n.lastToken={style:r,content:e.current()},r},indent:function(e,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(w)||r.match(x)||r.match(b)?a.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*a.indentUnit},lineComment:"'"};return D}),c.defineMIME("text/x-vb","vb")});
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!