(n)
| 1787 | return minline; |
| 1788 | } |
| 1789 | function getStateBefore(n) { |
| 1790 | var start = findStartLine(n), state = start && getLine(start-1).stateAfter; |
| 1791 | if (!state) state = startState(mode); |
| 1792 | else state = copyState(mode, state); |
| 1793 | doc.iter(start, n, function(line) { |
| 1794 | line.highlight(mode, state, options.tabSize); |
| 1795 | line.stateAfter = copyState(mode, state); |
| 1796 | }); |
| 1797 | if (start < n) changes.push({from: start, to: n}); |
| 1798 | if (n < doc.size && !getLine(n).stateAfter) work.push(n); |
| 1799 | return state; |
| 1800 | } |
| 1801 | function highlightLines(start, end) { |
| 1802 | var state = getStateBefore(start); |
| 1803 | doc.iter(start, end, function(line) { |
no test coverage detected