(cm, text, state, startAt)
| 5630 | // update state, but don't save a style array. Used for lines that |
| 5631 | // aren't currently visible. |
| 5632 | function processLine(cm, text, state, startAt) { |
| 5633 | var mode = cm.doc.mode; |
| 5634 | var stream = new StringStream(text, cm.options.tabSize); |
| 5635 | stream.start = stream.pos = startAt || 0; |
| 5636 | if (text == "") callBlankLine(mode, state); |
| 5637 | while (!stream.eol() && stream.pos <= cm.options.maxHighlightLength) { |
| 5638 | mode.token(stream, state); |
| 5639 | stream.start = stream.pos; |
| 5640 | } |
| 5641 | } |
| 5642 | |
| 5643 | // Convert a style as returned by a mode (either null, or a string |
| 5644 | // containing one or more styles) to a CSS style. This is cached, |
no test coverage detected