MCPcopy Create free account
hub / github.com/TruthHun/BookStack / processLine

Function processLine

static/mergely/lib/codemirror.js:6888–6897  ·  view source on GitHub ↗
(cm, text, state, startAt)

Source from the content-addressed store, hash-verified

6886 // update state, but don't save a style array. Used for lines that
6887 // aren't currently visible.
6888 function processLine(cm, text, state, startAt) {
6889 var mode = cm.doc.mode;
6890 var stream = new StringStream(text, cm.options.tabSize);
6891 stream.start = stream.pos = startAt || 0;
6892 if (text == "") callBlankLine(mode, state);
6893 while (!stream.eol()) {
6894 readToken(mode, stream, state);
6895 stream.start = stream.pos;
6896 }
6897 }
6898
6899 // Convert a style as returned by a mode (either null, or a string
6900 // containing one or more styles) to a CSS style. This is cached,

Callers 3

highlightWorkerFunction · 0.70
getStateBeforeFunction · 0.70
runModeFunction · 0.70

Calls 2

callBlankLineFunction · 0.70
readTokenFunction · 0.70

Tested by

no test coverage detected