- md5
- 2853768522cc86657b0a5cf1d2d040fe
- sha1
- 6cbc19a3ee32b82b67c3d1b3680485ac13688ab9
- sha256
- 92b9480ab9fce8eac712130488b2aafcf3f2ac606a4cd1fd887a0e03161d7dd2
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("vb",function(n,t){var r="error";function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var o=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),c=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),a=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),u=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),d=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),l=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),f=["class","module","sub","enum","select","while","if","function","get","set","property","try"],m=["else","elseif","case","catch"],h=["next","loop"],s=["and","or","not","xor","in"],p=i(s),b=["as","dim","break","continue","optional","then","until","goto","byval","byref","new","handles","property","return","const","private","protected","friend","public","shared","static","true","false"],k=["integer","string","double","decimal","boolean","short","char","float","single"],g=i(b),x=i(k),v='"',w=i(f),y=i(m),I=i(h),E=i(["end"]),L=i(["do"]),z=null;function C(e,n){n.currentIndent++}function R(e,n){n.currentIndent--}function F(e,n){if(e.eatSpace())return null;var i,f;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var m=!1;if(e.match(/^\d*\.\d+F?/i)?m=!0:e.match(/^\d+\.\d*F?/)?m=!0:e.match(/^\.\d+F?/)&&(m=!0),m)return e.eat(/J/i),"number";var h=!1;if(e.match(/^&H[0-9a-f]+/i)?h=!0:e.match(/^&O[0-7]+/i)?h=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),h=!0):e.match(/^0(?![\dx])/i)&&(h=!0),h)return e.eat(/L/i),"number"}return e.match(v)?(n.tokenize=(i=e.current(),f=1==i.length,function(e,n){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(i))return n.tokenize=F,"string";e.eat(/['"]/)}if(f){if(t.singleLineStringErrors)return r;n.tokenize=F}return"string"}),n.tokenize(e,n)):e.match(d)||e.match(u)?null:e.match(a)||e.match(o)||e.match(p)?"operator":e.match(c)?null:e.match(L)?(C(0,n),n.doInCurrentLine=!0,"keyword"):e.match(w)?(n.doInCurrentLine?n.doInCurrentLine=!1:C(0,n),"keyword"):e.match(y)?"keyword":e.match(E)?(R(0,n),R(0,n),"keyword"):e.match(I)?(R(0,n),"keyword"):e.match(x)?"keyword":e.match(g)?"keyword":e.match(l)?"variable":(e.next(),r)}return e.registerHelper("hintWords","vb",f.concat(m).concat(h).concat(s).concat(b).concat(k)),{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 t=function(e,n){var t=n.tokenize(e,n),i=e.current();if("."===i)return"variable"===(t=n.tokenize(e,n))?"variable":r;var o="[({".indexOf(i);return-1!==o&&C(0,n),"dedent"===z&&R(0,n)?r:-1!==(o="])}".indexOf(i))&&R(0,n)?r:t}(e,n);return n.lastToken={style:t,content:e.current()},t},indent:function(e,t){var r=t.replace(/^\s+|\s+$/g,"");return r.match(I)||r.match(E)||r.match(y)?n.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.indentUnit},lineComment:"'"}}),e.defineMIME("text/x-vb","vb")});
The same content is in 8 releases, Joomla 4.0.0-alpha3 to 4.0.0-alpha11. See them all, or every version of this file.