(cm, text, state, startAt)
| 6679 | // update state, but don't save a style array. Used for lines that |
| 6680 | // aren't currently visible. |
| 6681 | function processLine(cm, text, state, startAt) { |
| 6682 | var mode = cm.doc.mode; |
| 6683 | var stream = new StringStream(text, cm.options.tabSize); |
| 6684 | stream.start = stream.pos = startAt || 0; |
| 6685 | if (text == "") callBlankLine(mode, state); |
| 6686 | while (!stream.eol() && stream.pos <= cm.options.maxHighlightLength) { |
| 6687 | readToken(mode, stream, state); |
| 6688 | stream.start = stream.pos; |
| 6689 | } |
| 6690 | } |
| 6691 | |
| 6692 | // Convert a style as returned by a mode (either null, or a string |
| 6693 | // containing one or more styles) to a CSS style. This is cached, |
no test coverage detected
searching dependent graphs…