Liferay.Loader.define("liferay!template-web$codemirror@5.65.2/mode/vb/vb",["module","exports","require","../../lib/codemirror"],(function(e,t,n){var r,i=void 0;window;r=function(e){"use strict";e.defineMode("vb",(function(t,n){var r="error";function wordRegexp(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var i=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),o=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),a=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),c=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),d=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),u=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),s=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],l=["else","elseif","case","catch","finally"],m=["next","loop"],f=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],h=wordRegexp(f),p=["#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"],g=["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"],b=wordRegexp(p),w=wordRegexp(g),y=wordRegexp(s),v=wordRegexp(l),x=wordRegexp(m),k=wordRegexp(["end"]),I=wordRegexp(["do"]);function indent(e,t){t.currentIndent++}function dedent(e,t){t.currentIndent--}function tokenBase(e,t){if(e.eatSpace())return null;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var s=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(s=!0),s)return e.eat(/J/i),"number";var l=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?l=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),l=!0):e.match(/^0(?![\dx])/i)&&(l=!0),l)return e.eat(/L/i),"number"}return e.match('"')?(t.tokenize=function tokenStringFactory(e){var t=1==e.length,i="string";return function(o,a){for(;!o.eol();){if(o.eatWhile(/[^'"]/),o.match(e))return a.tokenize=tokenBase,i;o.eat(/['"]/)}if(t){if(n.singleLineStringErrors)return r;a.tokenize=tokenBase}return i}}(e.current()),t.tokenize(e,t)):e.match(d)||e.match(c)?null:e.match(a)||e.match(i)||e.match(h)?"operator":e.match(o)?null:e.match(I)?(indent(0,t),t.doInCurrentLine=!0,"keyword"):e.match(y)?(t.doInCurrentLine?t.doInCurrentLine=!1:indent(0,t),"keyword"):e.match(v)?"keyword":e.match(k)?(dedent(0,t),dedent(0,t),"keyword"):e.match(x)?(dedent(0,t),"keyword"):e.match(w)||e.match(b)?"keyword":e.match(u)?"variable":(e.next(),r)}return e.registerHelper("hintWords","vb",s.concat(l).concat(m).concat(f).concat(p).concat(g)),{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:tokenBase,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=function tokenLexer(e,t){var n=t.tokenize(e,t),i=e.current();if("."===i)return"variable"===(n=t.tokenize(e,t))?"variable":r;var o="[({".indexOf(i);return-1!==o&&indent(0,t),-1!==(o="])}".indexOf(i))&&dedent(0,t)?r:n}(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(x)||r.match(k)||r.match(v)?t.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*t.indentUnit},lineComment:"'"}})),e.defineMIME("text/x-vb","vb")},"object"==typeof t&&"object"==typeof e?r(n("../../lib/codemirror")):"function"==typeof i&&i.amd?i(["../../lib/codemirror"],r):r(CodeMirror)}));
//# sourceMappingURL=vb.js.map