MCPcopy Create free account
hub / github.com/breck7/scroll / processLine

Function processLine

external/.scrollLibs.js:2592–2603  ·  view source on GitHub ↗
(cm, text, context, startAt)

Source from the content-addressed store, hash-verified

2590 // update state, but don't save a style array. Used for lines that
2591 // aren't currently visible.
2592 function processLine(cm, text, context, startAt) {
2593 var mode = cm.doc.mode
2594 var stream = new StringStream(text, cm.options.tabSize, context)
2595 stream.start = stream.pos = startAt || 0
2596 if (text == "") {
2597 callBlankLine(mode, context.state)
2598 }
2599 while (!stream.eol()) {
2600 readToken(mode, stream, context.state)
2601 stream.start = stream.pos
2602 }
2603 }
2604
2605 function callBlankLine(mode, state) {
2606 if (mode.blankLine) {

Callers 3

getContextBeforeFunction · 0.85
runModeFunction · 0.85
highlightWorkerFunction · 0.85

Calls 2

callBlankLineFunction · 0.85
readTokenFunction · 0.85

Tested by

no test coverage detected