MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / attvalue

Function attvalue

mini-code-edit/cm/mode/xml/xml.js:260–265  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

258 return (type == "endTag" || type == "selfcloseTag") ? pass() : cont();
259 }
260 function attvalue(type) {
261 if (type == "string") return cont(attvaluemaybe);
262 if (type == "word" && Kludges.allowUnquoted) {setStyle = "string"; return cont();}
263 setStyle = "error";
264 return (type == "endTag" || type == "selfCloseTag") ? pass() : cont();
265 }
266 function attvaluemaybe(type) {
267 if (type == "string") return cont(attvaluemaybe);
268 else return pass();

Callers

nothing calls this directly

Calls 2

contFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected