[d565449] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | window.PR_SHOULD_USE_CONTINUATION = true;
|
---|
| 4 |
|
---|
| 5 | (function () {
|
---|
| 6 | var h = ['break,continue,do,else,for,if,return,while'];
|
---|
| 7 | var u = [h, 'auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile'];
|
---|
| 8 | var p = [u, 'catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof'];
|
---|
| 9 | var l = [p, 'alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where'];
|
---|
| 10 | var x = [p, 'abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient'];
|
---|
| 11 | var R = [x, 'as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var'];
|
---|
| 12 | var r = 'all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes';
|
---|
| 13 | var w = [p, 'debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN'];
|
---|
| 14 | var s = 'caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END';
|
---|
| 15 | var I = [h, 'and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None'];
|
---|
| 16 | var f = [h, 'alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END'];
|
---|
| 17 | var H = [h, 'case,done,elif,esac,eval,fi,function,in,local,set,then,until'];
|
---|
| 18 | var A = [l, R, w, s + I, f, H];
|
---|
| 19 | var e = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;
|
---|
| 20 | var C = 'str';
|
---|
| 21 | var z = 'kwd';
|
---|
| 22 | var j = 'com';
|
---|
| 23 | var O = 'typ';
|
---|
| 24 | var G = 'lit';
|
---|
| 25 | var L = 'pun';
|
---|
| 26 | var F = 'pln';
|
---|
| 27 | var m = 'tag';
|
---|
| 28 | var E = 'dec';
|
---|
| 29 | var J = 'src';
|
---|
| 30 | var P = 'atn';
|
---|
| 31 | var n = 'atv';
|
---|
| 32 | var N = 'nocode';
|
---|
| 33 | var M = '(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*';
|
---|
| 34 |
|
---|
| 35 | function k(Z) {
|
---|
| 36 | var ad = 0;
|
---|
| 37 | var S = false;
|
---|
| 38 | var ac = false;
|
---|
| 39 |
|
---|
| 40 | for (var V = 0, U = Z.length; V < U; ++V) {
|
---|
| 41 | var ae = Z[V];
|
---|
| 42 |
|
---|
| 43 | if (ae.ignoreCase) {
|
---|
| 44 | ac = true;
|
---|
| 45 | } else {
|
---|
| 46 | if (/[a-z]/i.test(ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi, ''))) {
|
---|
| 47 | S = true;
|
---|
| 48 | ac = false;
|
---|
| 49 | break;
|
---|
| 50 | }
|
---|
| 51 | }
|
---|
| 52 | }
|
---|
| 53 |
|
---|
| 54 | var Y = {
|
---|
| 55 | b: 8,
|
---|
| 56 | t: 9,
|
---|
| 57 | n: 10,
|
---|
| 58 | v: 11,
|
---|
| 59 | f: 12,
|
---|
| 60 | r: 13
|
---|
| 61 | };
|
---|
| 62 |
|
---|
| 63 | function ab(ah) {
|
---|
| 64 | var ag = ah.charCodeAt(0);
|
---|
| 65 |
|
---|
| 66 | if (ag !== 92) {
|
---|
| 67 | return ag;
|
---|
| 68 | }
|
---|
| 69 |
|
---|
| 70 | var af = ah.charAt(1);
|
---|
| 71 | ag = Y[af];
|
---|
| 72 |
|
---|
| 73 | if (ag) {
|
---|
| 74 | return ag;
|
---|
| 75 | } else {
|
---|
| 76 | if ('0' <= af && af <= '7') {
|
---|
| 77 | return parseInt(ah.substring(1), 8);
|
---|
| 78 | } else {
|
---|
| 79 | if (af === 'u' || af === 'x') {
|
---|
| 80 | return parseInt(ah.substring(2), 16);
|
---|
| 81 | } else {
|
---|
| 82 | return ah.charCodeAt(1);
|
---|
| 83 | }
|
---|
| 84 | }
|
---|
| 85 | }
|
---|
| 86 | }
|
---|
| 87 |
|
---|
| 88 | function T(af) {
|
---|
| 89 | if (af < 32) {
|
---|
| 90 | return (af < 16 ? '\\x0' : '\\x') + af.toString(16);
|
---|
| 91 | }
|
---|
| 92 |
|
---|
| 93 | var ag = String.fromCharCode(af);
|
---|
| 94 |
|
---|
| 95 | if (ag === '\\' || ag === '-' || ag === '[' || ag === ']') {
|
---|
| 96 | ag = '\\' + ag;
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | return ag;
|
---|
| 100 | }
|
---|
| 101 |
|
---|
| 102 | function X(am) {
|
---|
| 103 | var aq = am.substring(1, am.length - 1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]", 'g'));
|
---|
| 104 | var ak = [];
|
---|
| 105 | var af = [];
|
---|
| 106 | var ao = aq[0] === '^';
|
---|
| 107 |
|
---|
| 108 | for (var ar = ao ? 1 : 0, aj = aq.length; ar < aj; ++ar) {
|
---|
| 109 | var ah = aq[ar];
|
---|
| 110 |
|
---|
| 111 | if (/\\[bdsw]/i.test(ah)) {
|
---|
| 112 | ak.push(ah);
|
---|
| 113 | } else {
|
---|
| 114 | var ag = ab(ah);
|
---|
| 115 | var al;
|
---|
| 116 |
|
---|
| 117 | if (ar + 2 < aj && '-' === aq[ar + 1]) {
|
---|
| 118 | al = ab(aq[ar + 2]);
|
---|
| 119 | ar += 2;
|
---|
| 120 | } else {
|
---|
| 121 | al = ag;
|
---|
| 122 | }
|
---|
| 123 |
|
---|
| 124 | af.push([ag, al]);
|
---|
| 125 |
|
---|
| 126 | if (!(al < 65 || ag > 122)) {
|
---|
| 127 | if (!(al < 65 || ag > 90)) {
|
---|
| 128 | af.push([Math.max(65, ag) | 32, Math.min(al, 90) | 32]);
|
---|
| 129 | }
|
---|
| 130 |
|
---|
| 131 | if (!(al < 97 || ag > 122)) {
|
---|
| 132 | af.push([Math.max(97, ag) & ~32, Math.min(al, 122) & ~32]);
|
---|
| 133 | }
|
---|
| 134 | }
|
---|
| 135 | }
|
---|
| 136 | }
|
---|
| 137 |
|
---|
| 138 | af.sort(function (av, au) {
|
---|
| 139 | return av[0] - au[0] || au[1] - av[1];
|
---|
| 140 | });
|
---|
| 141 | var ai = [];
|
---|
| 142 | var ap = [NaN, NaN];
|
---|
| 143 |
|
---|
| 144 | for (var ar = 0; ar < af.length; ++ar) {
|
---|
| 145 | var at = af[ar];
|
---|
| 146 |
|
---|
| 147 | if (at[0] <= ap[1] + 1) {
|
---|
| 148 | ap[1] = Math.max(ap[1], at[1]);
|
---|
| 149 | } else {
|
---|
| 150 | ai.push(ap = at);
|
---|
| 151 | }
|
---|
| 152 | }
|
---|
| 153 |
|
---|
| 154 | var an = ['['];
|
---|
| 155 |
|
---|
| 156 | if (ao) {
|
---|
| 157 | an.push('^');
|
---|
| 158 | }
|
---|
| 159 |
|
---|
| 160 | an.push.apply(an, ak);
|
---|
| 161 |
|
---|
| 162 | for (var ar = 0; ar < ai.length; ++ar) {
|
---|
| 163 | var at = ai[ar];
|
---|
| 164 | an.push(T(at[0]));
|
---|
| 165 |
|
---|
| 166 | if (at[1] > at[0]) {
|
---|
| 167 | if (at[1] + 1 > at[0]) {
|
---|
| 168 | an.push('-');
|
---|
| 169 | }
|
---|
| 170 |
|
---|
| 171 | an.push(T(at[1]));
|
---|
| 172 | }
|
---|
| 173 | }
|
---|
| 174 |
|
---|
| 175 | an.push(']');
|
---|
| 176 | return an.join('');
|
---|
| 177 | }
|
---|
| 178 |
|
---|
| 179 | function W(al) {
|
---|
| 180 | var aj = al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)", 'g'));
|
---|
| 181 | var ah = aj.length;
|
---|
| 182 | var an = [];
|
---|
| 183 |
|
---|
| 184 | for (var ak = 0, am = 0; ak < ah; ++ak) {
|
---|
| 185 | var ag = aj[ak];
|
---|
| 186 |
|
---|
| 187 | if (ag === '(') {
|
---|
| 188 | ++am;
|
---|
| 189 | } else {
|
---|
| 190 | if ('\\' === ag.charAt(0)) {
|
---|
| 191 | var af = +ag.substring(1);
|
---|
| 192 |
|
---|
| 193 | if (af && af <= am) {
|
---|
| 194 | an[af] = -1;
|
---|
| 195 | }
|
---|
| 196 | }
|
---|
| 197 | }
|
---|
| 198 | }
|
---|
| 199 |
|
---|
| 200 | for (var ak = 1; ak < an.length; ++ak) {
|
---|
| 201 | if (-1 === an[ak]) {
|
---|
| 202 | an[ak] = ++ad;
|
---|
| 203 | }
|
---|
| 204 | }
|
---|
| 205 |
|
---|
| 206 | for (var ak = 0, am = 0; ak < ah; ++ak) {
|
---|
| 207 | var ag = aj[ak];
|
---|
| 208 |
|
---|
| 209 | if (ag === '(') {
|
---|
| 210 | ++am;
|
---|
| 211 |
|
---|
| 212 | if (an[am] === undefined) {
|
---|
| 213 | aj[ak] = '(?:';
|
---|
| 214 | }
|
---|
| 215 | } else {
|
---|
| 216 | if ('\\' === ag.charAt(0)) {
|
---|
| 217 | var af = +ag.substring(1);
|
---|
| 218 |
|
---|
| 219 | if (af && af <= am) {
|
---|
| 220 | aj[ak] = '\\' + an[am];
|
---|
| 221 | }
|
---|
| 222 | }
|
---|
| 223 | }
|
---|
| 224 | }
|
---|
| 225 |
|
---|
| 226 | for (var ak = 0, am = 0; ak < ah; ++ak) {
|
---|
| 227 | if ('^' === aj[ak] && '^' !== aj[ak + 1]) {
|
---|
| 228 | aj[ak] = '';
|
---|
| 229 | }
|
---|
| 230 | }
|
---|
| 231 |
|
---|
| 232 | if (al.ignoreCase && S) {
|
---|
| 233 | for (var ak = 0; ak < ah; ++ak) {
|
---|
| 234 | var ag = aj[ak];
|
---|
| 235 | var ai = ag.charAt(0);
|
---|
| 236 |
|
---|
| 237 | if (ag.length >= 2 && ai === '[') {
|
---|
| 238 | aj[ak] = X(ag);
|
---|
| 239 | } else {
|
---|
| 240 | if (ai !== '\\') {
|
---|
| 241 | aj[ak] = ag.replace(/[a-zA-Z]/g, function (ao) {
|
---|
| 242 | var ap = ao.charCodeAt(0);
|
---|
| 243 | return '[' + String.fromCharCode(ap & ~32, ap | 32) + ']';
|
---|
| 244 | });
|
---|
| 245 | }
|
---|
| 246 | }
|
---|
| 247 | }
|
---|
| 248 | }
|
---|
| 249 |
|
---|
| 250 | return aj.join('');
|
---|
| 251 | }
|
---|
| 252 |
|
---|
| 253 | var aa = [];
|
---|
| 254 |
|
---|
| 255 | for (var V = 0, U = Z.length; V < U; ++V) {
|
---|
| 256 | var ae = Z[V];
|
---|
| 257 |
|
---|
| 258 | if (ae.global || ae.multiline) {
|
---|
| 259 | throw new Error('' + ae);
|
---|
| 260 | }
|
---|
| 261 |
|
---|
| 262 | aa.push('(?:' + W(ae) + ')');
|
---|
| 263 | }
|
---|
| 264 |
|
---|
| 265 | return new RegExp(aa.join('|'), ac ? 'gi' : 'g');
|
---|
| 266 | }
|
---|
| 267 |
|
---|
| 268 | function a(V) {
|
---|
| 269 | var U = /(?:^|\s)nocode(?:\s|$)/;
|
---|
| 270 | var X = [];
|
---|
| 271 | var T = 0;
|
---|
| 272 | var Z = [];
|
---|
| 273 | var W = 0;
|
---|
| 274 | var S;
|
---|
| 275 |
|
---|
| 276 | if (V.currentStyle) {
|
---|
| 277 | S = V.currentStyle.whiteSpace;
|
---|
| 278 | } else {
|
---|
| 279 | if (window.getComputedStyle) {
|
---|
| 280 | S = document.defaultView.getComputedStyle(V, null).getPropertyValue('white-space');
|
---|
| 281 | }
|
---|
| 282 | }
|
---|
| 283 |
|
---|
| 284 | var Y = S && 'pre' === S.substring(0, 3);
|
---|
| 285 |
|
---|
| 286 | function aa(ab) {
|
---|
| 287 | switch (ab.nodeType) {
|
---|
| 288 | case 1:
|
---|
| 289 | if (U.test(ab.className)) {
|
---|
| 290 | return;
|
---|
| 291 | }
|
---|
| 292 |
|
---|
| 293 | for (var ae = ab.firstChild; ae; ae = ae.nextSibling) {
|
---|
| 294 | aa(ae);
|
---|
| 295 | }
|
---|
| 296 |
|
---|
| 297 | var ad = ab.nodeName;
|
---|
| 298 |
|
---|
| 299 | if ('BR' === ad || 'LI' === ad) {
|
---|
| 300 | X[W] = '\n';
|
---|
| 301 | Z[W << 1] = T++;
|
---|
| 302 | Z[W++ << 1 | 1] = ab;
|
---|
| 303 | }
|
---|
| 304 |
|
---|
| 305 | break;
|
---|
| 306 |
|
---|
| 307 | case 3:
|
---|
| 308 | case 4:
|
---|
| 309 | var ac = ab.nodeValue;
|
---|
| 310 |
|
---|
| 311 | if (ac.length) {
|
---|
| 312 | if (!Y) {
|
---|
| 313 | ac = ac.replace(/[ \t\r\n]+/g, ' ');
|
---|
| 314 | } else {
|
---|
| 315 | ac = ac.replace(/\r\n?/g, '\n');
|
---|
| 316 | }
|
---|
| 317 |
|
---|
| 318 | X[W] = ac;
|
---|
| 319 | Z[W << 1] = T;
|
---|
| 320 | T += ac.length;
|
---|
| 321 | Z[W++ << 1 | 1] = ab;
|
---|
| 322 | }
|
---|
| 323 |
|
---|
| 324 | break;
|
---|
| 325 | }
|
---|
| 326 | }
|
---|
| 327 |
|
---|
| 328 | aa(V);
|
---|
| 329 | return {
|
---|
| 330 | sourceCode: X.join('').replace(/\n$/, ''),
|
---|
| 331 | spans: Z
|
---|
| 332 | };
|
---|
| 333 | }
|
---|
| 334 |
|
---|
| 335 | function B(S, U, W, T) {
|
---|
| 336 | if (!U) {
|
---|
| 337 | return;
|
---|
| 338 | }
|
---|
| 339 |
|
---|
| 340 | var V = {
|
---|
| 341 | sourceCode: U,
|
---|
| 342 | basePos: S
|
---|
| 343 | };
|
---|
| 344 | W(V);
|
---|
| 345 | T.push.apply(T, V.decorations);
|
---|
| 346 | }
|
---|
| 347 |
|
---|
| 348 | var v = /\S/;
|
---|
| 349 |
|
---|
| 350 | function o(S) {
|
---|
| 351 | var V = undefined;
|
---|
| 352 |
|
---|
| 353 | for (var U = S.firstChild; U; U = U.nextSibling) {
|
---|
| 354 | var T = U.nodeType;
|
---|
| 355 | V = T === 1 ? V ? S : U : T === 3 ? v.test(U.nodeValue) ? S : V : V;
|
---|
| 356 | }
|
---|
| 357 |
|
---|
| 358 | return V === S ? undefined : V;
|
---|
| 359 | }
|
---|
| 360 |
|
---|
| 361 | function g(U, T) {
|
---|
| 362 | var S = {};
|
---|
| 363 | var V;
|
---|
| 364 |
|
---|
| 365 | (function () {
|
---|
| 366 | var ad = U.concat(T);
|
---|
| 367 | var ah = [];
|
---|
| 368 | var ag = {};
|
---|
| 369 |
|
---|
| 370 | for (var ab = 0, Z = ad.length; ab < Z; ++ab) {
|
---|
| 371 | var Y = ad[ab];
|
---|
| 372 | var ac = Y[3];
|
---|
| 373 |
|
---|
| 374 | if (ac) {
|
---|
| 375 | for (var ae = ac.length; --ae >= 0;) {
|
---|
| 376 | S[ac.charAt(ae)] = Y;
|
---|
| 377 | }
|
---|
| 378 | }
|
---|
| 379 |
|
---|
| 380 | var af = Y[1];
|
---|
| 381 | var aa = '' + af;
|
---|
| 382 |
|
---|
| 383 | if (!ag.hasOwnProperty(aa)) {
|
---|
| 384 | ah.push(af);
|
---|
| 385 | ag[aa] = null;
|
---|
| 386 | }
|
---|
| 387 | }
|
---|
| 388 |
|
---|
| 389 | ah.push(/[\0-\uffff]/);
|
---|
| 390 | V = k(ah);
|
---|
| 391 | })();
|
---|
| 392 |
|
---|
| 393 | var X = T.length;
|
---|
| 394 |
|
---|
| 395 | var W = function W(ah) {
|
---|
| 396 | var Z = ah.sourceCode,
|
---|
| 397 | Y = ah.basePos;
|
---|
| 398 | var ad = [Y, F];
|
---|
| 399 | var af = 0;
|
---|
| 400 | var an = Z.match(V) || [];
|
---|
| 401 | var aj = {};
|
---|
| 402 |
|
---|
| 403 | for (var ae = 0, aq = an.length; ae < aq; ++ae) {
|
---|
| 404 | var ag = an[ae];
|
---|
| 405 | var ap = aj[ag];
|
---|
| 406 | var ai = void 0;
|
---|
| 407 | var am;
|
---|
| 408 |
|
---|
| 409 | if (typeof ap === 'string') {
|
---|
| 410 | am = false;
|
---|
| 411 | } else {
|
---|
| 412 | var aa = S[ag.charAt(0)];
|
---|
| 413 |
|
---|
| 414 | if (aa) {
|
---|
| 415 | ai = ag.match(aa[1]);
|
---|
| 416 | ap = aa[0];
|
---|
| 417 | } else {
|
---|
| 418 | for (var ao = 0; ao < X; ++ao) {
|
---|
| 419 | aa = T[ao];
|
---|
| 420 | ai = ag.match(aa[1]);
|
---|
| 421 |
|
---|
| 422 | if (ai) {
|
---|
| 423 | ap = aa[0];
|
---|
| 424 | break;
|
---|
| 425 | }
|
---|
| 426 | }
|
---|
| 427 |
|
---|
| 428 | if (!ai) {
|
---|
| 429 | ap = F;
|
---|
| 430 | }
|
---|
| 431 | }
|
---|
| 432 |
|
---|
| 433 | am = ap.length >= 5 && 'lang-' === ap.substring(0, 5);
|
---|
| 434 |
|
---|
| 435 | if (am && !(ai && typeof ai[1] === 'string')) {
|
---|
| 436 | am = false;
|
---|
| 437 | ap = J;
|
---|
| 438 | }
|
---|
| 439 |
|
---|
| 440 | if (!am) {
|
---|
| 441 | aj[ag] = ap;
|
---|
| 442 | }
|
---|
| 443 | }
|
---|
| 444 |
|
---|
| 445 | var ab = af;
|
---|
| 446 | af += ag.length;
|
---|
| 447 |
|
---|
| 448 | if (!am) {
|
---|
| 449 | ad.push(Y + ab, ap);
|
---|
| 450 | } else {
|
---|
| 451 | var al = ai[1];
|
---|
| 452 | var ak = ag.indexOf(al);
|
---|
| 453 | var ac = ak + al.length;
|
---|
| 454 |
|
---|
| 455 | if (ai[2]) {
|
---|
| 456 | ac = ag.length - ai[2].length;
|
---|
| 457 | ak = ac - al.length;
|
---|
| 458 | }
|
---|
| 459 |
|
---|
| 460 | var ar = ap.substring(5);
|
---|
| 461 | B(Y + ab, ag.substring(0, ak), W, ad);
|
---|
| 462 | B(Y + ab + ak, al, q(ar, al), ad);
|
---|
| 463 | B(Y + ab + ac, ag.substring(ac), W, ad);
|
---|
| 464 | }
|
---|
| 465 | }
|
---|
| 466 |
|
---|
| 467 | ah.decorations = ad;
|
---|
| 468 | };
|
---|
| 469 |
|
---|
| 470 | return W;
|
---|
| 471 | }
|
---|
| 472 |
|
---|
| 473 | function i(T) {
|
---|
| 474 | var W = [],
|
---|
| 475 | S = [];
|
---|
| 476 |
|
---|
| 477 | if (T.tripleQuotedStrings) {
|
---|
| 478 | W.push([C, /^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/, null, '\'"']);
|
---|
| 479 | } else {
|
---|
| 480 | if (T.multiLineStrings) {
|
---|
| 481 | W.push([C, /^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/, null, '\'"`']);
|
---|
| 482 | } else {
|
---|
| 483 | W.push([C, /^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/, null, '"\'']);
|
---|
| 484 | }
|
---|
| 485 | }
|
---|
| 486 |
|
---|
| 487 | if (T.verbatimStrings) {
|
---|
| 488 | S.push([C, /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null]);
|
---|
| 489 | }
|
---|
| 490 |
|
---|
| 491 | var Y = T.hashComments;
|
---|
| 492 |
|
---|
| 493 | if (Y) {
|
---|
| 494 | if (T.cStyleComments) {
|
---|
| 495 | if (Y > 1) {
|
---|
| 496 | W.push([j, /^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/, null, '#']);
|
---|
| 497 | } else {
|
---|
| 498 | W.push([j, /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/, null, '#']);
|
---|
| 499 | }
|
---|
| 500 |
|
---|
| 501 | S.push([C, /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, null]);
|
---|
| 502 | } else {
|
---|
| 503 | W.push([j, /^#[^\r\n]*/, null, '#']);
|
---|
| 504 | }
|
---|
| 505 | }
|
---|
| 506 |
|
---|
| 507 | if (T.cStyleComments) {
|
---|
| 508 | S.push([j, /^\/\/[^\r\n]*/, null]);
|
---|
| 509 | S.push([j, /^\/\*[\s\S]*?(?:\*\/|$)/, null]);
|
---|
| 510 | }
|
---|
| 511 |
|
---|
| 512 | if (T.regexLiterals) {
|
---|
| 513 | var X = '/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/';
|
---|
| 514 | S.push(['lang-regex', new RegExp('^' + M + '(' + X + ')')]);
|
---|
| 515 | }
|
---|
| 516 |
|
---|
| 517 | var V = T.types;
|
---|
| 518 |
|
---|
| 519 | if (V) {
|
---|
| 520 | S.push([O, V]);
|
---|
| 521 | }
|
---|
| 522 |
|
---|
| 523 | var U = ('' + T.keywords).replace(/^ | $/g, '');
|
---|
| 524 |
|
---|
| 525 | if (U.length) {
|
---|
| 526 | S.push([z, new RegExp('^(?:' + U.replace(/[\s,]+/g, '|') + ')\\b'), null]);
|
---|
| 527 | }
|
---|
| 528 |
|
---|
| 529 | W.push([F, /^\s+/, null, ' \r\n\t\xA0']);
|
---|
| 530 | S.push([G, /^@[a-z_$][a-z_$@0-9]*/i, null], [O, /^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/, null], [F, /^[a-z_$][a-z_$@0-9]*/i, null], [G, new RegExp('^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*', 'i'), null, '0123456789'], [F, /^\\[\s\S]?/, null], [L, /^.[^\s\w\.$@\'\"\`\/\#\\]*/, null]);
|
---|
| 531 | return g(W, S);
|
---|
| 532 | }
|
---|
| 533 |
|
---|
| 534 | var K = i({
|
---|
| 535 | keywords: A,
|
---|
| 536 | hashComments: true,
|
---|
| 537 | cStyleComments: true,
|
---|
| 538 | multiLineStrings: true,
|
---|
| 539 | regexLiterals: true
|
---|
| 540 | });
|
---|
| 541 |
|
---|
| 542 | function Q(V, ag) {
|
---|
| 543 | var U = /(?:^|\s)nocode(?:\s|$)/;
|
---|
| 544 | var ab = /\r\n?|\n/;
|
---|
| 545 | var ac = V.ownerDocument;
|
---|
| 546 | var S;
|
---|
| 547 |
|
---|
| 548 | if (V.currentStyle) {
|
---|
| 549 | S = V.currentStyle.whiteSpace;
|
---|
| 550 | } else {
|
---|
| 551 | if (window.getComputedStyle) {
|
---|
| 552 | S = ac.defaultView.getComputedStyle(V, null).getPropertyValue('white-space');
|
---|
| 553 | }
|
---|
| 554 | }
|
---|
| 555 |
|
---|
| 556 | var Z = S && 'pre' === S.substring(0, 3);
|
---|
| 557 | var af = ac.createElement('LI');
|
---|
| 558 |
|
---|
| 559 | while (V.firstChild) {
|
---|
| 560 | af.appendChild(V.firstChild);
|
---|
| 561 | }
|
---|
| 562 |
|
---|
| 563 | var W = [af];
|
---|
| 564 |
|
---|
| 565 | function ae(al) {
|
---|
| 566 | switch (al.nodeType) {
|
---|
| 567 | case 1:
|
---|
| 568 | if (U.test(al.className)) {
|
---|
| 569 | break;
|
---|
| 570 | }
|
---|
| 571 |
|
---|
| 572 | if ('BR' === al.nodeName) {
|
---|
| 573 | ad(al);
|
---|
| 574 |
|
---|
| 575 | if (al.parentNode) {
|
---|
| 576 | al.parentNode.removeChild(al);
|
---|
| 577 | }
|
---|
| 578 | } else {
|
---|
| 579 | for (var an = al.firstChild; an; an = an.nextSibling) {
|
---|
| 580 | ae(an);
|
---|
| 581 | }
|
---|
| 582 | }
|
---|
| 583 |
|
---|
| 584 | break;
|
---|
| 585 |
|
---|
| 586 | case 3:
|
---|
| 587 | case 4:
|
---|
| 588 | if (Z) {
|
---|
| 589 | var am = al.nodeValue;
|
---|
| 590 | var aj = am.match(ab);
|
---|
| 591 |
|
---|
| 592 | if (aj) {
|
---|
| 593 | var ai = am.substring(0, aj.index);
|
---|
| 594 | al.nodeValue = ai;
|
---|
| 595 | var ah = am.substring(aj.index + aj[0].length);
|
---|
| 596 |
|
---|
| 597 | if (ah) {
|
---|
| 598 | var ak = al.parentNode;
|
---|
| 599 | ak.insertBefore(ac.createTextNode(ah), al.nextSibling);
|
---|
| 600 | }
|
---|
| 601 |
|
---|
| 602 | ad(al);
|
---|
| 603 |
|
---|
| 604 | if (!ai) {
|
---|
| 605 | al.parentNode.removeChild(al);
|
---|
| 606 | }
|
---|
| 607 | }
|
---|
| 608 | }
|
---|
| 609 |
|
---|
| 610 | break;
|
---|
| 611 | }
|
---|
| 612 | }
|
---|
| 613 |
|
---|
| 614 | function ad(ak) {
|
---|
| 615 | while (!ak.nextSibling) {
|
---|
| 616 | ak = ak.parentNode;
|
---|
| 617 |
|
---|
| 618 | if (!ak) {
|
---|
| 619 | return;
|
---|
| 620 | }
|
---|
| 621 | }
|
---|
| 622 |
|
---|
| 623 | function ai(al, ar) {
|
---|
| 624 | var aq = ar ? al.cloneNode(false) : al;
|
---|
| 625 | var ao = al.parentNode;
|
---|
| 626 |
|
---|
| 627 | if (ao) {
|
---|
| 628 | var ap = ai(ao, 1);
|
---|
| 629 | var an = al.nextSibling;
|
---|
| 630 | ap.appendChild(aq);
|
---|
| 631 |
|
---|
| 632 | for (var am = an; am; am = an) {
|
---|
| 633 | an = am.nextSibling;
|
---|
| 634 | ap.appendChild(am);
|
---|
| 635 | }
|
---|
| 636 | }
|
---|
| 637 |
|
---|
| 638 | return aq;
|
---|
| 639 | }
|
---|
| 640 |
|
---|
| 641 | var ah = ai(ak.nextSibling, 0);
|
---|
| 642 |
|
---|
| 643 | for (var aj; (aj = ah.parentNode) && aj.nodeType === 1;) {
|
---|
| 644 | ah = aj;
|
---|
| 645 | }
|
---|
| 646 |
|
---|
| 647 | W.push(ah);
|
---|
| 648 | }
|
---|
| 649 |
|
---|
| 650 | for (var Y = 0; Y < W.length; ++Y) {
|
---|
| 651 | ae(W[Y]);
|
---|
| 652 | }
|
---|
| 653 |
|
---|
| 654 | if (ag === (ag | 0)) {
|
---|
| 655 | W[0].setAttribute('value', ag);
|
---|
| 656 | }
|
---|
| 657 |
|
---|
| 658 | var aa = ac.createElement('OL');
|
---|
| 659 | aa.className = 'linenums';
|
---|
| 660 | var X = Math.max(0, ag - 1 | 0) || 0;
|
---|
| 661 |
|
---|
| 662 | for (var Y = 0, T = W.length; Y < T; ++Y) {
|
---|
| 663 | af = W[Y];
|
---|
| 664 | af.className = 'L' + (Y + X) % 10;
|
---|
| 665 |
|
---|
| 666 | if (!af.firstChild) {
|
---|
| 667 | af.appendChild(ac.createTextNode('\xA0'));
|
---|
| 668 | }
|
---|
| 669 |
|
---|
| 670 | aa.appendChild(af);
|
---|
| 671 | }
|
---|
| 672 |
|
---|
| 673 | V.appendChild(aa);
|
---|
| 674 | }
|
---|
| 675 |
|
---|
| 676 | function D(ac) {
|
---|
| 677 | var aj = /\bMSIE\b/.test(navigator.userAgent);
|
---|
| 678 | var am = /\n/g;
|
---|
| 679 | var al = ac.sourceCode;
|
---|
| 680 | var an = al.length;
|
---|
| 681 | var V = 0;
|
---|
| 682 | var aa = ac.spans;
|
---|
| 683 | var T = aa.length;
|
---|
| 684 | var ah = 0;
|
---|
| 685 | var X = ac.decorations;
|
---|
| 686 | var Y = X.length;
|
---|
| 687 | var Z = 0;
|
---|
| 688 | X[Y] = an;
|
---|
| 689 | var ar, aq;
|
---|
| 690 |
|
---|
| 691 | for (aq = ar = 0; aq < Y;) {
|
---|
| 692 | if (X[aq] !== X[aq + 2]) {
|
---|
| 693 | X[ar++] = X[aq++];
|
---|
| 694 | X[ar++] = X[aq++];
|
---|
| 695 | } else {
|
---|
| 696 | aq += 2;
|
---|
| 697 | }
|
---|
| 698 | }
|
---|
| 699 |
|
---|
| 700 | Y = ar;
|
---|
| 701 |
|
---|
| 702 | for (aq = ar = 0; aq < Y;) {
|
---|
| 703 | var at = X[aq];
|
---|
| 704 | var ab = X[aq + 1];
|
---|
| 705 | var W = aq + 2;
|
---|
| 706 |
|
---|
| 707 | while (W + 2 <= Y && X[W + 1] === ab) {
|
---|
| 708 | W += 2;
|
---|
| 709 | }
|
---|
| 710 |
|
---|
| 711 | X[ar++] = at;
|
---|
| 712 | X[ar++] = ab;
|
---|
| 713 | aq = W;
|
---|
| 714 | }
|
---|
| 715 |
|
---|
| 716 | Y = X.length = ar;
|
---|
| 717 | var ae = null;
|
---|
| 718 |
|
---|
| 719 | while (ah < T) {
|
---|
| 720 | var af = aa[ah];
|
---|
| 721 | var S = aa[ah + 2] || an;
|
---|
| 722 | var ag = X[Z];
|
---|
| 723 | var ap = X[Z + 2] || an;
|
---|
| 724 | var W = Math.min(S, ap);
|
---|
| 725 | var ak = aa[ah + 1];
|
---|
| 726 | var U;
|
---|
| 727 |
|
---|
| 728 | if (ak.nodeType !== 1 && (U = al.substring(V, W))) {
|
---|
| 729 | if (aj) {
|
---|
| 730 | U = U.replace(am, '\r');
|
---|
| 731 | }
|
---|
| 732 |
|
---|
| 733 | ak.nodeValue = U;
|
---|
| 734 | var ai = ak.ownerDocument;
|
---|
| 735 | var ao = ai.createElement('SPAN');
|
---|
| 736 | ao.className = X[Z + 1];
|
---|
| 737 | var ad = ak.parentNode;
|
---|
| 738 | ad.replaceChild(ao, ak);
|
---|
| 739 | ao.appendChild(ak);
|
---|
| 740 |
|
---|
| 741 | if (V < S) {
|
---|
| 742 | aa[ah + 1] = ak = ai.createTextNode(al.substring(W, S));
|
---|
| 743 | ad.insertBefore(ak, ao.nextSibling);
|
---|
| 744 | }
|
---|
| 745 | }
|
---|
| 746 |
|
---|
| 747 | V = W;
|
---|
| 748 |
|
---|
| 749 | if (V >= S) {
|
---|
| 750 | ah += 2;
|
---|
| 751 | }
|
---|
| 752 |
|
---|
| 753 | if (V >= ap) {
|
---|
| 754 | Z += 2;
|
---|
| 755 | }
|
---|
| 756 | }
|
---|
| 757 | }
|
---|
| 758 |
|
---|
| 759 | var t = {};
|
---|
| 760 |
|
---|
| 761 | function c(U, V) {
|
---|
| 762 | for (var S = V.length; --S >= 0;) {
|
---|
| 763 | var T = V[S];
|
---|
| 764 |
|
---|
| 765 | if (!t.hasOwnProperty(T)) {
|
---|
| 766 | t[T] = U;
|
---|
| 767 | } else {
|
---|
| 768 | if (window.console) {
|
---|
| 769 | console.warn('cannot override language handler %s', T);
|
---|
| 770 | }
|
---|
| 771 | }
|
---|
| 772 | }
|
---|
| 773 | }
|
---|
| 774 |
|
---|
| 775 | function q(T, S) {
|
---|
| 776 | if (!(T && t.hasOwnProperty(T))) {
|
---|
| 777 | T = /^\s*</.test(S) ? 'default-markup' : 'default-code';
|
---|
| 778 | }
|
---|
| 779 |
|
---|
| 780 | return t[T];
|
---|
| 781 | }
|
---|
| 782 |
|
---|
| 783 | c(K, ['default-code']);
|
---|
| 784 | c(g([], [[F, /^[^<?]+/], [E, /^<!\w[^>]*(?:>|$)/], [j, /^<\!--[\s\S]*?(?:-\->|$)/], ['lang-', /^<\?([\s\S]+?)(?:\?>|$)/], ['lang-', /^<%([\s\S]+?)(?:%>|$)/], [L, /^(?:<[%?]|[%?]>)/], ['lang-', /^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i], ['lang-js', /^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i], ['lang-css', /^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i], ['lang-in.tag', /^(<\/?[a-z][^<>]*>)/i]]), ['default-markup', 'htm', 'html', 'mxml', 'xhtml', 'xml', 'xsl']);
|
---|
| 785 | c(g([[F, /^[\s]+/, null, ' \t\r\n'], [n, /^(?:\"[^\"]*\"?|\'[^\']*\'?)/, null, '"\'']], [[m, /^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i], [P, /^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i], ['lang-uq.val', /^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/], [L, /^[=<>\/]+/], ['lang-js', /^on\w+\s*=\s*\"([^\"]+)\"/i], ['lang-js', /^on\w+\s*=\s*\'([^\']+)\'/i], ['lang-js', /^on\w+\s*=\s*([^\"\'>\s]+)/i], ['lang-css', /^style\s*=\s*\"([^\"]+)\"/i], ['lang-css', /^style\s*=\s*\'([^\']+)\'/i], ['lang-css', /^style\s*=\s*([^\"\'>\s]+)/i]]), ['in.tag']);
|
---|
| 786 | c(g([], [[n, /^[\s\S]+/]]), ['uq.val']);
|
---|
| 787 | c(i({
|
---|
| 788 | keywords: l,
|
---|
| 789 | hashComments: true,
|
---|
| 790 | cStyleComments: true,
|
---|
| 791 | types: e
|
---|
| 792 | }), ['c', 'cc', 'cpp', 'cxx', 'cyc', 'm']);
|
---|
| 793 | c(i({
|
---|
| 794 | keywords: 'null,true,false'
|
---|
| 795 | }), ['json']);
|
---|
| 796 | c(i({
|
---|
| 797 | keywords: R,
|
---|
| 798 | hashComments: true,
|
---|
| 799 | cStyleComments: true,
|
---|
| 800 | verbatimStrings: true,
|
---|
| 801 | types: e
|
---|
| 802 | }), ['cs']);
|
---|
| 803 | c(i({
|
---|
| 804 | keywords: x,
|
---|
| 805 | cStyleComments: true
|
---|
| 806 | }), ['java']);
|
---|
| 807 | c(i({
|
---|
| 808 | keywords: H,
|
---|
| 809 | hashComments: true,
|
---|
| 810 | multiLineStrings: true
|
---|
| 811 | }), ['bsh', 'csh', 'sh']);
|
---|
| 812 | c(i({
|
---|
| 813 | keywords: I,
|
---|
| 814 | hashComments: true,
|
---|
| 815 | multiLineStrings: true,
|
---|
| 816 | tripleQuotedStrings: true
|
---|
| 817 | }), ['cv', 'py']);
|
---|
| 818 | c(i({
|
---|
| 819 | keywords: s,
|
---|
| 820 | hashComments: true,
|
---|
| 821 | multiLineStrings: true,
|
---|
| 822 | regexLiterals: true
|
---|
| 823 | }), ['perl', 'pl', 'pm']);
|
---|
| 824 | c(i({
|
---|
| 825 | keywords: f,
|
---|
| 826 | hashComments: true,
|
---|
| 827 | multiLineStrings: true,
|
---|
| 828 | regexLiterals: true
|
---|
| 829 | }), ['rb']);
|
---|
| 830 | c(i({
|
---|
| 831 | keywords: w,
|
---|
| 832 | cStyleComments: true,
|
---|
| 833 | regexLiterals: true
|
---|
| 834 | }), ['js']);
|
---|
| 835 | c(i({
|
---|
| 836 | keywords: r,
|
---|
| 837 | hashComments: 3,
|
---|
| 838 | cStyleComments: true,
|
---|
| 839 | multilineStrings: true,
|
---|
| 840 | tripleQuotedStrings: true,
|
---|
| 841 | regexLiterals: true
|
---|
| 842 | }), ['coffee']);
|
---|
| 843 | c(g([], [[C, /^[\s\S]+/]]), ['regex']);
|
---|
| 844 |
|
---|
| 845 | function d(V) {
|
---|
| 846 | var U = V.langExtension;
|
---|
| 847 |
|
---|
| 848 | try {
|
---|
| 849 | var S = a(V.sourceNode);
|
---|
| 850 | var T = S.sourceCode;
|
---|
| 851 | V.sourceCode = T;
|
---|
| 852 | V.spans = S.spans;
|
---|
| 853 | V.basePos = 0;
|
---|
| 854 | q(U, T)(V);
|
---|
| 855 | D(V);
|
---|
| 856 | } catch (W) {
|
---|
| 857 | if ('console' in window) {
|
---|
| 858 | console.log(W && W.stack ? W.stack : W);
|
---|
| 859 | }
|
---|
| 860 | }
|
---|
| 861 | }
|
---|
| 862 |
|
---|
| 863 | function y(W, V, U) {
|
---|
| 864 | var S = document.createElement('PRE');
|
---|
| 865 | S.innerHTML = W;
|
---|
| 866 |
|
---|
| 867 | if (U) {
|
---|
| 868 | Q(S, U);
|
---|
| 869 | }
|
---|
| 870 |
|
---|
| 871 | var T = {
|
---|
| 872 | langExtension: V,
|
---|
| 873 | numberLines: U,
|
---|
| 874 | sourceNode: S
|
---|
| 875 | };
|
---|
| 876 | d(T);
|
---|
| 877 | return S.innerHTML;
|
---|
| 878 | }
|
---|
| 879 |
|
---|
| 880 | function b(ad) {
|
---|
| 881 | function Y(af) {
|
---|
| 882 | return document.getElementsByTagName(af);
|
---|
| 883 | }
|
---|
| 884 |
|
---|
| 885 | var ac = [Y('pre'), Y('code'), Y('xmp')];
|
---|
| 886 | var T = [];
|
---|
| 887 |
|
---|
| 888 | for (var aa = 0; aa < ac.length; ++aa) {
|
---|
| 889 | for (var Z = 0, V = ac[aa].length; Z < V; ++Z) {
|
---|
| 890 | T.push(ac[aa][Z]);
|
---|
| 891 | }
|
---|
| 892 | }
|
---|
| 893 |
|
---|
| 894 | ac = null;
|
---|
| 895 | var W = Date;
|
---|
| 896 |
|
---|
| 897 | if (!W.now) {
|
---|
| 898 | W = {
|
---|
| 899 | now: function now() {
|
---|
| 900 | return +new Date();
|
---|
| 901 | }
|
---|
| 902 | };
|
---|
| 903 | }
|
---|
| 904 |
|
---|
| 905 | var X = 0;
|
---|
| 906 | var S;
|
---|
| 907 | var ab = /\blang(?:uage)?-([\w.]+)(?!\S)/;
|
---|
| 908 | var ae = /\bprettyprint\b/;
|
---|
| 909 |
|
---|
| 910 | function U() {
|
---|
| 911 | var ag = window.PR_SHOULD_USE_CONTINUATION ? W.now() + 250 : Infinity;
|
---|
| 912 |
|
---|
| 913 | for (; X < T.length && W.now() < ag; X++) {
|
---|
| 914 | var aj = T[X];
|
---|
| 915 | var ai = aj.className;
|
---|
| 916 |
|
---|
| 917 | if (ai.indexOf('prettyprint') >= 0) {
|
---|
| 918 | var ah = ai.match(ab);
|
---|
| 919 | var am;
|
---|
| 920 |
|
---|
| 921 | if (!ah && (am = o(aj)) && 'CODE' === am.tagName) {
|
---|
| 922 | ah = am.className.match(ab);
|
---|
| 923 | }
|
---|
| 924 |
|
---|
| 925 | if (ah) {
|
---|
| 926 | ah = ah[1];
|
---|
| 927 | }
|
---|
| 928 |
|
---|
| 929 | var al = false;
|
---|
| 930 |
|
---|
| 931 | for (var ak = aj.parentNode; ak; ak = ak.parentNode) {
|
---|
| 932 | if ((ak.tagName === 'pre' || ak.tagName === 'code' || ak.tagName === 'xmp') && ak.className && ak.className.indexOf('prettyprint') >= 0) {
|
---|
| 933 | al = true;
|
---|
| 934 | break;
|
---|
| 935 | }
|
---|
| 936 | }
|
---|
| 937 |
|
---|
| 938 | if (!al) {
|
---|
| 939 | var af = aj.className.match(/\blinenums\b(?::(\d+))?/);
|
---|
| 940 | af = af ? af[1] && af[1].length ? +af[1] : true : false;
|
---|
| 941 |
|
---|
| 942 | if (af) {
|
---|
| 943 | Q(aj, af);
|
---|
| 944 | }
|
---|
| 945 |
|
---|
| 946 | S = {
|
---|
| 947 | langExtension: ah,
|
---|
| 948 | sourceNode: aj,
|
---|
| 949 | numberLines: af
|
---|
| 950 | };
|
---|
| 951 | d(S);
|
---|
| 952 | }
|
---|
| 953 | }
|
---|
| 954 | }
|
---|
| 955 |
|
---|
| 956 | if (X < T.length) {
|
---|
| 957 | setTimeout(U, 250);
|
---|
| 958 | } else {
|
---|
| 959 | if (ad) {
|
---|
| 960 | ad();
|
---|
| 961 | }
|
---|
| 962 | }
|
---|
| 963 | }
|
---|
| 964 |
|
---|
| 965 | U();
|
---|
| 966 | }
|
---|
| 967 |
|
---|
| 968 | window.prettyPrintOne = y;
|
---|
| 969 | window.prettyPrint = b;
|
---|
| 970 | window.PR = {
|
---|
| 971 | createSimpleLexer: g,
|
---|
| 972 | registerLangHandler: c,
|
---|
| 973 | sourceDecorator: i,
|
---|
| 974 | PR_ATTRIB_NAME: P,
|
---|
| 975 | PR_ATTRIB_VALUE: n,
|
---|
| 976 | PR_COMMENT: j,
|
---|
| 977 | PR_DECLARATION: E,
|
---|
| 978 | PR_KEYWORD: z,
|
---|
| 979 | PR_LITERAL: G,
|
---|
| 980 | PR_NOCODE: N,
|
---|
| 981 | PR_PLAIN: F,
|
---|
| 982 | PR_PUNCTUATION: L,
|
---|
| 983 | PR_SOURCE: J,
|
---|
| 984 | PR_STRING: C,
|
---|
| 985 | PR_TAG: m,
|
---|
| 986 | PR_TYPE: O
|
---|
| 987 | };
|
---|
| 988 | })();
|
---|
| 989 |
|
---|
| 990 | PR.registerLangHandler(PR.createSimpleLexer([], [[PR.PR_DECLARATION, /^<!\w[^>]*(?:>|$)/], [PR.PR_COMMENT, /^<\!--[\s\S]*?(?:-\->|$)/], [PR.PR_PUNCTUATION, /^(?:<[%?]|[%?]>)/], ['lang-', /^<\?([\s\S]+?)(?:\?>|$)/], ['lang-', /^<%([\s\S]+?)(?:%>|$)/], ['lang-', /^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i], ['lang-handlebars', /^<script\b[^>]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i], ['lang-js', /^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i], ['lang-css', /^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i], ['lang-in.tag', /^(<\/?[a-z][^<>]*>)/i], [PR.PR_DECLARATION, /^{{[#^>/]?\s*[\w.][^}]*}}/], [PR.PR_DECLARATION, /^{{&?\s*[\w.][^}]*}}/], [PR.PR_DECLARATION, /^{{{>?\s*[\w.][^}]*}}}/], [PR.PR_COMMENT, /^{{![^}]*}}/]]), ['handlebars', 'hbs']);
|
---|
| 991 | PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN, /^[ \t\r\n\f]+/, null, ' \t\r\n\f']], [[PR.PR_STRING, /^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/, null], [PR.PR_STRING, /^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/, null], ['lang-css-str', /^url\(([^\)\"\']*)\)/i], [PR.PR_KEYWORD, /^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i, null], ['lang-css-kw', /^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i], [PR.PR_COMMENT, /^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//], [PR.PR_COMMENT, /^(?:<!--|-->)/], [PR.PR_LITERAL, /^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i], [PR.PR_LITERAL, /^#(?:[0-9a-f]{3}){1,2}/i], [PR.PR_PLAIN, /^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i], [PR.PR_PUNCTUATION, /^[^\s\w\'\"]+/]]), ['css']);
|
---|
| 992 | PR.registerLangHandler(PR.createSimpleLexer([], [[PR.PR_KEYWORD, /^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]), ['css-kw']);
|
---|
| 993 | PR.registerLangHandler(PR.createSimpleLexer([], [[PR.PR_STRING, /^[^\)\"\']+/]]), ['css-str']); |
---|