芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/timucuy2124.gob.mx/media/vendor/codemirror/mode/rst/rst.min.js
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../python/python"),require("../stex/stex"),require("../../addon/mode/overlay")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../python/python","../stex/stex","../../addon/mode/overlay"],e):e(CodeMirror)}((function(e){"use strict";e.defineMode("rst",(function(t,a){var c=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,n=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,r=/^``[^`\s](?:[^`]*[^`\s])``/,m=/^(?:[\d]+(?:[\.,]\d+)*)/,o=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,s=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,h=new RegExp("^[Hh][Tt][Tt][Pp][Ss]?://(?:[\\d\\w.-]+)\\.(?:\\w{2,6})(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*"),l={token:function(e){if(e.match(c)&&e.match(/\W+|$/,!1))return"strong";if(e.match(n)&&e.match(/\W+|$/,!1))return"em";if(e.match(r)&&e.match(/\W+|$/,!1))return"string-2";if(e.match(m))return"number";if(e.match(o))return"positive";if(e.match(s))return"negative";if(e.match(h))return"link";for(;!(null==e.next()||e.match(c,!1)||e.match(n,!1)||e.match(r,!1)||e.match(m,!1)||e.match(o,!1)||e.match(s,!1)||e.match(h,!1)););return null}},i=e.getMode(t,a.backdrop||"rst-base");return e.overlayMode(i,l,!0)}),"python","stex"),e.defineMode("rst-base",(function(t){function a(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,(function(e,a){return void 0!==t[a]?t[a]:e}))}var c=e.getMode(t,"python"),n=e.getMode(t,"stex"),r="\\s+",m="(?:\\s*|\\W|$)",o=new RegExp(a("^{0}",m)),s="(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",h=new RegExp(a("^{0}",s)),l=a("(?:{0}|`{1}`)",s,"(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)"),i="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",p="(?:[^\\`]+)",d=new RegExp(a("^{0}",p)),u=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),x=new RegExp(a("^\\.\\.{0}",r)),f=new RegExp(a("^_{0}:{1}|^__:{1}",l,m)),k=new RegExp(a("^{0}::{1}",l,m)),w=new RegExp(a("^\\|{0}\\|{1}{2}::{3}",i,r,l,m)),b=new RegExp(a("^\\[(?:\\d+|#{0}?|\\*)]{1}",l,m)),g=new RegExp(a("^\\[{0}\\]{1}",l,m)),E=new RegExp(a("^\\|{0}\\|",i)),R=new RegExp(a("^\\[(?:\\d+|#{0}?|\\*)]_",l)),y=new RegExp(a("^\\[{0}\\]_",l)),_=new RegExp(a("^{0}__?",l)),v=new RegExp(a("^`{0}`_",p)),$=new RegExp(a("^:{0}:`{1}`{2}",s,p,m)),S=new RegExp(a("^`{1}`:{0}:{2}",s,p,m)),M=new RegExp(a("^:{0}:{1}",s,m)),W=new RegExp(a("^{0}",l)),q=new RegExp(a("^::{0}",m)),T=new RegExp(a("^\\|{0}\\|",i)),j=new RegExp(a("^{0}",r)),I=new RegExp(a("^{0}",l)),A=new RegExp(a("^::{0}",m)),C=new RegExp("^_"),H=new RegExp(a("^{0}|_",l)),P=new RegExp(a("^:{0}",m)),z=new RegExp("^::\\s*$"),B=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");function D(t,a){var r=null;if(t.sol()&&t.match(B,!1))O(a,L,{mode:c,local:e.startState(c)});else if(t.sol()&&t.match(x))O(a,F),r="meta";else if(t.sol()&&t.match(u))O(a,D),r="header";else if(U(a)==$||t.match($,!1))switch(Q(a)){case 0:O(a,D,N($,1)),t.match(/^:/),r="meta";break;case 1:O(a,D,N($,2)),t.match(h),r="keyword",t.current().match(/^(?:math|latex)/)&&(a.tmp_stex=!0);break;case 2:O(a,D,N($,3)),t.match(/^:`/),r="meta";break;case 3:if(a.tmp_stex&&(a.tmp_stex=void 0,a.tmp={mode:n,local:e.startState(n)}),a.tmp){if("`"==t.peek()){O(a,D,N($,4)),a.tmp=void 0;break}r=a.tmp.mode.token(t,a.tmp.local);break}O(a,D,N($,4)),t.match(d),r="string";break;case 4:O(a,D,N($,5)),t.match(/^`/),r="meta";break;case 5:O(a,D,N($,6)),t.match(o);break;default:O(a,D)}else if(U(a)==S||t.match(S,!1))switch(Q(a)){case 0:O(a,D,N(S,1)),t.match(/^`/),r="meta";break;case 1:O(a,D,N(S,2)),t.match(d),r="string";break;case 2:O(a,D,N(S,3)),t.match(/^`:/),r="meta";break;case 3:O(a,D,N(S,4)),t.match(h),r="keyword";break;case 4:O(a,D,N(S,5)),t.match(/^:/),r="meta";break;case 5:O(a,D,N(S,6)),t.match(o);break;default:O(a,D)}else if(U(a)==M||t.match(M,!1))switch(Q(a)){case 0:O(a,D,N(M,1)),t.match(/^:/),r="meta";break;case 1:O(a,D,N(M,2)),t.match(h),r="keyword";break;case 2:O(a,D,N(M,3)),t.match(/^:/),r="meta";break;case 3:O(a,D,N(M,4)),t.match(o);break;default:O(a,D)}else if(U(a)==E||t.match(E,!1))switch(Q(a)){case 0:O(a,D,N(E,1)),t.match(T),r="variable-2";break;case 1:O(a,D,N(E,2)),t.match(/^_?_?/)&&(r="link");break;default:O(a,D)}else if(t.match(R))O(a,D),r="quote";else if(t.match(y))O(a,D),r="quote";else if(t.match(_))O(a,D),t.peek()&&!t.peek().match(/^\W$/)||(r="link");else if(U(a)==v||t.match(v,!1))switch(Q(a)){case 0:!t.peek()||t.peek().match(/^\W$/)?O(a,D,N(v,1)):t.match(v);break;case 1:O(a,D,N(v,2)),t.match(/^`/),r="link";break;case 2:O(a,D,N(v,3)),t.match(d);break;case 3:O(a,D,N(v,4)),t.match(/^`_/),r="link";break;default:O(a,D)}else t.match(z)?O(a,J):t.next()&&O(a,D);return r}function F(t,a){var r=null;if(U(a)==w||t.match(w,!1))switch(Q(a)){case 0:O(a,F,N(w,1)),t.match(T),r="variable-2";break;case 1:O(a,F,N(w,2)),t.match(j);break;case 2:O(a,F,N(w,3)),t.match(I),r="keyword";break;case 3:O(a,F,N(w,4)),t.match(A),r="meta";break;default:O(a,D)}else if(U(a)==k||t.match(k,!1))switch(Q(a)){case 0:O(a,F,N(k,1)),t.match(W),r="keyword",t.current().match(/^(?:math|latex)/)?a.tmp_stex=!0:t.current().match(/^python/)&&(a.tmp_py=!0);break;case 1:O(a,F,N(k,2)),t.match(q),r="meta",(t.match(/^latex\s*$/)||a.tmp_stex)&&(a.tmp_stex=void 0,O(a,L,{mode:n,local:e.startState(n)}));break;case 2:O(a,F,N(k,3)),(t.match(/^python\s*$/)||a.tmp_py)&&(a.tmp_py=void 0,O(a,L,{mode:c,local:e.startState(c)}));break;default:O(a,D)}else if(U(a)==f||t.match(f,!1))switch(Q(a)){case 0:O(a,F,N(f,1)),t.match(C),t.match(H),r="link";break;case 1:O(a,F,N(f,2)),t.match(P),r="meta";break;default:O(a,D)}else t.match(b)||t.match(g)?(O(a,D),r="quote"):(t.eatSpace(),t.eol()?O(a,D):(t.skipToEnd(),O(a,G),r="comment"));return r}function G(e,t){return K(e,t,"comment")}function J(e,t){return K(e,t,"meta")}function K(e,t,a){return e.eol()||e.eatSpace()?(e.skipToEnd(),a):(O(t,D),null)}function L(e,t){return t.ctx.mode&&t.ctx.local?e.sol()?(e.eatSpace()||O(t,D),null):t.ctx.mode.token(e,t.ctx.local):(O(t,D),null)}function N(e,t,a,c){return{phase:e,stage:t,mode:a,local:c}}function O(e,t,a){e.tok=t,e.ctx=a||{}}function Q(e){return e.ctx.stage||0}function U(e){return e.ctx.phase}return{startState:function(){return{tok:D,ctx:N(void 0,0)}},copyState:function(t){var a=t.ctx,c=t.tmp;return a.local&&(a={mode:a.mode,local:e.copyState(a.mode,a.local)}),c&&(c={mode:c.mode,local:e.copyState(c.mode,c.local)}),{tok:t.tok,ctx:a,tmp:c}},innerMode:function(e){return e.tmp?{state:e.tmp.local,mode:e.tmp.mode}:e.ctx.mode?{state:e.ctx.local,mode:e.ctx.mode}:null},token:function(e,t){return t.tok(e,t)}}}),"python","stex"),e.defineMIME("text/x-rst","rst")}));