MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / tokenString

Function tokenString

static/js/codemirror/mode/less/less.js:207–218  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

205 }
206
207 function tokenString(quote) {
208 return function(stream, state) {
209 var escaped = false, ch;
210 while ((ch = stream.next()) != null) {
211 if (ch == quote && !escaped)
212 break;
213 escaped = !escaped && ch == "\\";
214 }
215 if (!escaped) state.tokenize = tokenBase;
216 return ret("string", "string");
217 };
218 }
219
220 return {
221 startState: function(base) {

Callers 1

tokenBaseFunction · 0.70

Calls 2

retFunction · 0.70
nextMethod · 0.45

Tested by

no test coverage detected