Current File : /home/pacjaorg/public_html/kmm/media/vendor/codemirror/mode/xquery/xquery.min.js
(function(d){typeof exports=="object"&&typeof module=="object"?d(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("xquery",function(){var h=function(){function e(M){return{type:M,style:"keyword"}}for(var n=e("operator"),i={type:"atom",style:"atom"},t={type:"punctuation",style:null},u={type:"axis_specifier",style:"qualifier"},l={",":t},x=["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"],r=0,o=x.length;r<o;r++)l[x[r]]=e(x[r]);for(var k=["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"],r=0,o=k.length;r<o;r++)l[k[r]]=i;for(var p=["eq","ne","lt","le","gt","ge",":=","=",">",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"],r=0,o=p.length;r<o;r++)l[p[r]]=n;for(var z=["self::","attribute::","child::","descendant::","descendant-or-self::","parent::","ancestor::","ancestor-or-self::","following::","preceding::","following-sibling::","preceding-sibling::"],r=0,o=z.length;r<o;r++)l[z[r]]=u;return l}();function f(e,n,i){return n.tokenize=i,i(e,n)}function c(e,n){var i=e.next(),t=!1,u=D(e);if(i=="<"){if(e.match("!--",!0))return f(e,n,T);if(e.match("![CDATA",!1))return n.tokenize=E,"tag";if(e.match("?",!1))return f(e,n,N);var l=e.eat("/");e.eatSpace();for(var x="",r;r=e.eat(/[^\s\u00a0=<>\"\'\/?]/);)x+=r;return f(e,n,S(x,l))}else{if(i=="{")return s(n,{type:"codeblock"}),null;if(i=="}")return a(n),null;if(b(n))return i==">"?"tag":i=="/"&&e.eat(">")?(a(n),"tag"):"variable";if(/\d/.test(i))return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if(i==="("&&e.eat(":"))return s(n,{type:"comment"}),f(e,n,w);if(!u&&(i==='"'||i==="'"))return f(e,n,v(i));if(i==="$")return f(e,n,I);if(i===":"&&e.eat("="))return"keyword";if(i==="(")return s(n,{type:"paren"}),null;if(i===")")return a(n),null;if(i==="[")return s(n,{type:"bracket"}),null;if(i==="]")return a(n),null;var o=h.propertyIsEnumerable(i)&&h[i];if(u&&i==='"')for(;e.next()!=='"';);if(u&&i==="'")for(;e.next()!=="'";);o||e.eatWhile(/[\w\$_-]/);var k=e.eat(":");!e.eat(":")&&k&&e.eatWhile(/[\w\$_-]/),e.match(/^[ \t]*\(/,!1)&&(t=!0);var p=e.current();return o=h.propertyIsEnumerable(p)&&h[p],t&&!o&&(o={type:"function_call",style:"variable def"}),A(n)?(a(n),"variable"):((p=="element"||p=="attribute"||o.type=="axis_specifier")&&s(n,{type:"xmlconstructor"}),o?o.style:"variable")}}function w(e,n){for(var i=!1,t=!1,u=0,l;l=e.next();){if(l==")"&&i)if(u>0)u--;else{a(n);break}else l==":"&&t&&u++;i=l==":",t=l=="("}return"comment"}function v(e,n){return function(i,t){var u;if(C(t)&&i.current()==e)return a(t),n&&(t.tokenize=n),"string";if(s(t,{type:"string",name:e,tokenize:v(e,n)}),i.match("{",!1)&&g(t))return t.tokenize=c,"string";for(;u=i.next();)if(u==e){a(t),n&&(t.tokenize=n);break}else if(i.match("{",!1)&&g(t))return t.tokenize=c,"string";return"string"}}function I(e,n){var i=/[\w\$_-]/;if(e.eat('"')){for(;e.next()!=='"';);e.eat(":")}else e.eatWhile(i),e.match(":=",!1)||e.eat(":");return e.eatWhile(i),n.tokenize=c,"variable"}function S(e,n){return function(i,t){if(i.eatSpace(),n&&i.eat(">"))return a(t),t.tokenize=c,"tag";if(i.eat("/")||s(t,{type:"tag",name:e,tokenize:c}),i.eat(">"))t.tokenize=c;else return t.tokenize=m,"tag";return"tag"}}function m(e,n){var i=e.next();return i=="/"&&e.eat(">")?(g(n)&&a(n),b(n)&&a(n),"tag"):i==">"?(g(n)&&a(n),"tag"):i=="="?null:i=='"'||i=="'"?f(e,n,v(i,m)):(g(n)||s(n,{type:"attribute",tokenize:m}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(a(n),n.tokenize=c),"attribute")}function T(e,n){for(var i;i=e.next();)if(i=="-"&&e.match("->",!0))return n.tokenize=c,"comment"}function E(e,n){for(var i;i=e.next();)if(i=="]"&&e.match("]",!0))return n.tokenize=c,"comment"}function N(e,n){for(var i;i=e.next();)if(i=="?"&&e.match(">",!0))return n.tokenize=c,"comment meta"}function b(e){return y(e,"tag")}function g(e){return y(e,"attribute")}function A(e){return y(e,"xmlconstructor")}function C(e){return y(e,"string")}function D(e){return e.current()==='"'?e.match(/^[^\"]+\"\:/,!1):e.current()==="'"?e.match(/^[^\"]+\'\:/,!1):!1}function y(e,n){return e.stack.length&&e.stack[e.stack.length-1].type==n}function s(e,n){e.stack.push(n)}function a(e){e.stack.pop();var n=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=n||c}return{startState:function(){return{tokenize:c,cc:[],stack:[]}},token:function(e,n){if(e.eatSpace())return null;var i=n.tokenize(e,n);return i},blockCommentStart:"(:",blockCommentEnd:":)"}}),d.defineMIME("application/xquery","xquery")});
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!