CoreFiles by mySites.guru
xquery.min.js1 lines, 6,892 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
2f1e133a0320977f84f0f9fbdb77eca5
sha1
3c3be890766da25c2dab7994ca2d28ef7621be14
sha256
9ea33b7d7b400e3f7ca708f13c737c8ac5cf1c0cee3dc97e737d7b6750cc9082
!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("xquery",function(){function e(e,t,n){return t.tokenize=n,n(e,t)}function t(l,x){var g=l.next(),y=!1,h=function(e){return'"'===e.current()?e.match(/^[^\"]+\"\:/,!1):"'"===e.current()&&e.match(/^[^\"]+\'\:/,!1)}(l);if("<"==g){if(l.match("!--",!0))return e(l,x,o);if(l.match("![CDATA",!1))return x.tokenize=s,"tag";if(l.match("?",!1))return e(l,x,c);var v=l.eat("/");l.eatSpace();for(var k,b="";k=l.eat(/[^\s\u00a0=<>\"\'\/?]/);)b+=k;return e(l,x,function(e,n){return function(r,i){return r.eatSpace(),n&&r.eat(">")?(d(i),i.tokenize=t,"tag"):(r.eat("/")||m(i,{type:"tag",name:e,tokenize:t}),r.eat(">")?(i.tokenize=t,"tag"):(i.tokenize=a,"tag"))}}(b,v))}if("{"==g)return m(x,{type:"codeblock"}),null;if("}"==g)return d(x),null;if(u(x))return">"==g?"tag":"/"==g&&l.eat(">")?(d(x),"tag"):"variable";if(/\d/.test(g))return l.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===g&&l.eat(":"))return m(x,{type:"comment"}),e(l,x,n);if(h||'"'!==g&&"'"!==g){if("$"===g)return e(l,x,i);if(":"===g&&l.eat("="))return"keyword";if("("===g)return m(x,{type:"paren"}),null;if(")"===g)return d(x),null;if("["===g)return m(x,{type:"bracket"}),null;if("]"===g)return d(x),null;var z=p.propertyIsEnumerable(g)&&p[g];if(h&&'"'===g)for(;'"'!==l.next(););if(h&&"'"===g)for(;"'"!==l.next(););z||l.eatWhile(/[\w\$_-]/);var w=l.eat(":");!l.eat(":")&&w&&l.eatWhile(/[\w\$_-]/),l.match(/^[ \t]*\(/,!1)&&(y=!0);var I=l.current();return z=p.propertyIsEnumerable(I)&&p[I],y&&!z&&(z={type:"function_call",style:"variable def"}),function(e){return f(e,"xmlconstructor")}(x)?(d(x),"variable"):("element"!=I&&"attribute"!=I&&"axis_specifier"!=z.type||m(x,{type:"xmlconstructor"}),z?z.style:"variable")}return e(l,x,r(g))}function n(e,t){for(var n,r=!1,i=!1,a=0;n=e.next();){if(")"==n&&r){if(!(a>0)){d(t);break}a--}else":"==n&&i&&a++;r=":"==n,i="("==n}return"comment"}function r(e,n){return function(i,a){var o;if(function(e){return f(e,"string")}(a)&&i.current()==e)return d(a),n&&(a.tokenize=n),"string";if(m(a,{type:"string",name:e,tokenize:r(e,n)}),i.match("{",!1)&&l(a))return a.tokenize=t,"string";for(;o=i.next();){if(o==e){d(a),n&&(a.tokenize=n);break}if(i.match("{",!1)&&l(a))return a.tokenize=t,"string"}return"string"}}function i(e,n){var r=/[\w\$_-]/;if(e.eat('"')){for(;'"'!==e.next(););e.eat(":")}else e.eatWhile(r),e.match(":=",!1)||e.eat(":");return e.eatWhile(r),n.tokenize=t,"variable"}function a(n,i){var o=n.next();return"/"==o&&n.eat(">")?(l(i)&&d(i),u(i)&&d(i),"tag"):">"==o?(l(i)&&d(i),"tag"):"="==o?null:'"'==o||"'"==o?e(n,i,r(o,a)):(l(i)||m(i,{type:"attribute",tokenize:a}),n.eat(/[a-zA-Z_:]/),n.eatWhile(/[-a-zA-Z0-9_:.]/),n.eatSpace(),(n.match(">",!1)||n.match("/",!1))&&(d(i),i.tokenize=t),"attribute")}function o(e,n){for(var r;r=e.next();)if("-"==r&&e.match("->",!0))return n.tokenize=t,"comment"}function s(e,n){for(var r;r=e.next();)if("]"==r&&e.match("]",!0))return n.tokenize=t,"comment"}function c(e,n){for(var r;r=e.next();)if("?"==r&&e.match(">",!0))return n.tokenize=t,"comment meta"}function u(e){return f(e,"tag")}function l(e){return f(e,"attribute")}function f(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function m(e,t){e.stack.push(t)}function d(e){e.stack.pop();var n=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=n||t}var p=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("operator"),n={type:"atom",style:"atom"},r={type:"axis_specifier",style:"qualifier"},i={",":{type:"punctuation",style:null}},a=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],o=0,s=a.length;o<s;o++)i[a[o]]=e(a[o]);for(var c=["xs:anyAtomicType","xs:anySimpleType","xs:anyType","xs:anyURI","xs:base64Binary","xs:boolean","xs:byte","xs:date","xs:dateTime","xs:dateTimeStamp","xs:dayTimeDuration","xs:decimal","xs:double","xs:duration","xs:ENTITIES","xs:ENTITY","xs:float","xs:gDay","xs:gMonth","xs:gMonthDay","xs:gYear","xs:gYearMonth","xs:hexBinary","xs:ID","xs:IDREF","xs:IDREFS","xs:int","xs:integer","xs:item","xs:java","xs:language","xs:long","xs:Name","xs:NCName","xs:negativeInteger","xs:NMTOKEN","xs:NMTOKENS","xs:nonNegativeInteger","xs:nonPositiveInteger","xs:normalizedString","xs:NOTATION","xs:numeric","xs:positiveInteger","xs:precisionDecimal","xs:QName","xs:short","xs:string","xs:time","xs:token","xs:unsignedByte","xs:unsignedInt","xs:unsignedLong","xs:unsignedShort","xs:untyped","xs:untypedAtomic","xs:yearMonthDuration"],o=0,s=c.length;o<s;o++)i[c[o]]=n;for(var u=["eq","ne","lt","le","gt","ge",":=","=",">",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"],o=0,s=u.length;o<s;o++)i[u[o]]=t;for(var l=["self::","attribute::","child::","descendant::","descendant-or-self::","parent::","ancestor::","ancestor-or-self::","following::","preceding::","following-sibling::","preceding-sibling::"],o=0,s=l.length;o<s;o++)i[l[o]]=r;return i}();return{startState:function(){return{tokenize:t,cc:[],stack:[]}},token:function(e,t){if(e.eatSpace())return null;return t.tokenize(e,t)},blockCommentStart:"(:",blockCommentEnd:":)"}}),e.defineMIME("application/xquery","xquery")});

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