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

Function slimClass

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

Source from the content-addressed store, hash-verified

391 return slimClass(stream, state);
392 }
393 function slimClass(stream, state) {
394 if (stream.match(classIdRegexp)) {
395 state.tokenize = slimClass;
396 return "slimId";
397 }
398 if (stream.match(classNameRegexp)) {
399 state.tokenize = slimClass;
400 return "slimClass";
401 }
402 return slimAttribute(stream, state);
403 }
404 function slimAttribute(stream, state) {
405 if (stream.match(/^([\[\{\(])/)) {
406 return startAttributeWrapperMode(state, closing[RegExp.$1], slimAttribute);

Callers 2

slimTagFunction · 0.85
slimTagExtrasFunction · 0.85

Calls 1

slimAttributeFunction · 0.85

Tested by

no test coverage detected