(cm, text, context, startAt)
| 1145 | // update state, but don't save a style array. Used for lines that |
| 1146 | // aren't currently visible. |
| 1147 | function processLine(cm, text, context, startAt) { |
| 1148 | var mode = cm.doc.mode; |
| 1149 | var stream = new StringStream(text, cm.options.tabSize, context); |
| 1150 | stream.start = stream.pos = startAt || 0; |
| 1151 | if (text == "") { callBlankLine(mode, context.state); } |
| 1152 | while (!stream.eol()) { |
| 1153 | readToken(mode, stream, context.state); |
| 1154 | stream.start = stream.pos; |
| 1155 | } |
| 1156 | } |
| 1157 | |
| 1158 | function callBlankLine(mode, state) { |
| 1159 | if (mode.blankLine) { return mode.blankLine(state) } |
no test coverage detected