Searched defs:job (Results 1 - 2 of 2) sorted by relevance

/httpd/docs/manual/style/scripts/
H A Dprettify.js590 var job = {
594 langHandler(job);
595 out.push.apply(out, job.decorations);
699 * Lexes job.sourceCode and produces an output array job.decorations of
701 * job.sourceCode in order.
703 * @param {Object} job an object like <pre>{
705 * basePos: {int} position of job.sourceCode in the larger chunk of
709 var decorate = function (job) {
710 var sourceCode = job
[all...]
H A Dprettify.min.js48 var job={sourceCode:sourceCode,basePos:basePos};langHandler(job);out.push.apply(out,job.decorations);}
53 allRegexs.push(/[\0-\uffff]/);tokenizer=combinePrefixPatterns(allRegexs);})();var nPatterns=fallthroughStylePatterns.length;var decorate=function(job){var sourceCode=job.sourceCode,basePos=job.basePos;var decorations=[basePos,PR_PLAIN];var pos=0;var tokens=sourceCode.match(tokenizer)||[];var styleCache={};for(var ti=0,nTokens=tokens.length;ti<nTokens;++ti){var token=tokens[ti];var style=styleCache[token];var match=void 0;var isEmbedded;if(typeof style==='string'){isEmbedded=false;}else{var patternParts=shortcuts[token.charAt(0)];if(patternParts){match=token.match(patternParts[1]);style=patternParts[0];}else{for(var i=0;i<nPatterns;++i){patternParts=fallthroughStylePatterns[i];match=token.match(patternParts[1]);if(match){style=patternParts[0];break;}}
59 job.decorations=decorations;};return decorate;}
97 function recombineTagsAndDecorations(job){var isIE8OrEarlier=/\bMSIE\s(\d+)/.exec(navigator.userAgent);isIE8OrEarlier=isIE8OrEarlier&&+isIE8OrEarlier[1]<=8;var newlineRe=/\n/g;var source=job.sourceCode;var sourceLength=source.length;var sourceIndex=0;var spans=job
[all...]

Completed in 13 milliseconds