(cm, text, context, startAt)
| 140 | // update state, but don't save a style array. Used for lines that |
| 141 | // aren't currently visible. |
| 142 | export function processLine(cm, text, context, startAt) { |
| 143 | let mode = cm.doc.mode |
| 144 | let stream = new StringStream(text, cm.options.tabSize, context) |
| 145 | stream.start = stream.pos = startAt || 0 |
| 146 | if (text == "") callBlankLine(mode, context.state) |
| 147 | while (!stream.eol()) { |
| 148 | readToken(mode, stream, context.state) |
| 149 | stream.start = stream.pos |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | function callBlankLine(mode, state) { |
| 154 | if (mode.blankLine) return mode.blankLine(state) |
no test coverage detected