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

Function processLine

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

Source from the content-addressed store, hash-verified

5630 // update state, but don't save a style array. Used for lines that
5631 // aren't currently visible.
5632 function processLine(cm, text, state, startAt) {
5633 var mode = cm.doc.mode;
5634 var stream = new StringStream(text, cm.options.tabSize);
5635 stream.start = stream.pos = startAt || 0;
5636 if (text == "") callBlankLine(mode, state);
5637 while (!stream.eol() && stream.pos <= cm.options.maxHighlightLength) {
5638 mode.token(stream, state);
5639 stream.start = stream.pos;
5640 }
5641 }
5642
5643 // Convert a style as returned by a mode (either null, or a string
5644 // containing one or more styles) to a CSS style. This is cached,

Callers 3

highlightWorkerFunction · 0.70
getStateBeforeFunction · 0.70
runModeFunction · 0.70

Calls 1

callBlankLineFunction · 0.85

Tested by

no test coverage detected