MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / maybePopContext

Function maybePopContext

static/js/codemirror/mode/xml/xml.js:237–250  ·  view source on GitHub ↗
(nextTagName)

Source from the content-addressed store, hash-verified

235 };
236 }
237 function maybePopContext(nextTagName) {
238 var parentTagName;
239 while (true) {
240 if (!curState.context) {
241 return;
242 }
243 parentTagName = curState.context.tagName.toLowerCase();
244 if (!Kludges.contextGrabbers.hasOwnProperty(parentTagName) ||
245 !Kludges.contextGrabbers[parentTagName].hasOwnProperty(nextTagName)) {
246 return;
247 }
248 popContext();
249 }
250 }
251
252 function attributes(type) {
253 if (type == "word") {setStyle = "attribute"; return cont(attribute, attributes);}

Callers 1

endtagFunction · 0.85

Calls 1

popContextFunction · 0.70

Tested by

no test coverage detected