(cm, text, state, startAt)
| 4488 | // Lightweight form of highlight -- proceed over this line and |
| 4489 | // update state, but don't save a style array. |
| 4490 | function processLine(cm, text, state, startAt) { |
| 4491 | var mode = cm.doc.mode; |
| 4492 | var stream = new StringStream(text, cm.options.tabSize); |
| 4493 | stream.start = stream.pos = startAt || 0; |
| 4494 | if (text == "" && mode.blankLine) mode.blankLine(state); |
| 4495 | while (!stream.eol() && stream.pos <= cm.options.maxHighlightLength) { |
| 4496 | mode.token(stream, state); |
| 4497 | stream.start = stream.pos; |
| 4498 | } |
| 4499 | } |
| 4500 | |
| 4501 | var styleToClassCache = {}, styleToClassCacheWithMode = {}; |
| 4502 | function interpretTokenStyle(style, builder) { |
no outgoing calls
no test coverage detected