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

Function filter

static/editor.md/lib/codemirror/mode/jade/jade.js:327–342  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

325 }
326
327 function filter(stream, state) {
328 if (stream.match(/^:([\w\-]+)/)) {
329 var innerMode;
330 if (config && config.innerModes) {
331 innerMode = config.innerModes(stream.current().substring(1));
332 }
333 if (!innerMode) {
334 innerMode = stream.current().substring(1);
335 }
336 if (typeof innerMode === 'string') {
337 innerMode = CodeMirror.getMode(config, innerMode);
338 }
339 setInnerMode(stream, state, innerMode);
340 return 'atom';
341 }
342 }
343
344 function code(stream, state) {
345 if (stream.match(/^(!?=|-)/)) {

Callers 4

includeFilteredContinuedFunction · 0.70
nextTokenFunction · 0.70
codemirror.min.jsFile · 0.50
codemirror.jsFile · 0.50

Calls 1

setInnerModeFunction · 0.85

Tested by

no test coverage detected