File manager - Edit - /home/opticamezl/www/newok/vb.tar
Back
vb.js 0000644 00000023157 15175341151 0005524 0 ustar 00 // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("vb", function(conf, parserConf) { var ERRORCLASS = 'error'; function wordRegexp(words) { return new RegExp("^((" + words.join(")|(") + "))\\b", "i"); } var singleOperators = new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"); var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]'); var doubleOperators = new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"); var doubleDelimiters = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"); var tripleDelimiters = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"); var identifiers = new RegExp("^[_A-Za-z][_A-Za-z0-9]*"); var openingKeywords = ['class','module', 'sub','enum','select','while','if','function', 'get','set','property', 'try', 'structure', 'synclock', 'using', 'with']; var middleKeywords = ['else','elseif','case', 'catch', 'finally']; var endKeywords = ['next','loop']; var operatorKeywords = ['and', "andalso", 'or', 'orelse', 'xor', 'in', 'not', 'is', 'isnot', 'like']; var wordOperators = wordRegexp(operatorKeywords); var commonKeywords = ["#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"]; var commontypes = ['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']; var keywords = wordRegexp(commonKeywords); var types = wordRegexp(commontypes); var stringPrefixes = '"'; var opening = wordRegexp(openingKeywords); var middle = wordRegexp(middleKeywords); var closing = wordRegexp(endKeywords); var doubleClosing = wordRegexp(['end']); var doOpening = wordRegexp(['do']); var indentInfo = null; CodeMirror.registerHelper("hintWords", "vb", openingKeywords.concat(middleKeywords).concat(endKeywords) .concat(operatorKeywords).concat(commonKeywords).concat(commontypes)); function indent(_stream, state) { state.currentIndent++; } function dedent(_stream, state) { state.currentIndent--; } // tokenizers function tokenBase(stream, state) { if (stream.eatSpace()) { return null; } var ch = stream.peek(); // Handle Comments if (ch === "'") { stream.skipToEnd(); return 'comment'; } // Handle Number Literals if (stream.match(/^((&H)|(&O))?[0-9\.a-f]/i, false)) { var floatLiteral = false; // Floats if (stream.match(/^\d*\.\d+F?/i)) { floatLiteral = true; } else if (stream.match(/^\d+\.\d*F?/)) { floatLiteral = true; } else if (stream.match(/^\.\d+F?/)) { floatLiteral = true; } if (floatLiteral) { // Float literals may be "imaginary" stream.eat(/J/i); return 'number'; } // Integers var intLiteral = false; // Hex if (stream.match(/^&H[0-9a-f]+/i)) { intLiteral = true; } // Octal else if (stream.match(/^&O[0-7]+/i)) { intLiteral = true; } // Decimal else if (stream.match(/^[1-9]\d*F?/)) { // Decimal literals may be "imaginary" stream.eat(/J/i); // TODO - Can you have imaginary longs? intLiteral = true; } // Zero by itself with no other piece of number. else if (stream.match(/^0(?![\dx])/i)) { intLiteral = true; } if (intLiteral) { // Integer literals may be "long" stream.eat(/L/i); return 'number'; } } // Handle Strings if (stream.match(stringPrefixes)) { state.tokenize = tokenStringFactory(stream.current()); return state.tokenize(stream, state); } // Handle operators and Delimiters if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters)) { return null; } if (stream.match(doubleOperators) || stream.match(singleOperators) || stream.match(wordOperators)) { return 'operator'; } if (stream.match(singleDelimiters)) { return null; } if (stream.match(doOpening)) { indent(stream,state); state.doInCurrentLine = true; return 'keyword'; } if (stream.match(opening)) { if (! state.doInCurrentLine) indent(stream,state); else state.doInCurrentLine = false; return 'keyword'; } if (stream.match(middle)) { return 'keyword'; } if (stream.match(doubleClosing)) { dedent(stream,state); dedent(stream,state); return 'keyword'; } if (stream.match(closing)) { dedent(stream,state); return 'keyword'; } if (stream.match(types)) { return 'keyword'; } if (stream.match(keywords)) { return 'keyword'; } if (stream.match(identifiers)) { return 'variable'; } // Handle non-detected items stream.next(); return ERRORCLASS; } function tokenStringFactory(delimiter) { var singleline = delimiter.length == 1; var OUTCLASS = 'string'; return function(stream, state) { while (!stream.eol()) { stream.eatWhile(/[^'"]/); if (stream.match(delimiter)) { state.tokenize = tokenBase; return OUTCLASS; } else { stream.eat(/['"]/); } } if (singleline) { if (parserConf.singleLineStringErrors) { return ERRORCLASS; } else { state.tokenize = tokenBase; } } return OUTCLASS; }; } function tokenLexer(stream, state) { var style = state.tokenize(stream, state); var current = stream.current(); // Handle '.' connected identifiers if (current === '.') { style = state.tokenize(stream, state); if (style === 'variable') { return 'variable'; } else { return ERRORCLASS; } } var delimiter_index = '[({'.indexOf(current); if (delimiter_index !== -1) { indent(stream, state ); } if (indentInfo === 'dedent') { if (dedent(stream, state)) { return ERRORCLASS; } } delimiter_index = '])}'.indexOf(current); if (delimiter_index !== -1) { if (dedent(stream, state)) { return ERRORCLASS; } } return style; } var external = { electricChars:"dDpPtTfFeE ", startState: function() { return { tokenize: tokenBase, lastToken: null, currentIndent: 0, nextLineIndent: 0, doInCurrentLine: false }; }, token: function(stream, state) { if (stream.sol()) { state.currentIndent += state.nextLineIndent; state.nextLineIndent = 0; state.doInCurrentLine = 0; } var style = tokenLexer(stream, state); state.lastToken = {style:style, content: stream.current()}; return style; }, indent: function(state, textAfter) { var trueText = textAfter.replace(/^\s+|\s+$/g, '') ; if (trueText.match(closing) || trueText.match(doubleClosing) || trueText.match(middle)) return conf.indentUnit*(state.currentIndent-1); if(state.currentIndent < 0) return 0; return state.currentIndent * conf.indentUnit; }, lineComment: "'" }; return external; }); CodeMirror.defineMIME("text/x-vb", "vb"); }); vb.min.js.gz 0000644 00000003622 15175341151 0006720 0 ustar 00 � uks۸�{���d��(��\'R��q&�%�N���T�S�\J�)�A=b���� ��,��}��Y���� {r�Lv��XW A��$��z5em�*��0M���T�%Q4��a��Ĥ�V�Kע)dJ�hc��z�u: �=�f�6N�I�ǰ#��������Y�82I���I��͂�U�G�������IC�0ؓWY}�a{� �w���JI�oFiJ�'���p�;����Ab�8���^��!�����0~�;^�,�gq<��8>����-&q!��8sFv��^���� � ��@�:��#�:��}�Ya���'\������|<W2��Dk2�?���_����� ^ί �+1#I.˒p�pRV]���c�q�])OU�]q���p-�)��=��Y\Kg��U֫��$7�#�*�^�N�Vd�K1#��Ȅ���HN�KVhPi��{2�1#vh.7� s^��:%W���pb�_j�;T�6(�J��C����0�`|)f�Ebt�����_/�[z�! 2MWR�9�p�P�Yd�$��bo!�F�x��1a�;�d%QA��pN��B����S���%f��o�B��6>'F;�+�*���XO,�p鼝�VY�:��/�$jS�d�\��X��~���Dz� }���ą�6�M�N���U�L��f�/�*Dv �B�a*C\}��EkЮ>��y� �wV�(6��/ز����g+| ��q�JW��'�kU�Y�~Y����M�h���F���lCUk؆B[�g���B�4�k����� �H�P�E�g�ec*�U�F�e ���}GJ!�\Kk�>��* �6!��5��Z� K�JUB�:25:�{0d���l��xe��F8v�J�f[�z��k/~3a�/'n�o�` }��9���,�h8C�S�ɾ �[���z��ʁ�Ŝ�ŬyD9���u�?^����h{Diw�3" �n��Qu�����Qȍ�^ջ����t����ONI���T!�Yn�oź ��|�v�kL#4矅�K�� C���W���_CKƷ�� �;a�`�����A�W��<�$ιҁ}y�����7c}������h�h�BE-[h�X����fO:J*kA�{��v����H��:�,p��B�}ƾ��5�x �V����ʨB�+�pAT>�⋹�)e~��!�t�/>P�{���GƦ���e�A6*~y����7(s"��q���ӡb��)���������^�*q9b\un�tt���b��j� K��\m�S�{�.���3ý����=u�r4�H����y�Ӕ�ZCFv�9���Y���l��QO������[ZP�M���y����J��1e�w���Ǔ�|bS�oK�;��O�[6�&k�}&��Mi(H��������{���q����)���p�;}F�f\k~FɂM[l�ܱ) ���+�혞��=����l|gS��V��cL!¯+�xź���XbZ@��^��7܊fZN괶��;��K'�*�S6�ݩ�&~�oI:�=\���qU{m���"2n'*�̳UFC�?FaBbp?{?��l�T�S=M��cw�_����ظ'��}�p\D����'m,O�Z� Jf�DJ����QŚ��K!7�^]���p�ᯚG� 2g�Sy�6����O��ݪ�v%m9&���K��./���mʚ���R��t_�8�&�?���c�`�[�Yɏ/o�G�uv|�!*�(z=z>���~T��b�Lk�X=�CN���x*�>��������푫p�=m��B��2|��!.�.9!�%۶��`�����(X��Vt�kv��g�W���w}���s��6<TcrE��7o������(q�s�� �k|�ّM��?,7�� vb.min.js 0000644 00000010202 15175341151 0006271 0 ustar 00 (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")});
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings