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

Function attribute

static/js/codemirror/mode/xml/xml.js:258–263  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

256 return cont(attributes);
257 }
258 function attribute(type) {
259 if (type == "equals") return cont(attvalue, attributes);
260 if (!Kludges.allowMissing) setStyle = "error";
261 else if (type == "word") setStyle = "attribute";
262 return (type == "endTag" || type == "selfcloseTag") ? pass() : cont();
263 }
264 function attvalue(type) {
265 if (type == "string") return cont(attvaluemaybe);
266 if (type == "word" && Kludges.allowUnquoted) {setStyle = "string"; return cont();}

Callers

nothing calls this directly

Calls 2

contFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected