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

Function tokenString

mini-code-edit/cm/mode/css/css.js:70–81  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

68 }
69
70 function tokenString(quote) {
71 return function(stream, state) {
72 var escaped = false, ch;
73 while ((ch = stream.next()) != null) {
74 if (ch == quote && !escaped)
75 break;
76 escaped = !escaped && ch == "\\";
77 }
78 if (!escaped) state.tokenize = tokenBase;
79 return ret("string", "string");
80 };
81 }
82
83 return {
84 startState: function(base) {

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected