File manager - Edit - /home/opticamezl/www/newok/cypher.tar
Back
cypher.js 0000644 00000015732 15174755522 0006421 0 ustar 00 // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE // By the Neo4j Team and contributors. // https://github.com/neo4j-contrib/CodeMirror (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"; var wordRegexp = function(words) { return new RegExp("^(?:" + words.join("|") + ")$", "i"); }; CodeMirror.defineMode("cypher", function(config) { var tokenBase = function(stream/*, state*/) { curPunc = null var ch = stream.next(); if (ch ==='"') { stream.match(/^[^"]*"/); return "string"; } if (ch === "'") { stream.match(/^[^']*'/); return "string"; } if (/[{}\(\),\.;\[\]]/.test(ch)) { curPunc = ch; return "node"; } else if (ch === "/" && stream.eat("/")) { stream.skipToEnd(); return "comment"; } else if (operatorChars.test(ch)) { stream.eatWhile(operatorChars); return null; } else { stream.eatWhile(/[_\w\d]/); if (stream.eat(":")) { stream.eatWhile(/[\w\d_\-]/); return "atom"; } var word = stream.current(); if (funcs.test(word)) return "builtin"; if (preds.test(word)) return "def"; if (keywords.test(word) || systemKeywords.test(word)) return "keyword"; return "variable"; } }; var pushContext = function(state, type, col) { return state.context = { prev: state.context, indent: state.indent, col: col, type: type }; }; var popContext = function(state) { state.indent = state.context.indent; return state.context = state.context.prev; }; var indentUnit = config.indentUnit; var curPunc; var funcs = wordRegexp(["abs", "acos", "allShortestPaths", "asin", "atan", "atan2", "avg", "ceil", "coalesce", "collect", "cos", "cot", "count", "degrees", "e", "endnode", "exp", "extract", "filter", "floor", "haversin", "head", "id", "keys", "labels", "last", "left", "length", "log", "log10", "lower", "ltrim", "max", "min", "node", "nodes", "percentileCont", "percentileDisc", "pi", "radians", "rand", "range", "reduce", "rel", "relationship", "relationships", "replace", "reverse", "right", "round", "rtrim", "shortestPath", "sign", "sin", "size", "split", "sqrt", "startnode", "stdev", "stdevp", "str", "substring", "sum", "tail", "tan", "timestamp", "toFloat", "toInt", "toString", "trim", "type", "upper"]); var preds = wordRegexp(["all", "and", "any", "contains", "exists", "has", "in", "none", "not", "or", "single", "xor"]); var keywords = wordRegexp(["as", "asc", "ascending", "assert", "by", "case", "commit", "constraint", "create", "csv", "cypher", "delete", "desc", "descending", "detach", "distinct", "drop", "else", "end", "ends", "explain", "false", "fieldterminator", "foreach", "from", "headers", "in", "index", "is", "join", "limit", "load", "match", "merge", "null", "on", "optional", "order", "periodic", "profile", "remove", "return", "scan", "set", "skip", "start", "starts", "then", "true", "union", "unique", "unwind", "using", "when", "where", "with", "call", "yield"]); var systemKeywords = wordRegexp(["access", "active", "assign", "all", "alter", "as", "catalog", "change", "copy", "create", "constraint", "constraints", "current", "database", "databases", "dbms", "default", "deny", "drop", "element", "elements", "exists", "from", "grant", "graph", "graphs", "if", "index", "indexes", "label", "labels", "management", "match", "name", "names", "new", "node", "nodes", "not", "of", "on", "or", "password", "populated", "privileges", "property", "read", "relationship", "relationships", "remove", "replace", "required", "revoke", "role", "roles", "set", "show", "start", "status", "stop", "suspended", "to", "traverse", "type", "types", "user", "users", "with", "write"]); var operatorChars = /[*+\-<>=&|~%^]/; return { startState: function(/*base*/) { return { tokenize: tokenBase, context: null, indent: 0, col: 0 }; }, token: function(stream, state) { if (stream.sol()) { if (state.context && (state.context.align == null)) { state.context.align = false; } state.indent = stream.indentation(); } if (stream.eatSpace()) { return null; } var style = state.tokenize(stream, state); if (style !== "comment" && state.context && (state.context.align == null) && state.context.type !== "pattern") { state.context.align = true; } if (curPunc === "(") { pushContext(state, ")", stream.column()); } else if (curPunc === "[") { pushContext(state, "]", stream.column()); } else if (curPunc === "{") { pushContext(state, "}", stream.column()); } else if (/[\]\}\)]/.test(curPunc)) { while (state.context && state.context.type === "pattern") { popContext(state); } if (state.context && curPunc === state.context.type) { popContext(state); } } else if (curPunc === "." && state.context && state.context.type === "pattern") { popContext(state); } else if (/atom|string|variable/.test(style) && state.context) { if (/[\}\]]/.test(state.context.type)) { pushContext(state, "pattern", stream.column()); } else if (state.context.type === "pattern" && !state.context.align) { state.context.align = true; state.context.col = stream.column(); } } return style; }, indent: function(state, textAfter) { var firstChar = textAfter && textAfter.charAt(0); var context = state.context; if (/[\]\}]/.test(firstChar)) { while (context && context.type === "pattern") { context = context.prev; } } var closing = context && firstChar === context.type; if (!context) return 0; if (context.type === "keywords") return CodeMirror.commands.newlineAndIndent; if (context.align) return context.col + (closing ? 0 : 1); return context.indent + (closing ? 0 : indentUnit); } }; }); CodeMirror.modeExtensions["cypher"] = { autoFormatLineBreaks: function(text) { var i, lines, reProcessedPortion; var lines = text.split("\n"); var reProcessedPortion = /\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g; for (var i = 0; i < lines.length; i++) lines[i] = lines[i].replace(reProcessedPortion, " \n$1 ").trim(); return lines.join("\n"); } }; CodeMirror.defineMIME("application/x-cypher-query", "cypher"); }); cypher.min.js.gz 0000644 00000003425 15174755522 0007616 0 ustar 00 � �W_��6ϧ�pz^1�H�{����z�Lf�����܃�4���R�BR�S����eo7w/D @�BIݙ2(kˏ�Ђ��`�Z|Q0���&�~��U�a\����N9HX�fi�i��J[A����q����ʠ�!�L�\*�j�d�����<�ɏ���4��<���u�|p�l���*.˞�Ι;������M��d����j�I؉�ƿc�)��S�F>� V� 8&�-�帇�G]�Nk� �؇�OU�@Q��N���&�>�?���q��s�f�4�g/I�/��?�����"Yp�H���b��� >$�� ���`����Ĥ C�2�ǝ��j�mߛ*႕�i���%�n�����Vur5��Y��2��)g/igs�e�%�����I��90x���&����:��2,ߏs�,_ߧ�v\z��κ��l+��+ �,�U��0�$-� �űu��/�B� L�MQZ����|�kQ�����}�%��,��B�1*-6E�̙\y&�,-�?m���)Æ��2H��_�n�L��Fb�_�Z�%F���� �`� pe�T�!�`���$�Z逗���Z��ـ��J��4�� td<�k�#1�AƮ���l��T�k�G2����J0Ai��R ��?�/qB1����4�8SE�F;�������D��j�}�2�Z��.qj�������i�%�TkC$����o�BU�� ҅>>*��%O�w�� ��I ���d� �����}0�~t{�L��m��%��7��9Is t� ����c�s���2k�s{K���pDkG0UtFzt +�K�ӦQ��'�P:���=��P�Yh�2��b�� K�A�|P��[9K�־�yc���W-�r�@W\��_mD���M�yp��[��U8�o �Yŀ���A)8B"�S<>�-�Nҷ�(����"D;[+Q��md����'��(:6@hqe�(ڴ3�k?�St ����� 8\�)Btqr��oc��|�WA�o���q�C)��w���7����&�7��|�v|*0�2�U��@�j�@-;��}h�~�� ����IY;�nJ����.���5���ѐu#� ����������p ��GM�ֶ���wj�4�cQt���k������O4g�@����݂,t��}�[0 �P'��ٗ$��F�@�G�� ���l��a��������H{ 2@~y��������_����?�k�x>̯�~���[���$�ṞL.l*�Z����k�~��;.`�"#��}��%$c�4t���t�^+�.�K�v��7=��Q��!��>���>r��ULW �u+�k��)V�;U'$3�e��C��˜_������C��9?��%��� �� �\&��eq�[��eδ!y�~�Ԟ[��b�aoz�O�ih"��ü1�ќ�Z��|F�0�>���>L&����Ť�q�����}��y��-�{�Q �~�#nlL��,-/QsJ��L�)q��f� �n2 EQD�75�ݳ�M��T>5������v1֙���v������S��9��36ml�����.�8�.؟�kd�Y������;���R�§ԡ%_^}�B��?,VI��D����D���5���^�S|�N�=9y|�Z�l-��qZ~���Oˇ���!�p"ŗ�W߽���Sl��_"�_ѯ�Y\~[?||�0ٶZ�Tc����ۯ���0�3����� cypher.min.js 0000644 00000010004 15174755522 0007166 0 ustar 00 (function(o){typeof exports=="object"&&typeof module=="object"?o(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";var d=function(s){return new RegExp("^(?:"+s.join("|")+")$","i")};o.defineMode("cypher",function(s){var c=function(n){l=null;var e=n.next();if(e==='"')return n.match(/^[^"]*"/),"string";if(e==="'")return n.match(/^[^']*'/),"string";if(/[{}\(\),\.;\[\]]/.test(e))return l=e,"node";if(e==="/"&&n.eat("/"))return n.skipToEnd(),"comment";if(u.test(e))return n.eatWhile(u),null;if(n.eatWhile(/[_\w\d]/),n.eat(":"))return n.eatWhile(/[\w\d_\-]/),"atom";var t=n.current();return h.test(t)?"builtin":x.test(t)?"def":g.test(t)||v.test(t)?"keyword":"variable"},i=function(n,e,t){return n.context={prev:n.context,indent:n.indent,col:t,type:e}},a=function(n){return n.indent=n.context.indent,n.context=n.context.prev},f=s.indentUnit,l,h=d(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),x=d(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),g=d(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),v=d(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),u=/[*+\-<>=&|~%^]/;return{startState:function(){return{tokenize:c,context:null,indent:0,col:0}},token:function(n,e){if(n.sol()&&(e.context&&e.context.align==null&&(e.context.align=!1),e.indent=n.indentation()),n.eatSpace())return null;var t=e.tokenize(n,e);if(t!=="comment"&&e.context&&e.context.align==null&&e.context.type!=="pattern"&&(e.context.align=!0),l==="(")i(e,")",n.column());else if(l==="[")i(e,"]",n.column());else if(l==="{")i(e,"}",n.column());else if(/[\]\}\)]/.test(l)){for(;e.context&&e.context.type==="pattern";)a(e);e.context&&l===e.context.type&&a(e)}else l==="."&&e.context&&e.context.type==="pattern"?a(e):/atom|string|variable/.test(t)&&e.context&&(/[\}\]]/.test(e.context.type)?i(e,"pattern",n.column()):e.context.type==="pattern"&&!e.context.align&&(e.context.align=!0,e.context.col=n.column()));return t},indent:function(n,e){var t=e&&e.charAt(0),r=n.context;if(/[\]\}]/.test(t))for(;r&&r.type==="pattern";)r=r.prev;var p=r&&t===r.type;return r?r.type==="keywords"?o.commands.newlineAndIndent:r.align?r.col+(p?0:1):r.indent+(p?0:f):0}}}),o.modeExtensions.cypher={autoFormatLineBreaks:function(s){for(var c,i,a,i=s.split(` `),a=/\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g,c=0;c<i.length;c++)i[c]=i[c].replace(a,` $1 `).trim();return i.join(` `)}},o.defineMIME("application/x-cypher-query","cypher")});
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings