(cm, text, state, startAt)
| 6886 | // update state, but don't save a style array. Used for lines that |
| 6887 | // aren't currently visible. |
| 6888 | function processLine(cm, text, state, startAt) { |
| 6889 | var mode = cm.doc.mode; |
| 6890 | var stream = new StringStream(text, cm.options.tabSize); |
| 6891 | stream.start = stream.pos = startAt || 0; |
| 6892 | if (text == "") callBlankLine(mode, state); |
| 6893 | while (!stream.eol()) { |
| 6894 | readToken(mode, stream, state); |
| 6895 | stream.start = stream.pos; |
| 6896 | } |
| 6897 | } |
| 6898 | |
| 6899 | // Convert a style as returned by a mode (either null, or a string |
| 6900 | // containing one or more styles) to a CSS style. This is cached, |
no test coverage detected