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

Function maybeop

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

Source from the content-addressed store, hash-verified

216 return cont();
217 }
218 function maybeop(type) {
219 if (content == ".") return cont(maybeprop);
220 if (content == "::<"){return cont(typarams, maybeop);}
221 if (type == "op" || content == ":") return cont(expression);
222 if (type == "(" || type == "[") return matchBrackets(type, expression);
223 return pass();
224 }
225 function maybeprop() {
226 if (content.match(/^\w+$/)) {cx.marked = "variable"; return cont(maybeop);}
227 return pass(expression);

Callers

nothing calls this directly

Calls 3

contFunction · 0.70
matchBracketsFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected