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

Function slimTag

static/editor.md/lib/codemirror/mode/slim/slim.js:375–385  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

373 }
374
375 function slimTag(stream, state) {
376 if (stream.eat('*')) {
377 state.tokenize = startRubySplat(slimTagExtras);
378 return null;
379 }
380 if (stream.match(nameRegexp)) {
381 state.tokenize = slimTagExtras;
382 return "slimTag";
383 }
384 return slimClass(stream, state);
385 }
386 function slimTagExtras(stream, state) {
387 if (stream.match(/^(<>?|><?)/)) {
388 state.tokenize = slimClass;

Callers 2

startLineFunction · 0.85
slimFunction · 0.85

Calls 2

startRubySplatFunction · 0.85
slimClassFunction · 0.85

Tested by

no test coverage detected