MCPcopy Create free account
hub / github.com/TruthHun/BookStack / toNextTag

Function toNextTag

static/editor.md/lib/codemirror/addon/fold/xml-fold.js:69–78  ·  view source on GitHub ↗
(iter)

Source from the content-addressed store, hash-verified

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;

Callers 2

findMatchingCloseFunction · 0.85
xml-fold.jsFile · 0.85

Calls 2

nextLineFunction · 0.85
tagAtFunction · 0.85

Tested by

no test coverage detected