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

Function record_of

static/editor.md/lib/codemirror/mode/rust/rust.js:239–248  ·  view source on GitHub ↗
(comb)

Source from the content-addressed store, hash-verified

237 return pass(block);
238 }
239 function record_of(comb) {
240 function ro(type) {
241 if (content == "mutable" || content == "with") {cx.marked = "keyword"; return cont(ro);}
242 if (content.match(/^\w*$/)) {cx.marked = "variable"; return cont(ro);}
243 if (type == ":") return cont(comb, ro);
244 if (type == "}") return cont();
245 return cont(ro);
246 }
247 return ro;
248 }
249 function blockvars(type) {
250 if (type == "name") {cx.marked = "def"; return cont(blockvars);}
251 if (type == "op" && content == "|") return cont();

Callers 2

exprbraceFunction · 0.85
rtypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected