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

Function attvalue

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

Source from the content-addressed store, hash-verified

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();}
267 setStyle = "error";
268 return (type == "endTag" || type == "selfCloseTag") ? pass() : cont();
269 }
270 function attvaluemaybe(type) {
271 if (type == "string") return cont(attvaluemaybe);
272 else return pass();

Callers

nothing calls this directly

Calls 2

contFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected