Lines Matching refs:tokenEnds
487 function PR_splitChunks(chunks, tokenEnds) { argument
498 for (var ei = 0, ne = tokenEnds.length, lastEnd = 0; ei < ne; ++ei) {
499 var tokenEnd = tokenEnds[ei];
550 var tokenEnds = [];
718 tokenEnds.push(new PR_TokenEnd(tokenStart, PR_PLAIN));
721 tokenEnds.push(new PR_TokenEnd(k + next, tokenStyle));
727 tokenEnds.push(new PR_TokenEnd(k, PR_PLAIN));
729 return tokenEnds;
741 var tokenEnds = []; // positions of ends of tokens in absolute space
761 tokenEnds.push(new PR_TokenEnd(k + i, PR_PLAIN));
768 tokenEnds.push(new PR_TokenEnd(k + i, PR_PLAIN));
773 tokenEnds.push(new PR_TokenEnd(k + next, '/'==ch?PR_REGEX:PR_STRING));
782 tokenEnds.push(new PR_TokenEnd(k + last, PR_PLAIN));
785 tokenEnds.push(new PR_TokenEnd(k + last, PR_PLAIN));
794 tokenEnds.push(new PR_TokenEnd(k + last, PR_PLAIN));
806 tokenEnds.push(new PR_TokenEnd(k + i, PR_COMMENT));
815 tokenEnds.push(new PR_TokenEnd(k + next, PR_COMMENT));
850 tokenEnds.push(new PR_TokenEnd(k, endTokenType)); // a token ends at the end
852 return PR_splitChunks(chunks, tokenEnds);
994 var tokenEnds = PR_splitMarkup(chunks);
995 return PR_splitChunks(chunks, tokenEnds);