(mode, stream, state)
| 5584 | } |
| 5585 | |
| 5586 | function readToken(mode, stream, state) { |
| 5587 | var style = mode.token(stream, state); |
| 5588 | if (stream.pos <= stream.start) |
| 5589 | throw new Error("Mode " + mode.name + " failed to advance stream."); |
| 5590 | return style; |
| 5591 | } |
| 5592 | |
| 5593 | // Run the given mode's parser over a line, calling f for each token. |
| 5594 | function runMode(cm, text, mode, state, f, lineClasses, forceToEnd) { |
no outgoing calls
no test coverage detected
searching dependent graphs…