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

Function maybeBackup

static/editor.md/lib/codemirror/mode/slim/slim.js:87–95  ·  view source on GitHub ↗
(stream, state, pat, offset, style)

Source from the content-addressed store, hash-verified

85 }
86
87 function maybeBackup(stream, state, pat, offset, style) {
88 var cur = stream.current();
89 var idx = cur.search(pat);
90 if (idx > -1) {
91 state.tokenize = backup(stream.pos, state.tokenize, style);
92 stream.backUp(cur.length - idx - offset);
93 }
94 return style;
95 }
96
97 function continueLine(state, column) {
98 state.stack = {

Callers 1

htmlFunction · 0.70

Calls 1

backupFunction · 0.85

Tested by

no test coverage detected