(iter)
| 67 | } |
| 68 | |
| 69 | function toNextTag(iter) { |
| 70 | for (;;) { |
| 71 | xmlTagStart.lastIndex = iter.ch; |
| 72 | var found = xmlTagStart.exec(iter.text); |
| 73 | if (!found) { if (nextLine(iter)) continue; else return; } |
| 74 | if (!tagAt(iter, found.index + 1)) { iter.ch = found.index + 1; continue; } |
| 75 | iter.ch = found.index + found[0].length; |
| 76 | return found; |
| 77 | } |
| 78 | } |
| 79 | function toPrevTag(iter) { |
| 80 | for (;;) { |
| 81 | var gt = iter.ch ? iter.text.lastIndexOf(">", iter.ch - 1) : -1; |
no test coverage detected