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

Function exprbrace

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

Source from the content-addressed store, hash-verified

227 return pass(expression);
228 }
229 function exprbrace(type) {
230 if (type == "op") {
231 if (content == "|") return cont(blockvars, poplex, pushlex("}", "block"), block);
232 if (content == "||") return cont(poplex, pushlex("}", "block"), block);
233 }
234 if (content == "mutable" || (content.match(/^\w+$/) && cx.stream.peek() == ":"
235 && !cx.stream.match("::", false)))
236 return pass(record_of(expression));
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);}

Callers

nothing calls this directly

Calls 4

record_ofFunction · 0.85
contFunction · 0.70
pushlexFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected