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

Function tokenString

static/editor.md/lib/codemirror/mode/verilog/verilog.js:204–215  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

202 }
203
204 function tokenString(quote) {
205 return function(stream, state) {
206 var escaped = false, next, end = false;
207 while ((next = stream.next()) != null) {
208 if (next == quote && !escaped) {end = true; break;}
209 escaped = !escaped && next == "\\";
210 }
211 if (end || !(escaped || multiLineStrings))
212 state.tokenize = tokenBase;
213 return "string";
214 };
215 }
216
217 function tokenComment(stream, state) {
218 var maybeEnd = false, ch;

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected