(cm, text, state, startAt)
| 6911 | // update state, but don't save a style array. Used for lines that |
| 6912 | // aren't currently visible. |
| 6913 | function processLine(cm, text, state, startAt) { |
| 6914 | var mode = cm.doc.mode; |
| 6915 | var stream = new StringStream(text, cm.options.tabSize); |
| 6916 | stream.start = stream.pos = startAt || 0; |
| 6917 | if (text == "") callBlankLine(mode, state); |
| 6918 | while (!stream.eol()) { |
| 6919 | readToken(mode, stream, state); |
| 6920 | stream.start = stream.pos; |
| 6921 | } |
| 6922 | } |
| 6923 | |
| 6924 | // Convert a style as returned by a mode (either null, or a string |
| 6925 | // containing one or more styles) to a CSS style. This is cached, |
no test coverage detected