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

Function slimAttribute

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

Source from the content-addressed store, hash-verified

402 return slimAttribute(stream, state);
403 }
404 function slimAttribute(stream, state) {
405 if (stream.match(/^([\[\{\(])/)) {
406 return startAttributeWrapperMode(state, closing[RegExp.$1], slimAttribute);
407 }
408 if (stream.match(attributeNameRegexp)) {
409 state.tokenize = slimAttributeAssign;
410 return "slimAttribute";
411 }
412 if (stream.peek() == '*') {
413 stream.next();
414 state.tokenize = startRubySplat(slimContent);
415 return null;
416 }
417 return slimContent(stream, state);
418 }
419 function slimAttributeAssign(stream, state) {
420 if (stream.match(/^==?/)) {
421 state.tokenize = slimAttributeValue;

Callers 3

slimClassFunction · 0.85
slimAttributeAssignFunction · 0.85
slimAttributeSymbolsFunction · 0.85

Calls 3

startRubySplatFunction · 0.85
slimContentFunction · 0.85

Tested by

no test coverage detected