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

Function attributeWrapper

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

Source from the content-addressed store, hash-verified

225 }
226
227 function attributeWrapper(stream, state) {
228 if (stream.eat(state.stack.endQuote)) {
229 state.line = state.stack.line;
230 state.tokenize = state.stack.tokenize;
231 state.stack = state.stack.parent;
232 return null;
233 }
234 if (stream.match(wrappedAttributeNameRegexp)) {
235 state.tokenize = attributeWrapperAssign;
236 return "slimAttribute";
237 }
238 stream.next();
239 return null;
240 }
241 function attributeWrapperAssign(stream, state) {
242 if (stream.match(/^==?/)) {
243 state.tokenize = attributeWrapperValue;

Callers 1

attributeWrapperAssignFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected