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

Function maybeexpression

static/editor.md/lib/codemirror/mode/haxe/haxe.js:291–294  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

289 return cont();
290 }
291 function maybeexpression(type) {
292 if (type.match(/[;\}\)\],]/)) return pass();
293 return pass(expression);
294 }
295
296 function maybeoperator(type, value) {
297 if (type == "operator" && /\+\+|--/.test(value)) return cont(maybeoperator);

Callers

nothing calls this directly

Calls 1

passFunction · 0.70

Tested by

no test coverage detected