MCPcopy Index your code
hub / github.com/csev/py4e / processLine

Function processLine

tools/pythonauto/static/codemirror/codemirror.js:4490–4499  ·  view source on GitHub ↗
(cm, text, state, startAt)

Source from the content-addressed store, hash-verified

4488 // Lightweight form of highlight -- proceed over this line and
4489 // update state, but don't save a style array.
4490 function processLine(cm, text, state, startAt) {
4491 var mode = cm.doc.mode;
4492 var stream = new StringStream(text, cm.options.tabSize);
4493 stream.start = stream.pos = startAt || 0;
4494 if (text == "" && mode.blankLine) mode.blankLine(state);
4495 while (!stream.eol() && stream.pos <= cm.options.maxHighlightLength) {
4496 mode.token(stream, state);
4497 stream.start = stream.pos;
4498 }
4499 }
4500
4501 var styleToClassCache = {}, styleToClassCacheWithMode = {};
4502 function interpretTokenStyle(style, builder) {

Callers 3

highlightWorkerFunction · 0.70
getStateBeforeFunction · 0.70
runModeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected