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

Function tokenBaseOnce

static/editor.md/lib/codemirror/mode/ruby/ruby.js:168–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166 };
167 }
168 function tokenBaseOnce() {
169 var alreadyCalled = false;
170 return function(stream, state) {
171 if (alreadyCalled) {
172 state.tokenize.pop();
173 return state.tokenize[state.tokenize.length-1](stream, state);
174 }
175 alreadyCalled = true;
176 return tokenBase(stream, state);
177 };
178 }
179 function readQuoted(quote, style, embed, unescaped) {
180 return function(stream, state) {
181 var escaped = false, ch;

Callers 1

readQuotedFunction · 0.85

Calls 1

tokenBaseFunction · 0.70

Tested by

no test coverage detected