MCPcopy Create free account
hub / github.com/existentialmutt/lt-ruby / tokenBaseOnce

Function tokenBaseOnce

codemirror/ruby.js:138–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 };
137 }
138 function tokenBaseOnce() {
139 var alreadyCalled = false;
140 return function(stream, state) {
141 if (alreadyCalled) {
142 state.tokenize.pop();
143 return state.tokenize[state.tokenize.length-1](stream, state);
144 }
145 alreadyCalled = true;
146 return tokenBase(stream, state);
147 };
148 }
149 function readQuoted(quote, style, embed, unescaped) {
150 return function(stream, state) {
151 var escaped = false, ch;

Callers 1

readQuotedFunction · 0.85

Calls 1

tokenBaseFunction · 0.85

Tested by

no test coverage detected