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

Function enumblock

static/editor.md/lib/codemirror/mode/rust/rust.js:296–301  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

294 return cont(enumdef);
295 }
296 function enumblock(type) {
297 if (type == "}") return cont();
298 if (type == "(") return cont(pushlex(")"), commasep(rtype, ")"), poplex, enumblock);
299 if (content.match(/^\w+$/)) cx.marked = "def";
300 return cont(enumblock);
301 }
302 function mod(type) {
303 if (type == "name") {cx.marked = "def"; return cont(mod);}
304 if (type == "{") return cont(pushlex("}"), block, poplex);

Callers

nothing calls this directly

Calls 3

contFunction · 0.70
pushlexFunction · 0.70
commasepFunction · 0.70

Tested by

no test coverage detected