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

Function macro

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

Source from the content-addressed store, hash-verified

375 }
376
377 function macro(type) {
378 if (type.match(/[\[\(\{]/)) return matchBrackets(type, expression);
379 return pass();
380 }
381 function matchBrackets(type, comb) {
382 if (type == "[") return cont(pushlex("]"), commasep(comb, "]"), poplex);
383 if (type == "(") return cont(pushlex(")"), commasep(comb, ")"), poplex);

Callers

nothing calls this directly

Calls 2

matchBracketsFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected