MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / tokenString

Function tokenString

mini-code-edit/cm/mode/less/less.js:172–183  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

170 }
171
172 function tokenString(quote) {
173 return function(stream, state) {
174 var escaped = false, ch;
175 while ((ch = stream.next()) != null) {
176 if (ch == quote && !escaped)
177 break;
178 escaped = !escaped && ch == "\\";
179 }
180 if (!escaped) state.tokenize = tokenBase;
181 return ret("string", "string");
182 };
183 }
184
185 return {
186 startState: function(base) {

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected