%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/985914/root/data/old/home/stash/atlassian-stash/static/bower/CodeMirror/mode/xml/
Upload File :
Create Path :
Current File : //proc/985914/root/data/old/home/stash/atlassian-stash/static/bower/CodeMirror/mode/xml/xml-min.js

CodeMirror.defineMode("xml",function(W,J){var P=W.indentUnit;var V=J.multilineTagIndentFactor||1;var B=J.multilineTagIndentPastTag;if(B==null){B=true}var U=J.htmlMode?{autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true,caseFold:true}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false,caseFold:false};var A=J.alignCDATA;var D,E,F;function M(f,e){function b(c){e.tokenize=c;return c(f,e)}var d=f.next();if(d=="<"){if(f.eat("!")){if(f.eat("[")){if(f.match("CDATA[")){return b(T("atom","]]>"))}else{return null}}else{if(f.match("--")){return b(T("comment","-->"))}else{if(f.match("DOCTYPE",true,true)){f.eatWhile(/[\w\._\-]/);return b(X(1))}else{return null}}}}else{if(f.eat("?")){f.eatWhile(/[\w\._\-]/);e.tokenize=T("meta","?>");return"meta"}else{var Z=f.eat("/");D="";var g;while((g=f.eat(/[^\s\u00a0=<>\"\'\/?]/))){D+=g}if(U.caseFold){D=D.toLowerCase()}if(!D){return"tag error"}E=Z?"closeTag":"openTag";e.tokenize=L;return"tag"}}}else{if(d=="&"){var a;if(f.eat("#")){if(f.eat("x")){a=f.eatWhile(/[a-fA-F\d]/)&&f.eat(";")}else{a=f.eatWhile(/[\d]/)&&f.eat(";")}}else{a=f.eatWhile(/[\w\.\-:]/)&&f.eat(";")}return a?"atom":"error"}else{f.eatWhile(/[^&<]/);return null}}}function L(c,b){var a=c.next();if(a==">"||(a=="/"&&c.eat(">"))){b.tokenize=M;E=a==">"?"endTag":"selfcloseTag";return"tag"}else{if(a=="="){E="equals";return null}else{if(a=="<"){b.tokenize=M;b.state=K;b.tagName=b.tagStart=null;var Z=b.tokenize(c,b);return Z?Z+" error":"error"}else{if(/[\'\"]/.test(a)){b.tokenize=I(a);b.stringStartCol=c.column();return b.tokenize(c,b)}else{c.eatWhile(/[^\s\u00a0=<>\"\']/);return"word"}}}}}function I(Z){var a=function(c,b){while(!c.eol()){if(c.next()==Z){b.tokenize=L;break}}return"string"};a.isInAttribute=true;return a}function T(a,Z){return function(c,b){while(!c.eol()){if(c.match(Z)){b.tokenize=M;break}c.next()}return a}}function X(Z){return function(c,b){var a;while((a=c.next())!=null){if(a=="<"){b.tokenize=X(Z+1);return b.tokenize(c,b)}else{if(a==">"){if(Z==1){b.tokenize=M;break}else{b.tokenize=X(Z-1);return b.tokenize(c,b)}}}}return"meta"}}function Q(a,Z,b){this.prev=a.context;this.tagName=Z;this.indent=a.indented;this.startOfLine=b;if(U.doNotIndent.hasOwnProperty(Z)||(a.context&&a.context.noIndent)){this.noIndent=true}}function S(Z){if(Z.context){Z.context=Z.context.prev}}function O(b,a){var Z;while(true){if(!b.context){return }Z=b.context.tagName;if(!U.contextGrabbers.hasOwnProperty(Z)||!U.contextGrabbers[Z].hasOwnProperty(a)){return }S(b)}}function K(Z,c,b){if(Z=="openTag"){b.tagName=D;b.tagStart=c.column();return C}else{if(Z=="closeTag"){var a=false;if(b.context){if(b.context.tagName!=D){if(U.implicitlyClosed.hasOwnProperty(b.context.tagName)){S(b)}a=!b.context||b.context.tagName!=D}}else{a=true}if(a){F="error"}return a?Y:R}else{return K}}}function R(a,Z,b){if(a!="endTag"){F="error";return R}S(b);return K}function Y(Z,b,a){F="error";return R(Z,b,a)}function C(c,a,d){if(c=="word"){F="attribute";return H}else{if(c=="endTag"||c=="selfcloseTag"){var b=d.tagName,Z=d.tagStart;d.tagName=d.tagStart=null;if(c=="selfcloseTag"||U.autoSelfClosers.hasOwnProperty(b)){O(d,b)}else{O(d,b);d.context=new Q(d,b,Z==d.indented)}return K}}F="error";return C}function H(Z,b,a){if(Z=="equals"){return N}if(!U.allowMissing){F="error"}return C(Z,b,a)}function N(Z,b,a){if(Z=="string"){return G}if(Z=="word"&&U.allowUnquoted){F="string";return C}F="error";return C(Z,b,a)}function G(Z,b,a){if(Z=="string"){return G}return C(Z,b,a)}return{startState:function(){return{tokenize:M,state:K,indented:0,tagName:null,tagStart:null,context:null}},token:function(b,a){if(!a.tagName&&b.sol()){a.indented=b.indentation()}if(b.eatSpace()){return null}D=E=null;var Z=a.tokenize(b,a);if((Z||E)&&Z!="comment"){F=null;a.state=a.state(E||Z,b,a);if(F){Z=F=="error"?Z+" error":F}}return Z},indent:function(c,Z,b){var a=c.context;if(c.tokenize.isInAttribute){return c.stringStartCol+1}if(a&&a.noIndent){return CodeMirror.Pass}if(c.tokenize!=L&&c.tokenize!=M){return b?b.match(/^(\s*)/)[0].length:0}if(c.tagName){if(B){return c.tagStart+c.tagName.length+2}else{return c.tagStart+P*V}}if(A&&/<!\[CDATA\[/.test(Z)){return 0}if(a&&/^<\//.test(Z)){a=a.prev}while(a&&!a.startOfLine){a=a.prev}if(a){return a.indent+P}else{return 0}},electricChars:"/",blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:J.htmlMode?"html":"xml",helperType:J.htmlMode?"html":"xml"}});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/xml","xml");if(!CodeMirror.mimeModes.hasOwnProperty("text/html")){CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:true})};

Zerion Mini Shell 1.0