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

Function tokenString

static/editor.md/lib/codemirror/mode/nginx/nginx.js:121–132  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

119 }
120
121 function tokenString(quote) {
122 return function(stream, state) {
123 var escaped = false, ch;
124 while ((ch = stream.next()) != null) {
125 if (ch == quote && !escaped)
126 break;
127 escaped = !escaped && ch == "\\";
128 }
129 if (!escaped) state.tokenize = tokenBase;
130 return ret("string", "string");
131 };
132 }
133
134 return {
135 startState: function(base) {

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected