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

Function tokenString

static/editor.md/lib/codemirror/mode/sieve/sieve.js:149–160  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

147 }
148
149 function tokenString(quote) {
150 return function(stream, state) {
151 var escaped = false, ch;
152 while ((ch = stream.next()) != null) {
153 if (ch == quote && !escaped)
154 break;
155 escaped = !escaped && ch == "\\";
156 }
157 if (!escaped) state.tokenize = tokenBase;
158 return "string";
159 };
160 }
161
162 return {
163 startState: function(base) {

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected