(n)
| 1987 | return minline; |
| 1988 | } |
| 1989 | function getStateBefore(n) { |
| 1990 | var start = findStartLine(n), state = start && getLine(start-1).stateAfter; |
| 1991 | if (!state) state = startState(mode); |
| 1992 | else state = copyState(mode, state); |
| 1993 | doc.iter(start, n, function(line) { |
| 1994 | line.highlight(mode, state, options.tabSize); |
| 1995 | line.stateAfter = copyState(mode, state); |
| 1996 | }); |
| 1997 | if (start < n) changes.push({from: start, to: n}); |
| 1998 | if (n < doc.size && !getLine(n).stateAfter) work.push(n); |
| 1999 | return state; |
| 2000 | } |
| 2001 | function highlightLines(start, end) { |
| 2002 | var state = getStateBefore(start); |
| 2003 | doc.iter(start, end, function(line) { |
no test coverage detected