CoreFiles by mySites.guru
vb.min.js1 lines, 3,186 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
e1e8df56cb221f2b01738668dbdd1819
sha1
eb1980b986d311896597d90308455e58462a1fca
sha256
565b46f9c21fce53079abdd3e2c09a50310bf85e0d7c1fcdc3c03bb52416b9e0
!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){function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}function i(e,n){n.currentIndent++}function o(e,n){n.currentIndent--}function c(e,n){if(e.eatSpace())return null;if("'"===e.peek())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)?r=!0:e.match(/^\d+\.\d*F?/)?r=!0:e.match(/^\.\d+F?/)&&(r=!0),r)return e.eat(/J/i),"number";var s=!1;if(e.match(/^&H[0-9a-f]+/i)?s=!0:e.match(/^&O[0-7]+/i)?s=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),s=!0):e.match(/^0(?![\dx])/i)&&(s=!0),s)return e.eat(/L/i),"number"}return e.match(I)?(n.tokenize=function(e){var n=1==e.length;return function(r,i){for(;!r.eol();){if(r.eatWhile(/[^'"]/),r.match(e))return i.tokenize=c,"string";r.eat(/['"]/)}if(n){if(t.singleLineStringErrors)return a;i.tokenize=c}return"string"}}(e.current()),n.tokenize(e,n)):e.match(m)||e.match(f)?null:e.match(l)||e.match(u)||e.match(g)?"operator":e.match(d)?null:e.match(R)?(i(0,n),n.doInCurrentLine=!0,"keyword"):e.match(E)?(n.doInCurrentLine?n.doInCurrentLine=!1:i(0,n),"keyword"):e.match(L)?"keyword":e.match(C)?(o(0,n),o(0,n),"keyword"):e.match(z)?(o(0,n),"keyword"):e.match(y)?"keyword":e.match(w)?"keyword":e.match(h)?"variable":(e.next(),a)}var a="error",u=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),d=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),l=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),f=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),m=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),h=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),s=["class","module","sub","enum","select","while","if","function","get","set","property","try"],p=["else","elseif","case","catch"],b=["next","loop"],k=["and","or","not","xor","in"],g=r(k),x=["as","dim","break","continue","optional","then","until","goto","byval","byref","new","handles","property","return","const","private","protected","friend","public","shared","static","true","false"],v=["integer","string","double","decimal","boolean","short","char","float","single"],w=r(x),y=r(v),I='"',E=r(s),L=r(p),z=r(b),C=r(["end"]),R=r(["do"]),F=null;e.registerHelper("hintWords","vb",s.concat(p).concat(b).concat(k).concat(x).concat(v));return{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:c,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),r=e.current();if("."===r)return"variable"===(t=n.tokenize(e,n))?"variable":a;var c="[({".indexOf(r);return-1!==c&&i(0,n),"dedent"===F&&o(0,n)?a:-1!==(c="])}".indexOf(r))&&o(0,n)?a: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(z)||r.match(C)||r.match(L)?n.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.indentUnit},lineComment:"'"}}),e.defineMIME("text/x-vb","vb")});

No other release has this exact content. See every version of this file.