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

Function pattern

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

Source from the content-addressed store, hash-verified

347 return pass();
348 }
349 function pattern(type) {
350 if (type == "name") {cx.marked = "def"; return cont(patternmaybeop);}
351 if (type == "atom") return cont(patternmaybeop);
352 if (type == "op") return cont(pattern);
353 if (type.match(/[\]\)\};,]/)) return pass();
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);}

Callers

nothing calls this directly

Calls 3

contFunction · 0.70
passFunction · 0.70
matchBracketsFunction · 0.70

Tested by

no test coverage detected