(cm, text, context, startAt)
| 1613 | // update state, but don't save a style array. Used for lines that |
| 1614 | // aren't currently visible. |
| 1615 | function processLine(cm, text, context, startAt) { |
| 1616 | var mode = cm.doc.mode; |
| 1617 | var stream = new StringStream(text, cm.options.tabSize, context); |
| 1618 | stream.start = stream.pos = startAt || 0; |
| 1619 | if (text == "") { callBlankLine(mode, context.state); } |
| 1620 | while (!stream.eol()) { |
| 1621 | readToken(mode, stream, context.state); |
| 1622 | stream.start = stream.pos; |
| 1623 | } |
| 1624 | } |
| 1625 | |
| 1626 | function callBlankLine(mode, state) { |
| 1627 | if (mode.blankLine) { return mode.blankLine(state) } |
no test coverage detected