MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / processLine

Function processLine

static/js/codemirror/codemirror.js:3927–3935  ·  view source on GitHub ↗
(cm, line, state)

Source from the content-addressed store, hash-verified

3925 // Lightweight form of highlight -- proceed over this line and
3926 // update state, but don't save a style array.
3927 function processLine(cm, line, state) {
3928 var mode = cm.doc.mode;
3929 var stream = new StringStream(line.text, cm.options.tabSize);
3930 if (line.text == "" && mode.blankLine) mode.blankLine(state);
3931 while (!stream.eol() && stream.pos <= 5000) {
3932 mode.token(stream, state);
3933 stream.start = stream.pos;
3934 }
3935 }
3936
3937 var styleToClassCache = {};
3938 function styleToClass(style) {

Callers 2

highlightWorkerFunction · 0.85
getStateBeforeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected