MCPcopy
hub / github.com/witheve/Eve / processLine

Function processLine

src/codemirror.js:6913–6922  ·  view source on GitHub ↗
(cm, text, state, startAt)

Source from the content-addressed store, hash-verified

6911 // update state, but don't save a style array. Used for lines that
6912 // aren't currently visible.
6913 function processLine(cm, text, state, startAt) {
6914 var mode = cm.doc.mode;
6915 var stream = new StringStream(text, cm.options.tabSize);
6916 stream.start = stream.pos = startAt || 0;
6917 if (text == "") callBlankLine(mode, state);
6918 while (!stream.eol()) {
6919 readToken(mode, stream, state);
6920 stream.start = stream.pos;
6921 }
6922 }
6923
6924 // Convert a style as returned by a mode (either null, or a string
6925 // containing one or more styles) to a CSS style. This is cached,

Callers 3

highlightWorkerFunction · 0.85
getStateBeforeFunction · 0.85
runModeFunction · 0.85

Calls 3

eolMethod · 0.95
callBlankLineFunction · 0.85
readTokenFunction · 0.85

Tested by

no test coverage detected