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

Function patternmaybeop

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

Source from the content-addressed store, hash-verified

354 return matchBrackets(type, pattern);
355 }
356 function patternmaybeop(type) {
357 if (type == "op" && content == ".") return cont();
358 if (content == "to") {cx.marked = "keyword"; return cont(pattern);}
359 else return pass();
360 }
361 function altbody(type) {
362 if (type == "{") return cont(pushlex("}", "alt"), altblock1, poplex);
363 return pass();

Callers

nothing calls this directly

Calls 2

contFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected